Skip to content

example C code to retrieve the Raspberry Pi Serial Number

License

Notifications You must be signed in to change notification settings

jinsai0423/raspi_serialnumber

 
 

Repository files navigation

Raspberry Pi Serial Number

This repository contains example C code to retrieve the Raspberry Pi Serial Number

serialnumber_cpuinfo.c

Read the serial number from /proc/cpuinfo

serialnumber_sysfs.c

Read the serial number from /sys/firmware/devicetree/base/serial-number

serialnumber_mailbox.c

Get the serial number using the Raspberry Pi Mailbox interface

serialnumber_vcgencmd.c

Get the serial number using libbcm_host

build

cd raspi_serialnumber
mkdir build
cd build
cmake ..
make

About

example C code to retrieve the Raspberry Pi Serial Number

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.1%
  • CMake 10.9%