Raspberry Pi 3 Serial Number

This is for ARMv8 based devices

Raspberry Pi 3 Serial Number

Postby user00265 » Wed Feb 21, 2018 3:26 pm

Hi,

I've been trying to obtain the serial number in the SoC for the Raspberry Pi 3, and everybody says "use /proc/cpuinfo" -- well, my output is not the same as the output for anyone using Raspbian at least.

What I'm supposed to see, except for the obviously different ARM processor
Code: Select all
pi@raspberrypi:~$ cat /proc/cpuinfo
 Processor       : ARMv6-compatible processor rev 7 (v6l)
 BogoMIPS        : 697.95
 Features        : swp half thumb fastmult vfp edsp java tls
 CPU implementer : 0x41
 CPU architecture: 7
 CPU variant     : 0x0
 CPU part        : 0xb76
 CPU revision    : 7

 Hardware        : BCM2708
 Revision        : 1000002
 Serial          : 000000000000000d


What I actually see
Code: Select all
[root@atticus ~]# cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 38.40
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4


I tried putting Raspbian on another SD, but when it boots and grabs an IP address, I can't login via SSH and keep getting "connection refused" so I can't just use that route. Also, that output seems like there's stuff missing, and obviously different. BogoMIPS on an older ARM architecture is more than this one? No processor identifier?

I followed the instructions to install on my RPi, so I'm hoping I didn't screw that up!
user00265
 
Posts: 2
Joined: Wed Feb 21, 2018 3:16 pm

Re: Raspberry Pi 3 Serial Number

Postby andre » Wed Feb 21, 2018 6:04 pm

I suppose you are running a 64-bit kernel?
The serial in the /proc/cpuinfo is something that works for the raspberry pi specific kernels. As the 64 bit kernel is a generic kernel, it doesn't show the raspberry pi specific output.
andre
 
Posts: 66
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven

Re: Raspberry Pi 3 Serial Number

Postby user00265 » Wed Feb 21, 2018 6:07 pm

I am running whatever result of using the instructions does. I have no complaints to use it as is, just wanted to have the S/N for the application I'm building.

Is there another way to do this? Or just give up?
user00265
 
Posts: 2
Joined: Wed Feb 21, 2018 3:16 pm

Re: Raspberry Pi 3 Serial Number

Postby andre » Wed Feb 21, 2018 11:16 pm

The instructions for Raspberry Pi 3 list instructions for "ARMv7 Installation" (32-bit) and "AArch64 Installation" (64-bit)
I'm not sure about the serial on a 64-bit installation, but I am using a 32-bit installation on a Raspberry Pi, and I am getting
Code: Select all
[andre@rpi-media ~]$ cat /proc/cpuinfo
processor   : 0
model name   : ARMv7 Processor rev 4 (v7l)
BogoMIPS   : 38.40
Features   : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer   : 0x41
CPU architecture: 7
CPU variant   : 0x0
CPU part   : 0xd03
CPU revision   : 4

processor   : 1
model name   : ARMv7 Processor rev 4 (v7l)
BogoMIPS   : 38.40
Features   : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer   : 0x41
CPU architecture: 7
CPU variant   : 0x0
CPU part   : 0xd03
CPU revision   : 4

processor   : 2
model name   : ARMv7 Processor rev 4 (v7l)
BogoMIPS   : 38.40
Features   : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer   : 0x41
CPU architecture: 7
CPU variant   : 0x0
CPU part   : 0xd03
CPU revision   : 4

processor   : 3
model name   : ARMv7 Processor rev 4 (v7l)
BogoMIPS   : 38.40
Features   : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer   : 0x41
CPU architecture: 7
CPU variant   : 0x0
CPU part   : 0xd03
CPU revision   : 4

Hardware   : BCM2835
Revision   : a02082
Serial      : 00000000e5e2e6eb


What kernel version are you running? Run a
Code: Select all
uname -a
andre
 
Posts: 66
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven

Re: Raspberry Pi 3 Serial Number

Postby Fuson51 » Thu Feb 22, 2018 9:19 pm

As alternative you can try:
Code: Select all
cat /sys/firmware/devicetree/base/serial-number
Fuson51
 
Posts: 12
Joined: Sat Jan 05, 2013 7:32 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 1 guest