[DIY详解] 斐讯 K3 更换 NAND Flash

[复制链接]
查看5855 | 回复2 | 2017-12-30 08:36:00 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区

您需要 登录 才可以下载或查看,没有账号?立即注册

×
之所以要换,是因为刷了梅林后,JFFS分区经常有问题,日志里面出现很多错误,例如下面:


复制代码
    [li]Aug  1 08:00:22 kernel: JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.[/li][li]Aug  1 08:00:22 kernel: mtd->read(0x400 bytes from 0x2a00000) returned ECC error[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a00000: 0xffff instead[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a00004: 0x04fc instead[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a00008: 0x35b4 instead[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0000c: 0x0018 instead[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a00010: 0xffff instead[/li][li]Aug  1 08:00:22 kernel: Empty flash at 0x02a00014 ends at 0x02a00018[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0001c: 0x5000 instead[/li][li]Aug  1 08:00:22 kernel: Empty flash at 0x02a00020 ends at 0x02a00024[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a00024: 0xbfff instead[/li][li]Aug  1 08:00:22 kernel: Empty flash at 0x02a00028 ends at 0x02a0002c[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0002c: 0x4197 instead[/li][li]Aug  1 08:00:22 kernel: Empty flash at 0x02a00030 ends at 0x02a00034[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a00034: 0xffff instead[/li][li]Aug  1 08:00:22 kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a00038: 0x0006 instead[/li][li]Aug  1 08:00:22 kernel: Further such events for this erase block will not be printed[/li][li]Aug  1 08:00:22 kernel: Empty flash at 0x02a00040 ends at 0x02a00044[/li][li]Aug  1 08:00:22 kernel: Empty flash at 0x02a0005c ends at 0x02a00064[/li]


复制代码
    [li]Aug 20 12:06:38 kernel: mtd->read(0x44c bytes from 0x3c602b4) returned ECC error[/li][li]Aug 20 12:06:38 kernel: Header CRC failed on REF_PRISTINE node at 0x03c602b4: Read 0xc79d4397, calculated 0x245b4f1d[/li][li]Aug 20 12:06:38 kernel: Node CRC 2445ffff != calculated CRC 56cdeaf8 for node at 03c602b4[/li][li]Aug 20 12:06:38 kernel: read_cache_page() returned error: -5[/li][li]Aug 20 12:06:38 kernel: Error garbage collecting node at 03c602b4![/li][li]Aug 20 12:07:38 kernel: Header CRC failed on REF_PRISTINE node at 0x03c602b4: Read 0xc79d4397, calculated 0x245b4f1d[/li][li]Aug 20 12:07:38 kernel: Node CRC 2445ffff != calculated CRC 56cdeaf8 for node at 03c602b4[/li][li]Aug 20 12:07:38 kernel: read_cache_page() returned error: -5[/li][li]Aug 20 12:07:38 kernel: Error garbage collecting node at 03c602b4![/li]


用的是三星k9f1g08u0f闪存,我换成了MX30LF1G18AC,早期K3使用过

K3做了SPI,NAND双启动,先把SPI Flash编程器写入CFE, 焊上K3,
用TTL连接路由,连接网线,用SPI启动,

开TFTP,mtd0放TFTP目录,IP自己指定

在SecureCRT窗口里面: CFE:



                               
登录/注册后可看大图


命令是:

复制代码
    [li]flash -noheader 192.168.2.10:mtd0.bin nflash0.brcmnand[/li]


写入以后就可以切换到NAND 启动,写入固件了,

之后刷了梅林,JFFS正常了,日志里面再没出现上述坏块信息,


一些图片


                               
登录/注册后可看大图



                               
登录/注册后可看大图



                               
登录/注册后可看大图



                               
登录/注册后可看大图



                               
登录/注册后可看大图



                               
登录/注册后可看大图



图片:IMG_3153.JPG
回复

使用道具 举报

hongyancl | 2017-12-30 08:40:10 | 显示全部楼层
回复

使用道具 举报

tdshawn | 2017-12-30 08:55:17 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则