[U-Boot] Learn size of file in ram from bootloader

Haris Papadopoulos haris at amberbox.com
Thu Dec 8 18:37:01 CET 2016


I have loaded a file in ram memory in location 0x80800000.
I use a custom command in the bootloader named update as shown below.

update rootfs ram 0x80800000 0x02853000

The value 0x02853000 corresponds to the size of a file which is not stable.
How can I take the size of the file with a function (sizeof(file) ?) in
uboot?

Thanks

-- 
Haris | AmberBox | Software Engineer
haris at amberbox.com <tomas at amberbox.com> | + 1 650-686-0230


More information about the U-Boot mailing list