18.06.03 broke compatibility with FastWeb DRG A226M

Hi all,
after flashing 18.06.03 on Pirelli A226M FWB (https://oldwiki.archive.openwrt.org/toh/pirelli/drg_a226m) I had to rollback as during boot sequence there is a kernel panic message due to impossibility of recognizing the proper partitions on the flash, or at least this is what I understand from log messages.

[    1.065798] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.073562] Please append a correct "root=" boot option; here are the available partitions:
[    1.082174] 1f00             128 mtdblock0 [    1.086283]  (driver?)
[    1.088718] 1f01           16128 mtdblock1 [    1.092823]  (driver?)
[    1.095210] 1f02             128 mtdblock2 [    1.099366]  (driver?)
[    1.101798] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

18.06.01 works smoothly instead. Is it anything that can be fixed? I guess this new version kernel doesn't have the support for the flash memory on this box. Any suggestion to bring it back?

thanks

New URL: https://openwrt.org/toh/pirelli/drg_a226m

The old one is only for archival purposes and does not receive updates any more.

thanks for the heads up - the information on the new page is not correct anyways. 18.06.5 is listed as a currently supported version, which is not the case since 18.06.3 broke the support for this router (BRCM63xx based). That's the main reason of my post - how could I address the fact that from 18.06.3 onwards there is no proper recognition of local flash memory thus kernel hangs at boot?

thanks

Try 19.07 or, preferably master (“snapshot”)

Posting full logs might be helpful.

If master fails, find the code change responsible. This will likely involve building your own images from source.

On the wiki, if the device is marked as “supported by current release” the fields are auto-populated with, well, the current release’s data.

Hi,
I recently tried the last 19.07.3 stable release on this router, and I confirm the support is still broken. Below the boot log, problem looks to be related to flash memory support, as CFE apparently cant boot from proper partitions.
Where should I report this in order to hope to have if fixed? this router has 64M RAM and two working working FXS phone ports, it would be nice not to be stuck on 18.06.1

