Chinaunix首页 | 论坛 | 博客
  • 博客访问: 778685
  • 博文数量: 81
  • 博客积分: 612
  • 博客等级: 中士
  • 技术积分: 1216
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-03 14:38
个人简介

蝴蝶翅膀的力量,也许能够改变这个世界。

文章分类

全部博文(81)

文章存档

2020年(2)

2019年(2)

2018年(6)

2017年(2)

2016年(5)

2015年(7)

2014年(20)

2013年(12)

2012年(25)

分类: 嵌入式

2012-03-25 21:50:23

我在移植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

重启单板,故障解决。



阅读(7834) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~