From nobody Thu Feb 24 16:03:47 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B00EF19D97EA for ; Thu, 24 Feb 2022 16:04:18 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K4Hlk0BcGz3CfN for ; Thu, 24 Feb 2022 16:04:18 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ed1-x52a.google.com with SMTP id s14so3590549edw.0 for ; Thu, 24 Feb 2022 08:04:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q94GOXpGWrTUiSjVzKyIyZxbh2DHe/N5RsHQ0w2WELA=; b=koA2cpIBROc+hJWxaZrES4BopKBY4WV/S3iSSGHQ3sAW1DWvH9JZ+YxY3nC7u/FAzw 1B3UBTAvl0dffGtD7qDxynIzVVzJ+vcnypbP47Eo5Ux+HN15qfTDrzs1wlpkI8sVR7Iw LlKQ6vPvTJvsZirssXEz0ic/903EYbIBCKF5ystMyBkC8TJ3hkziCrB8FTcVbO0HFktO 4j2l13H3zwQSrFuoPVfyKeZVMJJRm1CJ0/YSzAUe9bp1UnFmURTg5NKqxtH73daM1yyt fvUGu3fG4u4w98pm1SVh07iergN+uDEQK9I8UMTY3l15FqkzyAd3ES0K4VkJpL9S7o1g fG+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q94GOXpGWrTUiSjVzKyIyZxbh2DHe/N5RsHQ0w2WELA=; b=B0Dh/1c2d1QDA/lv+/dawv2x3E7aDqnc6x64GRQvgZvwJm7JywzaVFw48z4+DHeBUn 8LsrjkqsU9hdt3yLd05hynTh08zvAGoVSrJA7TVtx7Bqk09TkYQImxMzheuwOnNo0zyd +O2WNfA3zxMOGQn8DZ8oU6pdMtbGypAR6EhraMAFygKxwlPIr6inSXs9hxaPj7t86n/G w5kwHvNNNzEyui360tPXaIICRVF8gx3wPw5xzFFFNG2qAAhWsbv9Y/leMzqoN7os7ksw LkNzflwz1wbuFw3+yAzJrJ0/IYPBQKj2FzptSgIxfXZNHP7O/nyXd/rGAdsuLxbhsSj5 +IXQ== X-Gm-Message-State: AOAM532UKx8keplCtG3aBxSM0JjUh0O94FqB4Hhk4HU3BhZ2DyFoGnYn dxXAnryQn5wS5r8FiX/xngFTvxO//2B5ocJguKU= X-Google-Smtp-Source: ABdhPJwrvM+6+Odsu1PZbOYU/UehwKCjziM1ElFho9ZynLXSHWpc2PEsjtMlyI7V2UBmR990TaMbuyZDpK3c61H/du4= X-Received: by 2002:a05:6402:2686:b0:412:d1cb:a6d8 with SMTP id w6-20020a056402268600b00412d1cba6d8mr2983872edd.280.1645718656981; Thu, 24 Feb 2022 08:04:16 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: <722278586.24.1645611783398@mailrelay> <86ee3t3532.fsf@bay.localnet> <8f933b23-2ce7-9e41-4845-32e81a58d5ef@klop.ws> In-Reply-To: <8f933b23-2ce7-9e41-4845-32e81a58d5ef@klop.ws> From: Archimedes Gaviola Date: Fri, 25 Feb 2022 00:03:47 +0800 Message-ID: Subject: Re: Raspberry Pi Serial Number To: Ronald Klop Cc: Carl Johnson , freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000f31d1705d8c5bb5b" X-Rspamd-Queue-Id: 4K4Hlk0BcGz3CfN X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=koA2cpIB; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::52a as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52a:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000f31d1705d8c5bb5b Content-Type: text/plain; charset="UTF-8" On Thu, Feb 24, 2022 at 11:04 PM Ronald Klop wrote: > On 2/24/22 15:50, Archimedes Gaviola wrote: > > > > > > On Thu, Feb 24, 2022 at 12:45 AM Carl Johnson carlj@peak.org>> wrote: > > > > Archimedes Gaviola archimedes.gaviola@gmail.com>> writes: > > > > > On Wed, Feb 23, 2022 at 6:23 PM Ronald Klop > wrote: > > > > > >> Is that this number? > > >> > > >> [root@rpi4 ~]# ofwdump -p -a | head > > >> Node 0x48: > > >> memreserve: > > >> 3b 30 00 00 04 c0 00 00 > > >> serial-number: > > >> 31 30 30 30 30 30 30 30 36 34 39 35 32 31 61 30 00 > > >> '10000000649521a0' > > >> compatible: > > >> 72 61 73 70 62 65 72 72 79 70 69 2c 34 2d 6d 6f 64 65 6c 2d > > >> 62 00 62 72 63 6d 2c 62 63 6d 32 37 31 31 00 > > >> model: > > >> > > >> > > > I believe so Ronald as it matches the serial number from my > CentOS in the > > > same hardware. > > > > > > root@generic:~ # ofwdump -p -a | head > > > Node 0x48: > > > memreserve: > > > 3b 40 00 00 04 c0 00 00 > > > serial-number: > > > 31 30 30 30 30 30 30 30 62 63 38 61 35 36 61 33 00 > > > '10000000bc8a56a3' > > > > The serial number also appears to be available with > > 'kenv smbios.system.serial' on my RPi4. > > > > > > Indeed it gives a more direct output, thanks for sharing! > > > > freebsd@fbsd13:~ % kenv smbios.system.serial > > 10000000bc8a56a > > > > > > > > > If it is about direct output you can also do: > > ofwdump -P serial-number -S / > Nice, thanks again Ronald! --000000000000f31d1705d8c5bb5b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, Feb 24, 2022 at 11:04 PM Rona= ld Klop <ronald-lists@klop.ws> wrote:
On = 2/24/22 15:50, Archimedes Gaviola wrote:
>
>
> On Thu, Feb 24, 2022 at 12:45 AM Carl Johnson <
carlj@peak.org <mailto:carlj@peak.org>> wrote: >
>=C2=A0 =C2=A0 =C2=A0Archimedes Gaviola <archimedes.gaviola@gmail.com <= mailto:ar= chimedes.gaviola@gmail.com>> writes:
>
>=C2=A0 =C2=A0 =C2=A0 > On Wed, Feb 23, 2022 at 6:23 PM Ronald Klop &= lt;ronald-lists@k= lop.ws <mailto:ronald-lists@klop.ws>> wrote:
>=C2=A0 =C2=A0 =C2=A0 >
>=C2=A0 =C2=A0 =C2=A0 >> Is that this number?
>=C2=A0 =C2=A0 =C2=A0 >>
>=C2=A0 =C2=A0 =C2=A0 >> [root@rpi4 ~]# ofwdump -p -a | head
>=C2=A0 =C2=A0 =C2=A0 >> Node 0x48:
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0memreserve:
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0 =C2=A03b 30 00 00 04 c0 00 0= 0
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0serial-number:
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0 =C2=A031 30 30 30 30 30 30 3= 0 36 34 39 35 32 31 61 30 00
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0 =C2=A0'10000000649521a0&= #39;
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0compatible:
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0 =C2=A072 61 73 70 62 65 72 7= 2 79 70 69 2c 34 2d 6d 6f 64 65 6c 2d
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0 =C2=A062 00 62 72 63 6d 2c 6= 2 63 6d 32 37 31 31 00
>=C2=A0 =C2=A0 =C2=A0 >>=C2=A0 =C2=A0model:
>=C2=A0 =C2=A0 =C2=A0 >>
>=C2=A0 =C2=A0 =C2=A0 >>
>=C2=A0 =C2=A0 =C2=A0 > I believe so Ronald as it matches the serial = number from my CentOS in the
>=C2=A0 =C2=A0 =C2=A0 > same hardware.
>=C2=A0 =C2=A0 =C2=A0 >
>=C2=A0 =C2=A0 =C2=A0 > root@generic:~ # ofwdump -p -a | head
>=C2=A0 =C2=A0 =C2=A0 > Node 0x48:
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0memreserve:
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A03b 40 00 00 04 c0 00 00 >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0serial-number:
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A031 30 30 30 30 30 30 30 62= 63 38 61 35 36 61 33 00
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0'10000000bc8a56a3'=
>
>=C2=A0 =C2=A0 =C2=A0The serial number also appears to be available with=
>=C2=A0 =C2=A0 =C2=A0'kenv smbios.system.serial' on my RPi4.
>
>
>=C2=A0 =C2=A0Indeed it gives a more direct output, thanks for sharing!<= br> >
> freebsd@fbsd13:~ % kenv smbios.system.serial
> 10000000bc8a56a
>
>
>


If it is about direct output you can also do:

ofwdump -P serial-number -S /

Nice, thanks a= gain Ronald!
--000000000000f31d1705d8c5bb5b--