Build for Linksys EA9500

Thanks for the info.

My problem is that not all of my ports are working. It looks like the hardware is broken (lights don't come on) on some of the ports and I was thinking I could change how they are switched and use the working ports.

This is my second router and It is more or less just to play with and wifi works.

The DSA driver is there a file with the setup on the router, or only in the sourcecode? That could be modified.

@npcomplete were you ever able to identify the issue that caused the December build to be pulled? I noticed the change logs you listed a new wifi driver that also came with that build.

I gave up on that build entirely. Instead, I'm working on a kernel v4.19 build.

1 Like

Awesome news! In an attempt to not sound pushy :yum: any ETA when you think the replacement build will be published? :stuck_out_tongue_winking_eye:

And, any news on your commits getting accepted upstream so your work can be utilized from the project directly and we can compile from OpenWRT source instead of you having to maintain a side build?

Actually, everything is already accepted in Kernel upstream. Not sure why EA9500 builds aren't enabled. Although Openwrt will keep using the non-DSA driver and that will still work.

1 Like

Does that summarize into your builds will have functioning wifi and the OpenWRT compiled versions will not (*DSA vs *non-DSA)?

The wifi firmware has also been accepted upstream. Which means that wifi will work in OpenWrt builds. Anyone should be able to download OpenWrt source and enable EA9500 build from target/linux/bcm53xx/image/MakeFile and compile.

1 Like

Thanks for the info @npcomplete , it's much appreciated.

Just did a search on DSA vs non- DSA (Distributed Switch Architecture) driver, and I have come to the conclusion that a DSA enabled driver allows each port to have it's own interface while non-dsa does not. I assume this rolls us to more advanced feature sets like vlan tagging and traffic port monitoring?

Absolutely correct.

1 Like

Reading more on it:
https://openwrt.org/docs/techref/swconfig

"DSA's development was parallel to swconfig, written by the OpenWrt project. The main difference between swconfig and DSA is that DSA-supported switches show one network interface per port, whereas swconfig-configured switches show up as a single port, which limits the amount of information that can be extracted from the switch. For example, you cannot have per-port traffic statistics with swconfig. That limitation is what led to the creation of the switchdev framework, when swconfig was proposed (then refused) for inclusion in mainline. Another goal of switchdev was to support bridge hardware offloading and network interface card (NIC) virtualization…”"

So would OpenWRT source utilize swconfig then, vs swconfig which is what you mean by non-DSA driver? Would utilizing the switchdev framework work as an alternative to DSA?

Yes, swconfig == Non-DSA driver model and DSA depends on swtichdev framework.

1 Like

Thanks @npcomplete , just getting my bearings right :slight_smile: Great job on this, I checked out your site as well. Lot's of detailed info.

Compiling now :slight_smile: Thanks @npcomplete

Question, I am building against OpenWRT master branch, so I will get default swconfig. How can I , on my own, enable the DSA driver for the switch, what do I need to do exactly to do this? I think this would need to be the only mod vs what's accepted upstream, correct?

Also, I noticed that even though I am choosing to compile only for ea9500, I still get a bunch of other chk/trx files in the completed target, normal?

Enable:

  • CONFIG_NET_SWITCHDEV
  • CONFIG_NET_DSA
  • CONFIG_B53
  • CONFIG_B53_MDIO_DRIVER
  • CONFIG_B53_SRAB_DRIVER

Disable:

  • CONFIG_SWCONFIG_B53

Yes, you will get all the bcm53xx platforms built

2 Likes

i used @npcomplete sources https://github.com/npcomplete13/openwrt
And it worked without problems it is the 4.14.82 kernel. (I did this just before Christmas last year)

git clone https://github.com/npcomplete13/openwrt
cd openwrt

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig
1 Like

Thanks for the reply. I actually ended up using Openwrt source and was able to successfully compile both dsa and non dsa builds, I believe, yesterday.

Only caveat was I had to manually enable ea9500 in the makefile so that it was available in menuconfig.

Getting the config file for bcm53xx kernel options for DSA was needed as well. I luckily found your thread where you ran into that too :slight_smile: I took the advice from that, compared that with npcomplete's source published, coupled with what he said above and I think I got.

I am going to test flashing today, fingers crossed.

@npcomplete , when you have some time, can you take a look at my boot logs. I am missing something when it comes to the enabling the switch in both my DSA and non DSA builds.

DSA BOOT

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.93 (openwrt@openwrt-debian) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9078-e6bcf1e4ac)) #0 SMP Sat Jan 19 13:32:12 2019
[    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: Linksys EA9500
[    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] random: get_random_bytes called from start_kernel+0x90/0x3c8 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @c6dd0000 s26380 r8192 d22772 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65280
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 253228K/262144K available (4015K kernel code, 110K rwdata, 1012K rodata, 1024K init, 278K bss, 8916K reserved, 0K cma-reserved, 131072K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04ebc08   (5008 kB)
[    0.000000]       .init : 0xc0600000 - 0xc0700000   (1024 kB)
[    0.000000]       .data : 0xc0700000 - 0xc071bb00   ( 111 kB)
[    0.000000]        .bss : 0xc071bb00 - 0xc07614d8   ( 279 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x0a130000 -> 0x0a530000
[    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.000010] sched_clock: 64 bits at 700MHz, resolution 1ns, wraps every 4398046511103ns
[    0.000022] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xa17102bcf3, max_idle_ns: 440795224838 ns
[    0.000041] Switching to timer-based delay loop, resolution 1ns
[    0.000233] Calibrating delay loop (skipped), value calculated using timer frequency.. 1400.00 BogoMIPS (lpj=7000000)
[    0.000243] pid_max: default: 32768 minimum: 301
[    0.000308] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000315] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000645] CPU: Testing write buffer coherency: ok
[    0.000672] CPU0: Spectre v2: using BPIALL workaround
[    0.000865] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001106] Setting up static identity map for 0x100000 - 0x10003c
[    0.001198] Hierarchical SRCU implementation.
[    0.001505] smp: Bringing up secondary CPUs ...
[    0.002027] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.002033] CPU1: Spectre v2: using BPIALL workaround
[    0.002112] smp: Brought up 1 node, 2 CPUs
[    0.002120] SMP: Total of 2 processors activated (2800.00 BogoMIPS).
[    0.002125] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.002129] CPU: This may indicate a broken bootloader or firmware.
[    0.003987] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004008] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.004125] pinctrl core: initialized pinctrl subsystem
[    0.004358] NET: Registered protocol family 16
[    0.004835] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014526] clocksource: Switched to clocksource arm_global_timer
[    0.015395] NET: Registered protocol family 2
[    0.015814] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.015836] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.015851] TCP: Hash tables configured (established 1024 bind 1024)
[    0.015937] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.015959] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.016086] NET: Registered protocol family 1
[    0.016810] Crashlog allocated RAM at address 0x3f00000
[    0.017080] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.019529] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.019543] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.021905] bounce: pool size: 64 pages
[    0.021923] io scheduler noop registered
[    0.021929] io scheduler deadline registered (default)
[    0.022758] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.023310] console [ttyS0] disabled
[    0.023360] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 7812500) is a 16550
[    0.518890] console [ttyS0] enabled
[    0.523325] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xf1
[    0.529696] nand: Toshiba NAND 128MiB 3,3V 8-bit
[    0.534340] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.541946] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.551898] Scanning device for bad blocks
[    0.575552] random: fast init done
[    1.074341] Bad eraseblock 768 at 0x000006000000
[    1.608618] mtd_read error while parsing (offset: 0x5200000): -74

