我正在尝试使用&n;和#o;'来更新U-Boot内的NAND区域。但是,我的更改没有生效。
我接下来的流程是:
不幸的是,我从NAND读回的数据似乎没有修改。
有没有办法做我想做的事?
处理器是TI DM3730,NAND部分是MT29C2G48MAKLCJI-6 IT。
这是我正在做的全部输出:
Overo # nand info
Device 0: nand0, sector size 128 KiB
Page size 2048 b
OOB size 64 b
Erase size 131072 b
Overo # nandecc hw
1-bit hamming HW ECC selected
Overo # nand read.oob 0x80010000 0x20000 40
NAND read: device 0 offset 0x20000, size 0x40
64 bytes read: OK
Overo # md.b 0x80010000 40
80010000: 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
Overo # mm.b 0x80010000
80010000: 00 ? ff
80010001: 00 ? ff
80010002: ff ? q
Overo # md.b 0x80010000 40
80010000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
Overo # nand write.oob 0x80010000 0x20000 40
NAND write: device 0 offset 0x20000, size 0x40
64 bytes written: OK
Overo # nand read.oob 0x80010000 0x20000 40
NAND read: device 0 offset 0x20000, size 0x40
64 bytes read: OK
Overo # md.b 0x80010000 40
80010000: 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
80010030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
请注意,0x80010000和0x80010002处的数据不是' ff'应该如此。