This repository contains example C code to retrieve the Raspberry Pi Serial Number
Read the serial number from /proc/cpuinfo
Read the serial number from /sys/firmware/devicetree/base/serial-number
Get the serial number using the Raspberry Pi Mailbox interface
Get the serial number using vcgencmd using libbcm_host
Get the serial number using vcgencmd using ioctl
cd raspi_serialnumber
mkdir build
cd build
cmake ..
make