Ath79: UBNT Rocket M (SWX-M5) not working

i try to install the ath79 port and either the 19.07.7 nor the 20.02-rc releases are working.
(btw. installed the ath79 port to an nanostation M5 and this one is working fine! so maybe its ethernet port related? to bad that the wifi isnt enabed by default...).

installed the 19.07.07 ar71xx port and it works fine.

how to proceed to get the port working?

"Does not work" is not really helpful for debugging...

yes its not. what do you need? dunno if it has a serial header inside?

Well, it would be a first start to know what's not working, for example ...

serial bootlog from 19.07.07



U-Boot 1.1.4.2-s445 (Sep  6 2010 - 14:46:33)

Board: Ubiquiti Networks XM board (rev 0.0 e1b5)
DRAM:  

U-Boot 1.1.4.2-s445 (Sep  6 2010 - 14:46:33)

Board: Ubiquiti Networks XM board (rev 0.0 e1b5)
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-4.14.221
   Created:      2021-02-15  15:22:37 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1599334 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 4.14.221 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11306-c4a6851c72)) #0 Mon Feb 15 15:22:37 2021
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Ubiquiti Rocket M
[    0.000000] SoC: Atheros AR7240 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 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] random: get_random_bytes called from 0x80501740 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 58336K/65536K available (4037K kernel code, 163K rwdata, 532K rodata, 1212K init, 212K bss, 7200K 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.007914] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.084108] pid_max: default: 32768 minimum: 301
[    0.089001] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.095608] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.108516] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118353] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.124524] pinctrl core: initialized pinctrl subsystem
[    0.133080] NET: Registered protocol family 16
[    0.141415] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.147850]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.153116]   IO 0x0000000000000000..0x0000000000000000
[    0.182487] PCI host bridge to bus 0000:00
[    0.186658] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.193490] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.199054] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.205803] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.214362] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.226012] clocksource: Switched to clocksource MIPS
[    0.232548] NET: Registered protocol family 2
[    0.238281] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.245235] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.251644] TCP: Hash tables configured (established 1024 bind 1024)
[    0.258208] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.264051] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.270690] NET: Registered protocol family 1
[    0.279356] Crashlog allocated RAM at address 0x3f00000
[    0.286494] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.301022] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.306892] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.330042] io scheduler noop registered
[    0.333950] io scheduler deadline registered (default)
[    0.339628] ar7200-usb-phy usb-phy: phy reset is missing
[    0.345499] pinctrl-single 18040028.pinmux: 64 pins at pa b8040028 size 8
[    0.353690] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.363727] console [ttyS0] disabled
[    0.367416] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12187500) is a 16550A
[    0.376122] console [ttyS0] enabled
[    0.376122] console [ttyS0] enabled
[    0.383113] bootconsole [early0] disabled
[    0.383113] bootconsole [early0] disabled
[    0.403579] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.408630] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.414999] Creating 6 MTD partitions on "spi0.0":
[    0.419845] 0x000000000000-0x000000040000 : "u-boot"
[    0.426091] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.432514] 0x000000050000-0x0000007a0000 : "firmware"
[    0.442496] 2 uimage-fw partitions found on MTD device firmware
[    0.448522] Creating 2 MTD partitions on "firmware":
[    0.453530] 0x000000000000-0x000000190000 : "kernel"
[    0.459651] 0x000000190000-0x000000750000 : "rootfs"
[    0.465632] mtd: device 4 (rootfs) set to be root filesystem
[    0.471426] 1 squashfs-split partitions found on MTD device rootfs
[    0.477665] 0x000000400000-0x000000750000 : "rootfs_data"
[    0.484166] 0x0000007a0000-0x0000007b0000 : "board_config"
[    0.490843] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.496763] 0x0000007f0000-0x000000800000 : "art"
[    0.504193] libphy: Fixed MDIO Bus: probed
[    0.846477] libphy: ag71xx_mdio: probed
[    0.851332] libphy: ar8xxx-mdio: probed
[    0.856628] switch0: Atheros AR724X/AR933X built-in rev. 0 switch registered on mdio-bus.0
[    1.237626] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=00000000, driver=Generic PHY]
[    1.248110] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[    1.257613] NET: Registered protocol family 10
[    1.269065] Segment Routing with IPv6
[    1.272885] NET: Registered protocol family 17
[    1.277490] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.290513] 8021q: 802.1Q VLAN Support v1.8
[    1.297945] hctosys: unable to open rtc device (rtc0)
[    1.309774] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.327032] Freeing unused kernel memory: 1212K
[    1.331577] This architecture does not have kernel memory protection.
[    2.368830] init: Console is alive
[    2.372548] init: - watchdog -
[    2.519004] random: fast init done
[    3.622855] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.753571] usbcore: registered new interface driver usbfs
[    3.759293] usbcore: registered new interface driver hub
[    3.764738] usbcore: registered new device driver usb
[    3.777481] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.786409] ehci-platform: EHCI generic platform driver
[    3.791988] ehci-platform 1b000000.usb: EHCI Host Controller
[    3.797799] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    3.805874] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    3.836060] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 0.00
[    3.843453] hub 1-0:1.0: USB hub found
[    3.847783] hub 1-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    3.858901] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.867340] ohci-platform: OHCI generic platform driver
[    3.873475] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.891371] init: - preinit -
[    5.386248] random: jshn: uninitialized urandom read (4 bytes read)
[    5.736162] random: jshn: uninitialized urandom read (4 bytes read)
[    5.870408] random: jshn: uninitialized urandom read (4 bytes read)
[    6.404298] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.431296] urandom_read: 4 callbacks suppressed
[    6.431307] 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
[    9.738136] jffs2: notice: (470) jffs2_build_xattr_subsystem: complete building xattr subsystem, 4 of xdatum (0 unchecked, 2 orphan) and 12 of xref (2 dead, 0 orphan) found.
[    9.755391] mount_root: switching to jffs2 overlay
[    9.793867] overlayfs: upper fs does not support tmpfile.
[    9.808309] urandom-seed: Seeding with /etc/urandom.seed
[   10.118739] procd: - early -
[   10.121785] procd: - watchdog -
[   10.929001] procd: - watchdog -
[   10.932590] procd: - ubus -
[   11.169696] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.178499] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.186908] procd: - init -
Please press Enter to activate this console.
[   12.251465] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.274971] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.317326] Loading modules backported from Linux version v4.19.161-0-gdaefdc9eb24b
[   12.325026] Backport generated by backports.git v4.19.161-1-0-g4bb568fe
[   12.349316] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.377724] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   12.538812] xt_time: kernel timezone is -0000
[   12.689622] PPP generic driver version 2.4.2
[   12.707591] NET: Registered protocol family 24
[   12.816979] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.304469] urngd: v1.0.2 started.
[   13.943421] random: crng init done
[   31.479193] br-lan: port 1(eth0) entered blocking state
[   31.484457] br-lan: port 1(eth0) entered disabled state
[   31.490216] device eth0 entered promiscuous mode
[   31.518235] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready

no ethernet connection possible.
even when the bootloader says that it has 2 ethernet ports only one is populated. maybe there is the problem located.
also as you can see the wifi isnt be detected, too.

env settings:

ar7240> printenv 
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
filesize=690000
fileaddr=80010000
bootdelay=4
baudrate=115200
mtdids=nor0=ar7240-nor0
partition=nor0,0
mtddevnum=0
mtddevname=u-boot
serverip=192.168.1.254
ethact=eth0
mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
bootcmd=bootm 0x9f050000
bootargs=console=ttyS0,115200 root=31:03 rootfstype=squashfs init=/init
ipaddr=192.168.1.20
stdin=serial
stdout=serial
stderr=serial

Environment size: 473/65532 bytes

so? additional info is needed? which one?

one more thing. the device has 1 eth port only, like the loco devices.

@adrianschmutzler

its still not working at the 21.02 release. imho the eth port isnt working. the Eth LED doesnt come up either.

can you show the dts of this device, i cannot find this model under openwrt, that should be really easy to fix

the SWX-M5 is a XM dervate, but with one eth port like the loco models.

where can i pick the dts?