我在移植openwrt到GFII(Option GlobeSurfer II)上时,出现下面的错误:
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 13
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
b44: eth0: powering down PHY
Please press Enter to activate this console. mini_fo: build_sto_structure: failed to create storage dir [1].
mini_fo: get_neg_sto_dentry: ERROR building sto structure.
mini_fo: create_sto_file: ERROR getting neg. sto dentry.
然后,openwrt无法进入shell。
于是通过failsafe方式进入shell,运行
root@(none):/# mount -t jffs2 /dev/mtdblock5 /mnt
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 13
因此可以断定系统的错误为无法mount jffs2文件系统。
通过google查找原因,发现是因为分区没有格式化为jffs2,因此mount时会出错。这是需要运行firstboot,再mount就OK了。
root@(none):/# firstboot
firstboot has already been run
jffs2 partition is mounted, only resetting files
重启单板,故障解决。
阅读(7952) | 评论(0) | 转发(0) |