linux dts spiflash分区,OP编译的时候,关于dts文件修改以支持不同FALSH

感谢楼主!虽然这个早上已经暂时解决了,但是随着带来的困惑让我不解。

我手头的设备是RT5350平台的3G路由器,原厂匹配mx25l3205d 4m flash,出厂时我让厂方换成了w25q64fvsig 8m flash,然后厂方给的OP固件(刷完后显示Asus WL-330N3G)是4m flash用的,也实在太老(12.09.1),所以想自己编译15.05的固件,于是我参照网上的教程,修改了target/linux/ramips/dts/WL_330N3G.dts,具体如下

/dts-v1/;

/include/ "rt3050.dtsi"    //改成了rt5350.dtsi

/ {

compatible = "WL_330N3G", "ralink,rt3050-soc";    //改成了ralink,rt5350-soc

model = "Asus WL-330N3G";

palmbus@10000000 {

spi@b00 {

status = "okay";

m25p80@0 {

#address-cells = <1>;

#size-cells = <1>;

compatible = "mx25l3205d";    //改成了w25q64,关键就是这里,如果不改能正常运行,改了刷进去就打印错误

reg = <0 0>;

linux,modalias = "m25p80", "mx25l3205d";   //后面的值改成了w25q64,关键就是这里,如果不改能正常运行,改了刷进去就打印错误

spi-max-frequency = <10000000>;

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 0x3b0000>;   //改成了0x7b0000

};

};

};

};

还改了target/linux/ramips/image/Makefile,如下:

Image/Build/Profile/WL_330N3G=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n3g,WL_330N3G)    //Default4M 改成 Default8M

make menuconfig 里面简单勾选了几个工具,类库,luci等,让固件超过4M大小。

然后当我刷入flash改成w25q64的8M固件(实际大小:4,456,452 字节)时,通过串口查看启动情况发现跟楼主类似的错误,如下:

U-Boot 1.1.7 (Dec 13 2011 - 13:49:42)

Board: Ralink APSoC DRAM:  32 MB

relocate_code Pointer at: 81fb4000

spi_wait_nsec: 42

spi device id: ef 40 17 0 0 (40170000)

find flash: W25Q64BV

raspi_read: from:30000 len:1000

.raspi_read: from:30000 len:1000

.============================================

Ralink UBoot Version: 3.6.0.0

--------------------------------------------

ASIC 5350_MP (Port5None)

DRAM_CONF_FROM: Boot-Strapping

DRAM_TYPE: SDRAM

DRAM_SIZE: 256 Mbits

DRAM_WIDTH: 16 bits

DRAM_TOTAL_WIDTH: 16 bits

TOTAL_MEMORY_SIZE: 32 MBytes

Flash component: SPI Flash

Date

36f4db531a985d797a36e8dc00ab81d2.gifec 13 2011  Time:13:49:42

============================================

icache: sets:256, ways:4, linesz:32 ,total:32768

dcache: sets:128, ways:4, linesz:32 ,total:16384

##### The CPU freq = 360 MHZ ####

estimate memory size =32 Mbytes

raspi_read: from:40028 len:6

.

raspi_read: from:0 len:30004

....*************Is_update = 0 plat = 1**************

Please choose the operation:

1: Load system code to SDRAM via TFTP.

2: Load system code then write to Flash via TFTP.

3: Boot system code via Flash (default).

4: Entr boot command line interface.

7: Load Boot Loader code then write to Flash via Serial.

9: Load Boot Loader code then write to Flash via TFTP.

0

3: System Boot system code via Flash.

## Booting image at bc050000 ...

raspi_read: from:50000 len:40

.   Image Name:   MIPS OpenWrt Linux-3.18.21

Created:      2015-10-23   3:40:52 UTC

Image Type:   MIPS Linux Kernel Image (lzma compressed)

Data Size:    1090881 Bytes =  1 MB

Load Address: 80000000

Entry Point:  80000000

raspi_read: from:50040 len:10a541

.................   Verifying Checksum ... OK

Uncompressing Kernel Image ... OK

