From nobody Thu Feb 24 15:04:39 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 69BA219CD6E0 for ; Thu, 24 Feb 2022 15:04:30 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4K4GQj0dsMz4nTr for ; Thu, 24 Feb 2022 15:04:28 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References: Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=VQzwbuRGVrcDlCygQp422NKaAe0Zku2evSfGtSTu3NY=; b=bccrfyxplXBUYU56Wo7L485pYd 8l6Wv1Us0xM3Pa+lEix9OVtHyfIuGgcZffUseAnKfH7nGNuyVBLnBAtnpnc9f1gOcjtP8Y1hjSbsE KZKRIjZ+LFtsR+ItH68p6YtoKeGZ+4Sh/MWK4Br6gwa4oQ7a1fw8Z6BZsPniSKsBqPKg=; Message-ID: <8f933b23-2ce7-9e41-4845-32e81a58d5ef@klop.ws> Date: Thu, 24 Feb 2022 16:04:39 +0100 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: Raspberry Pi Serial Number Content-Language: en-US To: Archimedes Gaviola , Carl Johnson Cc: freebsd-arm@freebsd.org References: <722278586.24.1645611783398@mailrelay> <86ee3t3532.fsf@bay.localnet> From: Ronald Klop In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: - X-Spam-Score: -1.2 X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.2 X-Scan-Signature: 4c3c8b3d32e7d0cfaf2d58264fc1daa3 X-Rspamd-Queue-Id: 4K4GQj0dsMz4nTr X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=bccrfyxp; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; RWL_MAILSPIKE_EXCELLENT(0.00)[195.190.28.88:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FREEMAIL_TO(0.00)[gmail.com,peak.org]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 1617 Lines: 54 On 2/24/22 15:50, Archimedes Gaviola wrote: > > > 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 > > > If it is about direct output you can also do: ofwdump -P serial-number -S / Cheers, Ronald.