Porting guide ar71xx to ath79?

try the one without lzma, but I think I have a way for you to test the initrd like I did on my fusion70, and we'll see about the proper factory/sysupgrade image later

the generic-vmlinux-initramfs.bin

Seem that the u-boot from this device don't like to much the openwrt-ath79-generic-vmlinux-initramfs.bin file

ar7100> tftpboot 0x81800000
 check link duplex:Full/speed:100
dup 1 speed 100
*** Warning: no boot file name; using '0101A8C0.img'
Using eth0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0x81800000
Loading: send option "timeout 5"
checksum bad
checksum bad
checksum bad
Got OACK: timeout 5
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #######################################
done
Bytes transferred = 12842068 (c3f454 hex)
ar7100> bootm 0x81800000
## Booting image at 81800000 ...
Bad Magic Number

Seems this image does not have the uImage header...
Try the go cmd instead of bootm.

comment the legacy.mk from image/Makefile and add a profile in generic.mk, like

define Device/linksys-e2100l
  ATH_SOC := ar9130
  DEVICE_TITLE := tst-E2100L
  KERNEL := kernel-bin | append-dtb | gzip
  KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip
  IMAGES := sysupgrade.bin
  IMAGE/sysupgrade.bin := append-rootfs | append-metadata
  DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  SUPPORTED_DEVICES += linksys,e2100l
endef
TARGET_DEVICES += linksys-e2100l

erase the tmp folder and rerun menuconfig, see if the tst-E2100L appears and make it, and try the initramfs image

@juppin, thanks for your help. Here is the result of the tftboot and the the go command.

ar7100> tftpboot 0x81800000
 check link duplex:Full/speed:100
dup 1 speed 100
*** Warning: no boot file name; using '0101A8C0.img'
Using eth0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0x81800000
Loading: send option "timeout 5"
checksum bad
checksum bad
Got OACK: timeout 5
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #######################################
done
Bytes transferred = 12842068 (c3f454 hex)
ar7100> go 0x81800000
Usage:
go      - boot default, i.e., run 'bootcmd'

Running the go command without memory address, initialize the in flash firmware

In the image/Makefile

include ./tiny-netgear.mk
include ./tiny-tp-link.mk
endif
#include ./legacy.mk

The generic.mk file

  DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  IMAGE_SIZE := 16000k
  SUPPORTED_DEVICES += gl-ar300m
endef
TARGET_DEVICES += glinet_ar300m_nor

define Device/linksys-e2100l
  ATH_SOC := ar9130
  DEVICE_TITLE := tst-E2100L
  KERNEL := kernel-bin | append-dtb | gzip
  KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip
  IMAGES := sysupgrade.bin
  IMAGE/sysupgrade.bin := append-rootfs | append-metadata
  DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  SUPPORTED_DEVICES += linksys,e2100l
endef
TARGET_DEVICES += linksys-e2100l

define Device/openmesh_om5p-ac-v2
  ATH_SOC := qca9558

Pantallazo-2018-06-30%2016-31-22


Here is the result of the tftboot and bootm of the openwrt-ath79-generic-linksys-e2100l-initramfs-kernel.bin file

ar7100> tftpboot 0x81800000
 check link duplex:Full/speed:100
dup 1 speed 100
*** Warning: no boot file name; using '0101A8C0.img'
Using eth0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0x81800000
Loading: send option "timeout 5"
Got OACK: timeout 5
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###############################
done
Bytes transferred = 5482701 (53a8cd hex)
ar7100> bootm 0x81800000
## Booting image at 81800000 ...
Bad Magic Number

Normally go does branch to the instruction on the provided address... According to the cmd description, seems to do that not on your target.

Here is something needed to create a uImage header...
Try to append to both | uImage gzip

KERNEL := kernel-bin | append-dtb | gzip | uImage gzip
KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | uImage gzip

Yes, it seems that this fix the uImage header, now the device boots, here is the serial log

ar7100> tftpboot 0x81800000
 check link duplex:Full/speed:100
*** Warning: no boot file name; using '0101A8C0.img'
Using eth0 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0x81800000
Loading: send option "timeout 5"
Got OACK: timeout 5
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###############################
done
Bytes transferred = 5482769 (53a911 hex)
ar7100> bootm 0x81800000
## Booting image at 81800000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.51
   Created:      2018-06-28  17:58:55 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    5482705 Bytes =  5.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
