![Advantech RSB-4220 User Manual Download Page 31](http://html1.mh-extra.com/html/advantech/rsb-4220/rsb-4220_user-manual_2857962031.webp)
25
RSB-4220 User Manual
Chapter 2
H
/W Installation
2.5.4
SPI Test
1.
Power turns on and boots into OS.
2.
Run program to test SPI flash read/write.
root@am335x
‐
adv:/unit_tests#
./AutoRun_spi.sh
####################---SPI Test for RSB 4220----##################
the spi falsh info:
31 0 4096 mtdblock0
============================================
Test next block:/dev/mtd0 mtdblock0
============================================
mtd.type = MTD_NORFLASH
mtd.flags = MTD_CAP_NORFLASH
mtd.size = 4194304 (4M)
mtd.erasesize = 4096 (4K)
mtd.writesize = 1
mtd.oobsize = 0
regions = 0
Erased 4194304 bytes from address 0x00000000 in flash
Copied 4194304 bytes from address 0x00000000 in flash to ./temp-1.img
0000000 ffff ffff ffff ffff ffff ffff ffff ffff
*
0400000
============================================================
################ SPI mtdblock0 Read 1 PASS !!!
============================================================
4096+0 records in
4096+0 records out
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0400000
Copied 4194304 bytes from ./all-0.img to address 0x00000000 in flash
Copied 4194304 bytes from address 0x00000000 in flash to ./temp-0.img
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0400000
============================================================
################## --------------SPI mtdblock0 Write 0 PASS !!!
============================================================
============================================================
###################-----------> SPI Test all mtdblock0 PASS !!!
============================================================
================================================
####