[問題] MTD問題
各位前輩好,想請教一些問題,
目前我在我的板子上有nandflash&SD/mmc card等裝置,
一直以來系統是用mmc/sd card來boot的,也用nandflash boot過,
日前換了一顆nandflash,之後卻無法把bootImage and jffs2複製到nand上,
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V
8-bit)
mmc/sd開機有偵測到
Scanning device for bad blocks
Bad eraseblock 0 at 0x00000000
Bad eraseblock 1 at 0x00080000
Bad eraseblock 2 at 0x00100000
....
....
Bad eraseblock 251 at 0x07d80000
Creating 3 MTD partitions on "NAND 2GiB 3,3V 8-bit":
0x00000000-0x01400000 : "Boot"
0x01400000-0x07800000 : "Root FS jffs2"
0x07800000-0x80000000 : "Data jffs2"
MTD partition沿用以前的分割設定,
root@stmp37xx:~# cat /proc/mtd
dev: size erasesize name
mtd0: 80000000 00080000 "NAND 2GiB 3,3V 8-bit"
mtd1: 01400000 00080000 "Boot"
mtd2: 06400000 00080000 "Root FS jffs2"
mtd3: 78800000 00080000 "Data jffs2"
root@stmp37xx:~# nandwrite -p /dev/mtd2 devel-eas-stmp37xx.jffs2
Unknown flash (not normal NAND)
寫檔不行,以前就直接writeblock...
root@stmp37xx:~# flash_erase /dev/mtd0
Erase Total 1 Units
Performnand_erase: attempt to erase a bad block at page 0x00000000
ing Flash Erase of length 524288 at offset 0x0
MTD Erase failure: Input/output error
root@stmp37xx:~# flash_erase /dev/mtdblock0
Erase Total 1 Units
flash_eraseall /dev/mtd都正常,
請問一下我到底忽略了哪些事情,以及我該用啥方法來把mmc卡內的資訊
寫入nandflash呢?
整個沒啥頭續~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.73.247.232
→
05/28 12:03, , 1F
05/28 12:03, 1F
討論串 (同標題文章)
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章
77
188