pawlet-hwinfo is now a C++ binary. It reads the bootloader git hash and build-timestamp from the chosen/bootloader device-tree node and queries the VideoCore firmware revision, hash and variant over the /dev/vcio mailbox. Both are formatted date-first like vcgencmd/rpi-eeprom-update. pawlet-memtier reads MemTotal with shell builtins instead of awk, which is labelled vendor_file and not executable from the memtier domain.
16 lines
645 B
Plaintext
16 lines
645 B
Plaintext
# pawlet-hwinfo: reads the RPi bootloader (EEPROM) and VideoCore firmware
|
|
# versions at boot into ro.vendor.pawlet.hw.* -- see pawlet-hwinfo.cpp.
|
|
#
|
|
# post-fs-data: fires after `on fs`'s mount_all, well before zygote starts,
|
|
# so the properties are there before Settings can read them. (Was a shell
|
|
# script until 2026-10-13; its old exec-path bug -- Soong installs under the
|
|
# module name, pawlet-hwinfo, not the source filename -- doesn't apply to a
|
|
# cc_binary, but the path below is still the module name.)
|
|
service pawlet_hwinfo /vendor/bin/pawlet-hwinfo
|
|
user root
|
|
group root
|
|
oneshot
|
|
|
|
on post-fs-data
|
|
exec_start pawlet_hwinfo
|