linux - Get SD card serial / oemid from U-boot on RaspberryPi3 -
i'm using u-boot on raspberry pi 3 , want obtain sd card oemid
or serial
number.
"normally" can done accessing /sys/block/mmcblk0/device/
or running udevadm info -a -n /dev/sdx
on linux site, wonder:
is possible via u-boot (i.e. without running kernel) ?
so, in order enough information device able use root=partuuid= syntax linux kernel need have few commands enabled in u-boot. functional example of can found here. shell prompt command just:
=> part uuid interface device:partition variable-to-store-in
and requires have config_cmd_part set in turn requires config_partition_uuids.
Comments
Post a Comment