From nobody Wed Feb 23 10:23:03 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 7836E19D6CA6 for ; Wed, 23 Feb 2022 10:23:12 +0000 (UTC) (envelope-from SRS0=V7EQ=TG=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3XDb2zVdz4md6 for ; Wed, 23 Feb 2022 10:23:11 +0000 (UTC) (envelope-from SRS0=V7EQ=TG=klop.ws=ronald-lists@realworks.nl) Date: Wed, 23 Feb 2022 11:23:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1645611783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tKQByMh9ZgEzRd5EAqNzW7o6v3SuQH0xFW4tNZdP6mk=; b=Tp1FBiUpgD0lgbeGQQuLPKHOBnBXLtnZL/m5dXPkVHor6YMJqTe7BJI4OMNjleHrlknUxz tQHl6F3I3hfLawTtQVGmF+bsYcRerILavse2pzPlL6cgUKnLUk4VdDmAjs6KNZeLCFrYwn Cyb2u7Cm9lrXgb+eWe/xs1Wi6ch48imeMgbWKUgFzUZroHooJAwnduBpmxF1stgzphuN57 sY4OjwfU6QuqoMC1Gq1LpogoKFBoU/G0TSdptxXgLcGEd3drcYzdkkztzzh2BS9Qsy28pt 8CH1vXBoOp6YZD7/i/ilEQGFerBkcsGZrG5QIr8wJCaptXw3PU1kcSjGc09Waw== From: Ronald Klop To: Archimedes Gaviola Cc: freebsd-arm@freebsd.org Message-ID: <722278586.24.1645611783398@mailrelay> In-Reply-To: References: Subject: Re: Raspberry Pi Serial Number 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 Content-Type: multipart/alternative; boundary="----=_Part_23_1278155202.1645611783387" X-Mailer: Realworks (597.138.6f75bd0) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4K3XDb2zVdz4md6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=Tp1FBiUp; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=V7EQ=TG=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=V7EQ=TG=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-3.20 / 15.00]; ARC_NA(0.00)[]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=V7EQ=TG=klop.ws=ronald-lists@realworks.nl]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; MLMMJ_DEST(0.00)[freebsd-arm]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=V7EQ=TG=klop.ws=ronald-lists@realworks.nl] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_23_1278155202.1645611783387 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: Van: Archimedes Gaviola Datum: woensdag, 23 februari 2022 10:48 Aan: freebsd-arm@freebsd.org Onderwerp: Raspberry Pi Serial Number > > Hi, > > How to obtain the RPi serial number? I'm checking sysctl info but there seems to be none with FreeBSD-13.0-RELEASE and 14.0-CURRENT or I just missed it somewhere? In CentOS it is reflected in the /proc/cpuinfo such as: > > Hardware : BCM2835 > Revision : b03112 > Serial : 10000000bc8a56a3 > Model : Raspberry Pi 4 Model B Rev 1.2 > > Thanks, > Archimedes > ------=_Part_23_1278155202.1645611783387 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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:


 

Van: Archimedes Gaviola <archimedes.gaviola@gmail.com>
Datum: woensdag, 23 februari 2022 10:48
Aan: freebsd-arm@freebsd.org
Onderwerp: Raspberry Pi Serial Number

Hi,
 
How to obtain the RPi serial number? I'm checking sysctl info but there seems to be none with FreeBSD-13.0-RELEASE and 14.0-CURRENT or I just missed it somewhere? In CentOS it is reflected in the /proc/cpuinfo such as:
 
Hardware        : BCM2835
Revision        : b03112
Serial          : 10000000bc8a56a3
Model           : Raspberry Pi 4 Model B Rev 1.2
 
Thanks,
Archimedes
 
------=_Part_23_1278155202.1645611783387--