openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
18.9k stars 9.99k forks source link

EdgeSwitch 8XP - Cold boot issue #10374

Open lister-wrt opened 1 year ago

lister-wrt commented 1 year ago

Sorry this post has changed a bit as I've narrowed down the issue....

This device has a weird issue where it can't survive a cold boot or install with -factory with 22.03-rc6/git master.

Factory > 21.02.3 works fine. Survives hot reboot. Survives cold boot Sysupgrade from 21.02.3 > 22.03rc6 (retaining config) works fine. Survives hot reboot. Uncontactable after cold boot. Factory > 22.03-rc6/git master uncontactable after rebooting.

I'm not sure how to narrow it down any further. Any help would be appreciated.

Full boot log (x3), build config and manifest below...

U-Boot 1.1.4.2-s559 (May 23 2012 - 13:31:49)

Board: Ubiquiti Networks XM board (rev 2.4 e702)
DRAM:  64 MB
Flash:  8 MB
Net:   eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at 9f050000 ...
   Image Name:   MIPS OpenWrt Linux-5.10.134
   Created:      2022-07-31  18:30:20 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2220721 Bytes =  2.1 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 5.10.134 (*@*) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.1.0 r20212-beeb49740b) 12.1.0, GNU ld (GNU Binutils) 2.38) #0 Sun Jul 31 18:30:20 2022
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Ubiquiti EdgeSwitch 8XP
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 56244K/65536K available (5416K kernel code, 595K rwdata, 1184K rodata, 1180K init, 200K bss, 9292K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 390.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[    0.000013] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[    0.007987] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.084174] pid_max: default: 32768 minimum: 301
[    0.089022] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.096316] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.107412] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.120203] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.130050] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.136979] pinctrl core: initialized pinctrl subsystem
[    0.144638] NET: Registered protocol family 16
[    0.243951] clocksource: Switched to clocksource MIPS
[    0.250781] NET: Registered protocol family 2
[    0.255640] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.263863] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.272363] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.280021] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.287067] TCP: Hash tables configured (established 1024 bind 1024)
[    0.293622] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.300214] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.307626] NET: Registered protocol family 1
[    0.311998] PCI: CLS 0 bytes, default 32
[    0.325672] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.339477] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.345345] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.359236] pinctrl-single 18040028.pinmux: 64 pins, size 8
[    0.366420] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.373763] printk: console [ttyS0] disabled
[    0.378244] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12187500) is a 16550A
[    0.386948] printk: console [ttyS0] enabled
[    0.386948] printk: console [ttyS0] enabled
[    0.395346] printk: bootconsole [early0] disabled
[    0.395346] printk: bootconsole [early0] disabled
[    0.420578] gpio_spi@0 enforce active low on chipselect handle
[    0.439604] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    0.444780] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.451222] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.457922] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.465458] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.472134] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.479974] Creating 5 MTD partitions on "spi0.0":
[    0.484865] 0x000000000000-0x000000040000 : "u-boot"
[    0.494935] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.501814] 0x000000050000-0x0000007b0000 : "firmware"
[    0.511275] 2 uimage-fw partitions found on MTD device firmware
[    0.517306] Creating 2 MTD partitions on "firmware":
[    0.522299] 0x000000000000-0x000000220000 : "kernel"
[    0.528812] 0x000000220000-0x000000760000 : "rootfs"
[    0.537502] mtd: device 4 (rootfs) set to be root filesystem
[    0.543365] 1 squashfs-split partitions found on MTD device rootfs
[    0.549665] 0x000000450000-0x000000760000 : "rootfs_data"
[    0.556695] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.565338] 0x0000007f0000-0x000000800000 : "art"
[    1.327660] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.337691] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    1.686575] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.696580] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    1.703210] i2c /dev entries driver
[    1.709256] NET: Registered protocol family 10
[    1.724366] Segment Routing with IPv6
[    1.728239] NET: Registered protocol family 17
[    1.732812] 8021q: 802.1Q VLAN Support v1.8
[    1.738472] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    1.745085]  MEM 0x0000000010000000..0x0000000013ffffff
[    1.750337]   IO 0x0000000000000000..0x0000000000000000
[    1.755600] ar724x-pci 180c0000.pcie-controller: PCIe link is down
[    1.762072] PCI host bridge to bus 0000:00
[    1.766244] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.773142] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.778752] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.785576] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.795202] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    1.816839] gpio-export gpio-export: 16 gpio(s) exported
[    1.845161] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.862108] Freeing unused kernel memory: 1180K
[    1.866693] This architecture does not have kernel memory protection.
[    1.873162] Run /sbin/init as init process
[    3.180067] init: Console is alive
[    3.184314] init: - watchdog -
[    3.187948] init: Watchdog has previously reset the system
[    4.255385] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.492014] usbcore: registered new interface driver usbfs
[    4.497742] usbcore: registered new interface driver hub
[    4.503232] usbcore: registered new device driver usb
[    4.521299] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.530861] ehci-fsl: Freescale EHCI Host controller driver
[    4.539181] ehci-platform: EHCI generic platform driver
[    4.545094] ehci-platform 1b000000.usb: EHCI Host Controller
[    4.550826] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    4.558970] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    4.593988] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    4.601601] hub 1-0:1.0: USB hub found
[    4.606681] hub 1-0:1.0: 1 port detected
[    4.622329] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.630812] ohci-platform: OHCI generic platform driver
[    4.638737] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.657241] init: - preinit -
[    7.659384] random: jshn: uninitialized urandom read (4 bytes read)
[    8.437514] random: jshn: uninitialized urandom read (4 bytes read)
[    8.769529] random: jshn: uninitialized urandom read (4 bytes read)
[    8.874438] random: jshn: uninitialized urandom read (4 bytes read)
[    9.100348] random: jshn: uninitialized urandom read (4 bytes read)
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 are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
[   10.392748] eth0: link up (1000Mbps/Full duplex)
[   10.399491] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.415303] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   10.494412] random: procd: uninitialized urandom read (4 bytes read)
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
[   13.240520] jffs2: notice: (539) jffs2_build_xattr_subsystem: complete building xattr subsystem, 10 of xdatum (0 unchecked, 5 orphan) and 11 of xref (5 dead, 0 orphan) found.
[   13.259569] mount_root: switching to jffs2 overlay
[   13.271831] overlayfs: upper fs does not support tmpfile.
[   13.290188] urandom-seed: Seeding with /etc/urandom.seed
[   13.573212] eth0: link down
[   13.612121] procd: - early -
[   13.615648] procd: - watchdog -
[   13.619348] procd: Watchdog has previously reset the system
[   14.486125] procd: - watchdog -
[   14.489865] procd: Watchdog has previously reset the system
[   14.497842] procd: - ubus -
[   14.786334] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.794518] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.801687] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.820799] procd: - init -
Please press Enter to activate this console.
[   16.035219] random: jshn: uninitialized urandom read (4 bytes read)
[   16.959491] kmodloader: loading kernel modules from /etc/modules.d/*
[   17.242368] kmodloader: done loading kernel modules from /etc/modules.d/*
[   17.777088] urngd: v1.0.2 started.
[   18.169733] random: crng init done
[   18.173173] random: 20 urandom warning(s) missed due to ratelimiting
[   30.368954] eth0: link up (1000Mbps/Full duplex)
[   30.373636] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   30.401116] br-lan: port 1(eth0.1) entered blocking state
[   30.406810] br-lan: port 1(eth0.1) entered disabled state
[   30.412694] device eth0.1 entered promiscuous mode
[   30.417583] device eth0 entered promiscuous mode
[   30.467572] br-lan: port 1(eth0.1) entered blocking state
[   30.473016] br-lan: port 1(eth0.1) entered forwarding state
[   30.600686] eth1: link up (1000Mbps/Full duplex)
[   30.621462] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   31.374014] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

BusyBox v1.35.0 (2022-07-31 18:30:20 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r20212-beeb49740b
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
CONFIG_TARGET_ath79=y
CONFIG_TARGET_ath79_generic=y
CONFIG_TARGET_ath79_generic_DEVICE_ubnt_edgeswitch-8xp=y
CONFIG_DEVEL=y
CONFIG_TOOLCHAINOPTS=y
# CONFIG_BINUTILS_USE_VERSION_2_37 is not set
CONFIG_BINUTILS_USE_VERSION_2_38=y
CONFIG_BINUTILS_VERSION="2.38"
CONFIG_BINUTILS_VERSION_2_38=y
# CONFIG_DRIVER_11N_SUPPORT is not set
# CONFIG_GCC_USE_VERSION_11 is not set
CONFIG_GCC_USE_VERSION_12=y
CONFIG_GCC_VERSION="12.1.0"
CONFIG_GCC_VERSION_12=y
# CONFIG_GDB is not set
# CONFIG_PACKAGE_dnsmasq is not set
# CONFIG_PACKAGE_hostapd-common is not set
# CONFIG_PACKAGE_iw is not set
# CONFIG_PACKAGE_iwinfo is not set
# CONFIG_PACKAGE_kmod-ath is not set
# CONFIG_PACKAGE_kmod-ath9k is not set
# CONFIG_PACKAGE_kmod-cfg80211 is not set
# CONFIG_PACKAGE_kmod-crypto-aead is not set
# CONFIG_PACKAGE_kmod-crypto-ccm is not set
# CONFIG_PACKAGE_kmod-crypto-cmac is not set
# CONFIG_PACKAGE_kmod-crypto-ctr is not set
# CONFIG_PACKAGE_kmod-crypto-gcm is not set
# CONFIG_PACKAGE_kmod-crypto-gf128 is not set
# CONFIG_PACKAGE_kmod-crypto-ghash is not set
# CONFIG_PACKAGE_kmod-crypto-hmac is not set
# CONFIG_PACKAGE_kmod-crypto-manager is not set
# CONFIG_PACKAGE_kmod-crypto-null is not set
# CONFIG_PACKAGE_kmod-crypto-rng is not set
# CONFIG_PACKAGE_kmod-crypto-seqiv is not set
# CONFIG_PACKAGE_kmod-crypto-sha256 is not set
# CONFIG_PACKAGE_kmod-lib-crc-ccitt is not set
# CONFIG_PACKAGE_kmod-mac80211 is not set
# CONFIG_PACKAGE_kmod-ppp is not set
# CONFIG_PACKAGE_libiwinfo is not set
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_nano=y
# CONFIG_PACKAGE_odhcp6c is not set
# CONFIG_PACKAGE_odhcpd-ipv6only is not set
# CONFIG_PACKAGE_ppp is not set
CONFIG_PACKAGE_terminfo=y
# CONFIG_PACKAGE_wireless-regdb is not set
# CONFIG_PACKAGE_wpad-basic-wolfssl is not set
# CONFIG_WPA_WOLFSSL is not set
base-files - 1491-r20212-beeb49740b
busybox - 1.35.0-3
ca-bundle - 20211016-1
dropbear - 2022.82-2
firewall4 - 2022-06-17-15c38317-1
fstools - 2022-07-17-ebf7e902-1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2022-07-17-46a33b8b-1
jansson5 - 2.14-2
jshn - 2022-05-15-d2223ef9-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.10.134-1-cdf7652fd8f0f1655f46979dafb54625
kmod-crypto-acompress - 5.10.134-1
kmod-crypto-crc32c - 5.10.134-1
kmod-crypto-hash - 5.10.134-1
kmod-gpio-button-hotplug - 5.10.134-3
kmod-lib-crc32c - 5.10.134-1
kmod-lib-lzo - 5.10.134-1
kmod-libphy - 5.10.134-1
kmod-nf-conntrack - 5.10.134-1
kmod-nf-conntrack6 - 5.10.134-1
kmod-nf-flow - 5.10.134-1
kmod-nf-log - 5.10.134-1
kmod-nf-log6 - 5.10.134-1
kmod-nf-nat - 5.10.134-1
kmod-nf-nat6 - 5.10.134-1
kmod-nf-reject - 5.10.134-1
kmod-nf-reject6 - 5.10.134-1
kmod-nfnetlink - 5.10.134-1
kmod-nft-core - 5.10.134-1
kmod-nft-fib - 5.10.134-1
kmod-nft-nat - 5.10.134-1
kmod-nft-nat6 - 5.10.134-1
kmod-nft-offload - 5.10.134-1
kmod-nls-base - 5.10.134-1
kmod-phy-ath79-usb - 5.10.134-1
kmod-swconfig - 5.10.134-1
kmod-switch-bcm53xx - 5.10.134-1
kmod-switch-bcm53xx-mdio - 5.10.134-1
kmod-usb-core - 5.10.134-1
kmod-usb-ehci - 5.10.134-1
kmod-usb-ohci - 5.10.134-1
kmod-usb2 - 5.10.134-1
libblobmsg-json20220515 - 2022-05-15-d2223ef9-1
libc - 1.2.3-4
libgcc1 - 12.1.0-4
libjson-c5 - 0.16-2
libjson-script20220515 - 2022-05-15-d2223ef9-1
libmnl0 - 1.0.5-1
libncurses6 - 6.3-1
libnftnl11 - 1.2.2-1
libnl-tiny2022-05-17 - 2022-05-17-b5b2ba09-1
libpthread - 1.2.3-4
libubox20220515 - 2022-05-15-d2223ef9-1
libubus20220601 - 2022-06-01-2bebf93c-1
libuci20130104 - 2021-10-22-f84f49f0-6
libuclient20201210 - 2021-05-14-6a6011df-1
libucode20220322 - 2022-06-01-b211ca0e-1
libustream-wolfssl20201210 - 2022-01-16-868fd881-1
libwolfssl5.4.0.e624513f - 5.4.0-stable-4
logd - 2022-07-17-46a33b8b-1
mtd - 26
nano - 6.3-1
netifd - 2022-06-01-39ef9fe1-1
nftables-json - 1.0.4-1
openwrt-keyring - 2022-03-25-62471e69-2
opkg - 2022-02-24-d038e5b6-1
procd - 2022-07-17-ef5d3e36-1
procd-seccomp - 2022-07-17-ef5d3e36-1
procd-ujail - 2022-07-17-ef5d3e36-1
swconfig - 12
terminfo - 6.3-1
uboot-envtools - 2022.01-39
ubox - 2022-07-17-46a33b8b-1
ubus - 2022-06-01-2bebf93c-1
ubusd - 2022-06-01-2bebf93c-1
uci - 2021-10-22-f84f49f0-6
uclient-fetch - 2021-05-14-6a6011df-1
ucode - 2022-06-01-b211ca0e-1
ucode-mod-fs - 2022-06-01-b211ca0e-1
ucode-mod-ubus - 2022-06-01-b211ca0e-1
ucode-mod-uci - 2022-06-01-b211ca0e-1
urandom-seed - 3
urngd - 2020-01-21-c7f7b6b6-1
usign - 2020-05-23-f1f65026-1
lister-wrt commented 1 year ago

Confirmed the issue is present in 22.03rc6. I can't contact the device on any port.

Logs from 22.03rc6

U-Boot 1.1.4.2-s559 (May 23 2012 - 13:31:49)

Board: Ubiquiti Networks XM board (rev 2.4 e702)
DRAM:  64 MB
Flash:  8 MB
Net:   eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at 9f050000 ...
   Image Name:   MIPS OpenWrt Linux-5.10.134
   Created:      2022-07-31  15:12:47 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2242984 Bytes =  2.1 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 5.10.134 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19590-042d558536) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Sun Jul 31 15:12:47 2022
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Ubiquiti EdgeSwitch 8XP
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 56172K/65536K available (5845K kernel code, 608K rwdata, 744K rodata, 1240K init, 209K bss, 9364K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 390.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[    0.000014] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[    0.008001] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.084175] pid_max: default: 32768 minimum: 301
[    0.089024] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.096313] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.107311] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.120141] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.129990] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.136912] pinctrl core: initialized pinctrl subsystem
[    0.148883] NET: Registered protocol family 16
[    0.154565] thermal_sys: Registered thermal governor 'step_wise'
[    0.237332] clocksource: Switched to clocksource MIPS
[    0.250284] NET: Registered protocol family 2
[    0.255024] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.263601] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.272084] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.279750] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.286779] TCP: Hash tables configured (established 1024 bind 1024)
[    0.293346] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.299934] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.307381] NET: Registered protocol family 1
[    0.311761] PCI: CLS 0 bytes, default 32
[    0.325335] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.339595] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.345406] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.358213] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.368244] pinctrl-single 18040028.pinmux: 64 pins, size 8
[    0.375320] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.385405] printk: console [ttyS0] disabled
[    0.389861] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12187500) is a 16550A
[    0.398563] printk: console [ttyS0] enabled
[    0.398563] printk: console [ttyS0] enabled
[    0.406944] printk: bootconsole [early0] disabled
[    0.406944] printk: bootconsole [early0] disabled
[    0.440922] gpio_spi@0 enforce active low on chipselect handle
[    0.459735] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    0.464816] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.471255] Creating 5 MTD partitions on "spi0.0":
[    0.476077] 0x000000000000-0x000000040000 : "u-boot"
[    0.484125] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.491137] 0x000000050000-0x0000007b0000 : "firmware"
[    0.500608] 2 uimage-fw partitions found on MTD device firmware
[    0.506570] Creating 2 MTD partitions on "firmware":
[    0.511628] 0x000000000000-0x000000230000 : "kernel"
[    0.518139] 0x000000230000-0x000000760000 : "rootfs"
[    0.526775] mtd: device 4 (rootfs) set to be root filesystem
[    0.532721] 1 squashfs-split partitions found on MTD device rootfs
[    0.538992] 0x0000005d0000-0x000000760000 : "rootfs_data"
[    0.547102] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.553501] 0x0000007f0000-0x000000800000 : "art"
[    1.311430] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.321458] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    1.669940] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.679957] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    1.686580] i2c /dev entries driver
[    1.692845] NET: Registered protocol family 10
[    1.708781] Segment Routing with IPv6
[    1.712646] NET: Registered protocol family 17
[    1.717211] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.730291] 8021q: 802.1Q VLAN Support v1.8
[    1.735952] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    1.742558]  MEM 0x0000000010000000..0x0000000013ffffff
[    1.747831]   IO 0x0000000000000000..0x0000000000000000
[    1.753084] ar724x-pci 180c0000.pcie-controller: PCIe link is down
[    1.759587] PCI host bridge to bus 0000:00
[    1.763720] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.770667] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.776260] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.783094] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.792714] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    1.814009] gpio-export gpio-export: 16 gpio(s) exported
[    1.844213] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.861679] Freeing unused kernel memory: 1240K
[    1.866228] This architecture does not have kernel memory protection.
[    1.872740] Run /sbin/init as init process
[    3.267974] init: Console is alive
[    3.272119] init: - watchdog -
[    3.275741] init: Watchdog has previously reset the system
[    5.653645] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.748278] usbcore: registered new interface driver usbfs
[    5.753891] usbcore: registered new interface driver hub
[    5.759459] usbcore: registered new device driver usb
[    5.778189] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.787299] ehci-fsl: Freescale EHCI Host controller driver
[    5.796673] ehci-platform: EHCI generic platform driver
[    5.802536] ehci-platform 1b000000.usb: EHCI Host Controller
[    5.808324] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    5.816412] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    5.847370] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    5.855010] hub 1-0:1.0: USB hub found
[    5.860088] hub 1-0:1.0: 1 port detected
[    5.875504] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.883877] ohci-platform: OHCI generic platform driver
[    5.892115] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.910364] init: - preinit -
[    8.946578] random: jshn: uninitialized urandom read (4 bytes read)
[    9.722172] random: jshn: uninitialized urandom read (4 bytes read)
[   10.047801] random: jshn: uninitialized urandom read (4 bytes read)
[   10.151390] random: jshn: uninitialized urandom read (4 bytes read)
[   10.374662] random: jshn: uninitialized urandom read (4 bytes read)
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 are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
[   11.780046] eth0: link up (1000Mbps/Full duplex)
[   11.784731] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   11.802356] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
Press the [f] key and hit [enter[   11.887427] random: procd: uninitialized urandom read (4 bytes read)
] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   16.545083] jffs2: notice: (542) jffs2_build_xattr_subsystem: complete building xattr subsystem, 6 of xdatum (0 unchecked, 1 orphan) and 7 of xref (1 dead, 0 orphan) found.
[   16.563978] mount_root: switching to jffs2 overlay
[   16.579914] overlayfs: upper fs does not support tmpfile.
[   16.598255] urandom-seed: Seeding with /etc/urandom.seed
[   16.852254] eth0: link down
[   16.892442] procd: - early -
[   16.895876] procd: - watchdog -
[   16.900415] procd: Watchdog has previously reset the system
[   17.811452] procd: - watchdog -
[   17.814798] procd: Watchdog has previously reset the system
[   17.884694] procd: - ubus -
[   18.070467] random: ubusd: uninitialized urandom read (4 bytes read)
[   18.081345] random: ubusd: uninitialized urandom read (4 bytes read)
[   18.101988] random: ubusd: uninitialized urandom read (4 bytes read)
[   18.114247] procd: - init -
Please press Enter to activate this console.
[   19.181277] random: jshn: uninitialized urandom read (4 bytes read)
[   20.451400] kmodloader: loading kernel modules from /etc/modules.d/*
[   21.448368] Loading modules backported from Linux version v5.15.58-0-g7d8048d4e064
[   21.455986] Backport generated by backports.git v5.15.58-1-0-g42a95ce7
[   22.109263] urngd: v1.0.2 started.
[   22.135456] PPP generic driver version 2.4.2
[   22.158987] NET: Registered protocol family 24
[   22.300803] kmodloader: done loading kernel modules from /etc/modules.d/*
[   22.611383] random: crng init done
[   22.614826] random: 24 urandom warning(s) missed due to ratelimiting
[   56.131170] eth0: link up (1000Mbps/Full duplex)
[   56.135855] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   56.162948] br-lan: port 1(eth0.1) entered blocking state
[   56.168651] br-lan: port 1(eth0.1) entered disabled state
[   56.174565] device eth0.1 entered promiscuous mode
[   56.179460] device eth0 entered promiscuous mode
[   56.373595] br-lan: port 1(eth0.1) entered blocking state
[   56.379107] br-lan: port 1(eth0.1) entered forwarding state
[   56.442522] eth1: link up (1000Mbps/Full duplex)
[   56.447800] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   57.147509] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

BusyBox v1.35.0 (2022-07-31 15:12:47 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03.0-rc6, r19590-042d558536
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
lister-wrt commented 1 year ago

22.02.3 logs

U-Boot 1.1.4.2-s559 (May 23 2012 - 13:31:49)

Board: Ubiquiti Networks XM board (rev 2.4 e702)
DRAM:  64 MB
Flash:  8 MB
Net:   eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at 9f050000 ...
   Image Name:   MIPS OpenWrt Linux-5.4.188
   Created:      2022-04-16  12:59:34 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2050160 Bytes =  2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 5.4.188 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 Sat Apr 16 12:59:34 2022
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Ubiquiti EdgeSwitch 8XP
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 57268K/65536K available (5259K kernel code, 192K rwdata, 688K rodata, 1212K init, 205K bss, 8268K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] random: get_random_bytes called from 0x80661a28 with crng_init=0
[    0.000000] CPU clock: 390.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[    0.000012] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[    0.007901] Calibrating delay loop... 259.58 BogoMIPS (lpj=519168)
[    0.046034] pid_max: default: 32768 minimum: 301
[    0.050891] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.058183] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.073602] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.083353] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.090299] pinctrl core: initialized pinctrl subsystem
[    0.099321] NET: Registered protocol family 16
[    0.146033] clocksource: Switched to clocksource MIPS
[    0.152574] thermal_sys: Registered thermal governor 'step_wise'
[    0.153129] NET: Registered protocol family 2
[    0.163794] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.172244] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.180677] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.188328] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.195378] TCP: Hash tables configured (established 1024 bind 1024)
[    0.201934] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.208521] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.215849] NET: Registered protocol family 1
[    0.220276] PCI: CLS 0 bytes, default 32
[    0.229946] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.248058] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.253926] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.284470] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.295664] pinctrl-single 18040028.pinmux: 64 pins, size 8
[    0.302993] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.313172] printk: console [ttyS0] disabled
[    0.317574] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12187500) is a 16550A
[    0.326266] printk: console [ttyS0] enabled
[    0.326266] printk: console [ttyS0] enabled
[    0.334663] printk: bootconsole [early0] disabled
[    0.334663] printk: bootconsole [early0] disabled
[    0.357582] gpio_spi@0 enforce active low on chipselect handle
[    0.369499] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    0.374659] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.381047] Creating 5 MTD partitions on "spi0.0":
[    0.385886] 0x000000000000-0x000000040000 : "u-boot"
[    0.392439] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.399275] 0x000000050000-0x0000007b0000 : "firmware"
[    0.410200] 2 uimage-fw partitions found on MTD device firmware
[    0.416197] Creating 2 MTD partitions on "firmware":
[    0.421206] 0x000000000000-0x000000200000 : "kernel"
[    0.427573] 0x000000200000-0x000000760000 : "rootfs"
[    0.433985] mtd: device 4 (rootfs) set to be root filesystem
[    0.442511] 1 squashfs-split partitions found on MTD device rootfs
[    0.448807] 0x000000530000-0x000000760000 : "rootfs_data"
[    0.455708] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.461919] 0x0000007f0000-0x000000800000 : "art"
[    1.132289] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.142405] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    1.149082] random: fast init done
[    1.472219] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.482368] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    1.489048] i2c /dev entries driver
[    1.495730] NET: Registered protocol family 10
[    1.508171] Segment Routing with IPv6
[    1.512124] NET: Registered protocol family 17
[    1.516699] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.529712] 8021q: 802.1Q VLAN Support v1.8
[    1.535355] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    1.541952]  MEM 0x0000000010000000..0x0000000013ffffff
[    1.547221]   IO 0x0000000000000000..0x0000000000000000
[    1.552486] ar724x-pci 180c0000.pcie-controller: PCIe link is down
[    1.558966] PCI host bridge to bus 0000:00
[    1.563136] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.570049] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.575660] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.582487] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.592262] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    1.610235] gpio-export gpio-export: 16 gpio(s) exported
[    1.616726] hctosys: unable to open rtc device (rtc0)
[    1.636169] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.653466] Freeing unused kernel memory: 1212K
[    1.658049] This architecture does not have kernel memory protection.
[    1.664520] Run /sbin/init as init process
[    2.943054] init: Console is alive
[    2.946916] init: - watchdog -
[    5.126869] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.215297] usbcore: registered new interface driver usbfs
[    5.220980] usbcore: registered new interface driver hub
[    5.226478] usbcore: registered new device driver usb
[    5.240533] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.249498] ehci-fsl: Freescale EHCI Host controller driver
[    5.257247] ehci-platform: EHCI generic platform driver
[    5.262940] ehci-platform 1b000000.usb: EHCI Host Controller
[    5.268710] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    5.276788] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    5.298075] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    5.305586] hub 1-0:1.0: USB hub found
[    5.309990] hub 1-0:1.0: 1 port detected
[    5.321293] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.329271] ohci-platform: OHCI generic platform driver
[    5.335972] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.353905] init: - preinit -
[    7.813509] random: jshn: uninitialized urandom read (4 bytes read)
[    8.273120] random: jshn: uninitialized urandom read (4 bytes read)
[    8.584708] random: jshn: uninitialized urandom read (4 bytes read)
[    8.886107] urandom_read: 2 callbacks suppressed
[    8.886118] random: jshn: uninitialized urandom read (4 bytes read)
[    9.037031] random: jshn: uninitialized urandom read (4 bytes read)
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 are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
[    9.844633] eth0: link up (1000Mbps/Full duplex)
[    9.851218] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    9.867445] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
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
[    9.958461] random: procd: uninitialized urandom read (4 bytes read)
[   14.165913] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   14.179057] urandom-seed: Seed file not found (/etc/urandom.seed)
[   14.311342] eth0: link down
[   14.344818] procd: - early -
[   14.347957] procd: - watchdog -
[   14.977387] procd: - watchdog -
[   15.009540] procd: - ubus -
[   15.111807] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.121616] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.142804] procd: - init -
Please press Enter to activate this console.
[   16.532046] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.591428] b53_common: found switch: BCM53128, rev 4
[   16.613874] Loading modules backported from Linux version v5.10.110-0-g3238bffaf992
[   16.621645] Backport generated by backports.git v5.10.110-1-0-g1fbde860
[   16.705165] xt_time: kernel timezone is -0000
[   17.085599] PPP generic driver version 2.4.2
[   17.099263] NET: Registered protocol family 24
[   17.241088] kmodloader: done loading kernel modules from /etc/modules.d/*
[   17.412122] urngd: v1.0.2 started.
[   17.712143] crng init done

BusyBox v1.33.2 (2022-04-16 12:59:34 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 21.02.3, r16554-1d4dea6d4f
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
rogerpueyo commented 1 year ago

Hi,

I'm facing the same issue you described. I could observe that, after flashing v22.03.0-rc6, swconfig does not report any switch:

[...]
 -----------------------------------------------------
 OpenWrt 22.03.0-rc6, r19590-042d558536
 -----------------------------------------------------
[...]
--------------------------------------------------
root@OpenWrt:~# swconfig list
root@OpenWrt:~# 

while v21.02.3 did:

[...]
 -----------------------------------------------------
 OpenWrt 21.02.3, r16554-1d4dea6d4f
 -----------------------------------------------------
[...]
--------------------------------------------------
root@OpenWrt:~# swconfig list
Found: switch0 - bcm53128

My bet is that the switch is not detected and configured with 22.03/snapshot and only warm boot works because it is not reset.

Entering in failsafe mode doesn't help in 22.03.

In both 21.02 and 22.03, I see the b53_mdio and b53_common modules are loaded.

lister-wrt commented 1 year ago

Glad to see I'm not the only one. I was starting to think it might be my build host.

The last thing I tried was a 21.02 snapshot, it had the same issue. I did select the latest gcc/binutils available though. I'll try without that when I get home.

Thanks for the motivation 😄

rogerpueyo commented 1 year ago

Glad to see I'm not the only one. I was starting to think it might be my build host.

It was very good to find your bug report too, at first I thought my device was damaged and I needed to replace it. :smiley:

The last thing I tried was a 21.02 snapshot, it had the same issue. I did select the latest gcc/binutils available though. I'll try without that when I get home.

Did you compile it yourself? The binary from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ath79/generic/ works well for me, swconfig listdoes find the switch.

I've been building several images to try to narrow down which commit introduced the bug/regression. If I find it, I'll report it here.

rogerpueyo commented 1 year ago

Hi, @lister-wrt,

Well, this is getting worse. I built commit r11962-b6946542f8, which adds support for the device. To my surprise, the switch is not detected anymore:

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r11962-b6946542f8
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# swconfig list
root@OpenWrt:~# uname -a
Linux OpenWrt 4.19.93 #0 Sun Jan 12 13:12:50 2020 mips GNU/Linux
root@OpenWrt:~# 
lister-wrt commented 1 year ago

There was a issue early on that meant switch kmods weren't included by default.

Fixed here https://github.com/openwrt/openwrt/commit/4c3b81b75d0e0960cf49515ee8e48ada22256fd2

Just in case you were unaware.

rogerpueyo commented 1 year ago

Thanks, you're right. No kernel module == no switch :-)

I'll keep investigating.

rogerpueyo commented 1 year ago

Hi,

I narrowed down the bug to the following commits:

So it seems b2cfed48f6 breaks the compilation, e4e410733f fixes the compilation, but something is left that makes the switch not being detected anymore.

2e4193f3cf just happens to be in between, I doubt it affects our switch.

rogerpueyo commented 1 year ago

Quick update:

I got the switch working with current master, after reverting first e4e410733f3b0cad09d3a235eec0b04f4068c331 and second b2cfed48f62622efa8577372942bbc268afe4677.

BusyBox v1.35.0 (2022-09-06 21:59:17 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r20499+2-33c11442b2
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# swconfig list
Found: switch0 - bcm53128
root@OpenWrt:~# uname -a
Linux OpenWrt 5.10.139 #0 Tue Sep 6 21:59:17 2022 mips GNU/Linux

@lister-wrt, do you feel like digging further into it and creating a patch to fix it?

lister-wrt commented 1 year ago

@rogerpueyo nice work tracking that down. Unfortunately I haven't found the time to look at it again (I've been on-call).

Having just read through the discussion linked in the revert, I think it's beyond me anyway.

Maybe @rmilecki could give us some background/advice?

rogerpueyo commented 1 year ago

Hi, @rmilecki,

Quick summary here. The bcm53128 switch in the Ubiquiti EdgeSwitch 8XP is no longer detected. Commits related, from old to new:

rmilecki commented 1 year ago

Nice work @rogerpueyo.

So BCM53128 in Ubiquiti EdgeSwitch 8XP was supported for a moment by a code that may work but is incorrect in general. It causes lockups on other devices and that's why it was reverted.

There are two correct solutions to this issue:

  1. Make OpenWrt's downstream b53 driver (swconfig based) a proper MDIO driver (replace phy_driver with mdio_driver in the target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c).
  2. Switch Ubiquiti EdgeSwitch 8XP to use upstream b53 driver (DSA based)

Personally I think the later option is a better and long term solution.

rmilecki commented 1 year ago

I see that target/linux/ath79/dts/ar7242_ubnt_edgeswitch-8xp.dts includes binding for the BCM53128 switch. Can someone try compiling Ubiquiti EdgeSwitch 8XP firmware with upstream b53 driver (CONFIG_B53=y and # CONFIG_SWCONFIG_B53 is not set).

lister-wrt commented 1 year ago

@rmilecki where should I change this? I see where CONFIG_B53/CONFIG_SWCONFIG_B53 exist in config-5.** files for other targets but not ath79

rogerpueyo commented 1 year ago

@lister-wrt

I did this:

diff --git a/target/linux/ath79/config-5.10 b/target/linux/ath79/config-5.10
index bdc4b74508..dd90cbd8be 100644
--- a/target/linux/ath79/config-5.10
+++ b/target/linux/ath79/config-5.10
@@ -186,6 +186,8 @@ CONFIG_SPI_MEM=y
 CONFIG_SRCU=y
 CONFIG_SWCONFIG=y
 CONFIG_SWCONFIG_LEDS=y
+CONFIG_B53=y
+# CONFIG_SWCONFIG_B53 is not set
 CONFIG_SWPHY=y
 CONFIG_SYSCTL_EXCEPTION_TRACE=y
 CONFIG_SYS_HAS_CPU_MIPS32_R2=y

I don't have the device at hand. Would you like to test this sysupgrade image? openwrt-ath79-generic-ubnt_edgeswitch-8xp-squashfs-sysupgrade.bin.gz. It is gzipped. Didn't work, switch not detected :-(

Cheers!

lister-wrt commented 1 year ago

@rogerpueyo same result here.

kmod-switch-bcm53xx, kmod-switch-bcm53xx-mdio and kmod-swconfig are in the manifest... Maybe they, or at least swconfig need to be excluded? On other DSA devices I have, swconfig is not present.

I'm not sure what @rmilecki was expecting/hoping to see. Nothing stands out to me.

U-Boot 1.1.4.2-s559 (May 23 2012 - 13:31:49)

Board: Ubiquiti Networks XM board (rev 2.4 e702)
DRAM:  64 MB
Flash:  8 MB
Net:   eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at 9f050000 ...
   Image Name:   MIPS OpenWrt Linux-5.15.67
   Created:      2022-09-16   7:17:24 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2345554 Bytes =  2.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 5.15.67 (@) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.3.0 r20648-8010d3da03) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 Fri Sep 16 07:17:24 2022
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Ubiquiti EdgeSwitch 8XP
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 55788K/65536K available (5762K kernel code, 589K rwdata, 1248K rodata, 1224K init, 207K bss, 9748K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 390.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[    0.000002] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[    0.007988] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.084177] pid_max: default: 32768 minimum: 301
[    0.089125] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.096440] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.107692] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.120358] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.130226] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.137175] pinctrl core: initialized pinctrl subsystem
[    0.144692] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.177363] clocksource: Switched to clocksource MIPS
[    0.183859] NET: Registered PF_INET protocol family
[    0.189186] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.197462] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.205845] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.213607] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.221268] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.228323] TCP: Hash tables configured (established 1024 bind 1024)
[    0.234861] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.241461] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.248882] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.254567] PCI: CLS 0 bytes, default 32
[    0.263336] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.277988] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.283807] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.297098] pinctrl-single 18040028.pinmux: 64 pins, size 8
[    0.304338] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.311787] printk: console [ttyS0] disabled
[    0.316166] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12187500) is a 16550A
[    0.324950] printk: console [ttyS0] enabled
[    0.324950] printk: console [ttyS0] enabled
[    0.333364] printk: bootconsole [early0] disabled
[    0.333364] printk: bootconsole [early0] disabled
[    0.359884] gpio_spi@0 enforce active low on chipselect handle
[    0.378993] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    0.384110] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.390620] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.397318] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.404411] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.411161] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.418508] Creating 5 MTD partitions on "spi0.0":
[    0.423352] 0x000000000000-0x000000040000 : "u-boot"
[    0.433381] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.440374] 0x000000050000-0x0000007b0000 : "firmware"
[    0.449899] 2 uimage-fw partitions found on MTD device firmware
[    0.455883] Creating 2 MTD partitions on "firmware":
[    0.460944] 0x000000000000-0x000000240000 : "kernel"
[    0.467445] 0x000000240000-0x000000760000 : "rootfs"
[    0.476143] mtd: device 4 (rootfs) set to be root filesystem
[    0.482101] 1 squashfs-split partitions found on MTD device rootfs
[    0.488376] 0x000000500000-0x000000760000 : "rootfs_data"
[    0.496565] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.502919] 0x0000007f0000-0x000000800000 : "art"
[    1.271280] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.281321] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    1.630002] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.640021] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    1.646806] i2c_dev: i2c /dev entries driver
[    1.653880] NET: Registered PF_INET6 protocol family
[    1.671332] Segment Routing with IPv6
[    1.675165] In-situ OAM (IOAM) with IPv6
[    1.679373] NET: Registered PF_PACKET protocol family
[    1.684585] 8021q: 802.1Q VLAN Support v1.8
[    1.690424] ar724x-pci 180c0000.pcie-controller: PCIe link is down
[    1.696961] PCI host bridge to bus 0000:00
[    1.701161] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.708093] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.713695] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.723340] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    1.746169] gpio-export gpio-export: 16 gpio(s) exported
[    1.774513] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.791776] Freeing unused kernel image (initmem) memory: 1224K
[    1.797770] This architecture does not have kernel memory protection.
[    1.804249] Run /sbin/init as init process
[    3.284413] init: Console is alive
[    3.288690] init: - watchdog -
[    3.292328] init: Watchdog has previously reset the system
[    4.880790] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.236789] usbcore: registered new interface driver usbfs
[    5.242511] usbcore: registered new interface driver hub
[    5.248026] usbcore: registered new device driver usb
[    5.268061] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.277216] ehci-fsl: Freescale EHCI Host controller driver
[    5.286806] ehci-platform: EHCI generic platform driver
[    5.292691] ehci-platform 1b000000.usb: EHCI Host Controller
[    5.298506] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    5.306582] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    5.337382] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    5.345002] hub 1-0:1.0: USB hub found
[    5.350115] hub 1-0:1.0: 1 port detected
[    5.366671] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.375211] ohci-platform: OHCI generic platform driver
[    5.383505] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.401754] init: - preinit -
[    8.150244] random: jshn: uninitialized urandom read (4 bytes read)
[    8.933759] random: jshn: uninitialized urandom read (4 bytes read)
[    9.262115] random: jshn: uninitialized urandom read (4 bytes read)
[    9.368867] random: jshn: uninitialized urandom read (4 bytes read)
[    9.564639] random: jshn: uninitialized urandom read (4 bytes read)
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 are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
[   10.969272] eth0: link up (1000Mbps/Full duplex)
[   10.973975] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.991702] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   11.083428] random: procd: uninitialized urandom read (4 bytes read)
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
[   13.720864] jffs2: notice: (430) jffs2_build_xattr_subsystem: complete building xattr subsystem, 6 of xdatum (0 unchecked, 1 orphan) and 7 of xref (1 dead, 0 orphan) found.
[   13.739874] mount_root: switching to jffs2 overlay
[   13.755158] overlayfs: upper fs does not support tmpfile.
[   13.773728] urandom-seed: Seeding with /etc/urandom.seed
[   14.020063] eth0: link down
[   14.057497] procd: - early -
[   14.060957] procd: - watchdog -
[   14.064666] procd: Watchdog has previously reset the system
[   14.941305] procd: - watchdog -
[   14.944652] procd: Watchdog has previously reset the system
[   15.274169] procd: - ubus -
[   15.485998] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.494901] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.515570] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.534898] procd: - init -
Please press Enter to activate this console.
[   16.865931] random: jshn: uninitialized urandom read (4 bytes read)
[   18.327449] kmodloader: loading kernel modules from /etc/modules.d/*
[   19.015052] xt_time: kernel timezone is -0000
[   19.258090] kmodloader: done loading kernel modules from /etc/modules.d/*
[   19.454320] urngd: v1.0.2 started.
[   19.842547] random: crng init done
[   19.845996] random: 20 urandom warning(s) missed due to ratelimiting
[   35.845074] eth0: link up (1000Mbps/Full duplex)
[   35.870289] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   35.881297] br-lan: port 1(eth0.1) entered blocking state
[   35.886768] br-lan: port 1(eth0.1) entered disabled state
[   35.892758] device eth0.1 entered promiscuous mode
[   35.897652] device eth0 entered promiscuous mode
[   35.951700] br-lan: port 1(eth0.1) entered blocking state
[   35.957165] br-lan: port 1(eth0.1) entered forwarding state
[   36.256356] eth1: link up (1000Mbps/Full duplex)
[   36.271610] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   36.837498] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
rogerpueyo commented 1 year ago

Hi @lister-wrt, @rmilecki,

Sorry for the delay, I've been very busy recently. Good news: I got the switch to work using the upstream DSA-based b53 driver.

The patch is at https://github.com/rogerpueyo/openwrt/commits/ath79-ubnt-edgeswitch-8xp-b53-dsa_wip (still work in progress).

You may want to give a try to this image attached (current snapshot + the commit above): openwrt-ath79-generic-ubnt_edgeswitch-8xp-squashfs-sysupgrade.bin.gz

I hope to be submitting a proper pull request at some point.

(edit: attached new image with luci and luci-ssl)

rogerpueyo commented 1 year ago

Hi, @lister-wrt,

I'll be submitting a pull request with the code from https://github.com/rogerpueyo/openwrt/commits/ath79-ubnt-edgeswitch-8xp-b53-dsa soon. I'm attaching a sysupgrade image, in case you'd like to give it another try: openwrt-ath79-generic-ubnt_edgeswitch-8xp-squashfs-sysupgrade.bin.gz.

Cheers!

lister-wrt commented 1 year ago

@rogerpueyo I'll be able to test it when I'm home on Friday.

lister-wrt commented 1 year ago

@rogerpueyo life had other plans. I tested your patches work against current master, all seems to be working!


[    0.000000] Linux version 5.15.82 (*@*) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r21399-644175c29c) 12.2.0, GNU ld (GNU Binutils) 2.39) #0 Sun Dec 11 02:30:14 2022
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Ubiquiti EdgeSwitch 8XP
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 55592K/65536K available (5928K kernel code, 583K rwdata, 1296K rodata, 1208K init, 207K bss, 9944K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 390.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[    0.000002] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[    0.007995] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.084177] pid_max: default: 32768 minimum: 301
[    0.089164] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.096483] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.108018] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.120731] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.130602] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.137552] pinctrl core: initialized pinctrl subsystem
[    0.145083] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.178416] clocksource: Switched to clocksource MIPS
[    0.184879] NET: Registered PF_INET protocol family
[    0.190219] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.198496] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.206879] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.214625] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.222284] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.229340] TCP: Hash tables configured (established 1024 bind 1024)
[    0.235878] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.242480] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.249917] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.255624] PCI: CLS 0 bytes, default 32
[    0.264471] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.278947] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.284765] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.298065] pinctrl-single 18040028.pinmux: 64 pins, size 8
[    0.305358] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.312859] printk: console [ttyS0] disabled
[    0.317243] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12187500) is a 16550A
[    0.326033] printk: console [ttyS0] enabled
[    0.334444] printk: bootconsole [early0] disabled
[    0.361308] gpio_spi@0 enforce active low on chipselect handle
[    0.380548] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    0.385668] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.392175] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.398910] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.405990] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.412752] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.420126] Creating 5 MTD partitions on "spi0.0":
[    0.424967] 0x000000000000-0x000000040000 : "u-boot"
[    0.435020] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.442035] 0x000000050000-0x0000007b0000 : "firmware"
[    0.451569] 2 uimage-fw partitions found on MTD device firmware
[    0.457552] Creating 2 MTD partitions on "firmware":
[    0.462615] 0x000000000000-0x000000250000 : "kernel"
[    0.469225] 0x000000250000-0x000000760000 : "rootfs"
[    0.477928] mtd: setting mtd4 (rootfs) as root device
[    0.483277] 1 squashfs-split partitions found on MTD device rootfs
[    0.489554] 0x0000004f0000-0x000000760000 : "rootfs_data"
[    0.497788] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.504152] 0x0000007f0000-0x000000800000 : "art"
[    1.270377] bcm53xx mdio.0:1e: found switch: BCM53128, rev 4
[    1.276207] bcm53xx mdio.0:1e: failed to register switch: -517
[    1.286199] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.296251] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    1.641068] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.651103] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    1.657900] i2c_dev: i2c /dev entries driver
[    1.664951] NET: Registered PF_INET6 protocol family
[    1.682595] Segment Routing with IPv6
[    1.686426] In-situ OAM (IOAM) with IPv6
[    1.690636] NET: Registered PF_PACKET protocol family
[    1.696303] 8021q: 802.1Q VLAN Support v1.8
[    1.702062] ar724x-pci 180c0000.pcie-controller: PCIe link is down
[    1.708693] PCI host bridge to bus 0000:00
[    1.712829] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.719792] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.725400] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.735089] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    1.759905] gpio-export gpio-export: 16 gpio(s) exported
[    1.766227] bcm53xx mdio.0:1e: found switch: BCM53128, rev 4
[    1.905999] bcm53xx mdio.0:1e: Using legacy PHYLIB callbacks. Please migrate to PHYLINK!
[    1.917854] bcm53xx mdio.0:1e lan1 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[    1.929456] bcm53xx mdio.0:1e lan2 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] (irq=POLL)
[    1.940686] bcm53xx mdio.0:1e lan3 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] (irq=POLL)
[    1.951880] bcm53xx mdio.0:1e lan4 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] (irq=POLL)
[    1.963119] bcm53xx mdio.0:1e lan5 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] (irq=POLL)
[    1.974328] bcm53xx mdio.0:1e lan6 (uninitialized): PHY [dsa-0.0:05] driver [Generic PHY] (irq=POLL)
[    1.985552] bcm53xx mdio.0:1e lan7 (uninitialized): PHY [dsa-0.0:06] driver [Generic PHY] (irq=POLL)
[    1.996758] bcm53xx mdio.0:1e lan8 (uninitialized): PHY [dsa-0.0:07] driver [Generic PHY] (irq=POLL)
[    2.007664] DSA: tree 0 setup
[    2.044910] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    2.062069] Freeing unused kernel image (initmem) memory: 1208K
[    2.068026] This architecture does not have kernel memory protection.
[    2.074554] Run /sbin/init as init process
[    2.078685]   with arguments:
[    2.078694]     /sbin/init
[    2.078703]   with environment:
[    2.078711]     HOME=/
[    2.078720]     TERM=linux
[    3.266490] init: Console is alive
[    3.270756] init: - watchdog -
[    3.274384] init: Watchdog has previously reset the system
[    4.264018] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.389185] usbcore: registered new interface driver usbfs
[    4.394822] usbcore: registered new interface driver hub
[    4.400355] usbcore: registered new device driver usb
[    4.420328] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.429610] ehci-fsl: Freescale EHCI Host controller driver
[    4.439289] ehci-platform: EHCI generic platform driver
[    4.445091] ehci-platform 1b000000.usb: EHCI Host Controller
[    4.450903] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    4.459026] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    4.488444] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    4.496129] hub 1-0:1.0: USB hub found
[    4.501248] hub 1-0:1.0: 1 port detected
[    4.516913] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.526663] ohci-platform: OHCI generic platform driver
[    4.534346] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.544208] init: - preinit -
[    7.210124] random: jshn: uninitialized urandom read (4 bytes read)
[    7.874393] random: jshn: uninitialized urandom read (4 bytes read)
[    7.966481] random: jshn: uninitialized urandom read (4 bytes read)
[    8.241090] random: jshn: uninitialized urandom read (4 bytes read)
[    8.332070] random: jshn: uninitialized urandom read (4 bytes read)
[    8.461486] bcm53xx mdio.0:1e lan1: configuring for phy/gmii link mode
[    8.469467] eth0: link up (1000Mbps/Full duplex)
[    8.474524] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.483202] bcm53xx mdio.0:1e lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[    8.498670] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[    8.521294] random: procd: uninitialized urandom read (4 bytes read)
[   10.976483] jffs2: notice: (472) jffs2_build_xattr_subsystem: complete building xattr subsystem, 11 of xdatum (0 unchecked, 1 orphan) and 13 of xref (1 dead, 0 orphan) found.
[   10.995429] mount_root: switching to jffs2 overlay
[   11.018593] overlayfs: upper fs does not support tmpfile.
[   11.038864] urandom-seed: Seeding with /etc/urandom.seed
[   11.258726] bcm53xx mdio.0:1e lan1: Link is Down
[   11.284668] procd: - early -
[   11.288113] procd: - watchdog -
[   11.292211] procd: Watchdog has previously reset the system
[   12.062521] procd: - watchdog -
[   12.065864] procd: Watchdog has previously reset the system
[   12.074315] procd: - ubus -
[   12.246228] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.255135] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.262409] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.281784] procd: - init -
[   13.376776] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.202711] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.621792] kmodloader: done loading kernel modules from /etc/modules.d/*
[   15.026277] urngd: v1.0.2 started.
[   15.407586] random: crng init done
[   15.411101] random: 20 urandom warning(s) missed due to ratelimiting
[   24.165943] eth0: link down
[   24.454402] eth0: link up (1000Mbps/Full duplex)
[   24.520576] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   24.551295] bcm53xx mdio.0:1e lan1: configuring for phy/gmii link mode
[   24.581485] br-lan: port 1(lan1) entered blocking state
[   24.586781] br-lan: port 1(lan1) entered disabled state
[   24.593591] device lan1 entered promiscuous mode
[   24.598257] device eth0 entered promiscuous mode
[   24.775653] bcm53xx mdio.0:1e lan2: configuring for phy/gmii link mode
[   24.782911] bcm53xx mdio.0:1e lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[   24.914673] br-lan: port 2(lan2) entered blocking state
[   24.920039] br-lan: port 2(lan2) entered disabled state
[   24.926891] device lan2 entered promiscuous mode
[   25.038781] br-lan: port 2(lan2) entered blocking state
[   25.044077] br-lan: port 2(lan2) entered forwarding state
[   25.050273] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   25.133326] bcm53xx mdio.0:1e lan3: configuring for phy/gmii link mode
[   25.140684] bcm53xx mdio.0:1e lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   25.209249] br-lan: port 3(lan3) entered blocking state
[   25.214544] br-lan: port 3(lan3) entered disabled state
[   25.259855] device lan3 entered promiscuous mode
[   25.348728] br-lan: port 3(lan3) entered blocking state
[   25.354028] br-lan: port 3(lan3) entered forwarding state
[   25.384276] bcm53xx mdio.0:1e lan4: configuring for phy/gmii link mode
[   25.391547] bcm53xx mdio.0:1e lan4: Link is Up - 100Mbps/Full - flow control rx/tx
[   25.421082] br-lan: port 4(lan4) entered blocking state
[   25.426382] br-lan: port 4(lan4) entered disabled state
[   25.461865] device lan4 entered promiscuous mode
[   25.548725] br-lan: port 4(lan4) entered blocking state
[   25.554025] br-lan: port 4(lan4) entered forwarding state
[   25.594343] bcm53xx mdio.0:1e lan5: configuring for phy/gmii link mode
[   25.629223] br-lan: port 5(lan5) entered blocking state
[   25.634517] br-lan: port 5(lan5) entered disabled state
[   25.662488] device lan5 entered promiscuous mode
[   25.767436] bcm53xx mdio.0:1e lan6: configuring for phy/gmii link mode
[   25.799209] br-lan: port 6(lan6) entered blocking state
[   25.804508] br-lan: port 6(lan6) entered disabled state
[   25.850237] device lan6 entered promiscuous mode
[   25.944554] bcm53xx mdio.0:1e lan7: configuring for phy/gmii link mode
[   25.969243] br-lan: port 7(lan7) entered blocking state
[   25.974534] br-lan: port 7(lan7) entered disabled state
[   25.982114] device lan7 entered promiscuous mode
[   26.094618] bcm53xx mdio.0:1e lan8: configuring for phy/gmii link mode
[   26.129216] br-lan: port 8(lan8) entered blocking state
[   26.134515] br-lan: port 8(lan8) entered disabled state
[   26.142233] device lan8 entered promiscuous mode
[   28.738947] bcm53xx mdio.0:1e lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   28.746462] br-lan: port 1(lan1) entered blocking state
[   28.751796] br-lan: port 1(lan1) entered forwarding state```
areqq commented 8 months ago

any chance for working latest openwrt on Ubiquiti EdgeSwitch 8XP?

rogerpueyo commented 8 months ago

Not really, the current b53 switch driver (as it is now) is broken and won't be fixed. The proper way to go is using the DSA b53 driver. It works when the driver is built into the kernel, but not when built as a module. Any help will be more than appreciated.

areqq commented 8 months ago

so, why not built the driver into the kernel ?

rogerpueyo commented 8 months ago

This was my first approach, but it means that the driver is added to the images of all the ath79/generic devices. Since this driver is 8xp-specific, it is a bit overkill to include in the images for so many devices that don't use it.