WNDAP660 kernel panic during installation

have here 4 WNDAP660, OpenWrt installation went fine for 3, but one device ended up in kernel panic during setup.

I'm following these installation instructions, using latest stable or snapshot image:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=d82d84694e60d17a79a57fdb135e382f4def907c

The one with the problems has a NAND bad block at 0x00480000, can this be the reason for failing ?

Below is the console output. Anyone here an idea what is the reason that this device fails ? Is there another installation possibility ?

Thanks Kai


Loading from NAND 32MiB 3,3V 8-bit, offset 0x110000<\r>
<\n> Image Name: initramfs<\r>
<\n> Image Type: PowerPC Linux Multi-File Image (gzip compressed)<\r>
<\n> Data Size: 3268344 Bytes = 3.1 MB<\r>
<\n> Load Address: 00000000<\r>
<\n> Entry Point: 00000000<\r>
<\n> Contents:<\r>
<\n> Image 0: 3235526 Bytes = 3.1 MB<\r>
<\n> Image 1: 32 Bytes = 0 kB<\r>
<\n> Image 2: 32768 Bytes = 32 kB<\r>
<\n>## Booting kernel from Legacy Image at 00600000 ...<\r>
<\n> Image Name: initramfs<\r>
<\n> Image Type: PowerPC Linux Multi-File Image (gzip compressed)<\r>
<\n> Data Size: 3268344 Bytes = 3.1 MB<\r>
<\n> Load Address: 00000000<\r>
<\n> Entry Point: 00000000<\r>
<\n> Contents:<\r>
<\n> Image 0: 3235526 Bytes = 3.1 MB<\r>
<\n> Image 1: 32 Bytes = 0 kB<\r>
<\n> Image 2: 32768 Bytes = 32 kB<\r>
<\n> Verifying Checksum ... OK<\r>
<\n>## Loading init Ramdisk from multi component Legacy Image at 00600000 ...<\r>
<\n>## Flattened Device Tree from multi component Image at 00600000<\r>
<\n> Booting using the fdt at 0x915f38<\r>
<\n> Uncompressing Multi-File Image ... OK<\r>
<\n>WARNING: legacy format multi component image overwritten<\r>
<\n> Loading Ramdisk to 0fdef000, end 0fdef020 ... OK<\r>
<\n>[ 0.000000] Linux version 4.19.108 (builder@buildhost) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r12574-6de7406d54)) #0 Sun Mar 15 19:32:10 2020<\r>
<\n>[ 0.000000] Using PowerPC 44x Platform machine description<\r>
<\n>[ 0.000000] -----------------------------------------------------<\r>
<\n>[ 0.000000] phys_mem_size = 0x10000000<\r>
<\n>[ 0.000000] dcache_bsize = 0x20<\r>
<\n>[ 0.000000] icache_bsize = 0x20<\r>
<\n>[ 0.000000] cpu_features = 0x0000000000000120<\r>
<\n>[ 0.000000] possible = 0x0000000040000120<\r>
<\n>[ 0.000000] always = 0x0000000000000020<\r>
<\n>[ 0.000000] cpu_user_features = 0x8c008000 0x00000000<\r>
<\n>[ 0.000000] mmu_features = 0x00000008<\r>
<\n>[ 0.000000] -----------------------------------------------------<\r>
<\n>[ 0.000000] Zone ranges:<\r>
<\n>[ 0.000000] DMA [mem 0x0000000000000000-0x000000000fffffff]<\r>
<\n>[ 0.000000] Normal empty<\r>
<\n>[ 0.000000] Movable zone start for each node<\r>
<\n>[ 0.000000] Early memory node ranges<\r>
<\n>[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]<\r>
<\n>[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]<\r>
<\n>[ 0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts<\r>
<\n>[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960<\r>
<\n>[ 0.000000] Kernel command line: root=/dev/ubiblock0_0 console=ttyS0,9600<\r>
<\n>[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)<\r>
<\n>[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)<\r>
<\n>[ 0.000000] Memory: 252528K/262144K available (5148K kernel code, 224K rwdata, 1184K rodata, 172K init, 239K bss, 9616K reserved, 0K cma-reserved)<\r>
<\n>[ 0.000000] Kernel virtual memory layout:<\r>
<\n>[ 0.000000] * 0xfffdf000..0xfffff000 : fixmap<\r>
<\n>[ 0.000000] * 0xfde00000..0xfe000000 : consistent mem<\r>
<\n>[ 0.000000] * 0xfde00000..0xfde00000 : early ioremap<\r>
<\n>[ 0.000000] * 0xd1000000..0xfde00000 : vmalloc & ioremap<\r>
<\n>[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1<\r>
<\n>[ 0.000000] NR_IRQS: 512, nr_irqs: 512, preallocated irqs: 16<\r>
<\n>[ 0.000000] UIC0 (32 IRQ sources) at DCR 0xc0<\r>
<\n>[ 0.000000] UIC1 (32 IRQ sources) at DCR 0xd0<\r>
<\n>[ 0.000000] UIC2 (32 IRQ sources) at DCR 0xe0<\r>
<\n>[ 0.000000] UIC3 (32 IRQ sources) at DCR 0xf0<\r>
<\n>[ 0.000017] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns<\r>
<\n>[ 0.000028] clocksource: timebase mult[800000] shift[23] registered<\r>
<\n>[ 0.000087] pid_max: default: 32768 minimum: 301<\r>
<\n>[ 0.000285] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)<\r>
<\n>[ 0.000300] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)<\r>
<\n>[ 0.003604] random: get_random_u32 called from bucket_table_alloc.isra.21+0x14c/0x1b0 with crng_init=0<\r>
<\n>[ 0.004171] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns<\r>
<\n>[ 0.004200] futex hash table entries: 256 (order: -1, 3072 bytes)<\r>
<\n>[ 0.004742] NET: Registered protocol family 16<\r>
<\n>[ 0.005769] PPC4XX OCM1: 32768 Bytes (enabled)<\r>
<\n>[ 0.005791] PPC4XX OCM1: 32768 Bytes (non-cached)<\r>
<\n>[ 0.005796] PPC4XX OCM1: 0 Bytes (cached)<\r>
<\n>[ 0.005847] debugfs ppc4xx ocm: failed to create file<\r>
<\n>[ 0.005991] 256k L2-cache enabled<\r>
<\n>[ 0.006075] PCIE0: Checking link...<\r>
<\n>[ 0.006080] PCIE0: Device detected, waiting for link...<\r>
<\n>[ 0.006085] PCIE0: link is up !<\r>
<\n>[ 0.113756] PCI host bridge /plb/pciex@d00000000 (primary) ranges:<\r>
<\n>[ 0.113789] MEM 0x0000000e00000000..0x0000000e7fffffff -> 0x0000000080000000 <\r>
<\n>[ 0.113800] MEM 0x0000000f00000000..0x0000000f000fffff -> 0x0000000000000000 <\r>
<\n>[ 0.113808] IO 0x0000000f80000000..0x0000000f8000ffff -> 0x0000000000000000<\r>
<\n>[ 0.113829] 4xx PCI DMA offset set to 0x00000000<\r>
<\n>[ 0.113833] 4xx PCI DMA window base to 0x0000000000000000<\r>
<\n>[ 0.113838] DMA window size 0x0000000080000000<\r>
<\n>[ 0.113861] PCIE0: successfully set as root-complex<\r>
<\n>[ 0.114480] PCI: Probing PCI hardware<\r>
<\n>[ 0.114602] PCI host bridge to bus 0000:40<\r>
<\n>[ 0.114621] pci_bus 0000:40: root bus resource [io 0x0000-0xffff]<\r>
<\n>[ 0.114632] pci_bus 0000:40: root bus resource [mem 0xe00000000-0xe7fffffff] (bus address [0x80000000-0xffffffff])<\r>
<\n>[ 0.114642] pci_bus 0000:40: root bus resource [mem 0xf00000000-0xf000fffff] (bus address [0x00000000-0x000fffff])<\r>
<\n>[ 0.114653] pci_bus 0000:40: root bus resource [bus 40-ff]<\r>
<\n>[ 0.114764] PCI: Hiding 4xx host bridge resources 0000:40:00.0<\r>
<\n>[ 0.115819] pci 0000:41:00.0: Max Payload Size set to 256 (was 128, max 256)<\r>
<\n>[ 0.115832] pci 0000:41:00.0: enabling Extended Tags<\r>
<\n>[ 0.116726] pci 0000:40:00.0: PCI bridge to [bus 41-7f]<\r>
<\n>[ 0.116771] pci 0000:41:00.0: bridge configuration invalid ([bus 02-04]), reconfiguring<\r>
<\n>[ 0.117023] pci 0000:42:02.0: Max Payload Size set to 256 (was 128, max 256)<\r>
<\n>[ 0.117035] pci 0000:42:02.0: enabling Extended Tags<\r>
<\n>[ 0.117391] pci 0000:42:03.0: Max Payload Size set to 256 (was 128, max 256)<\r>
<\n>[ 0.117403] pci 0000:42:03.0: enabling Extended Tags<\r>
<\n>[ 0.118277] pci 0000:41:00.0: PCI bridge to [bus 42-7f]<\r>
<\n>[ 0.118321] pci 0000:42:02.0: bridge configuration invalid ([bus 03-03]), reconfiguring<\r>
<\n>[ 0.118335] pci 0000:42:03.0: bridge configuration invalid ([bus 04-04]), reconfiguring<\r>
<\n>[ 0.118623] pci 0000:43:00.0: can't set Max Payload Size to 256; if necessary, use "pci=pcie_bus_safe" and report a bug<\r>
<\n>[ 0.119535] pci 0000:42:02.0: PCI bridge to [bus 43-7f]<\r>
<\n>[ 0.119937] pci 0000:44:00.0: can't set Max Payload Size to 256; if necessary, use "pci=pcie_bus_safe" and report a bug<\r>
<\n>[ 0.120864] pci 0000:42:03.0: PCI bridge to [bus 44-7f]<\r>
<\n>[ 0.121068] pci 0000:40:00.0: disabling bridge window [io 0x0000-0xffffffffffffffff] to [bus 41-7f] (unused)<\r>
<\n>[ 0.121093] pci 0000:40:00.0: BAR 8: assigned [mem 0xe00000000-0xe001fffff]<\r>
<\n>[ 0.121107] pci 0000:41:00.0: BAR 8: assigned [mem 0xe00000000-0xe001fffff]<\r>
<\n>[ 0.121118] pci 0000:42:02.0: BAR 8: assigned [mem 0xe00000000-0xe000fffff]<\r>
<\n>[ 0.121128] pci 0000:42:03.0: BAR 8: assigned [mem 0xe00100000-0xe001fffff]<\r>
<\n>[ 0.121140] pci 0000:43:00.0: BAR 0: assigned [mem 0xe00000000-0xe0001ffff 64bit]<\r>
<\n>[ 0.121161] pci 0000:43:00.0: BAR 6: assigned [mem 0xe00020000-0xe0002ffff pref]<\r>
<\n>[ 0.121170] pci 0000:42:02.0: PCI bridge to [bus 43]<\r>
<\n>[ 0.121182] pci 0000:42:02.0: bridge window [mem 0xe00000000-0xe000fffff]<\r>
<\n>[ 0.121198] pci 0000:44:00.0: BAR 0: assigned [mem 0xe00100000-0xe0011ffff 64bit]<\r>
<\n>[ 0.121218] pci 0000:44:00.0: BAR 6: assigned [mem 0xe00120000-0xe0012ffff pref]<\r>
<\n>[ 0.121226] pci 0000:42:03.0: PCI bridge to [bus 44]<\r>
<\n>[ 0.121236] pci 0000:42:03.0: bridge window [mem 0xe00100000-0xe001fffff]<\r>
<\n>[ 0.121248] pci 0000:41:00.0: PCI bridge to [bus 42-44]<\r>
<\n>[ 0.121258] pci 0000:41:00.0: bridge window [mem 0xe00000000-0xe001fffff]<\r>
<\n>[ 0.121270] pci 0000:40:00.0: PCI bridge to [bus 41-7f]<\r>
<\n>[ 0.121279] pci 0000:40:00.0: bridge window [mem 0xe00000000-0xe001fffff]<\r>
<\n>[ 0.131557] SCSI subsystem initialized<\r>
<\n>[ 0.134398] clocksource: Switched to clocksource timebase<\r>
<\n>[ 0.135224] NET: Registered protocol family 2<\r>
<\n>[ 0.135700] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)<\r>
<\n>[ 0.135730] TCP established hash table entries: 2048 (order: 1, 8192 bytes)<\r>
<\n>[ 0.135754] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)<\r>
<\n>[ 0.135776] TCP: Hash tables configured (established 2048 bind 2048)<\r>
<\n>[ 0.135866] UDP hash table entries: 256 (order: 0, 4096 bytes)<\r>
<\n>[ 0.135888] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)<\r>
<\n>[ 0.136042] NET: Registered protocol family 1<\r>
<\n>[ 0.139303] dw_dmac 4bffd0800.dma: DesignWare DMA Controller, 2 channels<\r>
<\n>[ 0.144507] Crashlog allocated RAM at address 0x3f00000<\r>
<\n>[ 0.145382] workingset: timestamp_bits=14 max_order=16 bucket_order=2<\r>
<\n>[ 0.149574] squashfs: version 4.0 (2009/01/31) Phillip Lougher<\r>
<\n>[ 0.161488] io scheduler noop registered<\r>
<\n>[ 0.161505] io scheduler deadline registered (default)<\r>
<\n>[ 0.162233] gpio-export plb:opb:gpio-export: 3 gpio(s) exported<\r>
<\n>[ 0.162655] pcie_pme: probe of 0000:40:00.0:pcie001 failed with error -22<\r>
<\n>[ 0.162771] aer: probe of 0000:40:00.0:pcie002 failed with error -22<\r>
<\n>[ 0.163405] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled<\r>
<\n>[ 0.165243] console [ttyS0] disabled<\r>
<\n>[ 0.165297] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 36, base_baud = 336021) is a TI16750<\r>
<\n>[ 9.000078] console [ttyS0] enabled<\r>
<\n>[ 9.042749] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75<\r>
<\n>[ 9.118932] nand: Hynix NAND 32MiB 3,3V 8-bit<\r>
<\n>[ 9.171095] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16<\r>
<\n>[ 9.258708] Scanning device for bad blocks<\r>
<\n>[ 9.323367] Bad eraseblock 288 at 0x000000480000<\r>
<\n>[ 9.467671] 8 fixed-partitions partitions found on MTD device 4e4000000.ndfc.nand<\r>
<\n>[ 9.557447] Creating 8 MTD partitions on "4e4000000.ndfc.nand":<\r>
<\n>[ 9.628366] 0x000000000000-0x000000100000 : "u-boot"<\r>
<\n>[ 9.688471] 0x000000100000-0x000000110000 : "u-boot-env"<\r>
<\n>[ 9.752582] 0x000000110000-0x000001bd0000 : "firmware"<\r>
<\n>[ 9.815966] 0x000000110000-0x000000500000 : "kernel"<\r>
<\n>[ 9.876103] 0x000000500000-0x000001bd0000 : "ubi"<\r>
<\n>[ 9.934133] 0x000001bd0000-0x000001be0000 : "device-tree"<\r>
<\n>[ 9.999331] 0x000001be0000-0x000001fe0000 : "var"<\r>
<\n>[ 10.056422] 0x000001fe0000-0x000002000000 : "manudata"<\r>
<\n>[ 10.118808] rtl8367b plb:opb:rtl8367b: cannot find mdio bus from bus handle (yet)<\r>
<\n>[ 10.208798] libphy: Fixed MDIO Bus: probed<\r>
<\n>[ 10.257916] PPC 4xx OCP EMAC driver, version 3.54<\r>
<\n>[ 10.314518] MAL v2 /plb/mcmal, 1 TX channels, 1 RX channels<\r>
<\n>[ 10.381515] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support<\r>
<\n>[ 10.466145] TAH /plb/opb/emac-tah@ef601350 initialized<\r>
<\n>[ 10.528068] /plb/opb/emac-rgmii@ef601500: input 0 in rgmii mode<\r>
<\n>[ 10.599150] libphy: emac_mdio: probed<\r>
<\n>[ 10.648161] eth0: EMAC-0 /plb/opb/ethernet@ef600c00, MAC 84:1b:5e:5d:87:98<\r>
<\n>[ 10.730804] i2c /dev entries driver<\r>
<\n>[ 10.772944] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode<\r>
<\n>[ 10.846835] booke_wdt: powerpc book-e watchdog driver loaded<\r>
<\n>[ 10.919105] NET: Registered protocol family 10<\r>
<\n>[ 10.974025] Segment Routing with IPv6<\r>
<\n>[ 11.018044] NET: Registered protocol family 17<\r>
<\n>[ 11.071357] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.<\r>
<\n>[ 11.226709] 8021q: 802.1Q VLAN Support v1.8<\r>
<\n>[ 11.276840] drmem: No dynamic reconfiguration memory found<\r>
<\n>[ 11.344421] rtl8367b plb:opb:rtl8367b: using MDIO bus 'emac_mdio'<\r>
<\n>[ 11.418072] rtl8367b plb:opb:rtl8367b: RTL8367RB chip found<\r>
<\n>[ 12.889909] libphy: plb:opb:rtl8367b: probed<\r>
<\n>[ 12.941706] UBI error: no valid UBI magic found inside mtd4<\r>
<\n>[ 13.008591] hctosys: unable to open rtc device (rtc0)<\r>
<\n>[ 13.069865] VFS: Cannot open root device "ubiblock0_0" or unknown-block(0,0): error -6<\r>
<\n>[ 13.164830] Please append a correct "root=" boot option; here are the available partitions:<\r>
<\n>[ 13.265012] 1f00 1024 mtdblock0 <\r>
<\n>[ 13.265014] (driver?)<\r>
<\n>[ 13.343332] 1f01 64 mtdblock1 <\r>
<\n>[ 13.343333] (driver?)<\r>
<\n>[ 13.421660] 1f02 27392 mtdblock2 <\r>
<\n>[ 13.421661] (driver?)<\r>
<\n>[ 13.499988] 1f03 4032 mtdblock3 <\r>
<\n>[ 13.499989] (driver?)<\r>
<\n>[ 13.578316] 1f04 23360 mtdblock4 <\r>
<\n>[ 13.578317] (driver?)<\r>
<\n>[ 13.656645] 1f05 64 mtdblock5 <\r>
<\n>[ 13.656646] (driver?)<\r>
<\n>[ 13.734972] 1f06 4096 mtdblock6 <\r>
<\n>[ 13.734974] (driver?)<\r>
<\n>[ 13.813301] 1f07 128 mtdblock7 <\r>
<\n>[ 13.813303] (driver?)<\r>
<\n>[ 13.891630] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)<\r>

solution like proposed by mk24 in a similar case:

https://forum.openwrt.org/t/r7800-flashing-openwrt-causes-bootloop-bad-block-in-kernel-area/49608/41

different block size for WNDAP !

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.