Spi Nor Flash Test - Advantech RSB-4221 User Manual

Risc 3.5inch sbc based on ti sitara am3358 cortex a8 1ghz high performance processor
Hide thumbs Also See for RSB-4221:
Table of Contents

Advertisement

Step 3: Erase and check
#dd if=/dev/zero of=/dev/block/mmcblk1 bs=1024 count=1 seek=25118
1+0 records in
1+0 records out
#hexdump -C /dev/block/mmcblk1 -s 25720832 -n 16
01887800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
Step 4: Write and check
#echo -n "0123456789ABCDEF" | dd of=/dev/block/mmcblk1bs=1024 count=1
seek=25118
0+1 records in
0+1 records out
#busyboxhexdump -C /dev/block/mmcblk1 -s 25720832 -n 16
01887800
|0123456789ABCDEF|
Note!
Please make sure parameter "seek" is equal to 25118 as indicated in
the above codes. If you create the file to a wrong sector, that may dam-
age the system.
3.5

SPI Nor Flash Test

#AutoRun_spi.sh
####################---SPI Test for AM335X----##################
the spifalsh info:
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 4096 bytes from address 0x00030000 in flash
Copied 4096 bytes from address 0x00030000 in flash to temp.img
0000000 ffffffffffffffffffffffffffffffff
*
0001000
RSB-4221 User Manual
30 31 32 33 34 35 36 37
38 39 41 42 43 44 45 46
28

Advertisement

Table of Contents
loading

Table of Contents