Getting U-boot's Version from Userspace

waffleman picture waffleman · Apr 25, 2011 · Viewed 19.9k times · Source

Does anyone know of a way to get U-boot version installed from userspace? There is the fw_printenv command that provides access to U-boot's environment variables, but not the version.

Answer

SHI Shougang picture SHI Shougang · Jul 31, 2014

If U-boot is located in mtd0, you can get version info as follows:

root@SUPERWIFI:/proc# strings /dev/mtd0 | grep U-Boot    
U-Boot 1.1.4-g1c8343c8-dirty (Feb 28 2014 - 13:56:54)
U-Boot
Now running in RAM - U-Boot at: %08lx