From nobody Thu Feb 24 14:50:59 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 BF2BA19CAA8E for ; Thu, 24 Feb 2022 14:51:18 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 4K4G7T6Wvnz4lnr for ; Thu, 24 Feb 2022 14:51:17 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ej1-x62c.google.com with SMTP id qx21so4828413ejb.13 for ; Thu, 24 Feb 2022 06:51: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=xZ409uO8AnuGkEP4VNZz9kA0w6thwd1phFSPM2veWnc=; b=K6AN69ZRw2ZRIdkZO56JNzev0GYEqIdOBpUyFYep89EeBGnCFkOi1DzAcBfnu5d8Pq 80fzAejNEIaZic4uKxRbiKW1skiaYBg0vt7uruLurG2lXPS+xXVXORXXARpe+0lA/+fN kcxumnPaRxnx7l5s1XqtYr1EGUqpTQorddzKUD1HVMwt9Ha4MIm2VdHKO57Eq++Q/1lN EyZ1v/SN10jcHgnz1CmP6uuibbLmJoNQO4kmjs36cTNbNR9b4QRaiRefnHgn3qKt0HLl cUBJXZ2lTMmOX2nGfsm9AgGGZUHuBC+ps5GQFgy0Et/iZMZSUOALwc5uGq48z4K443gN zxZw== 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=xZ409uO8AnuGkEP4VNZz9kA0w6thwd1phFSPM2veWnc=; b=XPD44p/lddGsLVo5zUIxC9isD/khIchPzyiAkUanRiQWjYKd2agQdJPMZMECOK/V1+ kVdscIa24nPhrnttsMjVUz4xbHUZKApmHEEdkzIRAOuWT+a8N4hlEgk0ebh2NJqWdcjf Fn6iS7cDwlRrnTZ/zXIULUFEKOBPixKypFUqiWcjzhVXoWqcU5d9a1DMAdlBMC/gfkHR Je94y7TYADyrHdsJgEEK8rmWoz+f4a8TdLMJ5NHFrizJOC8kJn4jbsjn7mxbN7hPEhrf rhorqpUYrOgAGFe7mawWu85QRs9y+dk1Xe3X6IRGQOOGTV4nxJAzbtUNkUUWZiClY5Bw PJzA== X-Gm-Message-State: AOAM532qZOG3VCYIxzk9oDlYfMVfd97Pds6I2QA9/yhE+rTYBSN5xGgf 6le830GBxANfTybf74jUFI2LeoqvAieeb6R50VpJa5PG285tfQ== X-Google-Smtp-Source: ABdhPJxpgOwC8YaxsApcGBrnmkZET/QrY598gQ/H6RqJtIJWSYFdAloWr5R4CA/md+fo9ZgZ/+SBDSOcUz/FiOCqiWc= X-Received: by 2002:a17:907:9208:b0:6cf:cd92:c1e7 with SMTP id ka8-20020a170907920800b006cfcd92c1e7mr2661773ejb.282.1645714271104; Thu, 24 Feb 2022 06:51:11 -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> In-Reply-To: <86ee3t3532.fsf@bay.localnet> From: Archimedes Gaviola Date: Thu, 24 Feb 2022 22:50:59 +0800 Message-ID: Subject: Re: Raspberry Pi Serial Number To: Carl Johnson Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="00000000000087f1ee05d8c4b63b" X-Rspamd-Queue-Id: 4K4G7T6Wvnz4lnr X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=K6AN69ZR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::62c 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:+]; RCPT_COUNT_TWO(0.00)[2]; 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)[]; 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::62c:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000087f1ee05d8c4b63b Content-Type: text/plain; charset="UTF-8" On Thu, Feb 24, 2022 at 12:45 AM Carl Johnson wrote: > Archimedes Gaviola 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 > > --00000000000087f1ee05d8c4b63b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, Feb 24, 2022 at 12:45 AM Carl= Johnson <carlj@peak.org> wrote= :
Archimedes Gav= iola <= archimedes.gaviola@gmail.com> writes:

> On Wed, Feb 23, 2022 at 6:23 PM Ronald Klop <ronald-lists@klop.ws> wrote:
>
>> Is that this number?
>>
>> [root@rpi4 ~]# ofwdump -p -a | head
>> Node 0x48:
>>=C2=A0 =C2=A0memreserve:
>>=C2=A0 =C2=A0 =C2=A03b 30 00 00 04 c0 00 00
>>=C2=A0 =C2=A0serial-number:
>>=C2=A0 =C2=A0 =C2=A031 30 30 30 30 30 30 30 36 34 39 35 32 31 61 30= 00
>>=C2=A0 =C2=A0 =C2=A0'10000000649521a0'
>>=C2=A0 =C2=A0compatible:
>>=C2=A0 =C2=A0 =C2=A072 61 73 70 62 65 72 72 79 70 69 2c 34 2d 6d 6f= 64 65 6c 2d
>>=C2=A0 =C2=A0 =C2=A062 00 62 72 63 6d 2c 62 63 6d 32 37 31 31 00 >>=C2=A0 =C2=A0model:
>>
>>
> 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:
>=C2=A0 =C2=A0memreserve:
>=C2=A0 =C2=A0 =C2=A03b 40 00 00 04 c0 00 00
>=C2=A0 =C2=A0serial-number:
>=C2=A0 =C2=A0 =C2=A031 30 30 30 30 30 30 30 62 63 38 61 35 36 61 33 00<= br> >=C2=A0 =C2=A0 =C2=A0'10000000bc8a56a3'

The serial number also appears to be available with
'kenv smbios.system.serial' on my RPi4.

=C2=A0Indeed it gives a more direct output, thanks for sharing!

freebsd@fbsd13:~ % kenv smbios.system.serial
10000000bc8a56a



--00000000000087f1ee05d8c4b63b--