VFS: Cannot open root device "(null)" or unknown-block(0,0): erro r -6

编译的固件在开发板上运行很好,然后买了些模块,有的是使用的W25Q256存储器,也能运行,但是有的是MX25L25635E的存储器,就不能运行了,打印出的信息如下,不知道到底是哪里的问题,MX25L25635E的模块是可以运行其他的openwrt的固件的,就是不知道我自己编译的固件是哪里没有设置,还是那个驱动有问题
spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.470000] m25p80 spi32766.0: mx25l25635e (32768 Kbytes)
[ 0.480000] m25p80 spi32766.0: using chunked io
[ 0.490000] 4 ofpart partitions found on MTD device spi32766.0
[ 0.500000] Creating 4 MTD partitions on “spi32766.0”:
[ 0.510000] 0x000000000000-0x000000030000 : “u-boot”
[ 0.520000] 0x000000030000-0x000000040000 : “u-boot-env”
[ 0.530000] 0x000000040000-0x000000050000 : “factory”
[ 0.540000] 0x000000050000-0x000002000000 : “firmware”
[ 0.660000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq
5[
0.670000] mt7621_wdt 10000120.watchdog: Initialized
[ 0.690000] TCP: cubic registered
[ 0.690000] NET: Registered protocol family 17
[ 0.700000] bridge: automatic filtering via arp/ip/ip6tables has been depreca
ted. Update your scripts to load br_netfilter if you need this.
[ 0.730000] 8021q: 802.1Q VLAN Support v1.8
[ 0.740000] VFS: Cannot open root device “(null)” or unknown-block(0,0): erro
r -6
[ 0.750000] Please append a correct “root=” boot option; here are the availab
le partitions:
[ 0.770000] 1f00 192 mtdblock0 (driver?)
[ 0.780000] 1f01 64 mtdblock1 (driver?)
[ 0.790000] 1f02 64 mtdblock2 (driver?)
[ 0.800000] 1f03 32448 mtdblock3 (driver?)
[ 0.810000] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[ 0.810000] —[ end Kernel panic - not syncing: VFS: Unable to mount root fs
on unknown-block(0,0)
[ 82.660000] random: nonblocking pool is initialized

mx25的芯片可能是4b模式,也就是寻址固定为4byte,而普通的flash都是3byte。比如BIT模块做的都是3byte,如果用到高容量,在系统启动后再切换为4byte模式。

我在开发板上是可以用,就是在买的模块上用不了了,您说的配置,是那部分的?

@ladeng 默认的widora代码是支持的。你可以先拿文档中心的固件来烧进去测试。剩下再检查你的配置问题。

编译的widora的源码,我看了m25p80.c这个文件里面有支持mx25l25635e的,不知道到底是缺失了那个驱动,然后我下载了最新的openwrt的源码,好像是15.05.1吧,编译后运行正常了,不过我还是很想找到原因所在

@ladeng said in /404:

mx25l25635e

编译的哪个源码?是不是没带mx25驱动?