CFE version 1.0.37-8.7 for e[1mNGRGe[0m e[43m0002e[0m BCM96358 (32bit,SP,BE)
Build Date: mer dic 17 10:22:13 CET 2008 (e[42me[37mantonio@localhoste[42me[0m)
Copyright (C) 2000-2005 Broadcom Corporation.

Boot Address 0xbe000000

Initializing Arena.
Initializing Devices.

e[44me[37mFlash info:
device_id : ............227E
meminfo.nsect:..........128
totalSize:..............1000000
num_erase_blocks:...... 1
device_size:............1000000

e[0mParallel flash device: name MX29L128DT, id 0x227e, size 16384KB

Resetting Switch....

CPU type 0x2A010: 300MHz, Bus: 133MHz, Ref: 64MHz
CPU running TP0
Total memory: 67108864 bytes (64MB)

Total memory used by CFE:  0x80401000 - 0x80528420 (1209376)
Initialized Data:          0x8041DE70 - 0x8041FC50 (7648)
BSS Area:                  0x8041FC50 - 0x80426420 (26576)
Local Heap:                0x80426420 - 0x80526420 (1048576)
Stack Area:                0x80526420 - 0x80528420 (8192)
Text (code) segment:       0x80401000 - 0x8041DE70 (118384)
Boot area (physical):      0x00529000 - 0x00569000
Relocation Factor:         I:00000000 - D:00000000

Resetting Secondary CPU... 

Board IP address                  : 192.168.1.50  
Host IP address                   : 192.168.1.1  
Gateway IP address                :   
Run from flash/host (f/h)         : f  
Default host run file name        : vmlinux  
Default host flash file name      : firmware.bin  
Boot delay (0-9 seconds)          : 3  
Board Id (0-6)                    : DWV-S0  
Number of MAC Addresses (1-32)    : 13  
Base MAC Address                  : xx:xx:xx:xx:xx:xx  
PSI Size (1-64) KBytes            : 24  
Main Thread Number [0|1]          : 0  

*** Press any key to stop auto run (3 seconds) ***
Auto run second count down: 33210
Trying to boot from previous MAIN image (0x80a00000) ...
Code Address: 0x80A00000, Entry Address: 0x80a00000
SGP - Flash Kernel Address: 0xBE020100
SGP - ulImgCrc : 0x1D40BB02  
SGP - Tag->kernelLen: 0x0017C9D0
SGP - Flash Kernel Address: 0xBE020100
SGP - Tag Kernel crc : 0x1D40BB02 - calculated: 0x1D40BB02 
SGP - Decompression Kernel length: 0x0017C9C2 pucSrc: 0xBE02010C
Decompression OK!
Entry at 0x80a00000

e[7me[34mDistribution: e[0m
e[7me[34mVersion: Be[0m

Closing network.
Starting program at 0x80a00000
[    0.000000] Linux version 4.14.180 (rokafeller@compile) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11063-85e04e9f46)) #0 Sat May 16 18:32:20 2020
[    0.000000] Detected Broadcom 0x6358 CPU revision a1
[    0.000000] CPU frequency is 300 MHz
[    0.000000] 64MB of RAM installed
[    0.000000] board_bcm963xx: Boot address 0xbe000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-8.7
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0002a010 (Broadcom BMIPS4350)
[    0.000000] board: board name: DWV-S0
[    0.000000] MIPS: machine is Pirelli A226M-FWB
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 32kB, VIPT, 2-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x84/0x484 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 58668K/65536K available (3604K kernel code, 177K rwdata, 884K rodata, 1280K init, 204K bss, 6868K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
[    0.000022] sched_clock: 32 bits at 150MHz, resolution 6ns, wraps every 14316557820ns
[    0.008154] Calibrating delay loop... 299.26 BogoMIPS (lpj=598528)
[    0.050568] pid_max: default: 32768 minimum: 301
[    0.055880] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.062765] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080056] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.090169] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.096679] pinctrl core: initialized pinctrl subsystem
[    0.103364] NET: Registered protocol family 16
[    0.121893] registering PCI controller with io_map_base unset
[    0.178156] PCI host bridge to bus 0000:00
[    0.182448] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    0.189531] pci_bus 0000:00: root bus resource [io  0x8000000-0x800ffff]
[    0.196430] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.203418] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.220616] pci 0000:00:01.0: BAR 0: assigned [mem 0x30000000-0x30001fff]
[    0.229628] clocksource: Switched to clocksource MIPS
[    0.238275] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[    0.274787] ssb: Found chip with id 0x4318, rev 0x02 and package 0x02
[    0.343990] ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0
[    0.351976] NET: Registered protocol family 2
[    0.358535] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.365854] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.372484] TCP: Hash tables configured (established 1024 bind 1024)
[    0.379656] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.385811] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.392928] NET: Registered protocol family 1
[    0.403074] Crashlog allocated RAM at address 0x3f00000
[    0.414002] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.435864] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.441935] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.491112] io scheduler noop registered
[    0.495205] io scheduler deadline registered (default)
[    0.503403] bcm6358-pinctrl fffe0080.pin-controller: registered at mmio fffe0080
[    0.513145] fffe0100.serial: ttyS0 at MMIO 0xfffe0100 (irq = 10, base_baud = 1562500) is a bcm63xx_uart
[    0.522946] console [ttyS0] enabled
[    0.522946] console [ttyS0] enabled
[    0.530122] bootconsole [early0] disabled
[    0.530122] bootconsole [early0] disabled
[    0.540944] 1e000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00227e
[    0.551379] Amd/Fujitsu Extended Query Table at 0x0040
[    0.556703]   Amd/Fujitsu Extended Query version 1.3.
[    0.561914] number of CFI chips: 1
[    0.581036] Searching for RedBoot partition table in 1e000000.nor at offset 0xfe0000
[    0.623863] No RedBoot partition table detected in 1e000000.nor
[    0.630207] 3 fixed-partitions partitions found on MTD device 1e000000.nor
[    0.637323] Creating 3 MTD partitions on "1e000000.nor":
[    0.642822] 0x000000000000-0x000000020000 : "CFE"
[    0.649916] 0x000000010000-0x000000fd0000 : "linux"
[    0.662097] parser_imagetag: rootfs: CFE image tag at 0x0 CRC invalid (expected 00000000, actual ff989263)
[    0.672197] 0x000000fe0000-0x000001000000 : "nvram"
[    0.682056] libphy: Fixed MDIO Bus: probed
[    0.703382] libphy: bcm63xx_enet MII bus: probed
[    0.778348] Broadcom BCM63XX (2) bcm63xx_enet-0:01: attached PHY driver [Broadcom BCM63XX (2)] (mii_bus:phy_addr=bcm63xx_enet-0:01, irq=17)
[    0.798699] b53_common: found switch: BCM5325, rev 0
[    0.803974] libphy: bcm63xx_enet MII bus: probed
[    0.877694] Broadcom B53 (1) bcm63xx_enet-1:00: attached PHY driver [Broadcom B53 (1)] (mii_bus:phy_addr=bcm63xx_enet-1:00, irq=POLL)
[    0.890928] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.904338] NET: Registered protocol family 17
[    0.909119] 8021q: 802.1Q VLAN Support v1.8
[    0.933792] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.941520] Please append a correct "root=" boot option; here are the available partitions:
[    0.950148] 1f00             128 mtdblock0 
[    0.950161]  (driver?)
[    0.956846] 1f01           16128 mtdblock1 
[    0.956858]  (driver?)
[    0.963610] 1f02             128 mtdblock2 
[    0.963622]  (driver?)
[    0.970345] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.980653] Rebooting in 1 seconds..
[    1.981941] triggering watchdog soft-reset...

Thanks for reporting, I've already sent a patch for fixing a wrong linux partition offset. It should fix the error.

http://patchwork.ozlabs.org/project/openwrt/patch/2235597.0Tboij76b4@tool/

thanks a lot! I'll let you know if once compiled boots properly. (hopefully :slight_smile:)

Hi @sturia, the fix has been merged in this commit:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=d64d5ed142

1 Like

Thanks a lot! I manually applied the patch to stay on the official 19.07.3 branch and it works. It would be great if this patch could be propagated also to previous official versions, as the last working release was 18.06.1.

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