No initrd

## Transferring control to Linux (at address 80000000) ...

## Giving linux memsize in MB, 32

Starting kernel ...

[    0.000000] Linux version 3.18.21 (kingstone@kingstone-ubuntu-kylin) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47235) ) #7 Fri Oct 23 11:27:26 CST 2015

[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3

[    0.000000] bootconsole [early0] enabled

[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)

[    0.000000] MIPS: machine is Asus WL-330N3G

[    0.000000] Determined physical RAM map:

[    0.000000]  memory: 02000000 @ 00000000 (usable)

[    0.000000] Initrd not found or empty - disabling initrd

[    0.000000] Zone ranges:

[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]

[    0.000000] Movable zone start for each node

[    0.000000] Early memory node ranges

[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]

[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]

[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.

[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128

[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2

[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)

[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

[    0.000000] Writing ErrCtl register=00000000

[    0.000000] Readback ErrCtl register=00000000

[    0.000000] Memory: 29016K/32768K available (2417K kernel code, 119K rwdata, 484K rodata, 172K init, 181K bss, 3752K reserved)

[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS:256

[    0.000000] CPU Clock: 360MHz

[    0.000000] systick: running - mult: 214748, shift: 32

[    0.010000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)

[    0.080000] pid_max: default: 32768 minimum: 301

[    0.090000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.100000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.110000] pinctrl core: initialized pinctrl subsystem

[    0.120000] NET: Registered protocol family 16

[    0.130000] rt2880-pinmux pinctrl: invalid group "rgmii" for function "gpio"

[    0.140000] rt2880-pinmux pinctrl: invalid group "mdio" for function "gpio"

[    0.180000] rt2880_gpio 10000600.gpio: registering 22 gpios

[    0.190000] rt2880_gpio 10000600.gpio: registering 22 irq handlers

[    0.200000] Switched to clocksource systick

[    0.210000] NET: Registered protocol family 2

[    0.220000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)

[    0.230000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

[    0.240000] TCP: Hash tables configured (established 1024 bind 1024)

[    0.260000] TCP: reno registered

[    0.260000] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.270000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.290000] NET: Registered protocol family 1

[    0.300000] rt-timer 10000100.timer: maximum frequency is 7324Hz

[    0.310000] futex hash table entries: 256 (order: -1, 3072 bytes)

[    0.340000] squashfs: version 4.0 (2009/01/31) Phillip Lougher

[    0.350000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.

[    0.370000] msgmni has been set to 56

[    0.410000] io scheduler noop registered

[    0.420000] io scheduler deadline registered (default)

[    0.430000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled

[    0.450000] console [ttyS0] disabled

[    0.450000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A

[    0.470000] console [ttyS0] enabled

[    0.470000] console [ttyS0] enabled

[    0.490000] bootconsole [early0] disabled

[    0.490000] bootconsole [early0] disabled

[    0.510000] m25p80 spi32766.0: found s25fl064k, expected w25q64

[    0.530000] m25p80 spi32766.0: s25fl064k (8192 Kbytes)

[    0.540000] 4 ofpart partitions found on MTD device spi32766.0

[    0.550000] Creating 4 MTD partitions on "spi32766.0":

[    0.560000] 0x000000000000-0x000000030000 : "u-boot"

[    0.570000] 0x000000030000-0x000000040000 : "u-boot-env"

[    0.580000] 0x000000040000-0x000000050000 : "factory"

[    0.600000] 0x000000050000-0x000000800000 : "firmware"

[    0.670000] 2 uimage-fw partitions found on MTD device firmware

[    0.680000] 0x000000050000-0x00000015a581 : "kernel"

[    0.700000] 0x00000015a581-0x000000800000 : "rootfs"

[    0.710000] mtd: device 5 (rootfs) set to be root filesystem

[    0.720000] 1 squashfs-split partitions found on MTD device rootfs

[    0.730000] 0x000000460000-0x000000800000 : "rootfs_data"

[    0.750000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5

[    0.770000] rt2880_wdt 10000120.watchdog: Initialized

[    0.780000] TCP: cubic registered

[    0.790000] NET: Registered protocol family 17

[    0.790000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.

[    0.820000] 8021q: 802.1Q VLAN Support v1.8

[    0.860000] squashfs: SQUASHFS error: unable to read id index table

[    0.870000] jffs2: Flash size not aligned to erasesize, reducing to 6784KiB

[    0.880000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x7368 instead

[    0.900000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x071b instead

[    0.920000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0xab2d instead

[    0.940000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x001d instead

[    0.960000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x0004 instead

[    0.980000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x06c0 instead

[    1.000000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x0004 instead

[    1.020000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x08b3 instead

[    1.040000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x34e4 instead

[    1.050000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000030: 0x34dc instead

[    1.070000] jffs2: Further such events for this erase block will not be printed

[    1.100000] jffs2: Empty flash at 0x00000038 ends at 0x00000040

[    1.290000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0x3e8d instead

[    1.310000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0xf442 instead

[    1.330000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0xc589 instead

[    1.350000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0xdfe5 instead

[    1.370000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x87c4 instead

[    1.380000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0x7f1e instead

[    1.400000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0x614c instead

[    1.420000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0xd71c instead

[    1.440000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0x8743 instead

[    1.460000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0x9910 instead

[    1.480000] jffs2: Further such events for this erase block will not be printed

[    1.680000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0xa91f instead

[    1.700000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0xd21f instead

[    1.720000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xc8ca instead

[    1.740000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0xa5cf instead

[    1.760000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x1be7 instead

[    1.780000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x1b9e instead

[    1.800000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0x0341 instead

[    1.820000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x55c5 instead

[    1.830000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x0ed6 instead

[    1.850000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x0c1b instead

[    1.870000] jffs2: Further such events for this erase block will not be printed

[    2.080000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0x40e6 instead

[    2.090000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0x6dbe instead

[    2.110000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0xc6d4 instead

[    2.130000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003000c: 0xfaf5 instead

[    2.150000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0xc528 instead

[    2.170000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0xff22 instead

[    2.190000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0xdbf3 instead

[    2.210000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0xd441 instead

[    2.230000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0x6a8e instead

[    2.250000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030024: 0x54cf instead

[    2.260000] jffs2: Further such events for this erase block will not be printed

[    2.470000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x9133 instead

[    2.490000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0xa0b7 instead

[    2.510000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0xe12b instead

[    2.530000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x3218 instead

[    2.540000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0xd15b instead

[    2.560000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0x2437 instead

[    2.580000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0xcb5f instead

[    2.600000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x010e instead

[    2.620000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0xb8fb instead

[    2.640000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0x21e8 instead

[    2.660000] jffs2: Further such events for this erase block will not be printed

[    2.750000] jffs2: Old JFFS2 bitmask found at 0x0004628c

[    2.770000] jffs2: You cannot use older JFFS2 filesystems with newer kernels

--------------N多类似信息--------------

[   15.820000] jffs2: Further such events for this erase block will not be printed

[   15.990000] jffs2: Old JFFS2 bitmask found at 0x0025c4d8

[   16.000000] jffs2: You cannot use older JFFS2 filesystems with newer kernels

[   16.020000] jffs2: Old JFFS2 bitmask found at 0x0025c948

[   16.030000] jffs2: You cannot use older JFFS2 filesystems with newer kernels

[   16.080000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260000: 0x632f instead

[   16.100000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260004: 0x49b9 instead

[   16.110000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260008: 0x1af0 instead

[   16.130000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0026000c: 0xfd78 instead

[   16.150000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260010: 0xf677 instead

[   16.170000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260014: 0x722f instead

[   16.190000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260018: 0xaa83 instead

[   16.210000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0026001c: 0xa86b instead

[   16.230000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260020: 0x7acf instead

[   16.250000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260024: 0x8d1c instead

[   16.270000] jffs2: Further such events for this erase block will not be printed

[   16.470000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270000: 0x28fc instead

[   16.490000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270004: 0xb50e instead

[   16.510000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270008: 0x31c9 instead

[   16.530000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0027000c: 0x5112 instead

[   16.540000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270010: 0x6a37 instead

[   16.560000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270014: 0x4e11 instead

[   16.580000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270018: 0xb36b instead

[   16.600000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0027001c: 0xe1ba instead

[   16.620000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270020: 0x3d07 instead

[   16.640000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270024: 0x3bf9 instead

[   16.660000] jffs2: Further such events for this erase block will not be printed

[   16.700000] jffs2: Old JFFS2 bitmask found at 0x00271f84

[   16.710000] jffs2: You cannot use older JFFS2 filesystems with newer kernels

[   16.890000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280000: 0xf9a2 instead

[   16.910000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280004: 0xfc5d instead

[   16.920000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280008: 0x79b6 instead

[   16.940000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0028000c: 0xc226 instead

[   16.960000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280010: 0x1821 instead

[   16.980000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280014: 0x2f95 instead

[   17.000000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280018: 0x66ae instead

[   17.020000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0028001c: 0xfb13 instead

[   17.040000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280020: 0xa66a instead

[   17.060000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280024: 0x1345 instead

[   17.080000] jffs2: Further such events for this erase block will not be printed

[   17.280000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290000: 0xabbb instead

[   17.300000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290004: 0x325c instead

[   17.320000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290008: 0x25a4 instead

[   17.340000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0029000c: 0xfb26 instead

[   17.360000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290010: 0x2b51 instead

[   17.370000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290014: 0x171f instead

[   17.390000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290018: 0x1353 instead

[   17.410000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0029001c: 0x8d75 instead

[   17.430000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290020: 0xeea5 instead

[   17.450000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290024: 0xb94f instead

[   17.470000] jffs2: Further such events for this erase block will not be printed

[   17.650000] jffs2: Old JFFS2 bitmask found at 0x0029db7c

[   17.660000] jffs2: You cannot use older JFFS2 filesystems with newer kernels

[   17.700000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0000: 0xecb6 instead

[   17.720000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0004: 0xf27b instead

[   17.740000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0008: 0xb8e3 instead

[   17.750000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a000c: 0xb37f instead

[   17.770000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0010: 0x29f1 instead

[   17.790000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0014: 0x37e3 instead

[   17.810000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0018: 0xfcb3 instead

[   17.830000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a001c: 0x9f08 instead

[   17.850000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0020: 0x742b instead

[   17.870000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0024: 0x9012 instead

[   17.890000] jffs2: Further such events for this erase block will not be printed

[   18.140000] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes

[   18.150000] jffs2: empty_blocks 63, bad_blocks 0, c->nr_blocks 106

[   18.170000] VFS: Cannot open root device "(null)" or unknown-block(31,5): error -5

[   18.180000] Please append a correct "root=" boot option; here are the available partitions:

[   18.200000] 1f00             192 mtdblock0  (driver?)

[   18.210000] 1f01              64 mtdblock1  (driver?)

[   18.220000] 1f02              64 mtdblock2  (driver?)

[   18.230000] 1f03            7872 mtdblock3  (driver?)

[   18.240000] 1f04            1065 mtdblock4  (driver?)

[   18.250000] 1f05            6806 mtdblock5  (driver?)

[   18.260000] 1f06            3712 mtdblock6  (driver?)

[   18.270000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5)

[   18.270000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5)

到这里让我很困惑,莫非是我改的w25q64不对还是怎么,为什么会导致这个错误?

还有一个疑惑,之前曾经折腾过AR9341平台的固件,固件的大小就是编译配置的实际大小,不管勾选内容是否达到设定的的大小(比如我把固件大小设置为8M,那编译出来的固件就是7,544,815 字节,实际内容并没有这么多,刷好之后还有好几M可用),但是到了rt5350平台,我把固件大小设置成8M,编译出来的实际只有4M多(实际内容就的大小),是这两个平台生成固件的机制不一样还是我没搞对?

以上两个问题还望大侠解惑,感谢!{:soso__1039173773029404865_2:}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值