VFS: Cannot open root device “(null)“ or unknown-block(0,0): error -6

VFS: Cannot open root device “(null)” or unknown-block(0,0): error -6

OPEMWRT系统的MT7628换了FLASH后出现的错误。解决如下:
在openwrt_CC_mt76xx_zhuotk_source/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.18.29/drivers/mtd/spi-nor/spi-nor.c的spi_device_id spi_nor_ids[] 增加新FLASH型号和参数。
/* Intel/Numonyx – xxxs33b */
{ “160s33b”, INFO(0x898911, 0, 64 * 1024, 32, 0) },
{ “320s33b”, INFO(0x898912, 0, 64 * 1024, 64, 0) },
{ “640s33b”, INFO(0x898913, 0, 64 * 1024, 128, 0) },

/* ISSI */
{ "is25cd512", INFO(0x7f9d20, 0, 32 * 1024,   2, SECT_4K) },
    { "IS25LP512M", INFO(0x9d601a, 0, 64 * 1024,   1024, SECT_4K) },

其中IS25LP512M是我新增的。
然后修改对应的分区大小,在
openwrt_CC_mt76xx_zhuotk_source/target/linux/ramips/dts/MT7628.dts

spi@b00 {
status = “okay”;

		m25p80@0 {
			#address-cells = <1>;
			#size-cells = <1>;
			compatible = "en25q64";
			reg = <0 0>;
			linux,modalias = "w25q64", "w25q128", "w25q256";
			spi-max-frequency = <10000000>;
			m25p,chunked-io = <32>;

			partition@0 {
				label = "u-boot";
				reg = <0x0 0x30000>;
				read-only;
			};

			partition@30000 {
				label = "u-boot-env";
				reg = <0x30000 0x10000>;
				read-only;
			};

			factory: partition@40000 {
				label = "factory";
				reg = <0x40000 0x10000>;
				read-only;
			};

			partition@50000 {
				label = "firmware";
			//	reg = <0x50000 0x7b0000>; //8MB flash
			//	reg = <0x50000 0xfb0000>; //16MB flash
			//	reg = <0x50000 0x1fb0000>; //32MB flash
                                    reg = <0x50000 0x3f00000>; //64MB flash

			};
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值