Some newbie Questions

Hi there

some questions:

  • is there a command to display U.Boot/SPL version ?
  • cow to display metric (especially temperature, fan-speed …)
  • any recommended GUI/commandline tools to display status,load, diskusage etc

I wrote a quick and dirty script to do that, but it only works for firmware versions that were manually added by me (basically all the versions that were publicly published on github up until now).
see two posts down for a slightly better script.

And I would avoid running it often, SSD hardware have a limited number of reads (usually more than 4 orders or more in magnitude than the number of writes) before they fail. So there is no point needlessly in burning through the life of chip that is soldered on to the board. It is a sloppy script that does stupid things.


Here is a version 2 of the above script that will generate 40x less reads of the MTD SSD every time it is ran. Basically it adds a 20 mb RAM disk and transfers the contents of /dev/mtd0 and /dev/mtd1 to there and then hammers the firmware files in the ram disk. It also runs much faster.

worked like charm. although it would be better if there was a command to list these versions

I guess it might be possible map the compile timestamp inside SPL+U-Boot and the timestamps of the tags on github

root@starfive:/tmp/ramdisk# strings mtd0  | grep -i 2023
U-Boot SPL 2021.10 (Aug 31 2023 - 12:55:45 +0800)
root@starfive:/tmp/ramdisk# strings mtd1  | grep -i 2023
U-Boot 2021.10 (Aug 31 2023 - 12:55:45 +0800)