Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2022 00:03:47 +0800
From:      Archimedes Gaviola <archimedes.gaviola@gmail.com>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        Carl Johnson <carlj@peak.org>, freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi Serial Number
Message-ID:  <CAJFbk7Eq7=tWQQP_gaSqG%2BfvUHNJhbXDQpnsiXy996Fpj-hS-g@mail.gmail.com>
In-Reply-To: <8f933b23-2ce7-9e41-4845-32e81a58d5ef@klop.ws>
References:  <CAJFbk7GZu3wTGmfKPO-EizVMb%2B%2BmS43M08UAry3Gv50D0Cbfqg@mail.gmail.com> <722278586.24.1645611783398@mailrelay> <CAJFbk7Ena05a4OYuBB3qf-EZ316mfV2n7GJBgh-8Ci3BM_HWLw@mail.gmail.com> <86ee3t3532.fsf@bay.localnet> <CAJFbk7HsT01Shdrdz%2Bex3Rhz5TeB1FexMnE%2BHZfncB=qHqArdQ@mail.gmail.com> <8f933b23-2ce7-9e41-4845-32e81a58d5ef@klop.ws>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000f31d1705d8c5bb5b
Content-Type: text/plain; charset="UTF-8"

On Thu, Feb 24, 2022 at 11:04 PM Ronald 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:
> >
> >     Archimedes Gaviola <archimedes.gaviola@gmail.com <mailto:
> archimedes.gaviola@gmail.com>> writes:
> >
> >      > On Wed, Feb 23, 2022 at 6:23 PM Ronald Klop <ronald-lists@klop.ws
> <mailto:ronald-lists@klop.ws>> 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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Thu, Feb 24, 2022 at 11:04 PM Rona=
ld Klop &lt;<a href=3D"mailto:ronald-lists@klop.ws">ronald-lists@klop.ws</a=
>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On =
2/24/22 15:50, Archimedes Gaviola wrote:<br>
&gt; <br>
&gt; <br>
&gt; On Thu, Feb 24, 2022 at 12:45 AM Carl Johnson &lt;<a href=3D"mailto:ca=
rlj@peak.org" target=3D"_blank">carlj@peak.org</a> &lt;mailto:<a href=3D"ma=
ilto:carlj@peak.org" target=3D"_blank">carlj@peak.org</a>&gt;&gt; wrote:<br=
>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0Archimedes Gaviola &lt;<a href=3D"mailto:archimedes=
.gaviola@gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</a> &lt;=
mailto:<a href=3D"mailto:archimedes.gaviola@gmail.com" target=3D"_blank">ar=
chimedes.gaviola@gmail.com</a>&gt;&gt; writes:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt; On Wed, Feb 23, 2022 at 6:23 PM Ronald Klop &=
lt;<a href=3D"mailto:ronald-lists@klop.ws" target=3D"_blank">ronald-lists@k=
lop.ws</a> &lt;mailto:<a href=3D"mailto:ronald-lists@klop.ws" target=3D"_bl=
ank">ronald-lists@klop.ws</a>&gt;&gt; wrote:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt; Is that this number?<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt; [root@rpi4 ~]# ofwdump -p -a | head<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt; Node 0x48:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=C2=A0 =C2=A0memreserve:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=C2=A0 =C2=A0 =C2=A03b 30 00 00 04 c0 00 0=
0<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=C2=A0 =C2=A0serial-number:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=C2=A0 =C2=A0 =C2=A031 30 30 30 30 30 30 3=
0 36 34 39 35 32 31 61 30 00<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=C2=A0 =C2=A0 =C2=A0&#39;10000000649521a0&=
#39;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=C2=A0 =C2=A0compatible:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=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<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=C2=A0 =C2=A0 =C2=A062 00 62 72 63 6d 2c 6=
2 63 6d 32 37 31 31 00<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;=C2=A0 =C2=A0model:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt; I believe so Ronald as it matches the serial =
number from my CentOS in the<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt; same hardware.<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt; root@generic:~ # ofwdump -p -a | head<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt; Node 0x48:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;=C2=A0 =C2=A0memreserve:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;=C2=A0 =C2=A0 =C2=A03b 40 00 00 04 c0 00 00<br=
>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;=C2=A0 =C2=A0serial-number:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;=C2=A0 =C2=A0 =C2=A031 30 30 30 30 30 30 30 62=
 63 38 61 35 36 61 33 00<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;=C2=A0 =C2=A0 =C2=A0&#39;10000000bc8a56a3&#39;=
<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0The serial number also appears to be available with=
<br>
&gt;=C2=A0 =C2=A0 =C2=A0&#39;kenv smbios.system.serial&#39; on my RPi4.<br>
&gt; <br>
&gt; <br>
&gt;=C2=A0 =C2=A0Indeed it gives a more direct output, thanks for sharing!<=
br>
&gt; <br>
&gt; freebsd@fbsd13:~ % kenv smbios.system.serial<br>
&gt; 10000000bc8a56a<br>
&gt; <br>
&gt; <br>
&gt; <br>
<br>
<br>
If it is about direct output you can also do:<br>
<br>
ofwdump -P serial-number -S /<br></blockquote><div><br></div>Nice, thanks a=
gain Ronald!<br></div></div>

--000000000000f31d1705d8c5bb5b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7Eq7=tWQQP_gaSqG%2BfvUHNJhbXDQpnsiXy996Fpj-hS-g>