Hi all,
Sorry if the section is not correct for beginner questions.
I was trying to backport the device from the current snapshot to 19.07 but without much success other than compiling it. It seems it's the issue probably with the nand driver or its configuration.
This devce doesn't use the generic SPI flash but the parallel NAND - Winbond W29N01HV.
Unfortunately the it refuses to boot like in the bootlog below. If it can help with troubleshooting I can attach the diff file.
Thank you all in advance!
===================================================================
MT7621 stage1 code 10:33:11 (ASIC)
CPU=50000000 HZ BUS=16666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL3 FB_DL: 0x0, 1/0 = 829/195 01000000
PLL2 FB_DL: 0x13, 1/0 = 513/511 4D000000
PLL4 FB_DL: 0x18, 1/0 = 610/414 61000000
do DDR setting..[00320381]
Apply DDR3 Setting...(use customer AC)
0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120
--------------------------------------------------------------------------------
0000:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0001:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0002:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0003:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0004:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0005:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0006:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0007:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0008:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0009:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000E:| 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1
000F:| 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0
0010:| 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0
0011:| 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0
0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0018:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0019:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
rank 0 coarse = 16
rank 0 fine = 40
B:| 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0
opt_dle value:9
DRAMC_R0DELDLY[018]=00002020
==================================================================
RX DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 8 6 7 9 7 7 7 6 6 6
10 | 7 8 9 9 7 7
--------------------------------------
==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =32 DQS1 = 32
==================================================================
bit DQS0 bit DQS1
0 (1~58)29 8 (2~60)31
1 (1~60)30 9 (1~59)30
2 (1~58)29 10 (1~62)31
3 (1~61)31 11 (0~58)29
4 (1~60)30 12 (1~64)32
5 (1~62)31 13 (1~60)30
6 (1~58)29 14 (1~62)31
7 (1~63)32 15 (1~59)30
==================================================================
3.dq delay value last
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 11 8 10 10 9 8 10 6 7 8
10 | 8 11 9 11 8 9
==================================================================
==================================================================
TX perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15, finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15, finish count=2
DQ loop=15, cmp_err_1 = ffff0080
dqs_perbyte_dly.last_dqdly_pass[1]=15, finish count=1
DQ loop=14, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=14, finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
20,data:88
[EMI] DRAMC calibration passed
===================================================================
MT7621 stage1 code done
CPU=50000000 HZ BUS=16666666 HZ
===================================================================
U-Boot 1.1.3 (Apr 25 2019 - 14:00:06)
Board: Ralink APSoC DRAM: 256 MB
relocate_code Pointer at: 8ffa8000
Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 8ffdfdb0
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [EF F1 00 95 00]
Device not found, ID: eff1
Not Support this Device!
chip_mode=00000001
Support this Device in MTK table! eff1
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 1023
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64, mtd->erasesize=131072 devinfo.iowidth=8
..============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: 4 MBytes NOR Flash
Date:Apr 25 2019 Time:14:00:06
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 880 MHZ ####
estimate memory size =256 Mbytes
#Reset_MT7530
set LAN/WAN LLLLW
########BUTTON_RESET: 15
=================================================
Check image validation:hdr1_addr[bc180000]hdr2_addr[c0980000]
Image1 Header Magic Number --> OK
Image2 Header Magic Number --> OK
Image1 Header Checksum --> OK
Image2 Header Checksum --> OK
Image1 Data Checksum --> ..............................OK
..Erasing NAND Flash...
ranand_erase: start:80000, len:20000
.Writing to NAND Flash...
done
Image2 Data Checksum --> ..............................OK
Checksum1 != Checksum2,Image2 need to be updated!
Image1 Stable Flag --> Stable
Image1 Try Counter --> 0
Image1: OK Image2: Broken
Image2 is borken. Copy Image1 to Image2.
Copy Image:
Image1(0x180000) to Image2(0x4980000), size=0x1D5883
..............................ranand_erase: start:4980000, len:20000
..ranand_erase: start:49a0000, len:20000
..ranand_erase: start:49c0000, len:20000
..ranand_erase: start:49e0000, len:20000
..ranand_erase: start:4a00000, len:20000
..ranand_erase: start:4a20000, len:20000
..ranand_erase: start:4a40000, len:20000
..ranand_erase: start:4a60000, len:20000
..ranand_erase: start:4a80000, len:20000
..ranand_erase: start:4aa0000, len:20000
..ranand_erase: start:4ac0000, len:20000
..ranand_erase: start:4ae0000, len:20000
..ranand_erase: start:4b00000, len:20000
..ranand_erase: start:4b20000, len:20000
....ranand_erase: start:4b40000, len:20000
.(5192)offs=78905344 piece=0 piece_size=88195 rc=0
Done!
=================================================
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.
6: System Enter UBoot to Update Img or Bin.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
default: 3
You choosed 3
\x08\x08\x08 0
3: System Boot system code via Flash.
## Booting image at bc180000 ...
Image Name: MIPS OpenWrt Linux-4.14.202
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1923043 Bytes = 1.8 MB
Load Address: 80001000
Entry Point: 80001000
.............................. Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256
Starting kernel ...
[ 0.000000] Linux version 4.14.202 (user@ubuntu) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r0+11228-78c4c04dd7)) #0 SMP Wed Oct 28 22:22:44 2020
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is D-Link DIR-2660 A1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2,2} total 4
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x4ac with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu s26192 r8192 d22960 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,57600 root=/dev/mtdblock4 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=00011d80
[ 0.000000] Readback ErrCtl register=00011d80
[ 0.000000] Memory: 122320K/131072K available (4544K kernel code, 231K rwdata, 1008K rodata, 1244K init, 248K bss, 8752K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015495] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.087830] pid_max: default: 32768 minimum: 301
[ 0.097138] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.110161] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.125884] Hierarchical SRCU implementation.
[ 0.135354] smp: Bringing up secondary CPUs ...
[ 0.165221] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.165230] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.165242] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.165374] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.204724] Synchronize counters for CPU 1: done.
[ 0.288972] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.288979] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.288987] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.289060] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.325559] Synchronize counters for CPU 2: done.
[ 0.406047] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.406055] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.406062] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.406144] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.445132] Synchronize counters for CPU 3: done.
[ 0.504729] smp: Brought up 1 node, 4 CPUs
[ 0.516537] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.536007] futex hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.548421] pinctrl core: initialized pinctrl subsystem
[ 0.560047] NET: Registered protocol family 16
[ 0.578426] pull PCIe RST: RALINK_RSTCTRL = 4000000
[ 0.888422] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.898487] ***** Xtal 40MHz *****
[ 0.905220] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.915424] Port 0 N_FTS = 1b102800
[ 0.922325] Port 1 N_FTS = 1b102800
[ 0.929249] Port 2 N_FTS = 1b102800
[ 2.087928] PCIE2 no card, disable it(RST&CLK)
[ 2.096616] -> 21007f2
[ 2.101437] PCIE0 enabled
[ 2.106638] PCIE1 enabled
[ 2.111817] PCI host bridge /pcie@1e140000 ranges:
[ 2.121341] MEM 0x0000000060000000..0x000000006fffffff
[ 2.131703] IO 0x000000001e160000..0x000000001e16ffff
[ 2.142070] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[ 2.164866] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 2.176132] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 2.187359] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 2.200041] PCI host bridge to bus 0000:00
[ 2.208052] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 2.221724] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 2.233455] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 2.246947] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 2.263362] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.279161] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.296156] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 2.309190] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.323002] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 2.336142] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.349960] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.363437] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[ 2.376923] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[ 2.390399] pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
[ 2.403882] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[ 2.418400] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.428217] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.441729] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[ 2.456239] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 2.466065] pci 0000:00:01.0: bridge window [mem 0x60100000-0x601fffff]
[ 2.480866] clocksource: Switched to clocksource GIC
[ 2.492221] NET: Registered protocol family 2
[ 2.501506] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.515246] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 2.527855] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.540582] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.552089] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.564738] NET: Registered protocol family 1
[ 2.810814] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 2.822046] Crashlog allocated RAM at address 0x3f00000
[ 2.832549] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 2.851264] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.862741] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.883623] random: fast init done
[ 2.892178] io scheduler noop registered
[ 2.899823] io scheduler deadline registered (default)
[ 2.910987] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 2.924781] console [ttyS0] disabled
[ 2.931828] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 2.949765] console [ttyS0] enabled
[ 2.949765] console [ttyS0] enabled
[ 2.963555] bootconsole [early0] disabled
[ 2.963555] bootconsole [early0] disabled
[ 2.981389] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.995450] Enable NFI Clock
[ 3.001194] # MTK NAND # : Use HW ECC
[ 3.008483] Device not found, ID: eff1
[ 3.015945] Not Support this Device!
[ 3.023407] chip_mode=00000001
[ 3.029470] Support this Device in MTK table! eff1
[ 3.039370] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[ 3.052242] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[ 3.064893] nand: Winbond NAND 128MiB 3,3V 8-bit
[ 3.074087] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 3.089174] Scanning device for bad blocks
[ 3.231165] 9 fixed-partitions partitions found on MTD device MT7621-NAND
[ 3.244678] Creating 9 MTD partitions on "MT7621-NAND":
[ 3.255092] 0x000000000000-0x000000080000 : "Bootloader"
[ 3.266600] 0x000000080000-0x000000100000 : "config"
[ 3.277349] 0x000000100000-0x000000140000 : "factory"
[ 3.288262] 0x000000140000-0x000000180000 : "config2"
[ 3.299156] 0x000000180000-0x000002980000 : "firmware"
[ 3.310605] 0x000002980000-0x000004980000 : "private"
[ 3.321823] 0x000004980000-0x000007180000 : "firmware2"
[ 3.333401] 0x000007180000-0x000007780000 : "mydlink"
[ 3.344365] 0x000007780000-0x000008000000 : "reserved"
[ 3.355528] [mtk_nand] probe successfully!
[ 3.364417] Signature matched and data read!
[ 3.372924] load_fact_bbt success 1023
[ 3.381039] libphy: Fixed MDIO Bus: probed
[ 3.452641] mtk_soc_eth 1e100000.ethernet: generated random MAC address 82:59:30:53:e0:26
[ 3.469114] libphy: mdio: probed
[ 4.875102] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 4.887515] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[ 4.906500] NET: Registered protocol family 10
[ 4.916913] Segment Routing with IPv6
[ 4.924365] NET: Registered protocol family 17
[ 4.933278] 8021q: 802.1Q VLAN Support v1.8
[ 4.943882] hctosys: unable to open rtc device (rtc0)
[ 4.956674] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0527 instead
[ 4.975667] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x9d1c instead
[ 4.994543] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x995f instead
[ 5.013421] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x1d00 instead
[ 5.032314] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x0080 instead
=====================
cut
=====================
[ 58.071388] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027e0808: 0xff7f instead
[ 58.090255] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027e0820: 0x30a5 instead
[ 58.109126] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027e083c: 0x8eff instead
[ 58.128100] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027e100c: 0x0001 instead
[ 58.146966] jffs2: Further such events for this erase block will not be printed
[ 58.192820] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[ 58.209615] jffs2: empty_blocks 0, bad_blocks 0, c->nr_blocks 320
[ 58.222024] VFS: Cannot open root device "mtdblock4" or unknown-block(31,4): error -5
[ 58.237644] Please append a correct "root=" boot option; here are the available partitions:
[ 58.254291] 1f00 512 mtdblock0
[ 58.254297] (driver?)
[ 58.267295] 1f01 512 mtdblock1
[ 58.267300] (driver?)
[ 58.280300] 1f02 256 mtdblock2
[ 58.280306] (driver?)
[ 58.293326] 1f03 256 mtdblock3
[ 58.293332] (driver?)
[ 58.306329] 1f04 40960 mtdblock4
[ 58.306334] (driver?)
[ 58.319334] 1f05 32768 mtdblock5
[ 58.319339] (driver?)
[ 58.332352] 1f06 40960 mtdblock6
[ 58.332357] (driver?)
[ 58.345353] 1f07 6144 mtdblock7
[ 58.345358] (driver?)
[ 58.358358] 1f08 8704 mtdblock8
[ 58.358363] (driver?)
[ 58.371374] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,4)
[ 58.396067] Rebooting in 1 seconds..