页次: 1
C:\xfel-windows-v1.2.9>xfel spinand
Found spi nand flash 'MX35LF1GE4AB' with 134217728 bytes
C:\xfel-windows-v1.2.9>xfel spinand splwrite 1024 0 sunxi-spl.bin
100% [================================================] 128.000 KB, 98.663 KB/s
C:\xfel-windows-v1.2.9>xfel spinand write 0x20000 u-boot.img
100% [================================================] 427.879 KB, 96.931 KB/s
C:\xfel-windows-v1.2.9>xfel spinand write 0x100000 sun8i-v3s-licheepi-zero-dock.dtb
100% [================================================] 12.109 KB, 109.700 KB/s
C:\xfel-windows-v1.2.9>xfel spinand write 0x120000 zImage
100% [================================================] 4.875 MB, 96.847 KB/s
启动时读出会失败:
NAND read: device 0 offset 0x100000, size 0x10000
NAND read from offset 100000 failed -74
0 bytes read: ERROR
NAND read: device 0 offset 0x120000, size 0x800000
NAND read from offset 120000 failed -74
0 bytes read: ERROR
但如果整片擦除:
C:\xfel-windows-v1.2.9>xfel spinand erase 0 0x8000000
100% [================================================] 128.000 MB, 17.756 MB/s
然后重新上电再写入,启动时就能正常读出:
NAND read: device 0 offset 0x100000, size 0x10000
65536 bytes read: OK
NAND read: device 0 offset 0x120000, size 0x800000
8388608 bytes read: OK
页次: 1