Sd Test - Advantech UBC-220 User Manual

Risc iot box computer powered by freescale i.mx6 dual lite processor arm cortex a9 architecture
Table of Contents

Advertisement

2.
Create a file and copy to USB flash disk
#echo 123456789ABCDEF > test.txt
#dd if=./test.txt of=/dev/sda bs=1024 count=1 seek=25118
0+1 records in
0+1 records out
16 bytes (16 B) copied, 0.000109331 s, 146 kB/s
3.
Check the data copied to USB flash disk
#hexdump -C /dev/sda -s 25720832 -s 32
01887800
|123456789ABCDEF.|
01887810 1d 4f e2 19 d3 05 8b df ab 4a 40 5a c5 23 3c f2
|................|
Note!
This operation may damage the data stored in USB flash disk. Please
make sure there is no critical data in the USB flash disk being used for
this test.
2.5.3

SD Test

1.
When booting from eMMC, you would see only below directories:
#ls /dev/mmcblk*
/dev/mmcblk0
mmcblk0p1
2.
Insert SD card to SD card slot (SD1) and check your device again. You should
be able to see more directories. /dev/mmcblk1 is the SD card storage.
#ls /dev/mmcblk*
/dev/mmcblk0
mmcblk1p2
/dev/mmcblk0boot0
3.
Create a file and copy to SD
#echo 123456789ABCDEF > test.txt
#dd if=./test.txt of=/dev/mmcblk1 bs=1024 count=1
seek=25118
0+1 records in
0+1 records out
16 bytes (16 B) copied, 0.000109331 s, 146 kB/s
4.
Check if the file is created successfully.
#hexdump -C /dev/mmcblk1 -s 25720832 -s 32
01887800
|123456789ABCDEF.|
01887810 1d 4f e2 19 d3 05 8b df ab 4a 40 5a c5 23 3c f2
31 32 33 34 35 36 37 38
/dev/mmcblk0boot0
/dev/mmcblk0boot1
/dev/mmcblk0p1
31 32 33 34 35 36 37 38
21
39 41 42 43 44 45 46 0a
/dev/mmcblk0boot1
/dev/mmcblk1
/dev/mmcblk1p1
39 41 42 43 44 45 46 0a
UBC-220 User Manual
/dev/
/dev/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ubc-220dl-mda1e

Table of Contents