|
网上买了个mt7620a板子,里面系统是Pandora的,16m的spi flash
启动后,相关分区信息如下:
[root@PandoraBox:/root]# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "Factory"
mtd3: 01000000 00010000 "fullflash"
mtd4: 00fc0000 00010000 "firmware"
mtd5: 000f0000 00010000 "kernel"
mtd6: 00ed0000 00010000 "rootfs"
mtd7: 009d0000 00010000 "rootfs_data"
[root@PandoraBox:/root]# block info
/dev/mtdblock6: UUID="12b5826e-faa30b74-5047b7ef-38160b24" VERSION="1024.0" TYPE="squashfs"
/dev/mtdblock7: TYPE="jffs2"
编译完trunk版本刷板子后,出错信息如下:
Starting kernel ...
[ 0.000000] Linux version 3.10.49 (root@mt7620) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42026) ) #4 Wed Aug 13 13:59:47 CST 2014
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: Ralink MT7620A ver:2 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Ralink MT7620a + MT7610e evaluation board
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=0006ffcb
[ 0.000000] Readback ErrCtl register=0006ffcb
[ 0.000000] Memory: 126552k/131072k available (2378k kernel code, 4520k reserved, 586k data, 168k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 512
[ 0.070000] pinctrl core: initialized pinctrl subsystem
[ 0.080000] NET: Registered protocol family 16
[ 0.500000] PCIE0 no card, disable it(RST&CLK)
[ 0.510000] bio: create slab <bio-0> at 0
[ 0.520000] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.530000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.540000] PCI host bridge to bus 0000:00
[ 0.550000] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.560000] pci_bus 0000:00: root bus resource [io 0x10160000-0x1016ffff]
[ 0.570000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.580000] Switching to clocksource MIPS
[ 0.590000] NET: Registered protocol family 2
[ 0.590000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.600000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.610000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.630000] TCP: reno registered
[ 0.630000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.650000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.660000] NET: Registered protocol family 1
[ 0.670000] rt-timer 10000100.timer: maximum frequncy is 2441Hz
[ 0.700000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.710000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.730000] msgmni has been set to 247
[ 0.740000] io scheduler noop registered
[ 0.740000] io scheduler deadline registered (default)
[ 0.760000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.770000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20) is a 16550A
[ 0.780000] console [ttyS0] enabled, bootconsole disabled
[ 0.780000] console [ttyS0] enabled, bootconsole disabled
[ 0.810000] m25p80 spi32766.0: found w25q128, expected en25q64
[ 0.820000] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[ 0.830000] 4 ofpart partitions found on MTD device spi32766.0
[ 0.840000] Creating 4 MTD partitions on "spi32766.0":
[ 0.850000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.870000] 0x000000020000-0x000000030000 : "u-boot-env"
[ 0.880000] 0x000000030000-0x000000040000 : "factory"
[ 0.890000] 0x000000040000-0x000001000000 : "firmware"
[ 0.900000] 0x00000012d491-0x000001000000 : "rootfs"
[ 0.910000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.940000] mtd: device 4 (rootfs) set to be root filesystem
[ 0.950000] mtdsplit: no squashfs found in "spi32766.0"
[ 0.970000] (unregistered net_device): port 0 link up (100Mbps/Full duplex)
[ 0.980000] libphy: mdio: probed
[ 0.990000] ralink_soc_eth 10100000.ethernet: connected port 4 to PHY at mdio-bus:04 [uid=03a2940d, driver=Generic PHY]
[ 1.010000] ralink_soc_eth 10100000.ethernet: connected port 5 to PHY at mdio-bus:05 [uid=0000ffff, driver=Generic PHY]
[ 1.030000] ralink_soc_eth 10100000.ethernet: loaded mt7530 driver
[ 1.050000] eth0: done loading
[ 1.050000] rt3xxx-usbphy usbphy.3: loaded
[ 1.060000] rt2880_wdt 10000120.watchdog: Initialized
[ 1.070000] TCP: cubic registered
[ 1.080000] NET: Registered protocol family 17
[ 1.090000] 8021q: 802.1Q VLAN Support v1.8
[ 1.100000] jffs2: Flash size not aligned to erasesize, reducing to 15168KiB
[ 1.130000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002b70: 0x7173 instead
[ 1.150000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002b74: 0x0008 instead
[ 1.170000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002b78: 0xea14 instead
[ 1.190000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002b7c: 0x0400 instead
[ 1.210000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002b84: 0x1200 instead
.......N 多类似信息.......
[ 65.630000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec0004: 0x24c3 instead
[ 65.650000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec0008: 0x24a5 instead
[ 65.660000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec000c: 0x02a5 instead
[ 65.680000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec0010: 0x8063 instead
[ 65.700000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec0014: 0x1073 instead
[ 65.720000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec0018: 0x2874 instead
[ 65.740000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec001c: 0x1280 instead
[ 65.760000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec0020: 0x2106 instead
[ 65.780000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00ec0024: 0x4e10 instead
[ 65.800000] jffs2: Further such events for this erase block will not be printed
[ 65.910000] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[ 65.920000] jffs2: empty_blocks 27, bad_blocks 0, c->nr_blocks 237
[ 65.940000] VFS: Cannot open root device "(null)" or unknown-block(31,4): error -5
[ 65.950000] Please append a correct "root=" boot option; here are the available partitions:
[ 65.970000] 1f00 128 mtdblock0 (driver?)
[ 65.980000] 1f01 64 mtdblock1 (driver?)
[ 65.990000] 1f02 64 mtdblock2 (driver?)
[ 66.000000] 1f03 16128 mtdblock3 (driver?)
[ 66.010000] 1f04 15178 mtdblock4 (driver?)
[ 66.020000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,4)
请问是文件系统的问题还是分区设置有问题呢?大家帮忙看看,非常感谢!!
|
|