Re: [U-Boot] 'size/ext4size/fatsize' shell commands do not dispay the filesize

2019-09-26 Thread Jack Mitchell
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   
> - Find file 'filename' from 'dev' on 'interface'
>   and determine its size.
> => ext4ls mmc 0:2
>4096 .
>4096 ..
>4096 bin
>4096 boot
>4096 dev
>4096 etc
>4096 home
>4096 lib
>4096 media
>4096 mnt
>4096 proc
>4096 run
>4096 sbin
>4096 sys
>   8 tmp
>4096 usr
>4096 var
> 1024 test_data
> => ext4size mmc 0:2 /test_data
> => size mmc 0:2  /test_data
> =>
> 
> 
> - Adarsh
> 
> 
> I’m
> protected online with Avast Free Antivirus. Get it here — it’s free forever.
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> https://lists.denx.de/listinfo/u-boot
> 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] 'size/ext4size/fatsize' shell commands do not dispay the filesize

2019-09-26 Thread Adarsh Babu Kalepalli
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   
- Find file 'filename' from 'dev' on 'interface'
  and determine its size.
=> ext4ls mmc 0:2
   4096 .
   4096 ..
   4096 bin
   4096 boot
   4096 dev
   4096 etc
   4096 home
   4096 lib
   4096 media
   4096 mnt
   4096 proc
   4096 run
   4096 sbin
   4096 sys
  8 tmp
   4096 usr
   4096 var
1024 test_data
=> ext4size mmc 0:2 /test_data
=> size mmc 0:2  /test_data
=>


- Adarsh


I’m
protected online with Avast Free Antivirus. Get it here — it’s free forever.

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot