Porting guide ar71xx to ath79?

Can someone take a look at dir505l? Thx a tons

https://openwrt.org/toh/d-link/dir-505
https://openwrt.org/toh/hwdata/d-link/d-link_dir-505

slight update here for a couple devices. netgear wndr3700v4 and netgear wndr4300 are now supported in trunk on ath79. i made a build for the wndr3700v4 myself and using it right now. :slight_smile:

ath79: add support for Netgear WNDR4300
ath79: add support for Netgear WNDR3700v4

Did you ever manage to fix this? My Zyxel NBG6616 is working just fine on 19.07-rc2 and it would be a shame if it were to miss the next version if it’s not ported to ath79.

1 Like

not yet. i did not have enough time to look into this again but i will work on it at 36c3.

2 Likes

Hello Lucize,

Thanks for your work with tl-wr2543nd. However, its support is broken in master.
There is an open bug report for errors while reading mtd. It also happens when I only use initramfs.

I also asked for help in ML.

It looks like ag71xx got mainlined, so with 5.4 we can use it instead of in tree one.
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/ethernet/atheros/ag71xx.c?h=v5.4.17

1 Like

AFAIK, that driver has several features (including MDIO IIRC) missing.

Yes, but that does not mean that we should keep using and maintaing the downstream version instead of contributing to upstream.
Also,shouldnt MDIO driver be separate?

If you have something you’d like me to test, give me a shout!

Hi, I started to work on a port from ar71xx to ath79 for the CF-E375AC.
The device has a QCA9563, QCA9888 and AR8337.

I'm using D-LINK DIR-859 A1 as a initial reference (same 2.4GHz WLAN and switch chipset)

I've set up a git to share the code I'm working.

When I've tried to tftpboot the initram image I've got an LZMA error that I'm not sure how to fix.

From my bootloader

ath> tftpboot $loadaddr initram.bin
Using eth0 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename 'initram.bin'.
Load address: 0x80800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ############
done
Bytes transferred = 4383393 (42e2a1 hex)
ath> bootm 0x80800000
## Booting image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-4.19.106
   Created:      2020-02-27  11:14:09 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    4383329 Bytes =  4.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x80800040 ...OK
   Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 544

Decoding error = 1
LZMA ERROR 1 - must RESET board to recover
�

Any help, or suggestions, would be much appreciated

Cheers

Does loading image to a different address, e.g. 0x81000000, work?

1 Like

Thanks that did the trick, time to go back to mach/dts files to check for next error

ath> tftpboot 0x81000000 initramfs.bin
Using eth0 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename 'initramfs.bin'.
Load address: 0x81000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###################################################
done
Bytes transferred = 5581888 (552c40 hex)
ath> bootm 0x81000000
## Booting image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-4.19.106
   Created:      2020-02-27  19:10:44 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    5581824 Bytes =  5.3 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x81000040 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728

Starting kernel ...

[    0.000000] Linux version 4.19.106 (joao@joao-Elcomasv-01) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r0
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is COMFAST CF-E375AC
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 111100K/131072K available (4290K kernel code, 181K rwdata, 1016K rodata, 12552)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008219] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074772] pid_max: default: 32768 minimum: 301
[    0.079828] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086818] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098444] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446s
[    0.108852] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.115402] pinctrl core: initialized pinctrl subsystem
[    0.121795] NET: Registered protocol family 16
[    0.133175] PCI host bridge /ahb/pcie-controller@18250000 ranges:
[    0.139604]  MEM 0x0000000012000000..0x0000000013ffffff
[    0.145146]   IO 0x0000000000000000..0x0000000000000000
[    0.169328] PCI host bridge to bus 0000:00
[    0.173659] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.180953] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.186822] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.193980] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.203451] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.214315] clocksource: Switched to clocksource MIPS
[    0.220715] NET: Registered protocol family 2
[    0.226073] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.234185] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.241587] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.248312] TCP: Hash tables configured (established 1024 bind 1024)
[    0.255139] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.261306] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.268296] NET: Registered protocol family 1
[    0.462358] Crashlog allocated RAM at address 0x3f00000
[    0.469366] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.482149] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.488351] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red .
[    0.529061] io scheduler noop registered
[    0.533196] io scheduler deadline registered (default)
[    0.540350] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.547410] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.554766] console [ttyS0] disabled
[    0.558567] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.567694] console [ttyS0] enabled
[    0.567694] console [ttyS0] enabled
[    0.575251] bootconsole [early0] disabled
[    0.575251] bootconsole [early0] disabled
[    0.600443] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.605375] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.611935] Creating 4 MTD partitions on "spi0.0":
[    0.616922] 0x000000000000-0x000000020000 : "u-boot"
[    0.622790] 0x000000020000-0x000000030000 : "art"
[    0.628403] 0x000000030000-0x000000ff0000 : "firmware"
[    0.636795] 0x000000ff0000-0x000001000000 : "art-backup"
[    0.644827] libphy: Fixed MDIO Bus: probed
�

Did some changes at my partition definition and now it seems to be right.
I'm still stuck at the reboot after the libphy message.

ath> bootm 0x81000000                                                           
## Booting image at 81000000 ...                                                
   Image Name:   MIPS OpenWrt Linux-4.19.106                                    
   Created:      2020-03-02  11:57:41 UTC                                       
   Image Type:   MIPS Linux Kernel Image (lzma compressed)                      
   Data Size:    5611882 Bytes =  5.4 MB                                        
   Load Address: 80060000                                                       
   Entry Point:  80060000                                                       
   Verifying Checksum at 0x81000040 ...OK                                       
   Uncompressing Kernel Image ... OK                                            
No initrd                                                                       
## Transferring control to Linux (at address 80060000) ...                      
## Giving linux memsize in bytes, 134217728                                     
                                                                                
Starting kernel ...                                                             
                                                                                
[    0.000000] Linux version 4.19.106 (joao@joao-Elcomasv-01) (gcc version 8.3.0
[    0.000000] bootconsole [early0] enabled                                     
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)                           
[    0.000000] MIPS: machine is COMFAST CF-E375AC                               
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0                        
[    0.000000] Determined physical RAM map:                                     
[    0.000000]  memory: 08000000 @ 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 32s
[    0.000000] Zone ranges:                                                     
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]           
[    0.000000] Movable zone start for each node                                 
[    0.000000] Early memory node ranges                                         
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]          
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] 
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 wit0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480     
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)   
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)     
[    0.000000] Writing ErrCtl register=00000000                                 
[    0.000000] Readback ErrCtl register=00000000                                
[    0.000000] Memory: 111024K/131072K available (4369K kernel code, 190K rwdat)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1       
[    0.000000] NR_IRQS: 51                                                      
[    0.000000] CPU clock: 775.000 MHz                                           
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_s
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541s
[    0.008227] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)          
[    0.074779] pid_max: default: 32768 minimum: 301                             
[    0.079843] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)      
[    0.086826] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) 
[    0.098341] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[    0.108750] futex hash table entries: 256 (order: -1, 3072 bytes)            
[    0.115301] pinctrl core: initialized pinctrl subsystem                      
[    0.121691] NET: Registered protocol family 16                               
[    0.133061] PCI host bridge /ahb/pcie-controller@18250000 ranges:            
[    0.139496]  MEM 0x0000000012000000..0x0000000013ffffff                      
[    0.145038]   IO 0x0000000000000000..0x0000000000000000                      
[    0.169030] PCI host bridge to bus 0000:00                                   
[    0.173359] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]   
[    0.180651] pci_bus 0000:00: root bus resource [io  0x0000]                  
[    0.186522] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]    
[    0.193681] pci_bus 0000:00: No busn resource found for root bus, will use []
[    0.203140] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64b]
[    0.213950] clocksource: Switched to clocksource MIPS                        
[    0.220334] NET: Registered protocol family 2                                
[    0.225689] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096)
[    0.233795] TCP established hash table entries: 1024 (order: 0, 4096 bytes)  
[    0.241194] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)         
[    0.247919] TCP: Hash tables configured (established 1024 bind 1024)         
[    0.254745] UDP hash table entries: 256 (order: 0, 4096 bytes)               
[    0.260915] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)          
[    0.267906] NET: Registered protocol family 1                                
[    0.466845] Crashlog allocated RAM at address 0x3f00000                      
[    0.473713] workingset: timestamp_bits=14 max_order=15 bucket_order=1        
[    0.486422] squashfs: version 4.0 (2009/01/31) Phillip Lougher               
[    0.492569] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORI.
[    0.520499] io scheduler noop registered                                     
[    0.524677] io scheduler deadline registered (default)                       
[    0.531783] pinctrl-single 1804002c.pinmux: 544 pins, size 68                
[    0.538835] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled         
[    0.546193] console [ttyS0] disabled                                         
[    0.549997] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 15A
[    0.559129] console [ttyS0] enabled                                          
[    0.559129] console [ttyS0] enabled                                          
[    0.566687] bootconsole [early0] disabled                                    
[    0.566687] bootconsole [early0] disabled                                    
[    0.591927] m25p80 spi0.0: w25q128 (16384 Kbytes)                            
[    0.596877] 4 fixed-partitions partitions found on MTD device spi0.0         
[    0.603436] Creating 4 MTD partitions on "spi0.0":                           
[    0.608423] 0x000000000000-0x000000040000 : "u-boot"                         
[    0.614343] 0x000000040000-0x000000050000 : "art"                            
[    0.619880] 0x000000050000-0x000000ff0000 : "firmware"                       
[    0.628116] 2 uimage-fw partitions found on MTD device firmware              
[    0.634281] Creating 2 MTD partitions on "firmware":                         
[    0.639411] 0x000000000000-0x000000160000 : "kernel"                         
[    0.645254] 0x000000160000-0x000000fa0000 : "rootfs"                         
[    0.651006] mtd: device 4 (rootfs) set to be root filesystem                 
[    0.658305] 1 squashfs-split partitions found on MTD device rootfs           
[    0.664748] 0x0000009a0000-0x000000fa0000 : "rootfs_data"                    
[    0.671074] 0x000000ff0000-0x000001000000 : "art-backup"                     
[    0.679019] libphy: Fixed MDIO Bus: probed                                   
�    

Also tried to flash the image to the device but notice the same behaviour.
Should I look into my mdio and eth nodes ?

I see that the Netgear WNDRMACv2 has a ar71xx image but not a ath79 one.
Since the WNDRMACv2 is the same hardware as WNDR3800, I simply flashed WNDR3800's ath79 image on my WNDRMACv2, and it seems to work fine.

If anyone wants to create a proper WNDRMACv2 ath79 image, I will be happy to test.

Manage to make more progress, the lack of watchdog gpio was the culprit for the reboots.

Now I've managed to probe the mdio bus but my ethernet ports dosen't work.
code is available at my first reply.

Updated bootlog

Starting kernel ...

[    0.000000] Linux version 4.19.106 (joao@joao-Elcomasv-01) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r12465-b364742)) #0 Mon Mar 9 14:01:14 2020
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is COMFAST CF-E375AC
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 111100K/131072K available (4290K kernel code, 181K rwdata, 1016K rodata, 12552K init, 206K bss, 19972K 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: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008226] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074779] pid_max: default: 32768 minimum: 301
[    0.079836] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086826] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098554] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108959] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.115513] pinctrl core: initialized pinctrl subsystem
[    0.121909] NET: Registered protocol family 16
[    0.133274] PCI host bridge /ahb/pcie-controller@18250000 ranges:
[    0.139704]  MEM 0x0000000012000000..0x0000000013ffffff
[    0.145247]   IO 0x0000000000000000..0x0000000000000000
[    0.169918] PCI host bridge to bus 0000:00
[    0.174240] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.181534] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.187404] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.194562] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.204064] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.215107] clocksource: Switched to clocksource MIPS
[    0.221485] NET: Registered protocol family 2
[    0.226852] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.234964] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.242369] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.249091] TCP: Hash tables configured (established 1024 bind 1024)
[    0.255920] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.262092] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.269073] NET: Registered protocol family 1
[    0.470729] Crashlog allocated RAM at address 0x3f00000
[    0.477727] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.490542] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.496745] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.537510] io scheduler noop registered
[    0.541640] io scheduler deadline registered (default)
[    0.548799] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.555876] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.563195] console [ttyS0] disabled
[    0.567043] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.576149] console [ttyS0] enabled
[    0.576149] console [ttyS0] enabled
[    0.583696] bootconsole [early0] disabled
[    0.583696] bootconsole [early0] disabled
[    0.608848] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.613751] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.620339] Creating 4 MTD partitions on "spi0.0":
[    0.625316] 0x000000000000-0x000000040000 : "u-boot"
[    0.631201] 0x000000040000-0x000000050000 : "art"
[    0.636820] 0x000000050000-0x000000ff0000 : "firmware"
[    0.645011] 2 uimage-fw partitions found on MTD device firmware
[    0.651179] Creating 2 MTD partitions on "firmware":
[    0.656333] 0x000000000000-0x000000190000 : "kernel"
[    0.662168] 0x000000190000-0x000000fa0000 : "rootfs"
[    0.667998] mtd: device 4 (rootfs) set to be root filesystem
[    0.675338] 1 squashfs-split partitions found on MTD device rootfs
[    0.681733] 0x000000cd0000-0x000000fa0000 : "rootfs_data"
[    0.688091] 0x000000ff0000-0x000001000000 : "art-backup"
[    0.696067] libphy: Fixed MDIO Bus: probed
[    1.395482] libphy: ag71xx_mdio: probed
[    1.399587] mdio_bus mdio.0: MDIO device at address 31 is missing.
[    1.406079] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
[    1.414173] ath79-wdt 18060008.wdt: unable to register misc device, err=-16
[    1.421425] ath79-wdt: probe of 18060008.wdt failed with error -16
[    1.429559] NET: Registered protocol family 10
[    1.437980] Segment Routing with IPv6
[    1.441876] NET: Registered protocol family 17
[    1.446593] 8021q: 802.1Q VLAN Support v1.8
[    1.786183] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
[    2.126175] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
[    2.202823] Freeing unused kernel memory: 12552K
[    2.207625] This architecture does not have kernel memory protection.
[    2.214274] Run /init as init process
[    2.230882] init: Console is alive
[    2.234622] init: - watchdog -
[    2.255816] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.265997] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.283902] init: - preinit -
[    2.495139] random: fast init done
[    2.503870] random: jshn: uninitialized urandom read (4 bytes read)
[    2.586809] random: jshn: uninitialized urandom read (4 bytes read)
[    2.616262] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
[    2.637843] random: jshn: 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
[    6.916087] procd: - early -
[    6.919158] procd: - watchdog -
[    7.473769] procd: - watchdog -
[    7.477366] procd: - ubus -
[    7.486658] urandom_read: 5 callbacks suppressed
[    7.486665] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.530725] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.538573] procd: - init -
Please press Enter to activate this console.
[    7.990537] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.028431] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc
[    8.036306] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51
[    8.098998] xt_time: kernel timezone is -0000
[    8.237373] PPP generic driver version 2.4.2
[    8.251961] urngd: v1.0.2 started.
[    8.256526] NET: Registered protocol family 24
[    8.338443] ath10k 5.1 driver, optimized for CT firmware, probing pci device: 0x56.
[    8.355943] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[    8.362728] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[    8.438734] random: crng init done
[    8.771181] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
[    9.287725] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[    9.297289] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[    9.317270] ath10k_pci 0000:00:00.0: firmware ver 10.4b-ct-9888-fH-013-e0e3a0aae api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CTa
[    9.788035] ath10k_pci 0000:00:00.0: board_file api 2 bmi_id 0:16 crc32 f228337a
[   11.823156] ath10k_pci 0000:00:00.0: unsupported HTC service id: 1536
[   11.833322] ath10k_pci 0000:00:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   11.841113] ath10k_pci 0000:00:00.0: msdu-desc: 2500  skid: 32
[   11.892459] ath10k_pci 0000:00:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   11.903767] ath10k_pci 0000:00:00.0: wmi print 'free: 117872 iram: 12756 sram: 26276'
[   12.142900] ath10k_pci 0000:00:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   12.347723] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
[   12.385484] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.616248] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
[   12.976255] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.

