diff mbox series

bcm53xx: disable NVMEM driver

Message ID 20230801104221.3139351-1-arinc.unal@arinc9.com
State New
Headers show
Series bcm53xx: disable NVMEM driver | expand

Commit Message

Arınç ÜNAL Aug. 1, 2023, 10:42 a.m. UTC
The NVMEM_BRCM_NVRAM driver won't work properly with NVRAM in NAND. It
causes the devices with NVRAM in NAND, such as ASUS RT-AC88U, to bootloop.
Until the driver is fixed, disable it.

Disable NVMEM too as the bgmac_bcma driver will hang trying to retrieve the
MAC address without NVMEM_BRCM_NVRAM enabled.

Link: https://forum.openwrt.org/t/asus-rt-ac88u-hw-a6-broken-in-22-03-3/147882/40
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
---
 target/linux/bcm53xx/config-5.15 | 3 ---
 target/linux/bcm53xx/config-6.1  | 3 ---
 2 files changed, 6 deletions(-)

Comments

Arınç ÜNAL Aug. 1, 2023, 10:45 a.m. UTC | #1
I've attached the kernel log with NVMEM enabled and disabled for reference.

Arınç

On 1.08.2023 13:42, Arınç ÜNAL wrote:
> The NVMEM_BRCM_NVRAM driver won't work properly with NVRAM in NAND. It
> causes the devices with NVRAM in NAND, such as ASUS RT-AC88U, to bootloop.
> Until the driver is fixed, disable it.
> 
> Disable NVMEM too as the bgmac_bcma driver will hang trying to retrieve the
> MAC address without NVMEM_BRCM_NVRAM enabled.
> 
> Link: https://forum.openwrt.org/t/asus-rt-ac88u-hw-a6-broken-in-22-03-3/147882/40
> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
> ---
>   target/linux/bcm53xx/config-5.15 | 3 ---
>   target/linux/bcm53xx/config-6.1  | 3 ---
>   2 files changed, 6 deletions(-)
> 
> diff --git a/target/linux/bcm53xx/config-5.15 b/target/linux/bcm53xx/config-5.15
> index 9cd1f079d1..6b7fa3c4ad 100644
> --- a/target/linux/bcm53xx/config-5.15
> +++ b/target/linux/bcm53xx/config-5.15
> @@ -223,9 +223,6 @@ CONFIG_NET_FLOW_LIMIT=y
>   CONFIG_NET_SELFTESTS=y
>   CONFIG_NET_SWITCHDEV=y
>   CONFIG_NR_CPUS=2
> -CONFIG_NVMEM=y
> -CONFIG_NVMEM_BRCM_NVRAM=y
> -CONFIG_NVMEM_SYSFS=y
>   CONFIG_OF=y
>   CONFIG_OF_ADDRESS=y
>   CONFIG_OF_EARLY_FLATTREE=y
> diff --git a/target/linux/bcm53xx/config-6.1 b/target/linux/bcm53xx/config-6.1
> index d96beb687d..c9d9dbd652 100644
> --- a/target/linux/bcm53xx/config-6.1
> +++ b/target/linux/bcm53xx/config-6.1
> @@ -224,9 +224,6 @@ CONFIG_NET_FLOW_LIMIT=y
>   CONFIG_NET_SELFTESTS=y
>   CONFIG_NET_SWITCHDEV=y
>   CONFIG_NR_CPUS=2
> -CONFIG_NVMEM=y
> -CONFIG_NVMEM_BRCM_NVRAM=y
> -CONFIG_NVMEM_SYSFS=y
>   CONFIG_OF=y
>   CONFIG_OF_ADDRESS=y
>   CONFIG_OF_EARLY_FLATTREE=y
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.176 (arinc9@arinc9-PC) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r20028-43d71ad93e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Apr 27 20:28:15 2023
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Asus RT-AC88U
[    0.000000] earlycon: ns16550 at MMIO 0x18000300 (options '115200n8')
[    0.000000] printk: bootconsole [ns16550] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Hit pending asynchronous external abort (FSR=0x00001c06) during first unmask, this is most likely caused by a firmware/bootloader bug.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  [mem 0x0000000008000000-0x000000009fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   node   0: [mem 0x0000000088000000-0x000000009fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000009fffffff]
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000]   HighMem zone: 98304 pages, LIFO batch:31
[    0.000000] percpu: Embedded 14 pages/cpu s27340 r8192 d21812 u57344
[    0.000000] pcpu-alloc: s27340 r8192 d21812 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130784
[    0.000000] Kernel command line: earlycon
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 509300K/524288K available (6000K kernel code, 562K rwdata, 1364K rodata, 1024K init, 286K bss, 14988K reserved, 0K cma-reserved, 393216K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x0a130000 -> 0x3a530000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x7e530001
[    0.000009] sched_clock: 64 bits at 700MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008072] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xa17102bcf3, max_idle_ns: 440795224838 ns
[    0.019203] Switching to timer-based delay loop, resolution 1ns
[    0.025361] Calibrating delay loop (skipped), value calculated using timer frequency.. 1400.00 BogoMIPS (lpj=7000000)
[    0.036070] pid_max: default: 32768 minimum: 301
[    0.040782] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.048117] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.056449] CPU: Testing write buffer coherency: ok
[    0.061381] CPU0: Spectre v2: using BPIALL workaround
[    0.066718] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.072921] Setting up static identity map for 0x100000 - 0x10003c
[    0.079280] rcu: Hierarchical SRCU implementation.
[    0.084264] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.092179] smp: Bringing up secondary CPUs ...
[    0.097376] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.097383] CPU1: Spectre v2: using BPIALL workaround
[    0.108290] smp: Brought up 1 node, 2 CPUs
[    0.112430] SMP: Total of 2 processors activated (2800.00 BogoMIPS).
[    0.118827] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.127341] CPU: This may indicate a broken bootloader or firmware.
[    0.135773] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.145706] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.152684] pinctrl core: initialized pinctrl subsystem
[    0.158550] NET: Registered protocol family 16
[    0.163564] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.171150] thermal_sys: Registered thermal governor 'step_wise'
[    0.192344] clocksource: Switched to clocksource arm_global_timer
[    0.205246] NET: Registered protocol family 2
[    0.209780] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.217544] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.226037] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.233784] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.240873] TCP: Hash tables configured (established 1024 bind 1024)
[    0.247341] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.253949] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.261125] NET: Registered protocol family 1
[    0.265537] PCI: CLS 0 bytes, default 64
[    0.270949] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.279473] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.285406] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.296428] bounce: pool size: 64 pages
[    0.301184] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.308319] printk: console [ttyS0] disabled
[    0.312757] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 26, base_baud = 7812500) is a 16550
[    0.321621] printk: console [ttyS0] enabled
[    0.330041] printk: bootconsole [ns16550] disabled
[    0.340642] bcm2835-rng 18004000.rng: hwrng registered
[    1.002521] random: crng init done
[    1.006889] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    1.013301] nand: ESMT NAND 128MiB 3,3V 8-bit
[    1.017673] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.025305] iproc_nand 18028000.nand-controller: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    1.036223] Scanning device for bad blocks
[    1.940713] 3 fixed-partitions partitions found on MTD device brcmnand.0
[    1.947757] Creating 3 MTD partitions on "brcmnand.0":
[    1.952936] 0x000000000000-0x000000080000 : "boot"
[    1.958216] 0x000000080000-0x000000200000 : "nvram"
[    1.963602] 0x000000200000-0x000008000000 : "firmware"
[    1.970230] 2 trx partitions found on MTD device firmware
[    1.975682] Creating 2 MTD partitions on "firmware":
[    1.980661] 0x00000000001c-0x000000400000 : "linux"
[    1.985554] mtd: partition "linux" doesn't start on an erase/write block boundary -- force read-only
[    1.995265] 0x000000400000-0x000007e00000 : "ubi"
[    2.001960] bcm_iproc 18029200.spi: using bspi-mspi mode
[    2.009212] iproc-mdio 18003000.mdio: Broadcom iProc MDIO bus registered
[    2.017457] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    2.025347] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    2.031439] bcma-host-soc 18000000.axi: bus0: Found chip with id 53030, rev 0x00 and package 0x00
[    2.040431] bcma-host-soc 18000000.axi: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    2.051015] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.051024] bcma-host-soc 18000000.axi: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x05, class 0x0)
[    2.061764] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.061772] bcma-host-soc 18000000.axi: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x04, class 0x0)
[    2.071753] bcma-host-soc 18000000.axi: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    2.082158] bcma-host-soc 18000000.axi: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    2.092555] bcma-host-soc 18000000.axi: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    2.102974] bcma-host-soc 18000000.axi: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    2.113335] bcma-host-soc 18000000.axi: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    2.123877] bcma-host-soc 18000000.axi: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    2.134427] bcma-host-soc 18000000.axi: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    2.144986] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.144994] bcma-host-soc 18000000.axi: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x07, class 0x0)
[    2.157021] bcma-host-soc 18000000.axi: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x07, class 0x0)
[    2.167400] bcma-host-soc 18000000.axi: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x07, class 0x0)
[    2.177782] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.177790] bcma-host-soc 18000000.axi: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    2.187992] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.188000] bcma-host-soc 18000000.axi: bus0: Core 14 found: I2S (manuf 0x4BF, id 0x834, rev 0x03, class 0x0)
[    2.198027] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.198034] bcma-host-soc 18000000.axi: bus0: Core 15 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    2.209370] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.209378] bcma-host-soc 18000000.axi: bus0: Core 16 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    2.222102] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.222109] bcma-host-soc 18000000.axi: bus0: Core 17 found: ROM (manuf 0x4BF, id 0x508, rev 0x08, class 0x0)
[    2.232166] bcma-host-soc 18000000.axi: bus0: Core 18 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    2.243767] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.243776] bcma-host-soc 18000000.axi: bus0: Core 19 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    2.255234] bcma-host-soc 18000000.axi: bus0: Flash type not supported
[    2.274876] bcma-host-soc 18000000.axi: bus0: Using SPROM revision 8 provided by platform.
[    2.275083] bgmac_bcma bcma0:3: Found PHY addr: 0
[    2.279805] bgmac_bcma bcma0:3: Support for Roboswitch not implemented
[    2.286378] bgmac_bcma bcma0:3: Invalid MAC addr: 00:00:00:00:00:00
[    2.292699] bgmac_bcma bcma0:3: Using random MAC: 86:ef:8e:07:63:dd
[    2.299694] b53-srab-switch b53-srab-switch: invalid resource
[    2.305522] b53-srab-switch: probe of b53-srab-switch failed with error -22
[    2.313369] bgmac_bcma bcma0:5: Found PHY addr: 0
[    2.318107] bgmac_bcma bcma0:5: Support for Roboswitch not implemented
[    2.324684] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    2.330971] bgmac_bcma bcma0:5: Using random MAC: 36:48:ba:70:94:7f
[    2.338531] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    2.343876] bgmac_bcma: probe of bcma0:6 failed with error -524
[    2.349915] pcie_iproc_bcma bcma0:7: host bridge /axi@18000000/pcie@12000 ranges:
[    2.357467] pcie_iproc_bcma bcma0:7:   No bus range found for /axi@18000000/pcie@12000, using [bus 00-ff]
[    2.367084] OF: /axi@18000000/pcie@12000: Missing device_type
[    2.372852] pcie_iproc_bcma bcma0:7: non-prefetchable memory resource required
[    2.492244] pcie_iproc_bcma bcma0:7: link: UP
[    2.496726] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    2.503041] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.508546] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    2.515475] pci 0000:00:00.0: [14e4:d612] type 01 class 0x060400
[    2.521501] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.531228] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    2.538157] PCI: bus0: Fast back to back transfers disabled
[    2.543773] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.551933] pci 0000:01:00.0: [14e4:4365] type 00 class 0x028000
[    2.557987] pci_bus 0000:01: 2-byte config write to 0000:01:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.567692] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.574512] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x007fffff 64bit]
[    2.581319] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x000fffff 64bit pref]
[    2.588645] pci 0000:01:00.0: supports D1 D2
[    2.593694] PCI: bus1: Fast back to back transfers disabled
[    2.599293] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.605957] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x08bfffff]
[    2.612775] pci 0000:00:00.0: BAR 9: assigned [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.620536] pci 0000:01:00.0: BAR 2: assigned [mem 0x08000000-0x087fffff 64bit]
[    2.627879] pci 0000:01:00.0: BAR 4: assigned [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.635656] pci 0000:01:00.0: BAR 0: assigned [mem 0x08800000-0x08807fff 64bit]
[    2.642992] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.647968] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x08bfffff]
[    2.654783] pci 0000:00:00.0:   bridge window [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.662735] pcie_iproc_bcma bcma0:8: host bridge /axi@18000000/pcie@13000 ranges:
[    2.670250] pcie_iproc_bcma bcma0:8:   No bus range found for /axi@18000000/pcie@13000, using [bus 00-ff]
[    2.679875] pcie_iproc_bcma bcma0:8: non-prefetchable memory resource required
[    2.802244] pcie_iproc_bcma bcma0:8: link: UP
[    2.806724] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    2.813039] pci_bus 0001:00: root bus resource [bus 00-ff]
[    2.818541] pci_bus 0001:00: root bus resource [mem 0x20000000-0x27ffffff]
[    2.825467] pci 0001:00:00.0: [14e4:d612] type 01 class 0x060400
[    2.831493] pci_bus 0001:00: 2-byte config write to 0001:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.841220] pci 0001:00:00.0: PME# supported from D0 D3hot D3cold
[    2.848117] PCI: bus0: Fast back to back transfers disabled
[    2.853727] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.861884] pci 0001:01:00.0: [14e4:4365] type 00 class 0x028000
[    2.867936] pci_bus 0001:01: 2-byte config write to 0001:01:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.877645] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.884460] pci 0001:01:00.0: reg 0x18: [mem 0x00000000-0x007fffff 64bit]
[    2.891268] pci 0001:01:00.0: reg 0x20: [mem 0x00000000-0x000fffff 64bit pref]
[    2.898593] pci 0001:01:00.0: supports D1 D2
[    2.903658] PCI: bus1: Fast back to back transfers disabled
[    2.909251] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    2.915914] pci 0001:00:00.0: BAR 8: assigned [mem 0x20000000-0x20bfffff]
[    2.922732] pci 0001:00:00.0: BAR 9: assigned [mem 0x20c00000-0x20cfffff 64bit pref]
[    2.930493] pci 0001:01:00.0: BAR 2: assigned [mem 0x20000000-0x207fffff 64bit]
[    2.937838] pci 0001:01:00.0: BAR 4: assigned [mem 0x20c00000-0x20cfffff 64bit pref]
[    2.945614] pci 0001:01:00.0: BAR 0: assigned [mem 0x20800000-0x20807fff 64bit]
[    2.952951] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.957925] pci 0001:00:00.0:   bridge window [mem 0x20000000-0x20bfffff]
[    2.964737] pci 0001:00:00.0:   bridge window [mem 0x20c00000-0x20cfffff 64bit pref]
[    2.972685] pcie_iproc_bcma bcma0:9: host bridge /axi@18000000/pcie@14000 ranges:
[    2.980199] pcie_iproc_bcma bcma0:9:   No bus range found for /axi@18000000/pcie@14000, using [bus 00-ff]
[    2.989828] pcie_iproc_bcma bcma0:9: non-prefetchable memory resource required
[    3.112241] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    3.118443] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    3.125228] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    3.134297] bcma-host-soc 18000000.axi: bus0: Bus registered
[    3.140824] NET: Registered protocol family 10
[    3.146145] Segment Routing with IPv6
[    3.149867] NET: Registered protocol family 17
[    3.154595] 8021q: 802.1Q VLAN Support v1.8
[    3.158837] Registering SWP/SWPB emulation handler
[    3.166558] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    3.174667] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    3.183155] UBI: auto-attach mtd4
[    3.186489] ubi0: attaching mtd4
[    3.816547] ubi0: scanning is finished
[    3.828942] ubi0: attached mtd4 (name "ubi", size 122 MiB)
[    3.834485] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.841379] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.848185] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.855164] ubi0: good PEBs: 976, bad PEBs: 0, corrupted PEBs: 0
[    3.861182] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.868425] ubi0: max/mean erase counter: 11/6, WL threshold: 4096, image sequence number: 2117940693
[    3.877677] ubi0: available PEBs: 0, total reserved PEBs: 976, PEBs reserved for bad PEB handling: 20
[    3.886962] ubi0: background thread "ubi_bgt0d" started, PID 396
[    3.893803] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.899316] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.909789] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    3.917764] Freeing unused kernel memory: 1024K
[    3.962363] Run /sbin/init as init process
[    3.966473]   with arguments:
[    3.966475]     /sbin/init
[    3.966477]   with environment:
[    3.966480]     HOME=/
[    3.966482]     TERM=linux
[    4.163710] init: Console is alive
[    4.167310] init: - watchdog -
[    4.448281] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.510111] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    4.516924] usbcore: registered new interface driver usbfs
[    4.523425] usbcore: registered new interface driver hub
[    4.528837] usbcore: registered new device driver usb
[    4.536166] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    4.545084] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.552724] fsl-ehci: Freescale EHCI Host controller driver
[    4.559224] ehci-platform: EHCI generic platform driver
[    4.567121] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    4.571661] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.575364] ehci-platform 18021000.usb: EHCI Host Controller
[    4.583290] ohci-platform: OHCI generic platform driver
[    4.586883] ehci-platform 18021000.usb: new USB bus registered, assigned bus number 1
[    4.592180] ohci-platform 18022000.usb: Generic Platform OHCI controller
[    4.600048] ehci-platform 18021000.usb: irq 45, io mem 0x18021000
[    4.606720] ohci-platform 18022000.usb: new USB bus registered, assigned bus number 2
[    4.620763] ohci-platform 18022000.usb: irq 45, io mem 0x18022000
[    4.642312] ehci-platform 18021000.usb: USB 2.0 started, EHCI 1.00
[    4.649004] hub 1-0:1.0: USB hub found
[    4.652853] hub 1-0:1.0: 2 ports detected
[    4.657638] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    4.706768] hub 2-0:1.0: USB hub found
[    4.710643] hub 2-0:1.0: 2 ports detected
[    4.715175] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    4.741991] xhci-hcd 18023000.usb: xHCI Host Controller
[    4.747289] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 3
[    4.754944] xhci-hcd 18023000.usb: hcc params 0x02501164 hci version 0x100 quirks 0x0000200000010010
[    4.764150] xhci-hcd 18023000.usb: irq 46, io mem 0x18023000
[    4.769938] xhci-hcd 18023000.usb: xHCI Host Controller
[    4.775209] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 4
[    4.782644] xhci-hcd 18023000.usb: Host supports USB 3.0 SuperSpeed
[    4.790982] hub 3-0:1.0: USB hub found
[    4.794881] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    4.802493] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    4.807819] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.818869] hub 4-0:1.0: USB hub found
[    4.822724] hub 4-0:1.0: 1 port detected
[    4.827327] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    4.829594] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.835720] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    4.850352] init: - preinit -
[   10.086902] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   10.092746] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 550
[   10.194043] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.201899] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.211870] UBIFS (ubi0:1): FS size: 114532352 bytes (109 MiB, 902 LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs)
[   10.222509] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   10.229143] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID AB553E02-87EF-44FA-8A4E-2366255F630B, small LPT model
[   10.241669] mount_root: overlay filesystem has not been fully initialized yet
[   10.249279] mount_root: switching to ubifs overlay
[   10.514528] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.601684] procd: - early -
[   10.604757] procd: - watchdog -
[   11.135953] procd: - watchdog -
[   11.139351] procd: - ubus -
[   11.196883] procd: - init -
[   11.608478] urngd: v1.0.2 started.
[   12.635197] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.697697] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   12.705325] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   12.756233] PPP generic driver version 2.4.2
[   12.761660] NET: Registered protocol family 24
[   12.771067] usbcore: registered new interface driver brcmfmac
[   12.777011] pci 0000:00:00.0: enabling device (0140 -> 0142)
[   12.782727] brcmfmac 0000:01:00.0: enabling device (0140 -> 0142)
[   12.902540] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   12.911416] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.bin failed with error -2
[   13.134702] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.txt failed with error -2
[   13.145854] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   13.435014] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   13.443851] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   13.455112] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43664/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   13.475996] pci 0001:00:00.0: enabling device (0140 -> 0142)
[   13.481693] brcmfmac 0001:01:00.0: enabling device (0140 -> 0142)
[   13.488478] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[   13.612640] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   13.621470] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.bin failed with error -2
[   13.636321] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.txt failed with error -2
[   13.647492] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   13.918043] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   13.926940] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   13.938399] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43664/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   13.973802] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[   13.977360] kmodloader: done loading kernel modules from /etc/modules.d/*
[   21.766274] br-lan: port 1(wlan0) entered blocking state
[   21.771650] br-lan: port 1(wlan0) entered disabled state
[   21.777385] device wlan0 entered promiscuous mode
[   22.076948] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   22.083508] br-lan: port 1(wlan0) entered blocking state
[   22.088841] br-lan: port 1(wlan0) entered forwarding state
[   22.094923] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   22.141120] br-lan: port 2(wlan1) entered blocking state
[   22.146524] br-lan: port 2(wlan1) entered disabled state
[   22.152062] device wlan1 entered promiscuous mode
[   22.845526] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   22.852064] br-lan: port 2(wlan1) entered blocking state
[   22.857430] br-lan: port 2(wlan1) entered forwarding state
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.176 (arinc9@arinc9-PC) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r20028-43d71ad93e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Apr 27 20:28:15 2023
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Asus RT-AC88U
[    0.000000] earlycon: ns16550 at MMIO 0x18000300 (options '115200n8')
[    0.000000] printk: bootconsole [ns16550] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Hit pending asynchronous external abort (FSR=0x00001c06) during first unmask, this is most likely caused by a firmware/bootloader bug.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  [mem 0x0000000008000000-0x000000009fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   node   0: [mem 0x0000000088000000-0x000000009fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000009fffffff]
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000]   HighMem zone: 98304 pages, LIFO batch:31
[    0.000000] percpu: Embedded 14 pages/cpu s27340 r8192 d21812 u57344
[    0.000000] pcpu-alloc: s27340 r8192 d21812 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130784
[    0.000000] Kernel command line: earlycon
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 509296K/524288K available (5993K kernel code, 562K rwdata, 1360K rodata, 1024K init, 286K bss, 14992K reserved, 0K cma-reserved, 393216K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x0a130000 -> 0x3a530000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x7e530001
[    0.000011] sched_clock: 64 bits at 700MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008081] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xa17102bcf3, max_idle_ns: 440795224838 ns
[    0.019255] Switching to timer-based delay loop, resolution 1ns
[    0.025413] Calibrating delay loop (skipped), value calculated using timer frequency.. 1400.00 BogoMIPS (lpj=7000000)
[    0.036139] pid_max: default: 32768 minimum: 301
[    0.040883] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.048306] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.056654] CPU: Testing write buffer coherency: ok
[    0.061607] CPU0: Spectre v2: using BPIALL workaround
[    0.066922] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.073127] Setting up static identity map for 0x100000 - 0x10003c
[    0.079511] rcu: Hierarchical SRCU implementation.
[    0.084462] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.092405] smp: Bringing up secondary CPUs ...
[    0.097593] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.097600] CPU1: Spectre v2: using BPIALL workaround
[    0.108473] smp: Brought up 1 node, 2 CPUs
[    0.112594] SMP: Total of 2 processors activated (2800.00 BogoMIPS).
[    0.119033] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.127540] CPU: This may indicate a broken bootloader or firmware.
[    0.135987] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.145899] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.152878] pinctrl core: initialized pinctrl subsystem
[    0.158754] NET: Registered protocol family 16
[    0.163757] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.171306] thermal_sys: Registered thermal governor 'step_wise'
[    0.191512] clocksource: Switched to clocksource arm_global_timer
[    0.204435] NET: Registered protocol family 2
[    0.208971] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.216739] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.225209] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.232955] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.240045] TCP: Hash tables configured (established 1024 bind 1024)
[    0.246524] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.253135] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.260320] NET: Registered protocol family 1
[    0.264760] PCI: CLS 0 bytes, default 64
[    0.269996] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.278509] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.284450] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.295502] bounce: pool size: 64 pages
[    0.300247] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.307411] printk: console [ttyS0] disabled
[    0.311834] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 26, base_baud = 7812500) is a 16550
[    0.320750] printk: console [ttyS0] enabled
[    0.329169] printk: bootconsole [ns16550] disabled
[    0.339762] bcm2835-rng 18004000.rng: hwrng registered
[    1.023547] random: crng init done
[    1.027958] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    1.034384] nand: ESMT NAND 128MiB 3,3V 8-bit
[    1.038753] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.046382] iproc_nand 18028000.nand-controller: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    1.057296] Scanning device for bad blocks
[    1.962088] 3 fixed-partitions partitions found on MTD device brcmnand.0
[    1.969115] Creating 3 MTD partitions on "brcmnand.0":
[    1.974302] 0x000000000000-0x000000080000 : "boot"
[    1.979519] 0x000000080000-0x000000200000 : "nvram"
[    1.984847] 0x000000200000-0x000008000000 : "firmware"
[    1.991417] 2 trx partitions found on MTD device firmware
[    1.996840] Creating 2 MTD partitions on "firmware":
[    2.001838] 0x00000000001c-0x000000400000 : "linux"
[    2.006724] mtd: partition "linux" doesn't start on an erase/write block boundary -- force read-only
[    2.016379] 0x000000400000-0x000007e00000 : "ubi"
[    2.023077] bcm_iproc 18029200.spi: using bspi-mspi mode
[    2.031627] iproc-mdio 18003000.mdio: Broadcom iProc MDIO bus registered
[    2.039817] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    2.047688] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    2.053832] bcma-host-soc 18000000.axi: bus0: Found chip with id 53030, rev 0x00 and package 0x00
[    2.062814] bcma-host-soc 18000000.axi: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    2.073379] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.073388] bcma-host-soc 18000000.axi: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x05, class 0x0)
[    2.084115] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.084123] bcma-host-soc 18000000.axi: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x04, class 0x0)
[    2.094098] bcma-host-soc 18000000.axi: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    2.104502] bcma-host-soc 18000000.axi: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    2.114916] bcma-host-soc 18000000.axi: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    2.125321] bcma-host-soc 18000000.axi: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    2.135668] bcma-host-soc 18000000.axi: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    2.146211] bcma-host-soc 18000000.axi: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    2.156750] bcma-host-soc 18000000.axi: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    2.167302] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.167309] bcma-host-soc 18000000.axi: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x07, class 0x0)
[    2.179346] bcma-host-soc 18000000.axi: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x07, class 0x0)
[    2.189721] bcma-host-soc 18000000.axi: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x07, class 0x0)
[    2.200106] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.200113] bcma-host-soc 18000000.axi: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    2.210316] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.210323] bcma-host-soc 18000000.axi: bus0: Core 14 found: I2S (manuf 0x4BF, id 0x834, rev 0x03, class 0x0)
[    2.220350] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.220357] bcma-host-soc 18000000.axi: bus0: Core 15 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    2.231705] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.231712] bcma-host-soc 18000000.axi: bus0: Core 16 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    2.244435] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.244442] bcma-host-soc 18000000.axi: bus0: Core 17 found: ROM (manuf 0x4BF, id 0x508, rev 0x08, class 0x0)
[    2.254494] bcma-host-soc 18000000.axi: bus0: Core 18 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    2.266091] bcma-host-soc 18000000.axi: bus0: bcma_of_get_irq() failed with rc=-22
[    2.266098] bcma-host-soc 18000000.axi: bus0: Core 19 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    2.277558] bcma-host-soc 18000000.axi: bus0: Flash type not supported
[    2.297522] bcma-host-soc 18000000.axi: bus0: Using SPROM revision 8 provided by platform.
[    2.297728] bgmac_bcma bcma0:3: Found PHY addr: 0
[    2.302507] bgmac_bcma bcma0:3: Support for Roboswitch not implemented
[    2.309053] bgmac_bcma bcma0:3: Invalid MAC addr: 00:00:00:00:00:00
[    2.315373] bgmac_bcma bcma0:3: Using random MAC: 86:ba:b3:fa:98:3d
[    2.322446] b53-srab-switch b53-srab-switch: invalid resource
[    2.328230] b53-srab-switch: probe of b53-srab-switch failed with error -22
[    2.335881] bgmac_bcma bcma0:4: Found PHY addr: 30 (NOREGS)
[    2.341515] bgmac_bcma bcma0:4: Support for Roboswitch not implemented
[    2.349371] bgmac_bcma bcma0:5: Found PHY addr: 0
[    2.354148] bgmac_bcma bcma0:5: Support for Roboswitch not implemented
[    2.360702] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    2.367039] bgmac_bcma bcma0:5: Using random MAC: 72:d3:0a:52:60:44
[    2.374623] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    2.379904] bgmac_bcma: probe of bcma0:6 failed with error -524
[    2.385982] pcie_iproc_bcma bcma0:7: host bridge /axi@18000000/pcie@12000 ranges:
[    2.393542] pcie_iproc_bcma bcma0:7:   No bus range found for /axi@18000000/pcie@12000, using [bus 00-ff]
[    2.403154] OF: /axi@18000000/pcie@12000: Missing device_type
[    2.408911] pcie_iproc_bcma bcma0:7: non-prefetchable memory resource required
[    2.531368] pcie_iproc_bcma bcma0:7: link: UP
[    2.535856] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    2.542173] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.547672] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    2.554597] pci 0000:00:00.0: [14e4:d612] type 01 class 0x060400
[    2.560625] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.570354] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    2.577266] PCI: bus0: Fast back to back transfers disabled
[    2.582885] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.591033] pci 0000:01:00.0: [14e4:4365] type 00 class 0x028000
[    2.597086] pci_bus 0000:01: 2-byte config write to 0000:01:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.606791] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.613610] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x007fffff 64bit]
[    2.620417] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x000fffff 64bit pref]
[    2.627744] pci 0000:01:00.0: supports D1 D2
[    2.632798] PCI: bus1: Fast back to back transfers disabled
[    2.638398] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.645064] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x08bfffff]
[    2.651881] pci 0000:00:00.0: BAR 9: assigned [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.659642] pci 0000:01:00.0: BAR 2: assigned [mem 0x08000000-0x087fffff 64bit]
[    2.666985] pci 0000:01:00.0: BAR 4: assigned [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.674768] pci 0000:01:00.0: BAR 0: assigned [mem 0x08800000-0x08807fff 64bit]
[    2.682108] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.687082] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x08bfffff]
[    2.693895] pci 0000:00:00.0:   bridge window [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.701838] pcie_iproc_bcma bcma0:8: host bridge /axi@18000000/pcie@13000 ranges:
[    2.709354] pcie_iproc_bcma bcma0:8:   No bus range found for /axi@18000000/pcie@13000, using [bus 00-ff]
[    2.718981] pcie_iproc_bcma bcma0:8: non-prefetchable memory resource required
[    2.841369] pcie_iproc_bcma bcma0:8: link: UP
[    2.845847] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    2.852164] pci_bus 0001:00: root bus resource [bus 00-ff]
[    2.857664] pci_bus 0001:00: root bus resource [mem 0x20000000-0x27ffffff]
[    2.864590] pci 0001:00:00.0: [14e4:d612] type 01 class 0x060400
[    2.870617] pci_bus 0001:00: 2-byte config write to 0001:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.880343] pci 0001:00:00.0: PME# supported from D0 D3hot D3cold
[    2.887229] PCI: bus0: Fast back to back transfers disabled
[    2.892846] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.900994] pci 0001:01:00.0: [14e4:4365] type 00 class 0x028000
[    2.907044] pci_bus 0001:01: 2-byte config write to 0001:01:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.916748] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.923567] pci 0001:01:00.0: reg 0x18: [mem 0x00000000-0x007fffff 64bit]
[    2.930374] pci 0001:01:00.0: reg 0x20: [mem 0x00000000-0x000fffff 64bit pref]
[    2.937704] pci 0001:01:00.0: supports D1 D2
[    2.942766] PCI: bus1: Fast back to back transfers disabled
[    2.948366] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    2.955030] pci 0001:00:00.0: BAR 8: assigned [mem 0x20000000-0x20bfffff]
[    2.961849] pci 0001:00:00.0: BAR 9: assigned [mem 0x20c00000-0x20cfffff 64bit pref]
[    2.969609] pci 0001:01:00.0: BAR 2: assigned [mem 0x20000000-0x207fffff 64bit]
[    2.976954] pci 0001:01:00.0: BAR 4: assigned [mem 0x20c00000-0x20cfffff 64bit pref]
[    2.984729] pci 0001:01:00.0: BAR 0: assigned [mem 0x20800000-0x20807fff 64bit]
[    2.992067] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.997041] pci 0001:00:00.0:   bridge window [mem 0x20000000-0x20bfffff]
[    3.003856] pci 0001:00:00.0:   bridge window [mem 0x20c00000-0x20cfffff 64bit pref]
[    3.011808] pcie_iproc_bcma bcma0:9: host bridge /axi@18000000/pcie@14000 ranges:
[    3.019322] pcie_iproc_bcma bcma0:9:   No bus range found for /axi@18000000/pcie@14000, using [bus 00-ff]
[    3.028946] pcie_iproc_bcma bcma0:9: non-prefetchable memory resource required
[    3.151368] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    3.157567] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    3.164357] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    3.173422] bcma-host-soc 18000000.axi: bus0: Bus registered
[    3.179945] NET: Registered protocol family 10
[    3.185353] Segment Routing with IPv6
[    3.189079] NET: Registered protocol family 17
[    3.193820] 8021q: 802.1Q VLAN Support v1.8
[    3.198064] Registering SWP/SWPB emulation handler
[    3.205772] b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0
[    3.335320] b53-srab-switch 18007000.ethernet-switch lan4 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[    3.347737] b53-srab-switch 18007000.ethernet-switch lan3 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] (irq=POLL)
[    3.360139] b53-srab-switch 18007000.ethernet-switch lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] (irq=POLL)
[    3.372590] b53-srab-switch 18007000.ethernet-switch lan1 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] (irq=POLL)
[    3.385045] b53-srab-switch 18007000.ethernet-switch wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] (irq=POLL)
[    3.397630] b53-srab-switch 18007000.ethernet-switch: Using legacy PHYLIB callbacks. Please migrate to PHYLINK!
[    3.408293] b53-srab-switch 18007000.ethernet-switch: Using legacy PHYLIB callbacks. Please migrate to PHYLINK!
[    3.419242] DSA: tree 0 setup
[    3.422913] UBI: auto-attach mtd4
[    3.426248] ubi0: attaching mtd4
[    3.755774] ubi0: scanning is finished
[    3.790065] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 913 LEBs
[    3.797063] ubi0: attached mtd4 (name "ubi", size 122 MiB)
[    3.802605] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.809496] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.816303] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.823283] ubi0: good PEBs: 976, bad PEBs: 0, corrupted PEBs: 0
[    3.829298] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.836537] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1682627295
[    3.845698] ubi0: available PEBs: 0, total reserved PEBs: 976, PEBs reserved for bad PEB handling: 20
[    3.854982] ubi0: background thread "ubi_bgt0d" started, PID 442
[    3.861848] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.867385] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.908191] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    3.916223] Freeing unused kernel memory: 1024K
[    3.951488] Run /sbin/init as init process
[    3.955598]   with arguments:
[    3.955601]     /sbin/init
[    3.955604]   with environment:
[    3.955606]     HOME=/
[    3.955608]     TERM=linux
[    4.334461] init: Console is alive
[    4.338142] init: - watchdog -
[    4.825662] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.920006] usbcore: registered new interface driver usbfs
[    4.925661] usbcore: registered new interface driver hub
[    4.931084] usbcore: registered new device driver usb
[    4.939543] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.947022] fsl-ehci: Freescale EHCI Host controller driver
[    4.953654] ehci-platform: EHCI generic platform driver
[    4.961781] ehci-platform 18021000.usb: EHCI Host Controller
[    4.967524] ehci-platform 18021000.usb: new USB bus registered, assigned bus number 1
[    4.969777] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.975635] ehci-platform 18021000.usb: irq 45, io mem 0x18021000
[    4.983028] ohci-platform: OHCI generic platform driver
[    4.993331] ohci-platform 18022000.usb: Generic Platform OHCI controller
[    5.000072] ohci-platform 18022000.usb: new USB bus registered, assigned bus number 2
[    5.008078] ohci-platform 18022000.usb: irq 45, io mem 0x18022000
[    5.011395] ehci-platform 18021000.usb: USB 2.0 started, EHCI 1.00
[    5.020883] hub 1-0:1.0: USB hub found
[    5.024777] hub 1-0:1.0: 2 ports detected
[    5.086011] hub 2-0:1.0: USB hub found
[    5.089970] hub 2-0:1.0: 2 ports detected
[    5.121436] xhci-hcd 18023000.usb: xHCI Host Controller
[    5.126714] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 3
[    5.134348] xhci-hcd 18023000.usb: hcc params 0x02501164 hci version 0x100 quirks 0x0000200000010010
[    5.143567] xhci-hcd 18023000.usb: irq 46, io mem 0x18023000
[    5.149383] xhci-hcd 18023000.usb: xHCI Host Controller
[    5.154652] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 4
[    5.162080] xhci-hcd 18023000.usb: Host supports USB 3.0 SuperSpeed
[    5.170481] hub 3-0:1.0: USB hub found
[    5.174327] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    5.181739] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.190256] hub 4-0:1.0: USB hub found
[    5.194091] hub 4-0:1.0: 1 port detected
[    5.200781] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.210739] init: - preinit -
[    8.032949] b53-srab-switch 18007000.ethernet-switch lan1: configuring for phy/gmii link mode
[    8.041590] bgmac_bcma bcma0:4 eth1: Link is Up - 1Gbps/Full - flow control off
[    8.049091] 8021q: adding VLAN 0 to HW filter on device lan1
[    8.111474] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   12.276513] UBIFS (ubi0:1): default file-system created
[   12.282472] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   12.288255] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 600
[   12.359220] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   12.367100] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   12.377042] UBIFS (ubi0:1): FS size: 114532352 bytes (109 MiB, 902 LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs)
[   12.387675] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   12.394309] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 504ED9F2-DE30-49D7-90C6-6F356E59E9C9, small LPT model
[   12.407496] mount_root: overlay filesystem has not been fully initialized yet
[   12.415031] mount_root: switching to ubifs overlay
[   12.424677] urandom-seed: Seed file not found (/etc/urandom.seed)
[   12.584972] procd: - early -
[   12.587974] procd: - watchdog -
[   13.152553] procd: - watchdog -
[   13.206732] procd: - ubus -
[   13.264183] procd: - init -
[   13.660297] urngd: v1.0.2 started.
[   14.690802] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.753316] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   14.760911] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   14.814110] PPP generic driver version 2.4.2
[   14.819521] NET: Registered protocol family 24
[   14.828927] usbcore: registered new interface driver brcmfmac
[   14.834894] pci 0000:00:00.0: enabling device (0140 -> 0142)
[   14.840578] brcmfmac 0000:01:00.0: enabling device (0140 -> 0142)
[   14.971667] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   14.980533] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.bin failed with error -2
[   15.203507] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.txt failed with error -2
[   15.214656] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   15.514114] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   15.522947] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   15.534212] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43664/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   15.555398] pci 0001:00:00.0: enabling device (0140 -> 0142)
[   15.561094] brcmfmac 0001:01:00.0: enabling device (0140 -> 0142)
[   15.681816] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   15.690621] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.bin failed with error -2
[   15.705838] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.txt failed with error -2
[   15.717028] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   15.984552] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   15.993397] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   16.004723] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43664/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   16.035739] kmodloader: done loading kernel modules from /etc/modules.d/*
[   29.856504] bgmac_bcma bcma0:4 eth1: Link is Up - 1Gbps/Full - flow control off
[   29.859902] b53-srab-switch 18007000.ethernet-switch lan1: configuring for phy/gmii link mode
[   29.873099] 8021q: adding VLAN 0 to HW filter on device lan1
[   29.931614] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   29.939378] br-lan: port 1(lan1) entered blocking state
[   29.944721] br-lan: port 1(lan1) entered disabled state
[   29.950392] device lan1 entered promiscuous mode
[   29.955126] device eth1 entered promiscuous mode
[   30.075120] b53-srab-switch 18007000.ethernet-switch lan2: configuring for phy/gmii link mode
[   30.087531] 8021q: adding VLAN 0 to HW filter on device lan2
[   30.151875] br-lan: port 2(lan2) entered blocking state
[   30.157154] br-lan: port 2(lan2) entered disabled state
[   30.162917] device lan2 entered promiscuous mode
[   30.255498] b53-srab-switch 18007000.ethernet-switch lan3: configuring for phy/gmii link mode
[   30.271826] 8021q: adding VLAN 0 to HW filter on device lan3
[   30.279162] b53-srab-switch 18007000.ethernet-switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   30.364547] br-lan: port 3(lan3) entered blocking state
[   30.369830] br-lan: port 3(lan3) entered disabled state
[   30.375541] device lan3 entered promiscuous mode
[   30.461507] br-lan: port 3(lan3) entered blocking state
[   30.466750] br-lan: port 3(lan3) entered forwarding state
[   30.472334] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   30.503854] b53-srab-switch 18007000.ethernet-switch lan4: configuring for phy/gmii link mode
[   30.512701] 8021q: adding VLAN 0 to HW filter on device lan4
[   30.571694] br-lan: port 4(lan4) entered blocking state
[   30.576942] br-lan: port 4(lan4) entered disabled state
[   30.582743] device lan4 entered promiscuous mode
[   30.703564] b53-srab-switch 18007000.ethernet-switch extsw: configuring for fixed/rgmii link mode
[   30.712647] 8021q: adding VLAN 0 to HW filter on device extsw
[   30.718487] b53-srab-switch 18007000.ethernet-switch extsw: Link is Up - 1Gbps/Full - flow control rx/tx
[   30.771683] br-lan: port 5(extsw) entered blocking state
[   30.777013] br-lan: port 5(extsw) entered disabled state
[   30.782749] device extsw entered promiscuous mode
[   30.871464] br-lan: port 5(extsw) entered blocking state
[   30.876797] br-lan: port 5(extsw) entered forwarding state
[   30.916688] b53-srab-switch 18007000.ethernet-switch wan: configuring for phy/gmii link mode
[   30.925425] 8021q: adding VLAN 0 to HW filter on device wan
Rafał Miłecki Aug. 1, 2023, 12:16 p.m. UTC | #2
On 2023-08-01 12:42, Arınç ÜNAL wrote:
> The NVMEM_BRCM_NVRAM driver won't work properly with NVRAM in NAND. It
> causes the devices with NVRAM in NAND, such as ASUS RT-AC88U, to 
> bootloop.
> Until the driver is fixed, disable it.

Driver works and it useful for non-NAND devices. By disabling it you
regress those devices. Surely this can be handled better.


> Disable NVMEM too as the bgmac_bcma driver will hang trying to retrieve 
> the
> MAC address without NVMEM_BRCM_NVRAM enabled.

This would be nice to fix instead hiding the bug.
Arınç ÜNAL Aug. 1, 2023, 12:28 p.m. UTC | #3
On 1.08.2023 15:16, Rafał Miłecki wrote:
> On 2023-08-01 12:42, Arınç ÜNAL wrote:
>> The NVMEM_BRCM_NVRAM driver won't work properly with NVRAM in NAND. It
>> causes the devices with NVRAM in NAND, such as ASUS RT-AC88U, to 
>> bootloop.
>> Until the driver is fixed, disable it.
> 
> Driver works and it useful for non-NAND devices. By disabling it you
> regress those devices. Surely this can be handled better.

How about making a subtarget for NAND devices? The kernel config will be 
separate so we can disable NVMEM for that subtarget.

You mentioned contacting Broadcom regarding this issue around 6 months 
ago. Any news on that?

> 
> 
>> Disable NVMEM too as the bgmac_bcma driver will hang trying to 
>> retrieve the
>> MAC address without NVMEM_BRCM_NVRAM enabled.
> 
> This would be nice to fix instead hiding the bug.

I've got no interest to learn the NVMEM subsystem to take a crack at 
fixing it at the moment. For now, the best I can do is send a separate 
mail to openwrt-devel as a mean to report this bug.

Arınç
Arınç ÜNAL Aug. 3, 2023, 7:38 a.m. UTC | #4
On 1.08.2023 15:28, Arınç ÜNAL wrote:
> On 1.08.2023 15:16, Rafał Miłecki wrote:
>> On 2023-08-01 12:42, Arınç ÜNAL wrote:
>>> The NVMEM_BRCM_NVRAM driver won't work properly with NVRAM in NAND. It
>>> causes the devices with NVRAM in NAND, such as ASUS RT-AC88U, to 
>>> bootloop.
>>> Until the driver is fixed, disable it.
>>
>> Driver works and it useful for non-NAND devices. By disabling it you
>> regress those devices. Surely this can be handled better.
> 
> How about making a subtarget for NAND devices? The kernel config will be 
> separate so we can disable NVMEM for that subtarget.

Do you approve this? I don't intend to send another patch for you to 
shoot down.

Arınç
diff mbox series

Patch

diff --git a/target/linux/bcm53xx/config-5.15 b/target/linux/bcm53xx/config-5.15
index 9cd1f079d1..6b7fa3c4ad 100644
--- a/target/linux/bcm53xx/config-5.15
+++ b/target/linux/bcm53xx/config-5.15
@@ -223,9 +223,6 @@  CONFIG_NET_FLOW_LIMIT=y
 CONFIG_NET_SELFTESTS=y
 CONFIG_NET_SWITCHDEV=y
 CONFIG_NR_CPUS=2
-CONFIG_NVMEM=y
-CONFIG_NVMEM_BRCM_NVRAM=y
-CONFIG_NVMEM_SYSFS=y
 CONFIG_OF=y
 CONFIG_OF_ADDRESS=y
 CONFIG_OF_EARLY_FLATTREE=y
diff --git a/target/linux/bcm53xx/config-6.1 b/target/linux/bcm53xx/config-6.1
index d96beb687d..c9d9dbd652 100644
--- a/target/linux/bcm53xx/config-6.1
+++ b/target/linux/bcm53xx/config-6.1
@@ -224,9 +224,6 @@  CONFIG_NET_FLOW_LIMIT=y
 CONFIG_NET_SELFTESTS=y
 CONFIG_NET_SWITCHDEV=y
 CONFIG_NR_CPUS=2
-CONFIG_NVMEM=y
-CONFIG_NVMEM_BRCM_NVRAM=y
-CONFIG_NVMEM_SYSFS=y
 CONFIG_OF=y
 CONFIG_OF_ADDRESS=y
 CONFIG_OF_EARLY_FLATTREE=y