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

8 Dec
2016
8 Dec
'16
6:37 p.m.
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@amberbox.com tomas@amberbox.com | + 1 650-686-0230
3077
Age (days ago)
3077
Last active (days ago)
0 comments
1 participants
participants (1)
-
Haris Papadopoulos