Hi, I upgrade my Netgear WNDR4700 from 19.07 to 21.20 but the router don´t boot if my Crucial MX300 disk is inserted. Without disk boot is fine. Here is some log, maybe somebody could me explain what is wrong.
With disk the log:
Auto calibration ---
U-Boot 2009.08 (Jul 03 2012 - 13:04:31)
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support
Bootstrap Option D - Boot ROM Location NAND wo/ECC 2k page (8 bits), booting from NAND
32 kB I-Cache 32 kB D-Cache
DNI HW ID: 29763875 NAND flash 128MB RAM 256MB U-Boot 2009.08 dni1 V1.4
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
I2C: ready
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB
*** Warning - bad CRC, using default environment
Configure Max Payload 256B
PCIE0: successfully set as root-complex
03 00 168c 0030 0280 ff
02 02 111d 803a 0604 00
04 00 168c 0033 0280 ff
02 03 111d 803a 0604 00
02 04 111d 803a 0604 00
01 00 111d 803a 0604 00
131072 bytes read: OK
Net: ppc_4xx_eth0
AR8327 GigaSW initialize...done
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
Client starts...[Listening] for ADVERTISE...TTT
Retry count exceeded; boot the image as usual
nmrp server is stopped or failed !
Type run flash_nfs to mount root filesystem over NFS
Hit any key to stop autoboot: 0
Loading from device 0: NAND 128MiB 3,3V 8-bit (offset 0x180000)
** check device-tree image **
Verifying Checksum ... OK
** check kernel image **
Verifying Checksum ... OK
** check rootfs image **
Verifying Checksum ... OK
NAND read: device 0 offset 0x180000, size 0x20000
131072 bytes read: OK
## Booting kernel from Legacy Image at 00500000 ...
Image Name: POWERPC OpenWrt Linux-5.4.154
Image Type: PowerPC Linux Kernel Image (lzma compressed)
Data Size: 2770341 Bytes = 2.6 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 00800040
Booting using the fdt blob at 0x800040
Uncompressing Kernel Image ... OK
[ 0.000000] Linux version 5.4.154 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 Sun Oct 24 09:01:35 2021
[ 0.000000] Using PowerPC 44x Platform machine description
[ 0.000000] -----------------------------------------------------
[ 0.000000] phys_mem_size = 0x10000000
[ 0.000000] dcache_bsize = 0x20
[ 0.000000] icache_bsize = 0x20
[ 0.000000] cpu_features = 0x0000000000000120
[ 0.000000] possible = 0x0000000040000120
[ 0.000000] always = 0x0000000000000120
[ 0.000000] cpu_user_features = 0x8c008000 0x00000000
[ 0.000000] mmu_features = 0x00000008
[ 0.000000] -----------------------------------------------------
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: rootfstype=squashfs noinitrd
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 251868K/262144K available (6228K kernel code, 232K rwdata, 760K rodata, 176K init, 237K bss, 10276K reserved, 0K cma-reserved)
[ 0.000000] Kernel virtual memory layout:
[ 0.000000] * 0xfffdf000..0xfffff000 : fixmap
[ 0.000000] * 0xd1000000..0xfffdf000 : vmalloc & ioremap
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 512, nr_irqs: 512, preallocated irqs: 16
[ 0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[ 0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[ 0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[ 0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[ 0.000000] random: get_random_u32 called from 0xc06d59e4 with crng_init=0
[ 0.000017] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000027] clocksource: timebase mult[800000] shift[23] registered
[ 0.000089] pid_max: default: 32768 minimum: 301
[ 0.000221] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000238] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.004651] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.004680] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.005297] NET: Registered protocol family 16
[ 0.005786] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.006484] 256k L2-cache enabled
[ 0.006616] PCIE0: Checking link...
[ 0.006620] PCIE0: Device detected, waiting for link...
[ 0.006624] PCIE0: link is up !
[ 0.113002] PCI host bridge /plb/pciex@d00000000 (primary) ranges:
[ 0.113038] MEM 0x0000000e00000000..0x0000000e7fffffff -> 0x0000000080000000
[ 0.113052] MEM 0x0000000f00000000..0x0000000f000fffff -> 0x0000000000000000
[ 0.113061] IO 0x0000000f80000000..0x0000000f8000ffff -> 0x0000000000000000
[ 0.113084] 4xx PCI DMA offset set to 0x00000000
[ 0.113088] 4xx PCI DMA window base to 0x0000000000000000
[ 0.113092] DMA window size 0x0000000080000000
[ 0.113114] PCIE0: successfully set as root-complex
[ 0.113772] PCI: Probing PCI hardware
[ 0.113889] PCI host bridge to bus 0000:40
[ 0.113907] pci_bus 0000:40: root bus resource [io 0x0000-0xffff]
[ 0.113918] pci_bus 0000:40: root bus resource [mem 0xe00000000-0xe7fffffff] (bus address [0x80000000-0xffffffff])
[ 0.113928] pci_bus 0000:40: root bus resource [mem 0xf00000000-0xf000fffff] (bus address [0x00000000-0x000fffff])
[ 0.113937] pci_bus 0000:40: root bus resource [bus 40-ff]
[ 0.113948] pci_bus 0000:40: busn_res: [bus 40-ff] end is updated to ff
[ 0.113985] pci 0000:40:00.0: [aaa0:bed0] type 01 class 0x060400
[ 0.114023] pci 0000:40:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[ 0.114059] PCI: Hiding 4xx host bridge resources 0000:40:00.0
[ 0.115365] pci 0000:41:00.0: [111d:803a] type 01 class 0x060400
[ 0.115440] pci 0000:41:00.0: Max Payload Size set to 256 (was 128, max 256)
[ 0.115450] pci 0000:41:00.0: enabling Extended Tags
[ 0.115533] pci 0000:41:00.0: PME# supported from D0 D3hot D3cold
[ 0.116644] pci 0000:40:00.0: PCI bridge to [bus 41-7f]
[ 0.116663] pci 0000:40:00.0: bridge window [io 0x0000-0x0fff]
[ 0.116673] pci 0000:40:00.0: bridge window [mem 0xe30000000-0xe301fffff]
[ 0.116698] pci 0000:41:00.0: bridge configuration invalid ([bus 02-05]), reconfiguring
[ 0.116939] pci 0000:42:02.0: [111d:803a] type 01 class 0x060400
[ 0.117017] pci 0000:42:02.0: Max Payload Size set to 256 (was 128, max 256)
[ 0.117026] pci 0000:42:02.0: enabling Extended Tags
[ 0.117118] pci 0000:42:02.0: PME# supported from D0 D3hot D3cold
[ 0.117374] pci 0000:42:03.0: [111d:803a] type 01 class 0x060400
[ 0.117451] pci 0000:42:03.0: Max Payload Size set to 256 (was 128, max 256)
[ 0.117460] pci 0000:42:03.0: enabling Extended Tags
[ 0.117549] pci 0000:42:03.0: PME# supported from D0 D3hot D3cold
[ 0.117799] pci 0000:42:04.0: [111d:803a] type 01 class 0x060400
[ 0.117877] pci 0000:42:04.0: Max Payload Size set to 256 (was 128, max 256)
[ 0.117887] pci 0000:42:04.0: enabling Extended Tags
[ 0.117976] pci 0000:42:04.0: PME# supported from D0 D3hot D3cold
[ 0.118984] pci 0000:41:00.0: PCI bridge to [bus 42-7f]
[ 0.119006] pci 0000:41:00.0: bridge window [mem 0xe30000000-0xe301fffff]
[ 0.119045] pci 0000:42:02.0: bridge configuration invalid ([bus 03-03]), reconfiguring
[ 0.119060] pci 0000:42:03.0: bridge configuration invalid ([bus 04-04]), reconfiguring
[ 0.119073] pci 0000:42:04.0: bridge configuration invalid ([bus 05-05]), reconfiguring
[ 0.119242] pci 0000:43:00.0: [168c:0030] type 00 class 0x028000
[ 0.119296] pci 0000:43:00.0: reg 0x10: [mem 0xe30000000-0xe3001ffff 64bit]
[ 0.119354] pci 0000:43:00.0: reg 0x30: [mem 0xf00000000-0xf0000ffff pref]
[ 0.119371] pci 0000:43:00.0: can't set Max Payload Size to 256; if necessary, use "pci=pcie_bus_safe" and report a bug
[ 0.119480] pci 0000:43:00.0: supports D1
[ 0.119487] pci 0000:43:00.0: PME# supported from D0 D1 D3hot
[ 0.120605] pci 0000:42:02.0: PCI bridge to [bus 43-7f]
[ 0.120631] pci 0000:42:02.0: bridge window [mem 0xe30000000-0xe300fffff]
[ 0.120736] pci_bus 0000:43: busn_res: [bus 43-7f] end is updated to 43
[ 0.120924] pci 0000:44:00.0: [168c:0033] type 00 class 0x028000
[ 0.120984] pci 0000:44:00.0: reg 0x10: [mem 0xe30100000-0xe3011ffff 64bit]
[ 0.121044] pci 0000:44:00.0: reg 0x30: [mem 0xf00000000-0xf0000ffff pref]
[ 0.121061] pci 0000:44:00.0: can't set Max Payload Size to 256; if necessary, use "pci=pcie_bus_safe" and report a bug
[ 0.121174] pci 0000:44:00.0: supports D1
[ 0.121182] pci 0000:44:00.0: PME# supported from D0 D1 D3hot
[ 0.122286] pci 0000:42:03.0: PCI bridge to [bus 44-7f]
[ 0.122309] pci 0000:42:03.0: bridge window [mem 0xe30100000-0xe301fffff]
[ 0.122403] pci_bus 0000:44: busn_res: [bus 44-7f] end is updated to 44
[ 0.123450] pci 0000:42:04.0: PCI bridge to [bus 45-7f]
[ 0.123481] pci_bus 0000:45: busn_res: [bus 45-7f] end is updated to 45
[ 0.123493] pci_bus 0000:42: busn_res: [bus 42-7f] end is updated to 45
[ 0.123514] pci_bus 0000:40: busn_res: [bus 40-ff] end is updated to 7f
[ 0.123570] pci 0000:40:00.0: disabling bridge window [io 0x0000-0xffffffffffffffff] to [bus 41-7f] (unused)
[ 0.123594] pci 0000:40:00.0: BAR 8: assigned [mem 0xe00000000-0xe001fffff]
[ 0.123609] pci 0000:41:00.0: BAR 8: assigned [mem 0xe00000000-0xe001fffff]
[ 0.123620] pci 0000:42:02.0: BAR 8: assigned [mem 0xe00000000-0xe000fffff]
[ 0.123630] pci 0000:42:03.0: BAR 8: assigned [mem 0xe00100000-0xe001fffff]
[ 0.123642] pci 0000:43:00.0: BAR 0: assigned [mem 0xe00000000-0xe0001ffff 64bit]
[ 0.123663] pci 0000:43:00.0: BAR 6: assigned [mem 0xe00020000-0xe0002ffff pref]
[ 0.123672] pci 0000:42:02.0: PCI bridge to [bus 43]
[ 0.123683] pci 0000:42:02.0: bridge window [mem 0xe00000000-0xe000fffff]
[ 0.123698] pci 0000:44:00.0: BAR 0: assigned [mem 0xe00100000-0xe0011ffff 64bit]
[ 0.123717] pci 0000:44:00.0: BAR 6: assigned [mem 0xe00120000-0xe0012ffff pref]
[ 0.123725] pci 0000:42:03.0: PCI bridge to [bus 44]
[ 0.123734] pci 0000:42:03.0: bridge window [mem 0xe00100000-0xe001fffff]
[ 0.123746] pci 0000:42:04.0: PCI bridge to [bus 45]
[ 0.123760] pci 0000:41:00.0: PCI bridge to [bus 42-45]
[ 0.123770] pci 0000:41:00.0: bridge window [mem 0xe00000000-0xe001fffff]
[ 0.123781] pci 0000:40:00.0: PCI bridge to [bus 41-7f]
[ 0.123789] pci 0000:40:00.0: bridge window [mem 0xe00000000-0xe001fffff]
[ 0.123800] pci_bus 0000:40: resource 4 [io 0x0000-0xffff]
[ 0.123808] pci_bus 0000:40: resource 5 [mem 0xe00000000-0xe7fffffff]
[ 0.123815] pci_bus 0000:40: resource 6 [mem 0xf00000000-0xf000fffff]
[ 0.123823] pci_bus 0000:41: resource 1 [mem 0xe00000000-0xe001fffff]
[ 0.123831] pci_bus 0000:42: resource 1 [mem 0xe00000000-0xe001fffff]
[ 0.123839] pci_bus 0000:43: resource 1 [mem 0xe00000000-0xe000fffff]
[ 0.123846] pci_bus 0000:44: resource 1 [mem 0xe00100000-0xe001fffff]
[ 0.136981] SCSI subsystem initialized
[ 0.137761] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.140046] clocksource: Switched to clocksource timebase
[ 0.140755] thermal_sys: Registered thermal governor 'step_wise'
[ 0.141164] NET: Registered protocol family 2
[ 0.141270] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.141714] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.141741] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.141763] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.141783] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.141871] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.141893] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.142046] NET: Registered protocol family 1
[ 0.142139] PCI: CLS 32 bytes, default 32
[ 0.145525] dw_dmac 4bffd0800.dma: DesignWare DMA Controller, 2 channels
[ 0.151499] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.155457] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.210872] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.211858] pcie_pme: probe of 0000:40:00.0:pcie001 failed with error -22
[ 0.211972] pcieport 0000:40:00.0: AER: request AER IRQ 0 failed
[ 0.211989] aer: probe of 0000:40:00.0:pcie002 failed with error -22
[ 0.212931] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.214810] printk: console [ttyS0] disabled
[ 0.214869] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 35, base_baud = 347222) is a TI16750
[ 1.224225] printk: console [ttyS0] enabled
[ 1.228841] Loading iSCSI transport class v2.0-870.
[ 1.235272] sata-dwc 4bffd1800.sata: id 0, controller version 1.91
[ 1.242501] scsi host0: sata-dwc
[ 1.246027] ata1: SATA max UDMA/133 irq 43
[ 1.251373] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[ 1.257745] nand: Hynix H27U1G8F2BTR-BC
[ 1.261573] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.269135] Scanning device for bad blocks
[ 1.336240] 12 fixed-partitions partitions found on MTD device 4e4000000.ndfc.nand
[ 1.343805] Creating 12 MTD partitions on "4e4000000.ndfc.nand":
[ 1.349807] 0x000000000000-0x000008000000 : "NAND 128MiB 3,3V 8-bit"
[ 1.357605] 0x000000000000-0x000000180000 : "uboot"
[ 1.363072] 0x000000180000-0x0000001a0000 : "device-tree"
[ 1.369028] 0x000000180000-0x000000500000 : "kernel"
[ 1.374591] 0x000000500000-0x0000019e0000 : "ubi"
[ 1.379989] 0x0000019e0000-0x000001a60000 : "config"
[ 1.385525] 0x000001a60000-0x000001ae0000 : "pot"
[ 1.390808] 0x000001ae0000-0x000001de0000 : "traffic_meter"
[ 1.396974] 0x000001de0000-0x000001fa0000 : "language"
[ 1.402696] 0x000001fa0000-0x000007fc0000 : "ecos"
[ 1.408646] 0x000007fc0000-0x000008000000 : "wifi_data"
[ 1.414442] 0x000000180000-0x0000019e0000 : "firmware"
[ 1.420797] libphy: Fixed MDIO Bus: probed
[ 1.424908] PPC 4xx OCP EMAC driver, version 3.54
[ 1.430030] MAL v2 /plb/mcmal, 1 TX channels, 1 RX channels
[ 1.435799] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[ 1.442985] TAH /plb/opb/emac-tah@ef601350 initialized
[ 1.448408] /plb/opb/emac-rgmii@ef601500: input 0 in rgmii mode
[ 1.454452] libphy: emac_mdio: probed
[ 1.466188] switch0: Atheros AR8327 rev. 4 switch registered on 4ef600c00.ethernet
[ 1.586308] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.594796] ata1.00: supports DRM functions and may not be fully accessible
[ 1.601752] ata1.00: ATA-10: Crucial_CT750MX300SSD1, M0CR011, max UDMA/133
[ 1.608699] ata1.00: 1465149168 sectors, multi 16: LBA48 NCQ (depth 1/32)
[ 1.616105] sata-dwc 4bffd1800.sata: sata_dwc_clear_dmacr DMA protocol RX and TX DMA not pending tag=0x20 pending=-812518712 dmacr: 0x00000006
[ 1.628867] BUG: Kernel NULL pointer dereference at 0x00000000
[ 1.634673] Faulting instruction address: 0xc03aa898
[ 1.639617] Oops: Kernel access of bad area, sig: 11 [#1]
[ 1.644991] BE PAGE_SIZE=4K PowerPC 44x Platform
[ 1.649585] Modules linked in:
[ 1.652632] CPU: 0 PID: 365 Comm: scsi_eh_0 Not tainted 5.4.154 #0
[ 1.658780] NIP: c03aa898 LR: c038fb9c CTR: c03aa74c
[ 1.663808] REGS: cfb19a00 TRAP: 0300 Not tainted (5.4.154)
[ 1.669612] MSR: 00021000 <CE,ME> CR: 48000222 XER: 00000000
[ 1.675505] DEAR: 00000000 ESR: 00000000
[ 1.675505] GPR00: c038fb9c cfb19ab8 cfa3a640 00000000 0f87ebc0 fc3f0000 00000002 00000010
[ 1.675505] GPR08: 00000002 00000004 00000010 bffd1c00 ffffffff 00000000 c03a4220 00000047
[ 1.675505] GPR16: fafbfcfd 00000000 00000000 00029000 cfb19bc8 cf87d7b0 00000000 00000000
[ 1.675505] GPR24: 00000000 cf87dbc0 cfa06980 00000000 cf87c000 00000000 cfafb800 cf87d7b0
[ 1.712709] Call Trace:
[ 1.715149] [cfb19ab8] [c0323b14] 0xc0323b14 (unreliable)
[ 1.720521] [cfb19b28] [c038fb9c] 0xc038fb9c
[ 1.724771] [cfb19b48] [c038fef0] 0xc038fef0
[ 1.729023] [cfb19bb8] [c039024c] 0xc039024c
[ 1.733273] [cfb19c08] [c03904b0] 0xc03904b0
[ 1.737524] [cfb19c78] [c0390544] 0xc0390544
[ 1.741775] [cfb19c98] [c03905cc] 0xc03905cc
[ 1.746026] [cfb19cb8] [c0391d78] 0xc0391d78
[ 1.750277] [cfb19d88] [c03a0b64] 0xc03a0b64
[ 1.754528] [cfb19e18] [c03a1f34] 0xc03a1f34
[ 1.758779] [cfb19e48] [c03a1a08] 0xc03a1a08
[ 1.763030] [cfb19e78] [c03a1ea8] 0xc03a1ea8
[ 1.767280] [cfb19ea8] [c037019c] 0xc037019c
[ 1.771532] [cfb19ef8] [c004378c] 0xc004378c
[ 1.775782] [cfb19f38] [c000c22c] 0xc000c22c
[ 1.780032] Instruction dump:
[ 1.782990] 419e00f4 91410028 9161002c 99210048 39200004 807e0104 39400010 90c10018
[ 1.790702] 91410038 9141003c 91210030 91210034 <81230000> 81290098 2f890000 419e0018
[ 1.798598] ---[ end trace 4799eec1398820ac ]---
[ 1.803195]
[ 2.804714] Kernel panic - not syncing: Fatal exception
[ 2.809915] Rebooting in 1 seconds..