BUNCH of mtd_read errors

[    4.031142] mtd_read error while parsing (offset: 0x7FE0000): -74
[    4.038273] 5 bcm47xxpart partitions found on MTD device brcmnand.0
[    4.044560] Creating 5 MTD partitions on "brcmnand.0":
[    4.049711] 0x000000000000-0x000000080000 : "boot"
[    4.055043] 0x000000080000-0x000000180000 : "nvram"
[    4.060421] 0x000000180000-0x000000200000 : "nvram"
[    4.065740] 0x000000200000-0x000001f00000 : "firmware"
[    4.072185] 2 trx partitions found on MTD device firmware
[    4.077594] Creating 2 MTD partitions on "firmware":
[    4.082592] 0x00000000001c-0x000000400000 : "linux"
[    4.087975] 0x000000400000-0x000001d00000 : "ubi"
[    4.093271] 0x000001f00000-0x000008000000 : "failsafe"
[    4.099568] bcm_iproc 18029200.spi: using bspi-mspi mode
[    4.105772] libphy: iProc MDIO bus: probed
[    4.109892] iproc-mdio 18003000.mdio: Broadcom iProc MDIO bus at 0xc88b5000
[    4.117135] libphy: mdio_mux: probed
[    4.120876] libphy: mdio_mux: probed
[    4.124633] libphy: mdio_mux: probed
[    4.128807] libphy: Fixed MDIO Bus: probed
[    4.260129] b53_common: found switch: BCM53125, rev 4
[    4.265249] bcm53xx 1.0:00: failed to register switch: -517
[    4.271116] b53_common: found switch: BCM53012, rev 0
[    4.276337] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    4.282345] bcma-host-soc 18000000.axi: bus0: Found chip with id 53030, rev 0x00 and package 0x00
[    4.291318] bcma-host-soc 18000000.axi: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    4.301892] bcma-host-soc 18000000.axi: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x05, class 0x0)
[    4.312632] bcma-host-soc 18000000.axi: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x04, class 0x0)
[    4.322611] bcma-host-soc 18000000.axi: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    4.333007] bcma-host-soc 18000000.axi: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    4.343425] bcma-host-soc 18000000.axi: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    4.353837] bcma-host-soc 18000000.axi: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    4.364198] bcma-host-soc 18000000.axi: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    4.374733] bcma-host-soc 18000000.axi: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    4.385295] bcma-host-soc 18000000.axi: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    4.395861] bcma-host-soc 18000000.axi: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x07, class 0x0)
[    4.407899] bcma-host-soc 18000000.axi: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x07, class 0x0)
[    4.418282] bcma-host-soc 18000000.axi: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x07, class 0x0)
[    4.428673] bcma-host-soc 18000000.axi: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    4.438890] bcma-host-soc 18000000.axi: bus0: Core 14 found: I2S (manuf 0x4BF, id 0x834, rev 0x03, class 0x0)
[    4.448935] bcma-host-soc 18000000.axi: bus0: Core 15 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    4.460296] bcma-host-soc 18000000.axi: bus0: Core 16 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    4.473037] bcma-host-soc 18000000.axi: bus0: Core 17 found: ROM (manuf 0x4BF, id 0x508, rev 0x08, class 0x0)
[    4.483091] bcma-host-soc 18000000.axi: bus0: Core 18 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    4.494704] bcma-host-soc 18000000.axi: bus0: Core 19 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    4.506139] bcma-host-soc 18000000.axi: bus0: Flash type not supported
[    4.527275] can not parse nvram name (null)boardnum(null) with value 20150630 got -34
[    4.553523] bgmac_bcma bcma0:3: Found PHY addr: 30 (NOREGS)
[    4.559119] bgmac_bcma bcma0:3: Support for Roboswitch not implemented
[    4.565685] bgmac_bcma bcma0:3: Invalid MAC addr: 00:00:00:00:00:00
[    4.571974] bgmac_bcma bcma0:3: Using random MAC: 6e:e8:0f:ce:f2:90
[    4.578974] b53-srab-switch b53-srab-switch: invalid resource
[    4.584787] b53-srab-switch: probe of b53-srab-switch failed with error -12
[    4.592359] bgmac_bcma bcma0:4: Found PHY addr: 30 (NOREGS)
[    4.597956] bgmac_bcma bcma0:4: Support for Roboswitch not implemented
[    4.604521] bgmac_bcma bcma0:4: Invalid MAC addr: 00:00:00:00:00:00
[    4.610814] bgmac_bcma bcma0:4: Using random MAC: 36:c7:bc:24:fe:e1
[    4.618281] bgmac_bcma bcma0:5: Found PHY addr: 30 (NOREGS)
[    4.623912] bgmac_bcma bcma0:5: Support for Roboswitch not implemented
[    4.631649] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    4.636917] bgmac_bcma: probe of bcma0:6 failed with error -524
[    4.760109] pcie_iproc_bcma bcma0:7: link: UP
[    4.764566] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    4.770874] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    4.777763] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    4.785743] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    4.795425] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    4.805151] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4c may corrupt adjacent RW1C bits
[    4.815022] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[    4.824806] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    4.834484] pci_bus 0000:00: 1-byte config write to 0000:00:00.0 offset 0xc may corrupt adjacent RW1C bits
[    4.844161] PCI: bus0: Fast back to back transfers disabled
[    4.849746] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.857777] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[    4.867545] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xc8 may corrupt adjacent RW1C bits
[    4.877317] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[    4.887084] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[    4.897221] PCI: bus1: Fast back to back transfers disabled
[    4.902827] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.911571] PCI: bus2: Fast back to back transfers disabled
[    4.917160] pci 0000:02:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.925208] pci 0000:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.933736] PCI: bus3: Fast back to back transfers disabled
[    4.939831] PCI: bus4: Fast back to back transfers disabled
[    4.945555] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x099fffff]
[    4.952367] pci 0000:00:00.0: BAR 9: assigned [mem 0x09a00000-0x09dfffff 64bit pref]
[    4.960140] pci 0000:01:00.0: BAR 8: assigned [mem 0x08000000-0x097fffff]
[    4.966944] pci 0000:01:00.0: BAR 9: assigned [mem 0x09a00000-0x09dfffff 64bit pref]
[    4.974715] pci 0000:01:00.0: BAR 0: assigned [mem 0x09800000-0x09803fff]
[    4.981524] pci 0000:01:00.0: BAR 7: no space for [io  size 0x1000]
[    4.987807] pci 0000:01:00.0: BAR 7: failed to assign [io  size 0x1000]
[    4.994439] pci 0000:01:00.0: BAR 7: no space for [io  size 0x1000]
[    5.000721] pci 0000:01:00.0: BAR 7: failed to assign [io  size 0x1000]
[    5.007353] pci 0000:02:01.0: BAR 8: assigned [mem 0x08000000-0x08bfffff]
[    5.014161] pci 0000:02:02.0: BAR 8: assigned [mem 0x08c00000-0x097fffff]
[    5.020972] pci 0000:02:01.0: BAR 9: assigned [mem 0x09a00000-0x09cfffff 64bit pref]
[    5.028735] pci 0000:02:02.0: BAR 9: assigned [mem 0x09d00000-0x09dfffff 64bit pref]
[    5.036504] pci 0000:02:01.0: BAR 7: no space for [io  size 0x1000]
[    5.042787] pci 0000:02:01.0: BAR 7: failed to assign [io  size 0x1000]
[    5.049416] pci 0000:02:01.0: BAR 7: no space for [io  size 0x1000]
[    5.055704] pci 0000:02:01.0: BAR 7: failed to assign [io  size 0x1000]
[    5.062338] pci 0000:03:00.0: BAR 2: assigned [mem 0x08000000-0x087fffff 64bit]
[    5.069675] pci 0000:03:00.0: BAR 4: assigned [mem 0x09a00000-0x09afffff 64bit pref]
[    5.077453] pci 0000:03:00.0: BAR 0: assigned [mem 0x08800000-0x08807fff 64bit]
[    5.084799] pci 0000:02:01.0: PCI bridge to [bus 03]
[    5.089779] pci 0000:02:01.0:   bridge window [mem 0x08000000-0x08bfffff]
[    5.096589] pci 0000:02:01.0:   bridge window [mem 0x09a00000-0x09cfffff 64bit pref]
[    5.104356] pci 0000:04:00.0: BAR 2: assigned [mem 0x09000000-0x097fffff 64bit]
[    5.111704] pci 0000:04:00.0: BAR 4: assigned [mem 0x09d00000-0x09dfffff 64bit pref]
[    5.119478] pci 0000:04:00.0: BAR 0: assigned [mem 0x08c00000-0x08c07fff 64bit]
[    5.126820] pci 0000:02:02.0: PCI bridge to [bus 04]
[    5.131805] pci 0000:02:02.0:   bridge window [mem 0x08c00000-0x097fffff]
[    5.138605] pci 0000:02:02.0:   bridge window [mem 0x09d00000-0x09dfffff 64bit pref]
[    5.146380] pci 0000:01:00.0: PCI bridge to [bus 02-04]
[    5.151627] pci 0000:01:00.0:   bridge window [mem 0x08000000-0x097fffff]
[    5.158433] pci 0000:01:00.0:   bridge window [mem 0x09a00000-0x09dfffff 64bit pref]
[    5.166205] pci 0000:00:00.0: PCI bridge to [bus 01-04]
[    5.171449] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x099fffff]
[    5.178251] pci 0000:00:00.0:   bridge window [mem 0x09a00000-0x09dfffff 64bit pref]
[    5.300108] pcie_iproc_bcma bcma0:8: link: UP
[    5.304556] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    5.310861] pci_bus 0001:00: root bus resource [mem 0x20000000-0x27ffffff]
[    5.317750] pci_bus 0001:00: No busn resource found for root bus, will use [bus 00-ff]
[    5.325879] PCI: bus0: Fast back to back transfers disabled
[    5.331486] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.339855] PCI: bus1: Fast back to back transfers disabled
[    5.345499] pci 0001:00:00.0: BAR 8: assigned [mem 0x20000000-0x20bfffff]
[    5.352314] pci 0001:00:00.0: BAR 9: assigned [mem 0x20c00000-0x20cfffff 64bit pref]
[    5.360080] pci 0001:01:00.0: BAR 2: assigned [mem 0x20000000-0x207fffff 64bit]
[    5.367431] pci 0001:01:00.0: BAR 4: assigned [mem 0x20c00000-0x20cfffff 64bit pref]
[    5.375204] pci 0001:01:00.0: BAR 0: assigned [mem 0x20800000-0x20807fff 64bit]
[    5.382538] pci 0001:00:00.0: PCI bridge to [bus 01]
[    5.387515] pci 0001:00:00.0:   bridge window [mem 0x20000000-0x20bfffff]
[    5.394326] pci 0001:00:00.0:   bridge window [mem 0x20c00000-0x20cfffff 64bit pref]
[    5.520106] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    5.526306] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    5.532243] pcie_iproc_bcma bcma0:9: PCIe controller setup failed
[    5.539134] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    5.548177] bcma-host-soc 18000000.axi: bus0: Bus registered
[    5.554575] NET: Registered protocol family 10
[    5.559861] Segment Routing with IPv6
[    5.563618] NET: Registered protocol family 17
[    5.568314] 8021q: 802.1Q VLAN Support v1.8
[    5.572576] Registering SWP/SWPB emulation handler
[    5.700129] b53_common: found switch: BCM53125, rev 4
[    5.705248] bcm53xx 1.0:00: failed to register switch: -517
[    5.711008] b53_common: found switch: BCM53012, rev 0
[    5.716095] DSA: switch 0 0 parsed
[    5.719502] DSA: tree 0 parsed
[    5.920249] libphy: dsa slave smi: probed
[    5.924556] Generic PHY fixed-0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:03, irq=POLL)
[    5.970112] Generic PHY dsa-0.0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:01, irq=POLL)
[    6.020114] Generic PHY dsa-0.0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:02, irq=POLL)
[    6.070113] Generic PHY dsa-0.0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:03, irq=POLL)
[    6.120111] Generic PHY dsa-0.0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:04, irq=POLL)
[    6.260124] b53_common: found switch: BCM53125, rev 4
[    6.265229] DSA: switch 1 0 parsed
[    6.268640] DSA: tree 1 parsed
[   11.250249] libphy: dsa slave smi: probed
[   11.290110] Generic PHY dsa-1.0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-1.0:00, irq=POLL)
[   11.340112] Generic PHY dsa-1.0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-1.0:01, irq=POLL)
[   11.390111] Generic PHY dsa-1.0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-1.0:02, irq=POLL)
[   11.440112] Generic PHY dsa-1.0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-1.0:03, irq=POLL)
[   11.490112] Generic PHY dsa-1.0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-1.0:04, irq=POLL)
[   11.530683] UBI: auto-attach mtd5
[   11.534010] ubi0: attaching mtd5
[   11.622156] ubi0: scanning is finished
[   11.654491] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 128 LEBs
[   11.661463] ubi0: attached mtd5 (name "ubi", size 25 MiB)
[   11.666881] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   11.673781] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   11.680596] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   11.687570] ubi0: good PEBs: 200, bad PEBs: 0, corrupted PEBs: 0
[   11.693593] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[   11.700832] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1531128268
[   11.709983] ubi0: available PEBs: 0, total reserved PEBs: 200, PEBs reserved for bad PEB handling: 20
[   11.719269] ubi0: background thread "ubi_bgt0d" started, PID 481
[   11.726104] block ubiblock0_0: created from ubi0:0(rootfs)
[   11.731662] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[   11.746468] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[   11.754483] Freeing unused kernel memory: 1024K
[   12.072963] init: Console is alive
[   12.076533] init: - watchdog -
[   12.420165] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   12.489233] usbcore: registered new interface driver usbfs
[   12.494832] usbcore: registered new interface driver hub
[   12.500219] usbcore: registered new device driver usb
[   12.507789] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.514961] ehci-platform: EHCI generic platform driver
[   12.521521] ehci-platform 18021000.ehci: EHCI Host Controller
[   12.527346] ehci-platform 18021000.ehci: new USB bus registered, assigned bus number 1
[   12.532150] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   12.535456] ehci-platform 18021000.ehci: irq 37, io mem 0x18021000
[   12.542254] ohci-platform: OHCI generic platform driver
[   12.553120] ohci-platform 18022000.ohci: Generic Platform OHCI controller
[   12.559946] ohci-platform 18022000.ohci: new USB bus registered, assigned bus number 2
[   12.568013] ohci-platform 18022000.ohci: irq 37, io mem 0x18022000
[   12.582095] ehci-platform 18021000.ehci: USB 2.0 started, EHCI 1.00
[   12.588840] hub 1-0:1.0: USB hub found
[   12.592702] hub 1-0:1.0: 2 ports detected
[   12.644604] hub 2-0:1.0: USB hub found
[   12.648438] hub 2-0:1.0: 2 ports detected
[   12.760128] xhci-hcd 18023000.xhci: xHCI Host Controller
[   12.765495] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 3
[   12.773221] xhci-hcd 18023000.xhci: hcc params 0x02501164 hci version 0x100 quirks 0x0000001000010010
[   12.782509] xhci-hcd 18023000.xhci: irq 38, io mem 0x18023000
[   12.788719] hub 3-0:1.0: USB hub found
[   12.792535] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
[   12.799861] xhci-hcd 18023000.xhci: xHCI Host Controller
[   12.805219] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 4
[   12.812741] xhci-hcd 18023000.xhci: Host supports USB 3.0  SuperSpeed
[   12.822089] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[   12.830577] hub 4-0:1.0: USB hub found
[   12.834418] hub 4-0:1.0: 1 port detected
[   12.840708] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   12.862187] init: - preinit -
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches a[   14.190275] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
re a[   14.196489] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
vailable.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   15.282067] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[   15.289416] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.295937] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   17.319092] UBIFS (ubi0:1): default file-system created
[   17.325147] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 664
[   17.398246] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   17.406122] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   17.416061] UBIFS (ubi0:1): FS size: 14983168 bytes (14 MiB, 118 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
[   17.426435] UBIFS (ubi0:1): reserved for root: 707691 bytes (691 KiB)
[   17.432895] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 77F3D344-F5F9-45A8-898A-464991905F71, small LPT model
[   17.446013] mount_root: overlay filesystem has not been fully initialized yet
[   17.453483] mount_root: switching to ubifs overlay
[   17.468504] urandom-seed: Seed file not found (/etc/urandom.seed)
[   17.555022] procd: - early -
[   17.557961] procd: - watchdog -
[   18.150192] procd: - watchdog -
[   18.153511] procd: - ubus -
[   18.266085] procd: - init -
Please press Enter to activate this console.
[   18.369998] kmodloader: loading kernel modules from /etc/modules.d/*
[   18.414226] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   18.424847] Netfilter messages via NETLINK v0.30.
[   18.430632] ip_set: protocol 6
[   18.453928] u32 classifier
[   18.456671]     input device check on
[   18.460353]     Actions configured
[   18.465575] Mirror/redirect action on
[   18.474089] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   18.485133] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   18.492713] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   18.501137] ip_tables: (C) 2000-2006 Netfilter Core Team
[   18.511004] ctnetlink v0.93: registering with nfnetlink.
[   18.564893] xt_time: kernel timezone is -0000
[   18.587967] PPP generic driver version 2.4.2
[   18.593784] NET: Registered protocol family 24
[   18.605144] usbcore: registered new interface driver brcmfmac
[   18.611119] pci_generic_config_write32: 106 callbacks suppressed
[   18.611130] pci_bus 0000:03: 1-byte config write to 0000:03:00.0 offset 0x3c may corrupt adjacent RW1C bits
[   18.627024] pci 0000:00:00.0: enabling device (0140 -> 0142)
[   18.632767] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   18.642519] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   18.652248] pci 0000:01:00.0: enabling device (0140 -> 0142)
[   18.657951] pci_bus 0000:01: 2-byte config write to 0000:01:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   18.667706] pci_bus 0000:01: 2-byte config write to 0000:01:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   18.677459] pci 0000:02:01.0: enabling device (0140 -> 0142)
[   18.683198] pci_bus 0000:02: 2-byte config write to 0000:02:01.0 offset 0x4 may corrupt adjacent RW1C bits
[   18.692962] pci_bus 0000:02: 2-byte config write to 0000:02:01.0 offset 0x4 may corrupt adjacent RW1C bits
[   18.702699] brcmfmac 0000:03:00.0: enabling device (0140 -> 0142)
[   18.708834] pci_bus 0000:03: 2-byte config write to 0000:03:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   18.718590] pci_bus 0000:03: 2-byte config write to 0000:03:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   18.890462] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM4366/4
[   19.153867] brcmfmac 0000:03:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.linksys,panamera.txt failed with error -2
[   19.165356] brcmfmac 0000:03:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   19.592879] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM4366/4
[   19.601638] brcmfmac 0000:03:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.clm_blob failed with error -2
[   19.611953] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   19.623215] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4366/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   19.673362] pci_bus 0000:04: 1-byte config write to 0000:04:00.0 offset 0x3c may corrupt adjacent RW1C bits
[   19.683181] pci 0000:02:02.0: enabling device (0140 -> 0142)
[   19.688865] brcmfmac 0000:04:00.0: enabling device (0140 -> 0142)
[   19.870242] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM4366/4
[   19.882239] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.linksys,panamera.txt failed with error -2
[   19.893743] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   20.292908] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM4366/4
[   20.301631] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.clm_blob failed with error -2
[   20.311942] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   20.323222] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4366/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   20.345406] pci 0001:00:00.0: enabling device (0140 -> 0142)
[   20.351138] brcmfmac 0001:01:00.0: enabling device (0140 -> 0142)
[   20.520271] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM4366/4
[   20.532471] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.linksys,panamera.txt failed with error -2
[   20.543871] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   20.952865] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM4366/4
[   20.961586] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.clm_blob failed with error -2
[   20.971896] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   20.983152] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4366/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   21.010493] kmodloader: done loading kernel modules from /etc/modules.d/*
[   25.881969] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.888012] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[   25.897114] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   25.912864] br-lan: port 1(eth0.1) entered blocking state
[   25.918280] br-lan: port 1(eth0.1) entered disabled state
[   25.923944] device eth0.1 entered promiscuous mode
[   25.928749] device eth0 entered promiscuous mode
[   25.946911] br-lan: port 1(eth0.1) entered blocking state
[   25.952394] br-lan: port 1(eth0.1) entered forwarding state
[   25.958121] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   26.962466] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

Look at my changes to 02_network file. That will fix the DSA build.

1 Like

Thanks buddy, will do. (Actually taking both network and led's work, thank you very much)

Is the missing brcmfmac43602-pcie.bin file anything to be concerned with? I see the same message in your builds as well.

If you are using trunk you won't need to do anything with WiFi firmware. Once you patch the network script, you also need to run my fix_interfaces.sh script

1 Like