From nobody Wed Feb 23 10:42:45 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 7AD0C19DA582 for ; Wed, 23 Feb 2022 10:43:04 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 4K3XgW6FDCz4pdJ; Wed, 23 Feb 2022 10:43:03 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ed1-x52c.google.com with SMTP id x5so43334084edd.11; Wed, 23 Feb 2022 02:43:03 -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=e466M6/kSK1xD+CeP6kLAOD+Q70wJoGGhZMmKaiUOX0=; b=RlzdwutIte0MHtoaBdwyQhd7t9CohEYNjbx9aUviOmCiakDw+MFXz3yRw1JK4X9HvG 3g+iF3IRnNchXbF0lcqgCqyVtcARhy6KCimUzOsQOCAcj75F3R9Frh/XuNxoLRTKBiog 9nfPfrpnaSrRrNA8ekCuoWM21sEJ086hIiMzqKEeWt8OkHLSxJjns+Qh/dqjfUoskZh/ b9Ob4tC8qovxtL3D/2Z+m3PmRDO35oMpHP2dSHmZ6tf06whSHaCrvq2unFeRNRc2zX7S gaetPnHai5fvTRpDNUr8PmXTIYHOSBKnmjFWH1Qrt67ifbM56r/OOnMzabGa3IaLC253 BFsQ== 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=e466M6/kSK1xD+CeP6kLAOD+Q70wJoGGhZMmKaiUOX0=; b=u8mPSqUqJ7O5Pbmt56dOlGXPOF+IM76MCb+f4rrNHujq5LYpnfcNcNXFbISZZaj9lv EAg6Jr5xqAw90Jn8Q+IPsvT0EzqwbASrVMbkXZIVRTWnyXQG8eaVJpabqzrTE4AkCPG7 sbw98uQwdN3jv5BXkT5nnpmZAKjUB5fgghPnDfsurX3CuEQhoE3K009fFjbbNiG7RrIz StpuSh3z3YiNV8Jb5EamFYmt+3GmB8zj/g1yv5xyxn9r3arzuChZnWKoKOf+KDSGLh5J U/FZLfaIYg6HLPLzkaVdjFgOGs6R4oQuWMPLanOOSlQu/e+lu/dgjEs+z3KscR51De1G eF3A== X-Gm-Message-State: AOAM53263HALKUgObX5gzvFPiVjOE9HVXK59LV38iC9bJtL30Livp/eA +aDLN2Tx6Ge+a5n6AB9yZw7RJTWJSW79kXOMhu+iie97iEs= X-Google-Smtp-Source: ABdhPJwDPEbuJpG0nIbtUl8rdUpPiUVTNhOW7UJ411I9BZc3KaJsiCnr3zs74PAbHzO+2bd5nU238BtyrIhISEAOEoE= X-Received: by 2002:a05:6402:369c:b0:413:2bc0:3f00 with SMTP id ej28-20020a056402369c00b004132bc03f00mr5524913edb.126.1645612976653; Wed, 23 Feb 2022 02:42:56 -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: In-Reply-To: From: Archimedes Gaviola Date: Wed, 23 Feb 2022 18:42:45 +0800 Message-ID: Subject: Re: Raspberry Pi Serial Number To: Peter Jeremy Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000e9475f05d8ad208d" X-Rspamd-Queue-Id: 4K3XgW6FDCz4pdJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=RlzdwutI; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000]; 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]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52c:from]; MLMMJ_DEST(0.00)[freebsd-arm]; 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)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --000000000000e9475f05d8ad208d Content-Type: text/plain; charset="UTF-8" On Wed, Feb 23, 2022 at 6:14 PM Peter Jeremy wrote: > On 2022-Feb-23 17:48:18 +0800, Archimedes Gaviola < > archimedes.gaviola@gmail.com> wrote: > >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 > > I don't have a RPi4 but at least on my RPi2, the data appears to > be in sysctl: > hw.board.serial: 00000000d206f16c > hw.board.revision: 10620993 > hw.platform: bcm2836 > Thanks Peter, I'm wondering why there's no such output in sysctl with RPi4? Archimedes --000000000000e9475f05d8ad208d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Feb 23, 2022 at 6:14 PM Peter= Jeremy <peterj@freebsd.org>= ; wrote:
On 2022= -Feb-23 17:48:18 +0800, Archimedes Gaviola <archimedes.gaviola@gmail.com> = wrote:
>How to obtain the RPi serial number? I'm checking sysctl info but t= here
>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 suc= h as:
>
>Hardware=C2=A0 =C2=A0 =C2=A0 =C2=A0 : BCM2835
>Revision=C2=A0 =C2=A0 =C2=A0 =C2=A0 : b03112
>Serial=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : 10000000bc8a56a3
>Model=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Raspberry Pi 4 Model B = Rev 1.2

I don't have a RPi4 but at least on my RPi2, the data appears to
be in sysctl:
hw.board.serial: 00000000d206f16c
hw.board.revision: 10620993
hw.platform: bcm2836

<= /div>
Thanks Peter, I'm wondering why there&#= 39;s no such output in sysctl with RPi4?
Archimedes
--000000000000e9475f05d8ad208d--