I think I'm close to finishing porting CF-E375AC to ath79. I've found a loot good suggestions here.

current bootlog looks really close to the ar71xx from 18.06.8.

ath79 bootlog
[    0.000000] Linux version 4.19.108 (joao@joao-Elcomasv-01) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r12465-b364742)) #0 Wed Mar 11 12:25:23 2020
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is COMFAST CF-E375AC
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 115004K/131072K available (4309K kernel code, 179K rwdata, 1016K rodata, 8632K init, 206K bss, 16068K 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: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008223] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074770] pid_max: default: 32768 minimum: 301
[    0.079821] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086814] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098379] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108784] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.115333] pinctrl core: initialized pinctrl subsystem
[    0.121699] NET: Registered protocol family 16
[    0.132953] PCI host bridge /ahb/pcie-controller@18250000 ranges:
[    0.139388]  MEM 0x0000000012000000..0x0000000013ffffff
[    0.144933]   IO 0x0000000000000000..0x0000000000000000
[    0.168765] PCI host bridge to bus 0000:00
[    0.173092] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.180385] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.186255] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.193415] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.202910] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.213843] clocksource: Switched to clocksource MIPS
[    0.220201] NET: Registered protocol family 2
[    0.225568] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.233678] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.241078] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.247803] TCP: Hash tables configured (established 1024 bind 1024)
[    0.254631] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260802] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.267777] NET: Registered protocol family 1
[    0.401299] Crashlog allocated RAM at address 0x3f00000
[    0.408280] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.420733] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.426941] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.468417] io scheduler noop registered
[    0.472551] io scheduler deadline registered (default)
[    0.479674] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.486714] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.494066] console [ttyS0] disabled
[    0.497868] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.506993] console [ttyS0] enabled
[    0.506993] console [ttyS0] enabled
[    0.514545] bootconsole [early0] disabled
[    0.514545] bootconsole [early0] disabled
[    0.539612] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.544545] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.551107] Creating 4 MTD partitions on "spi0.0":
[    0.556092] 0x000000000000-0x000000040000 : "u-boot"
[    0.561930] 0x000000040000-0x000000050000 : "art"
[    0.567551] 0x000000050000-0x000000ff0000 : "firmware"
[    0.575692] 2 uimage-fw partitions found on MTD device firmware
[    0.581814] Creating 2 MTD partitions on "firmware":
[    0.586990] 0x000000000000-0x000000160000 : "kernel"
[    0.592839] 0x000000160000-0x000000fa0000 : "rootfs"
[    0.598651] mtd: device 4 (rootfs) set to be root filesystem
[    0.605943] 1 squashfs-split partitions found on MTD device rootfs
[    0.612344] 0x000000430000-0x000000fa0000 : "rootfs_data"
[    0.618682] 0x000000ff0000-0x000001000000 : "art-backup"
[    0.626455] libphy: Fixed MDIO Bus: probed
[    1.324211] libphy: ag71xx_mdio: probed
[    1.347848] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd036, driver=Generic PHY]
[    1.357641] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[    1.364371] ath79-wdt 18060008.wdt: unable to register misc device, err=-16
[    1.371586] ath79-wdt: probe of 18060008.wdt failed with error -16
[    1.379696] NET: Registered protocol family 10
[    1.388855] Segment Routing with IPv6
[    1.392738] NET: Registered protocol family 17
[    1.397651] 8021q: 802.1Q VLAN Support v1.8
[    1.450770] Freeing unused kernel memory: 8632K
[    1.455485] This architecture does not have kernel memory protection.
[    1.462132] Run /init as init process
[    1.478841] init: Console is alive
[    1.482585] init: - watchdog -
[    1.504906] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.522292] usbcore: registered new interface driver usbfs
[    1.528068] usbcore: registered new interface driver hub
[    1.533641] usbcore: registered new device driver usb
[    1.544823] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.553165] ehci-platform: EHCI generic platform driver
[    1.559447] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.577374] init: - preinit -
[    1.805144] random: jshn: uninitialized urandom read (4 bytes read)
[    1.887942] random: jshn: uninitialized urandom read (4 bytes read)
[    2.019084] random: jshn: uninitialized urandom read (4 bytes read)
[    2.298956] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not 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
[    4.163838] random: fast init done
[    6.435417] eth0: link up (1000Mbps/Full duplex)
[    6.440221] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.452103] eth0: link down
[    6.465570] procd: - early -
[    6.468632] procd: - watchdog -
[    7.022902] procd: - watchdog -
[    7.026498] procd: - ubus -
[    7.035655] urandom_read: 5 callbacks suppressed
[    7.035662] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.080856] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.088667] procd: - init -
Please press Enter to activate this console.
[    7.518623] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.571938] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc
[    7.579809] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51
[    7.639837] xt_time: kernel timezone is -0000
[    7.786369] PPP generic driver version 2.4.2
[    7.793315] NET: Registered protocol family 24
[    7.812419] urngd: v1.0.2 started.
[    7.876966] ath10k 5.1 driver, optimized for CT firmware, probing pci device: 0x56.
[    7.904566] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[    7.911346] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[    7.991957] random: crng init done
[    8.320024] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
[    9.090083] firmware ath10k!QCA9888!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[    9.406875] firmware ath10k!QCA9888!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[    9.626933] firmware ath10k!QCA9888!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[    9.642251] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[    9.651824] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[    9.671794] ath10k_pci 0000:00:00.0: firmware ver 10.4b-ct-9888-fW-013-e0e3a0aae api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT5
[   10.100526] ath10k_pci 0000:00:00.0: board_file api 2 bmi_id 0:16 crc32 f228337a
[   12.136603] ath10k_pci 0000:00:00.0: unsupported HTC service id: 1536
[   12.146778] ath10k_pci 0000:00:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   12.154553] ath10k_pci 0000:00:00.0: msdu-desc: 2500  skid: 32
[   12.205676] ath10k_pci 0000:00:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   12.216989] ath10k_pci 0000:00:00.0: wmi print 'free: 117872 iram: 12516 sram: 26276'
[   12.455818] ath10k_pci 0000:00:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   12.664571] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
[   12.701814] kmodloader: done loading kernel modules from /etc/modules.d/*
[   31.479771] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   31.497905] br-lan: port 1(eth0.2) entered blocking state
[   31.503494] br-lan: port 1(eth0.2) entered disabled state
[   31.509418] device eth0.2 entered promiscuous mode
[   31.514410] device eth0 entered promiscuous mode
[   31.554109] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   31.602493] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[   34.595338] eth0: link up (1000Mbps/Full duplex)
[   34.600135] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   34.608203] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   34.615162] br-lan: port 1(eth0.2) entered blocking state
[   34.620746] br-lan: port 1(eth0.2) entered forwarding state
[   34.663968] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

vs

ar71xx bootlog from 18.06.8

[ 0.000000] Linux version 4.9.214 (buildbot@0d27b924961c) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7989-82fbd85747) ) #0 Thu Feb 27 21:25:59 2020
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 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-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=CF-E375AC mtdparts=spi0.0:256k(u-boot)ro,64k(art)ro,16000k(firmware),64k(art-backup)ro console=ttyS0,115200 rootfstype=squasd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 124940K/131072K available (3412K kernel code, 175K rwdata, 448K rodata, 308K init, 211K bss, 6132K 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:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[ 0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[ 0.008226] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.071042] pid_max: default: 32768 minimum: 301
[ 0.075993] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.082967] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.092754] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.103161] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110641] NET: Registered protocol family 16
[ 0.116646] MIPS: machine is COMFAST CF-E375AC
[ 0.355698] registering PCI controller with io_map_base unset
[ 0.371078] PCI host bridge to bus 0000:00
[ 0.375404] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.382684] pci_bus 0000:00: root bus resource [io 0x0001]
[ 0.388550] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.395705] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.404435] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 0.412192] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.420222] clocksource: Switched to clocksource MIPS
[ 0.426488] NET: Registered protocol family 2
[ 0.431892] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.439244] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.445986] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.452774] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.458940] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.465807] NET: Registered protocol family 1
[ 0.472872] Crashlog allocated RAM at address 0x3f00000
[ 0.479347] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.491814] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.497954] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.516245] io scheduler noop registered
[ 0.520419] io scheduler deadline registered (default)
[ 0.526198] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.535086] console [ttyS0] disabled
[ 0.558924] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 0.568030] console [ttyS0] enabled
[ 0.568030] console [ttyS0] enabled
[ 0.575587] bootconsole [early0] disabled
[ 0.575587] bootconsole [early0] disabled
[ 0.589410] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.605580] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.610483] 4 cmdlinepart partitions found on MTD device spi0.0
[ 0.616596] Creating 4 MTD partitions on "spi0.0":
[ 0.621565] 0x000000000000-0x000000040000 : "u-boot"
[ 0.628340] 0x000000040000-0x000000050000 : "art"
[ 0.634931] 0x000000050000-0x000000ff0000 : "firmware"
[ 0.667412] 2 uimage-fw partitions found on MTD device firmware
[ 0.673562] 0x000000050000-0x0000001b0000 : "kernel"
[ 0.679888] 0x0000001b0000-0x000000ff0000 : "rootfs"
[ 0.686482] mtd: device 4 (rootfs) set to be root filesystem
[ 0.692416] 1 squashfs-split partitions found on MTD device rootfs
[ 0.698804] 0x000000480000-0x000000ff0000 : "rootfs_data"
[ 0.706186] 0x000000ff0000-0x000001000000 : "art-backup"
[ 0.714282] libphy: Fixed MDIO Bus: probed
[ 0.731113] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[ 1.413386] libphy: ag71xx_mdio: probed
[ 2.041684] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[ 2.053238] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[ 2.061120] NET: Registered protocol family 10
[ 2.068888] NET: Registered protocol family 17
[ 2.073574] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.087047] 8021q: 802.1Q VLAN Support v1.8
[ 2.092957] hctosys: unable to open rtc device (rtc0)
[ 2.103340] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 2.112337] Freeing unused kernel memory: 308K
[ 2.116929] This architecture does not have kernel memory protection.
[ 2.570234] random: fast init done
[ 2.779861] init: Console is alive
[ 2.783614] init: - watchdog -
[ 3.789109] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.839916] usbcore: registered new interface driver usbfs
[ 3.845717] usbcore: registered new interface driver hub
[ 3.851299] usbcore: registered new device driver usb
[ 3.861201] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.869260] ehci-platform: EHCI generic platform driver
[ 3.874777] ehci-platform ehci-platform.0: EHCI Host Controller
[ 3.880942] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 3.891394] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 3.920256] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 3.927628] hub 1-0:1.0: USB hub found
[ 3.931885] hub 1-0:1.0: 1 port detected
[ 3.936258] ehci-platform ehci-platform.1: EHCI Host Controller
[ 3.942452] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 3.952925] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 3.980243] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 3.987598] hub 2-0:1.0: USB hub found
[ 3.991852] hub 2-0:1.0: 1 port detected
[ 3.996601] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.014477] init: - preinit -
[ 4.664512] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.687483] 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
[ 5.721628] eth0: link up (1000Mbps/Full duplex)
[ 5.726520] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 7.975963] jffs2: notice: (418) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan.
[ 7.993904] mount_root: switching to jffs2 overlay
[ 8.021821] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.149006] eth0: link down
[ 8.162148] procd: - early -
[ 8.165205] procd: - watchdog -
[ 8.770339] procd: - watchdog -
[ 8.773804] procd: - ubus -
[ 8.871521] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.913832] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.920873] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.928250] procd: - init -
Please press Enter to activate this console.
[ 9.203163] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.213690] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.228593] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 9.236915] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 9.246634] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.259358] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 9.311880] xt_time: kernel timezone is -0000
[ 9.360506] PPP generic driver version 2.4.2
[ 9.367050] NET: Registered protocol family 24
[ 9.391966] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 9.398104] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 9.595487] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-6.bin failed with error -2
[ 9.606587] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 9.687165] firmware ath10k!QCA9888!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 10.281874] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[ 10.291438] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 10.311942] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.5.3-00053 api 5 features no-p2p,mfp,peer-flow-ctrl,allows-mesh-bcast,no-ps crc32 a9603656
[ 10.628592] ath10k_pci 0000:00:00.0: board_file api 2 bmi_id 0:16 crc32 d65c17b1
[ 12.813165] ath10k_pci 0000:00:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 512 raw 0 hwcrypto 1
[ 12.991331] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=47
[ 13.055137] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 14.056257] urandom_read: 5 callbacks suppressed
[ 14.056264] random: jshn: uninitialized urandom read (4 bytes read)
[ 22.083299] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 22.090854] eth0: link up (1000Mbps/Full duplex)
[ 22.110475] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 22.134131] br-lan: port 1(eth0.2) entered blocking state
[ 22.139710] br-lan: port 1(eth0.2) entered disabled state
[ 22.145781] device eth0.2 entered promiscuous mode
[ 22.150767] device eth0 entered promiscuous mode
[ 22.235258] br-lan: port 1(eth0.2) entered blocking state
[ 22.240888] br-lan: port 1(eth0.2) entered forwarding state
[ 22.246782] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 23.160536] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

The ethernet ports still don't work, so I believe I've some changes to make in my DTS regarding mdio and eth nodes.

Since the WNDRMACv2 is the same hardware as WNDR3800 , I simply flashed WNDR3800's ath79 image on my WNDRMACv2, and it seems to work fine.

That's good to hear, since I came here wondering the same thing. macv2 and 3800 do have the same sha256sum hashes for ar71xx , so it's not surprising that the same thing holds for ath79.

Were you coming from stock or 19.07.x? If the latter, did you just follow the sysupgrade procedure?

I upgraded from some older version of OpenWRT, possibly 18.06, via sysupgrade (but I did not choose to keep settings).

Hello!

What's the situation with porting buffalo wzr-hp-g300nh to ath79? I searched about and found two-year-old forks (musashino's) of OpenWrt that added said support and the device boots. Those changes were never pushed to OpenWrt tree, though. I am interesting in giving it a shot but as people clearly have made attempts already I am hesitant whether I can bring anything new in to this scene.

-- Mauri

I made an attempt at the Buffalo WZR-HP-G300NH and got pretty close but then I ran into something that I would require a bit help with. Could you please comment on items below whether they are of consequence?

In my bootlog, as compared to 19.07

  • I am missing entry 'PID hash table entries: 256 (order: -2, 1024 bytes)'
  • I do not get frequencies for DDR, AHB and REF, only "CPU clock: 400.000 MHz"
  • I get an error 'ar7200-usb-phy usb-phy: phy reset is missing'
  • I see an extra RedBoot search entry at unknown address '0x1fa0000'. That is, I have not specified that address.

Also, the old boot log entry says this about flash partitions:

2 uimage-fw partitions found on MTD device firmware
0x000000060000-0x0000001e3492 : "kernel"
0x0000001e3492-0x000001fc0000 : "rootfs"

and mine says this:

Creating 2 MTD partitions on "firmware":
0x000000000000-0x0000001ba594 : "kernel"
0x0000001ba594-0x000001f60000 : "rootfs"

Otherwise they are identic. Do differing start points for the 'kernel' make a difference? My image fails to execute 'mount_rootfs'. It just keeps running and running and never finishes.

On top of the above things I had to disable failsafe as the device has sliding 'buttons' and some key is being pressed all the time while booting and that is caught always resulting in failsafe prompt. Is it possible to narrow down the buttons, pressing which results in failsafe?