[U-Boot] [PATCH] fat: scripts for prepare and test read fat files

Przemyslaw Marczak p.marczak at samsung.com
Fri Dec 12 16:54:37 CET 2014


Hello,

On 12/12/2014 04:52 PM, Przemyslaw Marczak wrote:
> ---------------------------------------------------------
> mktest_files: script for generating random size long name files
> ---------------------------------------------------------
> Usage:
> ./1_mktest_files.sh count
>
> count - number of files to be generated
>
> The output directory is: "./test_files"
>
> ---------------------------------------------------------
> copy_files: copy the test_files/* into test partition mount point
> ---------------------------------------------------------
> Usage:
> ./2_copy_files.sh mount_point
>
> -----------------------------------------------------------
> fat_test.sh: test fat read by write commands to the device console
> ----------------------------------------------------------
> This script send commands to U-Boot console.
> First specify few script variables, e.g:
> - TTY="/dev/ttyS0"
> - MMCDEV=0
> - PARTITION=2
> - LOAD_ADDR="0x40000000"
>
> usage:
> 1. Target:
>     run: ums 0 mmc 0
> 2. Run script 1 and 2 to make and copy the test files
>     onto the test partition by UMS
> 3. This script:
>     - set test device $PARTITION and other variables in the script,
>       which is required for sending proper commands
>     - set $TTY in the script
>     run: ./3_fat_test.sh
> 4. Compare the crc results on the target and device consoles
>     (sorry for the mess on the console)
>
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> ---
>   1_mktest_files.sh | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>   2_copy_files.sh   | 20 ++++++++++++++
>   3_fat_test.sh     | 38 ++++++++++++++++++++++++++
>   3 files changed, 140 insertions(+)
>   create mode 100755 1_mktest_files.sh
>   create mode 100755 2_copy_files.sh
>   create mode 100755 3_fat_test.sh
>

This is just for some quick test.
I will add something more pretty to the sandbox.

Best regards,
-- 
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com


More information about the U-Boot mailing list