Documentation ¶
Overview ¶
Package pieeprom provides interface ot the Raspberry Pi bootloader EEPROM.
Index ¶
Constants ¶
View Source
const ProcfsBootloaderBuildTimestamp = "/proc/device-tree/chosen/bootloader/build-timestamp"
ProcfsBootloaderBuildTimestamp denotes a device tree file containing the build timestamp of the firmware.
Variables ¶
Functions ¶
func BuildTimestamp ¶
BuildTimestamp returns the build date of the firmware as read from the given file.
The format of the timestamp is a 32bit big-endian signed integer representing seconds since UNIX epoch. Pass ProcfsBootloaderBuildTimestamp as the filename to load the timestamp from the device tree of a running system.
On a device without EEPROM-based bootloader, this will fail with fs.ErrNotExist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.