kernel: org len = 5482705, new len = 5505024
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 4.14.51 (valkyria@Valkyria-Z) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7348-2ad216964b)) #0 Thu Jun 28 17:58:55 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Linksys E2100L
[    0.000000] SoC: Atheros AR9130 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 start_kernel+0x8c/0x474 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: 50724K/65536K available (3656K kernel code, 147K rwdata, 788K rodata, 8968K init, 212K bss, 14812K 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: 50.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000101] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.063145] Calibrating delay loop... 33.17 BogoMIPS (lpj=165888)
[    0.211943] pid_max: default: 32768 minimum: 301
[    0.251164] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.304143] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.400537] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.479280] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.528775] pinctrl core: initialized pinctrl subsystem
[    0.579843] NET: Registered protocol family 16
[    0.830720] clocksource: Switched to clocksource MIPS
[    0.882291] NET: Registered protocol family 2
[    0.925899] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.982101] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.033108] TCP: Hash tables configured (established 1024 bind 1024)
[    1.085511] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.132611] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.185325] NET: Registered protocol family 1
[    3.251026] random: fast init done
[    3.369688] Crashlog allocated RAM at address 0x3f00000
[    3.422926] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    3.530259] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.577251] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    4.573565] io scheduler noop registered
[    4.605336] io scheduler deadline registered (default)
[    4.649013] ar7200-usb-phy usb-phy: phy reset is missing
[    4.701343] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    4.759268] console [ttyS0] disabled
[    4.788701] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a 8250
$rC�������>���`�!i��d�rZKX0$~�eY|���6rфZ|�$r2rC�v�$r2rC$��$z�3���#�<w��$r2Ф�t@��l2"�$zH�&v9{�$zY2K2�3,xt�&z�!0:��$z
                                                                                                                        u�=�$z.�t�$�

At this point, all of the remaining output is garbage. Fortunately, the wifi work, and I have ssh and luci acces by wifi to the device. Here is the complete dmesg log

[    0.000000] Linux version 4.14.51 (valkyria@Valkyria-Z) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7348-2ad216964b)) #0 Thu Jun 28 17:58:55 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Linksys E2100L
[    0.000000] SoC: Atheros AR9130 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] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 804db2f0, node_mem_map 81005bc0
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    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: 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: 50724K/65536K available (3656K kernel code, 147K rwdata, 788K rodata, 8968K init, 212K bss, 14812K 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: 50.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000101] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.063145] Calibrating delay loop... 33.17 BogoMIPS (lpj=165888)
[    0.211943] pid_max: default: 32768 minimum: 301
[    0.251164] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.304143] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.400537] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.479280] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.528775] pinctrl core: initialized pinctrl subsystem
[    0.579843] NET: Registered protocol family 16
[    0.830720] clocksource: Switched to clocksource MIPS
[    0.882291] NET: Registered protocol family 2
[    0.925899] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.982101] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.033108] TCP: Hash tables configured (established 1024 bind 1024)
[    1.085511] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.132611] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.185325] NET: Registered protocol family 1
[    1.220858] PCI: CLS 0 bytes, default 32
[    3.251026] random: fast init done
[    3.369688] Crashlog allocated RAM at address 0x3f00000
[    3.422926] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    3.530259] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.577251] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    4.573565] io scheduler noop registered
[    4.605336] io scheduler deadline registered (default)
[    4.649013] ar7200-usb-phy usb-phy: phy reset is missing
[    4.701343] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    4.759268] console [ttyS0] disabled
[    4.788701] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a 8250
[    4.856307] console [ttyS0] enabled
[    4.864109] bootconsole [early0] disabled
[    4.934888] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    4.940535] 4 fixed-partitions partitions found on MTD device spi0.0
[    4.947702] Creating 4 MTD partitions on "spi0.0":
[    4.952987] 0x000000000000-0x000000040000 : "u-boot"
[    4.967285] 0x000000040000-0x000000810000 : "firmware"
[    4.973317] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0x7c0000
[    5.122868] 0x0000007e0000-0x0000007f0000 : "nvram"
[    5.136585] 0x0000007f0000-0x000000800000 : "art"
[    5.159893] libphy: Fixed MDIO Bus: probed
[    5.814721] libphy: mdio: probed
[    6.105857] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=001cc852, driver=Generic PHY]
[    6.123195] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RMII
[    6.153136] NET: Registered protocol family 10
[    6.200352] Segment Routing with IPv6
[    6.205937] NET: Registered protocol family 17
[    6.211304] 8021q: 802.1Q VLAN Support v1.8
[    6.682587] Freeing unused kernel memory: 8968K
[    6.687467] This architecture does not have kernel memory protection.
[    6.833366] init: Console is alive
[    6.839037] init: - watchdog -
[    7.151192] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.282889] usbcore: registered new interface driver usbfs
[    7.289492] usbcore: registered new interface driver hub
[    7.296431] usbcore: registered new device driver usb
[    7.367521] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.389089] ehci-platform: EHCI generic platform driver
[    7.397313] ehci-platform 1b000100.usb: EHCI Host Controller
[    7.403940] ehci-platform 1b000100.usb: new USB bus registered, assigned bus number 1
[    7.413360] ehci-platform 1b000100.usb: irq 3, io mem 0x1b000100
[    7.440905] ehci-platform 1b000100.usb: USB 2.0 started, EHCI 1.00
[    7.456551] hub 1-0:1.0: USB hub found
[    7.464969] hub 1-0:1.0: 1 port detected
[    7.504595] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.524930] ohci-platform: OHCI generic platform driver
[    7.555143] uhci_hcd: USB Universal Host Controller Interface driver
[    7.569642] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.592195] init: - preinit -
[    9.346724] random: jshn: uninitialized urandom read (4 bytes read)
[   10.181849] random: jshn: uninitialized urandom read (4 bytes read)
[   10.715979] random: jshn: uninitialized urandom read (4 bytes read)
[   11.266207] random: jshn: uninitialized urandom read (4 bytes read)
[   11.688679] random: jshn: uninitialized urandom read (4 bytes read)
[   12.077065] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   12.227386] random: procd: uninitialized urandom read (4 bytes read)
[   16.583794] procd: - early -
[   16.587865] procd: - watchdog -
[   17.526133] procd: - watchdog -
[   17.532725] procd: - ubus -
[   17.624271] random: ubusd: uninitialized urandom read (4 bytes read)
[   17.710240] random: ubusd: uninitialized urandom read (4 bytes read)
[   17.722282] random: ubusd: uninitialized urandom read (4 bytes read)
[   17.739423] procd: - init -
[   19.785048] kmodloader: loading kernel modules from /etc/modules.d/*
[   19.856974] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   19.979200] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   19.988189] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   20.037164] ip_tables: (C) 2000-2006 Netfilter Core Team
[   20.134609] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   20.812219] xt_time: kernel timezone is -0000
[   21.377380] PPP generic driver version 2.4.2
[   21.408525] NET: Registered protocol family 24
[   21.519535] usbcore: registered new interface driver rt73usb
[   21.567014] usbcore: registered new interface driver rtl8187
[   21.702889] usbcore: registered new interface driver zd1211rw
[   21.998380] usbcore: registered new interface driver rt2500usb
[   22.119481] usbcore: registered new interface driver rt2800usb
[   22.255118] usbcore: registered new interface driver rtl8192cu
[   22.494266] ath: EEPROM regdomain: 0x0
[   22.494357] ath: EEPROM indicates default country code should be used
[   22.494397] ath: doing EEPROM country->regdmn map search
[   22.494514] ath: country maps to regdmn code: 0x3a
[   22.494573] ath: Country alpha2 being used: US
[   22.494614] ath: Regpair used: 0x3a
[   22.737753] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   22.776360] ieee80211 phy0: Atheros AR9100 MAC/BB Rev:7 AR2122 RF Rev:a2 mem=0xb80c0000, irq=2
[   23.284628] kmodloader: done loading kernel modules from /etc/modules.d/*
[  131.821478] random: crng init done
[  131.825274] random: 1 urandom warning(s) missed due to ratelimiting
[  142.849683] br-lan: port 1(eth0) entered blocking state
[  142.855900] br-lan: port 1(eth0) entered disabled state
[  142.864799] device eth0 entered promiscuous mode
[  143.016461] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[  174.150560] ath: phy0: Unable to reset hardware; reset status -5 (freq 2412 MHz)
[  174.222962] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  175.606149] br-lan: port 2(wlan0) entered blocking state
[  175.612411] br-lan: port 2(wlan0) entered disabled state
[  175.621669] device wlan0 entered promiscuous mode
[  176.031119] ath: phy0: Unable to reset channel, reset status -5
[  176.149924] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  176.158782] br-lan: port 2(wlan0) entered blocking state
[  176.164843] br-lan: port 2(wlan0) entered forwarding state
[  176.231843] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  638.045763] ath: phy0: Unable to reset channel, reset status -5
[  900.445712] ath: phy0: Unable to reset channel, reset status -5
[ 1077.565661] ath: phy0: Unable to reset channel, reset status -5
[ 1378.605794] ath: phy0: Unable to reset channel, reset status -5
[ 1479.725696] ath: phy0: Unable to reset channel, reset status -5
[ 1570.445836] ath: phy0: Unable to reset channel, reset status -5
[ 1695.645968] ath: phy0: Unable to reset channel, reset status -5
[ 1695.855752] ath: phy0: Unable to reset channel, reset status -5
[ 1696.061276] ath: phy0: Unable to reset channel, reset status -5

Its an issue with the reference clock since you CPU clock is
CPU clock: 50.000 MHz

Thats why serial is garbed as baud rate is not correct.
Also,partitions are wrong and bigger than actual flash

This two lines suggest me that there is something wrong with your reference clock!

Check your clock settings in your dts... I don´t think this is correct:
clock-frequency = <5000000>;

It should be:
For 40 MHz ref clock
clock-frequency = <40000000>;
or for 25 MHz ref clock
clock-frequency = <25000000>;

Other ref clk´s not supported by ath79/ar71xx.

And as @robimarko said... 8 MB flash is address 0x0 till 0x800000.

Your firmware node shoud look like:

partition@40000 {
    label = "firmware";
    reg = <0x040000 0x7A0000>;
};

On ar71xx, the reference was 5 mhz, but this is promising, i'll try to look how other switches where ported to dst and try to make the same for this switch

Where do you get the 5 MHz?

On ar71xx the reference clock is detected with a bootstrap pin and this pin allows only two different configurations.
It could be only 40 MHz or 25 MHz for the soc...

Don´t know what you mean with switch?

He posted a dmesg, look on the previous posts

1 Like

Thats gotta be wrong.
According to this PCB photo its 40MHz.
I have never seen Atheros/QCA using 5MHz ref clock,it has always been 25 or 40 MHz.
https://vignette.wikia.nocookie.net/infodepot/images/f/fc/Linksys_E2100L_v1.0_FCCi.jpg/revision/latest?cb=20100803130637

Using clock-frequency = <25000000>; I get

[    0.000000] CPU clock: 250.000 MHz

And get again garbage on the serial output.

Here is the dmesg output with

clock-frequency = <40000000>;

And (as @robimarko pointed)

partition@40000 {
    label = "firmware";
    reg = <0x040000 0x7A0000>;
};
[    0.000000] Linux version 4.14.51 (valkyria@Valkyria-Z) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7348-2ad216964b)) #0 Thu Jun 28 17:58:55 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Linksys E2100L
[    0.000000] SoC: Atheros AR9130 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] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 804db2f0, node_mem_map 81005bc0
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    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: 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: 50660K/65536K available (3656K kernel code, 147K rwdata, 788K rodata, 9032K init, 212K bss, 14876K 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: 400.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007897] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.094148] pid_max: default: 32768 minimum: 301
[    0.099050] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105654] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.117550] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.127412] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.133585] pinctrl core: initialized pinctrl subsystem
[    0.139972] NET: Registered protocol family 16
[    0.170046] clocksource: Switched to clocksource MIPS
[    0.176346] NET: Registered protocol family 2
[    0.181792] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.188763] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.195176] TCP: Hash tables configured (established 1024 bind 1024)
[    0.201719] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.207562] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.214194] NET: Registered protocol family 1
[    0.218571] PCI: CLS 0 bytes, default 32
[    0.461242] Crashlog allocated RAM at address 0x3f00000
[    0.467842] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.481086] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.486905] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.607784] io scheduler noop registered
[    0.611764] io scheduler deadline registered (default)
[    0.617213] ar7200-usb-phy usb-phy: phy reset is missing
[    0.623698] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.630975] console [ttyS0] disabled
[    0.634593] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 12500000) is a 8250
[    0.643169] console [ttyS0] enabled
[    0.650196] bootconsole [early0] disabled
[    0.664916] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.669883] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.676339] Creating 4 MTD partitions on "spi0.0":
[    0.681182] 0x000000000000-0x000000040000 : "u-boot"
[    0.687209] 0x000000040000-0x0000007e0000 : "firmware"
[    0.709999] 0x0000007e0000-0x0000007f0000 : "nvram"
[    0.715955] 0x0000007f0000-0x000000800000 : "art"
[    0.722918] libphy: Fixed MDIO Bus: probed
[    1.351590] libphy: mdio: probed
[    1.389447] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=001cc852, driver=Generic PHY]
[    1.399620] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RMII
[    1.408453] NET: Registered protocol family 10
[    1.418014] Segment Routing with IPv6
[    1.421909] NET: Registered protocol family 17
[    1.426440] 8021q: 802.1Q VLAN Support v1.8
[    1.488488] Freeing unused kernel memory: 9032K
[    1.493082] This architecture does not have kernel memory protection.
[    1.516011] init: Console is alive
[    1.519700] init: - watchdog -
[    1.557284] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.578703] usbcore: registered new interface driver usbfs
[    1.584401] usbcore: registered new interface driver hub
[    1.589860] usbcore: registered new device driver usb
[    1.602162] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.610784] ehci-platform: EHCI generic platform driver
[    1.616326] ehci-platform 1b000100.usb: EHCI Host Controller
[    1.622122] ehci-platform 1b000100.usb: new USB bus registered, assigned bus number 1
[    1.630144] ehci-platform 1b000100.usb: irq 3, io mem 0x1b000100
[    1.660068] ehci-platform 1b000100.usb: USB 2.0 started, EHCI 1.00
[    1.667410] hub 1-0:1.0: USB hub found
[    1.671672] hub 1-0:1.0: 1 port detected
[    1.679677] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.687614] ohci-platform: OHCI generic platform driver
[    1.695752] uhci_hcd: USB Universal Host Controller Interface driver
[    1.703105] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.720975] init: - preinit -
[    1.932277] random: jshn: uninitialized urandom read (4 bytes read)
[    2.039074] random: jshn: uninitialized urandom read (4 bytes read)
[    2.109400] random: jshn: uninitialized urandom read (4 bytes read)
[    2.276204] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.010045] random: fast init done
[    5.370234] eth0: link up (100Mbps/Full duplex)
[    5.375011] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.467351] procd: - early -
[    5.470476] procd: - watchdog -
[    6.026437] procd: - watchdog -
[    6.029926] procd: - ubus -
[    6.042232] urandom_read: 3 callbacks suppressed
[    6.042243] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.083694] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.090675] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.098237] procd: - init -
[    6.345188] kmodloader: loading kernel modules from /etc/modules.d/*
[    6.359394] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    6.380519] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    6.388576] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    6.400272] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.410142] eth0: link down
[    6.419797] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    6.506100] xt_time: kernel timezone is -0000
[    6.579530] PPP generic driver version 2.4.2
[    6.586872] NET: Registered protocol family 24
[    6.604452] usbcore: registered new interface driver rt73usb
[    6.615030] usbcore: registered new interface driver rtl8187
[    6.636398] usbcore: registered new interface driver zd1211rw
[    6.677367] usbcore: registered new interface driver rt2500usb
[    6.697133] usbcore: registered new interface driver rt2800usb
[    6.718863] usbcore: registered new interface driver rtl8192cu
[    6.805628] ath: EEPROM regdomain: 0x0
[    6.805639] ath: EEPROM indicates default country code should be used
[    6.805644] ath: doing EEPROM country->regdmn map search
[    6.805658] ath: country maps to regdmn code: 0x3a
[    6.805665] ath: Country alpha2 being used: US
[    6.805670] ath: Regpair used: 0x3a
[    6.845604] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    6.850316] ieee80211 phy0: Atheros AR9100 MAC/BB Rev:7 AR2122 RF Rev:a2 mem=0xb80c0000, irq=2
[    7.004241] kmodloader: done loading kernel modules from /etc/modules.d/*
[   20.824288] br-lan: port 1(eth0) entered blocking state
[   20.829556] br-lan: port 1(eth0) entered disabled state
[   20.835276] device eth0 entered promiscuous mode
[   20.877066] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.850242] eth0: link up (100Mbps/Full duplex)
[   21.854854] br-lan: port 1(eth0) entered blocking state
[   21.860152] br-lan: port 1(eth0) entered forwarding state
[   21.912374] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   24.169198] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   24.395651] br-lan: port 2(wlan0) entered blocking state
[   24.401086] br-lan: port 2(wlan0) entered disabled state
[   24.406838] device wlan0 entered promiscuous mode
[   24.557135] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   24.563805] br-lan: port 2(wlan0) entered blocking state
[   24.569152] br-lan: port 2(wlan0) entered forwarding state
[   33.130045] ------------[ cut here ]------------
[   33.134727] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x164/0x274
[   33.143060] NETDEV WATCHDOG: eth0 (ag71xx): transmit queue 0 timed out
[   33.149617] Modules linked in: ath9k ath9k_common rtl8192cu rtl8192c_common rtl_usb rt2800usb rt2800lib rt2500usb pppoe ppp_async ath9k_hw ath zd1211rw rtlwifi rtl8187 rt73usb rt2x00usb rt2x00lib pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables
[   33.220832]  x_tables eeprom_93cx6 uhci_hcd ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   33.233301] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.51 #0
[   33.239163] Stack : 00000000 00000000 80db7502 00000032 804bfc84 804bf8a7 80482d68 00000000
[   33.247599]         80db3660 00000140 804cac94 804cac54 804cac40 00000001 83809db8 199761a8
[   33.256038]         00000000 00000000 80db0000 00002f10 00000000 00000000 00000007 00000000
[   33.264471]         000000a4 0a600000 000000a3 00000000 00000000 00000000 804a9a64 80302ecc
[   33.272903]         00000009 00000140 804cac94 804cac54 00000001 80254c94 00000000 80db0000
[   33.281336]         ...
[   33.283800] Call Trace:
[   33.286284] [<8006a8ac>] show_stack+0x58/0x100
[   33.290791] [<800807f0>] __warn+0xe4/0x118
[   33.294921] [<80080854>] warn_slowpath_fmt+0x30/0x3c
[   33.299916] [<80302ecc>] dev_watchdog+0x164/0x274
[   33.304685] [<800b9880>] call_timer_fn.isra.4+0x24/0x84
[   33.309945] [<800b9a50>] run_timer_softirq+0x170/0x1e8
[   33.315132] [<803f1128>] __do_softirq+0xe8/0x2bc
[   33.319791] [<80207510>] plat_irq_dispatch+0xc0/0x120
[   33.324889] [<800658f8>] handle_int+0x138/0x144
[   33.329449] [<80065780>] __r4k_wait+0x20/0x40
[   33.333852] [<800a8530>] do_idle+0x78/0xe4
[   33.337977] [<800a8788>] cpu_startup_entry+0x18/0x20
[   33.342993] [<804debc0>] start_kernel+0x454/0x474
[   33.347729] ---[ end trace 9e43fa89d05ee851 ]---
[   33.352382] eth0: tx timeout
[   77.790155] random: crng init done
[   77.793600] random: 1 urandom warning(s) missed due to ratelimiting
[   80.090054] eth0: tx timeout
[   80.170208] eth0: link down
[   80.173707] br-lan: port 1(eth0) entered disabled state

It seem strange, I reviewed again on my device the dmesg output from the old working OpenWrt firmware

[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz

Maybe that was the data that caused confusion to @lucize, I don't know how could be working the old OpenWrt firmware on the device using Ref:5.000MHz, but it seems that the correct value is the one that say @juppin

clock-frequency = <40000000>;

I forgot to say that also I don't get anymore garbage on the serial output.

I don't see OF support for this ..

[    0.954308] libphy: ag71xx_mdio: probed
[    1.366275] Registering RTL8306SD switch with Chip ID: 0x5988, version: 0x0000
[    1.373586] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=00008306, driver=Realtek RTL8306S]
[    1.384133] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RMII
[    1.785821] ag71xx ag71xx.1: connected to PHY at ag71xx-mdio.0:04 [uid=00008306, driver=Realtek RTL8306S]
[    1.796421] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:RMII

@lucize @stangri

Some Archer C7 v4 research

Only one cpu port, no leds on switch... Therefore mido0 should be like:

&mdio0 {
	status = "okay";

	phy0: ethernet-phy@0 {
		reg = <0>;

		qca,ar8327-initvals = <
			0x04 0x00080080 /* PORT0 PAD MODE CTRL */
			0x7c 0x0000007e /* PORT0_STATUS */
			>;
	};
};

gpio expander on spi and therefore spi should be like:

&spi {
	status = "okay";
	num-cs = <2>;
	cs-gpios = <0>, <&gpio 0 0>;

	flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "jedec,spi-nor";
		reg = <0>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			...
	};

	gpio2: 74x164@1 {
		compatible = "74x164";
		reg = <1>;
		spi-max-frequency = <10000000>;
		gpio-controller;
		#gpio-cells = <2>;
		registers-number = <1>;
		init-data = /bits/ 8 <0xff>;
	};
};

And led on gpio expander should be like:

	leds {
		compatible = "gpio-leds";

		wps {
			label = "archer-c7-v4:green:wps";
			gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
		};

		...
	};

The other things should be straight forward as for archer c7 v2.

At the moment i´m a litte bussy and therefore i can not do the full port by my own.
I also think it's better to have a device on hand for testing.

Good luck.

1 Like

@Mynzer can you try to enable the CONFIG_RTL8306_PHY=y in generic/config-default ?

Here is the dmesg after enabling CONFIG_RTL8306_PHY=y in generic/config-default

[    0.000000] Linux version 4.14.51 (valkyria@Valkyria-Z) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7348-2ad216964b)) #0 Thu Jun 28 17:58:55 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Linksys E2100L
[    0.000000] SoC: Atheros AR9130 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] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 804df490, node_mem_map 81005bc0
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    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: 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: 50660K/65536K available (3665K kernel code, 150K rwdata, 792K rodata, 9016K init, 212K bss, 14876K 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: 400.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007897] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.094148] pid_max: default: 32768 minimum: 301
[    0.099058] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105662] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.117516] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.127376] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.133553] pinctrl core: initialized pinctrl subsystem
[    0.139937] NET: Registered protocol family 16
[    0.170108] clocksource: Switched to clocksource MIPS
[    0.176402] NET: Registered protocol family 2
[    0.181849] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.188824] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.195237] TCP: Hash tables configured (established 1024 bind 1024)
[    0.201778] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.207624] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.214253] NET: Registered protocol family 1
[    0.218635] PCI: CLS 0 bytes, default 32
[    0.465129] Crashlog allocated RAM at address 0x3f00000
[    0.471695] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.484802] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.490678] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.611131] io scheduler noop registered
[    0.615055] io scheduler deadline registered (default)
[    0.620554] ar7200-usb-phy usb-phy: phy reset is missing
[    0.626970] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.634231] console [ttyS0] disabled
[    0.637852] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 12500000) is a 8250
[    0.646427] console [ttyS0] enabled
[    0.653453] bootconsole [early0] disabled
[    0.668005] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.673038] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.679422] Creating 4 MTD partitions on "spi0.0":
[    0.684266] 0x000000000000-0x000000040000 : "u-boot"
[    0.690360] 0x000000040000-0x0000007e0000 : "firmware"
[    0.713303] 0x0000007e0000-0x0000007f0000 : "nvram"
[    0.719195] 0x0000007f0000-0x000000800000 : "art"
[    0.726225] libphy: Fixed MDIO Bus: probed
[    1.361654] libphy: mdio: probed
[    1.502023] Registering RTL8306SD switch with Chip ID: 0x5988, version: 0x0000
[    1.509340] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=00008306, driver=Realtek RTL8306S]
[    1.519913] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RMII
[    1.528749] NET: Registered protocol family 10
[    1.537993] Segment Routing with IPv6
[    1.541889] NET: Registered protocol family 17
[    1.546416] 8021q: 802.1Q VLAN Support v1.8
[    1.608357] Freeing unused kernel memory: 9016K
[    1.612952] This architecture does not have kernel memory protection.
[    1.635725] init: Console is alive
[    1.639420] init: - watchdog -
[    1.676993] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.698415] usbcore: registered new interface driver usbfs
[    1.704117] usbcore: registered new interface driver hub
[    1.709567] usbcore: registered new device driver usb
[    1.721742] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.730367] ehci-platform: EHCI generic platform driver
[    1.735912] ehci-platform 1b000100.usb: EHCI Host Controller
[    1.741709] ehci-platform 1b000100.usb: new USB bus registered, assigned bus number 1
[    1.749711] ehci-platform 1b000100.usb: irq 3, io mem 0x1b000100
[    1.780124] ehci-platform 1b000100.usb: USB 2.0 started, EHCI 1.00
[    1.787404] hub 1-0:1.0: USB hub found
[    1.791671] hub 1-0:1.0: 1 port detected
[    1.799299] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.807598] ohci-platform: OHCI generic platform driver
[    1.815705] uhci_hcd: USB Universal Host Controller Interface driver
[    1.823114] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.833020] init: - preinit -
[    2.044413] random: jshn: uninitialized urandom read (4 bytes read)
[    2.150373] random: jshn: uninitialized urandom read (4 bytes read)
[    2.220412] random: jshn: uninitialized urandom read (4 bytes read)
[    2.387374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.010104] random: fast init done
[    3.450147] eth0: link up (100Mbps/Full duplex)
[    3.454765] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.577872] procd: - early -
[    5.580984] procd: - watchdog -
[    6.136787] procd: - watchdog -
[    6.140368] procd: - ubus -
[    6.152643] urandom_read: 3 callbacks suppressed
[    6.152654] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.194103] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.201089] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.208666] procd: - init -
[    6.456719] kmodloader: loading kernel modules from /etc/modules.d/*
[    6.471085] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    6.492210] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    6.500331] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    6.511975] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.528608] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    6.570202] eth0: link down
[    6.617808] xt_time: kernel timezone is -0000
[    6.689440] PPP generic driver version 2.4.2
[    6.696765] NET: Registered protocol family 24
[    6.714304] usbcore: registered new interface driver rt73usb
[    6.724877] usbcore: registered new interface driver rtl8187
[    6.746249] usbcore: registered new interface driver zd1211rw
[    6.785247] usbcore: registered new interface driver rt2500usb
[    6.804516] usbcore: registered new interface driver rt2800usb
[    6.826288] usbcore: registered new interface driver rtl8192cu
[    6.912415] ath: EEPROM regdomain: 0x0
[    6.912427] ath: EEPROM indicates default country code should be used
[    6.912432] ath: doing EEPROM country->regdmn map search
[    6.912446] ath: country maps to regdmn code: 0x3a
[    6.912454] ath: Country alpha2 being used: US
[    6.912459] ath: Regpair used: 0x3a
[    6.952392] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    6.957042] ieee80211 phy0: Atheros AR9100 MAC/BB Rev:7 AR2122 RF Rev:a2 mem=0xb80c0000, irq=2
[    7.105063] kmodloader: done loading kernel modules from /etc/modules.d/*
[   20.991549] br-lan: port 1(eth0) entered blocking state
[   20.996819] br-lan: port 1(eth0) entered disabled state
[   21.002539] device eth0 entered promiscuous mode
[   21.048320] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   22.010236] eth0: link up (100Mbps/Full duplex)
[   22.014879] br-lan: port 1(eth0) entered blocking state
[   22.020175] br-lan: port 1(eth0) entered forwarding state
[   22.100217] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   24.304670] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   24.555762] br-lan: port 2(wlan0) entered blocking state
[   24.561216] br-lan: port 2(wlan0) entered disabled state
[   24.566964] device wlan0 entered promiscuous mode
[   24.701830] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   24.708447] br-lan: port 2(wlan0) entered blocking state
[   24.713863] br-lan: port 2(wlan0) entered forwarding state
[   32.090139] ------------[ cut here ]------------
[   32.094829] WARNING: CPU: 0 PID: 951 at net/sched/sch_generic.c:320 dev_watchdog+0x164/0x274
[   32.103351] NETDEV WATCHDOG: eth0 (ag71xx): transmit queue 0 timed out
[   32.109916] Modules linked in: ath9k ath9k_common rtl8192cu rtl8192c_common rtl_usb rt2800usb rt2800lib rt2500usb pppoe ppp_async ath9k_hw ath zd1211rw rtlwifi rtl8187 rt73usb rt2x00usb rt2x00lib pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables
[   32.181146]  x_tables eeprom_93cx6 uhci_hcd ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   32.193615] CPU: 0 PID: 951 Comm: dropbearkey Not tainted 4.14.51 #0
[   32.199997] Stack : 00000000 00000000 80db7502 00000038 83966954 804c38a7 80485b18 000003b7
[   32.208434]         80db3660 00000140 804cec94 804cec54 804cec40 00000001 83809db8 7535894a
[   32.216873]         00000000 00000000 80db0000 00002f68 00000000 00000000 00000007 00000000
[   32.225310]         000000a5 3bc00000 000000a4 00000000 80000000 00000000 804ac8fc 8030531c
[   32.233747]         00000009 00000140 804cec94 804cec54 00000003 80254c94 00000000 80db0000
[   32.242179]         ...
[   32.244643] Call Trace:
[   32.247130] [<8006a8ac>] show_stack+0x58/0x100
[   32.251635] [<800807f0>] __warn+0xe4/0x118
[   32.255764] [<80080854>] warn_slowpath_fmt+0x30/0x3c
[   32.260775] [<8030531c>] dev_watchdog+0x164/0x274
[   32.265529] [<800b9880>] call_timer_fn.isra.4+0x24/0x84
[   32.270804] [<800b9a50>] run_timer_softirq+0x170/0x1e8
[   32.275978] [<803f3568>] __do_softirq+0xe8/0x2bc
[   32.280650] [<80207510>] plat_irq_dispatch+0xc0/0x120
[   32.285733] [<800658f8>] handle_int+0x138/0x144
[   32.290305] ---[ end trace 2acbb9c164eeceb2 ]---
[   32.294941] eth0: tx timeout
[   47.130120] eth0: tx timeout
[   77.359060] random: crng init done
[   77.362504] random: 1 urandom warning(s) missed due to ratelimiting
[  222.090115] eth0: tx timeout

hmm, still only one eth

try to comment from eth1

/*	fixed-link {
		speed = <1000>;
		full-duplex;
	};*/

and add

phy-handle = <&phy4>;

edit:
eth0 seems to be connected to switch, uncomment the fixed link from eth0
or maybe fixed-link should have speed set to 100 not 1000

@hnyman can you share your DTS ?
I'm trying a PB44 board but my flash is not detected and can't figure out how to run with initramfs from memory, my board has redboot bootloader
@juppin some hint ?

boot for ath79

Board: pb44
RAM: 0x80000000-0x84000000, [0x8004a420-0x80fb1000] available
FLASH: 0xbf000000 - 0xc0000000, 64 blocks of 0x00040000 bytes each.
== Executing boot script in 3.000 seconds - enter ^C to abort
RedBoot> fis load -d KernelA
Image loaded from 0x80060000-0x80474d8d
RedBoot> exec -c "console=ttyS0,115200 root=31:04 rootfstype=jffs2 init=/sbin/init mem=64M@0x00000000"
Now booting linux kernel:
 Base address 0x80050000 Entry 0x80060000
 Cmdline : console=ttyS0,115200 root=31:04 rootfstype=jffs2 init=/sbin/init mem=64M@0x00000000
[    0.000000] Linux version 4.14.52 (build@build) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7370-433d71e73e)) #0 Mon Jul 2 05:23:42 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is U4EA Fusion 70
[    0.000000] SoC: Atheros AR7161 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 0x8044d72c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200n8 ethaddr=00.0d.0b.13.6b.00 root=31:04 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=000031b2
[    0.000000] Readback ErrCtl register=000031b2
[    0.000000] Memory: 59048K/65536K available (3415K kernel code, 137K rwdata, 460K rodata, 1228K init, 207K bss, 6488K 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: 600.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000008] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.007771] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
[    0.074024] pid_max: default: 32768 minimum: 301
[    0.078829] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085422] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.095867] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.105702] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.111840] pinctrl core: initialized pinctrl subsystem
[    0.117804] NET: Registered protocol family 16
[    0.122795] Can't analyze schedule() prologue at 803b1858
[    0.428401] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.434832]  MEM 0x0000000010000000..0x0000000016ffffff
[    0.440046]   IO 0x0000000000000000..0x0000000000000000
[    0.456051] PCI host bridge to bus 0000:00
[    0.460190] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[    0.467037] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.472593] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.479350] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.487603] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[    0.494875] clocksource: Switched to clocksource MIPS
[    0.500766] NET: Registered protocol family 2
[    0.505835] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.512789] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.519173] TCP: Hash tables configured (established 1024 bind 1024)
[    0.525640] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.531459] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.537937] NET: Registered protocol family 1
[    0.545277] Crashlog allocated RAM at address 0x3f00000
[    0.551286] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.561980] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.567827] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.583198] io scheduler noop registered
[    0.587151] io scheduler deadline registered (default)
[    0.593089] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.600021] console [ttyS0] disabled
[    0.603622] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 9375000) is a 16550A
[    0.612250] console [ttyS0] enabled
[    0.612250] console [ttyS0] enabled
[    0.619202] bootconsole [early0] disabled
[    0.619202] bootconsole [early0] disabled
[    0.631095] libphy: Fixed MDIO Bus: probed
[    0.635533] ag71xx 19000000.eth: invalid MAC address, using random address
[    0.642397] ag71xx 19000000.eth: missing phy-mode property in DT
[    0.648573] ag71xx 1a000000.eth: invalid MAC address, using random address
[    0.655464] ag71xx 1a000000.eth: missing phy-mode property in DT
[    0.663043] NET: Registered protocol family 10
[    0.671007] Segment Routing with IPv6
[    0.674745] NET: Registered protocol family 17
[    0.679257] 8021q: 802.1Q VLAN Support v1.8
[    0.685516] VFS: Cannot open root device "31:04" or unknown-block(31,4): error -6
[    0.692969] Please append a correct "root=" boot option; here are the available partitions:
[    0.701322] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,4)
[    0.710406] Rebooting in 1 seconds..

boot for ar71xx

Board: pb44
RAM: 0x80000000-0x84000000, [0x8004a420-0x80fb1000] available
FLASH: 0xbf000000 - 0xc0000000, 64 blocks of 0x00040000 bytes each.
== Executing boot script in 3.000 seconds - enter ^C to abort
RedBoot> fis load -d KernelA
Image loaded from 0x80060000-0x80470904
RedBoot> exec -c "console=ttyS0,115200 root=31:04 rootfstype=jffs2 init=/sbin/init mem=64M@0x00000000"
Now booting linux kernel:
 Base address 0x80050000 Entry 0x80060000
 Cmdline : console=ttyS0,115200 root=31:04 rootfstype=jffs2 init=/sbin/init mem=64M@0x00000000
[    0.000000] Linux version 4.4.53 (luci@droid) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3738-7c9c9fd) ) #0 Mon Mar 13 13:20:47 2017
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7161 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] No valid device tree found, continuing without
[    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] 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] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=PB44 console=ttyS0,115200 ethaddr=00.0d.0b.13.6b.00 root=1f04 rootfstype=squashfs,jffs2 noinitrd mem=64M@0x00000000
[    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=000031b2
[    0.000000] Readback ErrCtl register=000031b2
[    0.000000] Memory: 60100K/65536K available (2972K kernel code, 160K rwdata, 752K rodata, 332K init, 200K bss, 5436K 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] Clocks: CPU:600.000MHz, DDR:400.000MHz, AHB:150.000MHz, Ref:40.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000008] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.007756] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
[    0.070472] pid_max: default: 32768 minimum: 301
[    0.075175] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081767] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090820] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100666] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.107374] NET: Registered protocol family 16
[    0.112979] MIPS: machine is Atheros PB44 reference board
[    0.417491] registering PCI controller with io_map_base unset
[    2.835352] i2c-gpio i2c-gpio.0: using pins 1 (SDA) and 0 (SCL)
[    2.841506] PCI host bridge to bus 0000:00
[    2.845620] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[    2.852471] pci_bus 0000:00: root bus resource [io  0x0000]
[    2.858028] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.864792] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.873072] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[    2.879843] pci 0000:00:11.0: using irq 40 for pin 1
[    2.885481] clocksource: Switched to clocksource MIPS
[    2.891542] NET: Registered protocol family 2
[    2.896641] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.903596] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    2.909981] TCP: Hash tables configured (established 1024 bind 1024)
[    2.916414] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.922234] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.928688] NET: Registered protocol family 1
[    2.935873] Crashlog allocated RAM at address 0x3f00000
[    2.952150] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.958010] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.969868] io scheduler noop registered
[    2.973788] io scheduler deadline registered (default)
[    2.979179] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.985905] console [ttyS0] disabled
[    3.009473] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 9375000) is a 16550A
[    3.018067] console [ttyS0] enabled
[    3.018067] console [ttyS0] enabled
[    3.025004] bootconsole [early0] disabled
[    3.025004] bootconsole [early0] disabled
[    3.035770] m25p80 spi0.0: found m25p128, expected m25p64
[    3.041160] m25p80 spi0.0: m25p128 (16384 Kbytes)
[    3.046825] Searching for RedBoot partition table in spi0.0 at offset 0xf80000
[    3.189279] 12 RedBoot partitions found on MTD device spi0.0
[    3.194911] Creating 12 MTD partitions on "spi0.0":
[    3.199792] 0x000000000000-0x000000040000 : "RedBoot"
[    3.206086] 0x000000040000-0x000000080000 : "BootConfig"
[    3.212700] 0x000000080000-0x0000000c0000 : "BootConfigSave"
[    3.219675] 0x0000000c0000-0x0000002c0000 : "KernelA"
[    3.226026] 0x0000002c0000-0x000000780000 : "RootFsA"
[    3.232365] 0x000000780000-0x000000900000 : "KernelB"
[    3.238783] 0x000000900000-0x000000c00000 : "RootFsB"
[    3.245108] 0x000000c00000-0x000000f40000 : "rootfs_data"
[    3.251867] 0x000000f40000-0x000000f80000 : "Test"
[    3.258033] 0x000000f80000-0x000000fbf000 : "FIS directory"
[    3.264908] 0x000000fbf000-0x000000fc0000 : "RedBoot config"
[    3.271929] 0x000000fc0000-0x000001000000 : "Board data"
[    3.282686] libphy: ag71xx_mdio: probed
[    3.606911] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=00070421, driver=Generic PHY]
[    3.616627] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    3.937370] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:RGMII
[    3.944949] NET: Registered protocol family 10
[    3.952291] NET: Registered protocol family 17
[    3.956838] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.969502] 8021q: 802.1Q VLAN Support v1.8
[    3.980233] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    3.988187] Freeing unused kernel memory: 332K (8042d000 - 80480000)
[    4.988351] init: Console is alive
[    4.991918] init: - watchdog -
[    5.831845] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.905598] gpio-keys-polled gpio-keys-polled: unable to claim gpio 22, err=-517
[    5.913620] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.931193] init: - preinit -
[    6.459147] eth1: link up (1000Mbps/Full duplex)
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.736095] jffs2: notice: (352) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    9.752933] mount_root: switching to jffs2 overlay
[    9.782874] urandom-seed: Seeding with /etc/urandom.seed
[    9.957481] eth1: link down
[    9.970001] procd: - early -
[    9.972946] procd: - watchdog -
[   10.588598] procd: - ubus -
[   10.642454] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[   10.651940] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[   10.660959] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[   10.670218] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[   10.679217] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[   10.688309] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[   10.697576] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
                                                                                                     [   10.706850] procd: - init -
Please press Enter to activate this console.
[   10.993982] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.004657] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.019138] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[   11.027158] Backport generated by backports.git backports-20160324-13-g24da7d3c
[   11.036148] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.047708] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
[   11.084247] xt_time: kernel timezone is -0000
[   11.169996] PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
[   12.746815] ieee80211 phy0: Atheros AR9160 MAC/BB Rev:1 AR2133 RF Rev:b0 mem=0xb0000000, irq=40
[   12.757981] gpio-keys-polled gpio-keys-polled: unable to claim gpio 22, err=-517
[   13.306044] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.770245] random: jshn: uninitialized urandom read (4 bytes read, 22 bits of entropy available)
[   13.853903] random: ubusd: uninitialized urandom read (4 bytes read, 22 bits of entropy available)
[   13.863095] random: ubus: uninitialized urandom read (4 bytes read, 22 bits of entropy available)
[   18.118884] device eth0 entered promiscuous mode
[   18.125133] br-lan: port 1(eth0) entered listening state
[   18.130502] br-lan: port 1(eth0) entered listening state
[   18.135899] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   18.194999] ar71xx: pll_reg 0xb8050014: 0x110000
[   18.199678] eth1: link up (1000Mbps/Full duplex)
[   18.230219] device eth1 entered promiscuous mode
[   19.115563] br-lan: port 1(eth0) entered disabled state
[   19.120890] br-lan: port 2(eth1) entered listening state
[   19.126227] br-lan: port 2(eth1) entered listening state
[   19.825065] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   19.835007] device wlan0 entered promiscuous mode
[   19.839826] br-lan: port 3(wlan0) entered listening state
[   19.845222] br-lan: port 3(wlan0) entered listening state
[   20.115572] br-lan: port 3(wlan0) entered disabled state
[   20.316124] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   20.322565] br-lan: port 3(wlan0) entered listening state
[   20.328017] br-lan: port 3(wlan0) entered listening state
[   21.125516] br-lan: port 2(eth1) entered learning state
[   22.325513] br-lan: port 3(wlan0) entered learning state
[   23.125511] br-lan: topology change detected, propagating
[   23.130910] br-lan: port 2(eth1) entered forwarding state
[   23.136380] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   23.805961] ar71xx: pll_reg 0xb8050010: 0x1099
[   23.810397] eth0: link up (100Mbps/Full duplex)
[   23.815431] br-lan: port 1(eth0) entered listening state
[   23.820810] br-lan: port 1(eth0) entered listening state
[   24.325504] br-lan: topology change detected, propagating
[   24.330896] br-lan: port 3(wlan0) entered forwarding state
[   25.815496] br-lan: port 1(eth0) entered learning state
[   27.815511] br-lan: topology change detected, propagating
[   27.820923] br-lan: port 1(eth0) entered forwarding state
[   47.054080] random: nonblocking pool is initialized



BusyBox v1.26.2 () built-in shell (ash)

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (SNAPSHOT, r3769-66146a2)
    \________\/    -----------------------------------------------------------

root@LEDE:/#

the dts for spi

&spi {
        status = "okay";
        num-cs = <1>;

        flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;

                partitions {
                        compatible = "fixed-partitions";
                        #address-cells = <1>;
                        #size-cells = <1>;

                        partition@0 {
                                label = "RedBoot";
                                reg = <0x000000 0x040000>;
                                read-only;
                        };

                        partition@40000 {
                                label = "BootConfig";
                                reg = <0x040000 0x040000>;
                                read-only;
                        };

                        partition@80000 {
                                label = "BootConfigSave";
                                reg = <0x080000 0x040000>;
                                read-only;
                        };

                        partition@c0000 {
                                label = "KernelA";
                                reg = <0x0c0000 0x200000>;
                        };

                        partition@2c0000 {
                                label = "RootFsA";
                                reg = <0x2c0000 0x4c0000>;
                        };

                        partition@780000 {
                                label = "KernelB";
                                reg = <0x780000 0x180000>;
                        };

                        partition@900000 {
                                label = "RootFsB";
                                reg = <0x900000 0x300000>;
                        };

                        partition@c00000 {
                                label = "rootfs_data";
                                reg = <0xc00000 0x340000>;
                        };

                        partition@f40000 {
                                label = "Test";
                                reg = <0xf40000 0x040000>;
                                read-only;
                        };

                        partition@f80000 {
                                label = "FIS directory";
                                reg = <0xf80000 0x03f000>;
                                read-only;
                        };

                        partition@fbf000 {
                                label = "RedBoot config";
                                reg = <0xfbf000 0x01000>;
                                read-only;
                        };

                        partition@fc0000 {
                                label = "Board data";
                                reg = <0xfc0000 0x40000>;
                                read-only;
                        };
                };
        };
};

I've also added in the kernel config the

CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2
CONFIG_MTD_REDBOOT_PARTS=y

also don't know why missing phy-mode property in DT