![Advantech RSB-4220 User Manual Download Page 30](http://html1.mh-extra.com/html/advantech/rsb-4220/rsb-4220_user-manual_2857962030.webp)
RSB-4220 User Manual
24
2.5.2
USB Test
2.5.2.1
USB HOST TEST
1.
Plug a USB flash device into USB connector.
2.
Mount the USB flash and check system can detect it.
3.
Run program to read/write USB flash.
root@am335x
‐
adv:/unit_tests#
./AutoRun_usb_host.sh
disk_to_test=sda
---create partition for sda
---format file system
partion_list=sda1
test /dev/sda1
pass
2.5.2.2
USB OTG Test
1.
Jump to OTG mode, Use USB Type A- Type A cable to connect the USB-OTG
port of RSB-4220 and the USB port of PC.
2.
Copy 20MB xx file to RSB-4220 from PC.
3.
Check the RSB-4220 xx file size was 20MB.
2.5.3
SD Test
1.
Insert SD card into SD1 slot.
2.
Mount the SD card device and check system can detect it.
root@am335x
‐
adv:/unit_tests#
fdisk
‐
l
/dev/mmcblk0
Disk /dev/mmcblk0: 3980 MB, 3980394496 bytes
255 heads, 63 sectors/track, 483 cylinders, total 7774208 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot
Start
End
Blocks
Id
System
/dev/mmcblk0p1 * 63
144584
72261
c
W95 FAT32 (LBA)
/dev/mmcblk0p2160650
7759394
83
Linux
3.
Run program to read/write SD.
root@am335x
‐
adv:/unit_tests#
./AutoRun_sd.sh
mmcblk0
10240+0 records in
10240+0 records out
10240+0 records in
10240+0 records out
10240+0 records in
10240+0 records out
=================SD test pass================