
Looking at the original commit
https://lists.denx.de/pipermail/u-boot/2014-June/181599.html
It looks like it puts the result into the variable $filesize just as the other commands which read files do.
Regards, Jack.
On 26/09/2019 08:27, Adarsh Babu Kalepalli wrote:
Hello,
Commands "size / ext4size / fatsize" do not display the file size.
u-boot version:2019.10-rc4
H/W Board : Beaglebone Black
Command Causing Issue: size/ext4size/fatsize
Command Output: Size of the mentioned file is not displayed on serial
console.
Console Output from Beaglebone Black for usb and mmc devices :
=> fatls usb 0:1 1024 1kB.txt 1048576 1MB.txt
2 file(s), 0 dir(s)
=> fatsize usb 0:1 1MB.txt => size usb 0:1 1MB.txt => size size - determine a file's size
Usage: size <interface> <dev[:part]> <filename> - Find file 'filename' from 'dev' on 'interface' and determine its size. => ext4ls mmc 0:2
<DIR> 4096 . <DIR> 4096 .. <DIR> 4096 bin <DIR> 4096 boot <DIR> 4096 dev <DIR> 4096 etc <DIR> 4096 home <DIR> 4096 lib <DIR> 4096 media <DIR> 4096 mnt <DIR> 4096 proc <DIR> 4096 run <DIR> 4096 sbin <DIR> 4096 sys <SYM> 8 tmp <DIR> 4096 usr <DIR> 4096 var 1024 test_data => ext4size mmc 0:2 /test_data => size mmc 0:2 /test_data => --------------------------------------------------------------------------------------------
- Adarsh
https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=263e577d-8a0d-4805-aed0-c94705b9fd3a I’m protected online with Avast Free Antivirus. Get it here — it’s free forever. https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=263e577d-8a0d-4805-aed0-c94705b9fd3a <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot