Request: tester for ipq8064 soc

we actually need to test this on a qca8327 switch... it looks like any ipq8064 is qca8337

My RB2011UiAS has an 8327 but connected to an AR9344 which is not DSA enabled as of yet. However, this is on my todo-list (;-p).

Yeah, looks like the QCA8327 is rather rare. Wikidevi only lists one single device the Compex WPJ428 but it's an IPQ4028 based one:

https://wikidevi.wi-cat.ru/Compex_WPJ428

OK, I guess it used to be called AR8327 but that one I can also not spot in any IPQ8064 design...

@Ansuel I am compiling a new image now for my C2600. However, looking at deviwiki, the C2600 also has a qca8337. Are you still interested in the data?

UPDATE: Regardless, here is the logread and the kernel log from an Archer C2600: https://1drv.ms/u/s!AlHg8pmWgJJ_gr53Rv8mWyEn4AL4Tg?e=A89xyn

I built against latest master branch, and I applied in order all 17 x of your patches.

Can someone use the router for some days and check for any problem?

That will be harder for me at the moment since wife and I both are currently working from home, stability more than anything is needed at the moment. I can leave it booted for a few days, no problem, but will be basically idle. I could run some iperf tests across the switch if that will help. Maybe others have the ability to use as primary for the time being?

At least according to wikidevi (which isn't necessarily accurate and including devices not supported by OpenWrt), I haven't found any ipq8064 devices with QCA8327 so far - only QCA8337/ QCA8337N or single/ dual-phy switches like QCA8075.

well that's good to know

And you checked for AR8327 as well as that's what that 10 year old device is mostly still referred to?

I checked all 25 ipq8064 devices known to wikidevi.wi-cat.ru and en.techinfodepot.shoutwiki.com individually, sometimes going back to the FCC images where there was no clear listing in the switch information.

1 Like

anyway i notice some device doesn't use the switch config at all and are directly connected to eth0 and eth1 strange

I have just flashed my main router (another Tp-link VR2600) with your firmware, so far so good. I'll keep you updated :wink:

1 Like

ok i've started experimenting to see if I can actually get dsa to work

while making changes to the config I got this one

[   32.225729] 8<--- cut here ---
[   32.225753] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[   32.227677] pgd = c229c9f1
[   32.236060] [00000000] *pgd=5c83a835, *pte=00000000, *ppte=00000000
[   32.238454] Internal error: Oops: 17 [#1] SMP ARM
[   32.244597] Modules linked in: pppoe ppp_async iptable_nat ath10k_pci ath10k_core ath xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_amanda nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_irc nf_conntrack_h323 nf_conntrack_broadcast nf_conntrack_amanda nf_conntrack mac80211 ipt_REJECT cfg80211 ax88179_178a xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG wireguard usbnet ts_kmp ts_fsm ts_bm slhc r8152 nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat asn1_decoder fuse ledtrig_usbport cryptodev xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet
[   32.244688]  ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ip6_gre ip_gre gre ip6_udp_tunnel udp_tunnel ip6_tunnel tunnel6 ip_tunnel dm_raid vfat fat dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax raid456 async_raid6_recov async_pq async_xor async_memcpy async_tx raid10 raid1 raid0 md_mod nls_utf8 nls_iso8859_1 nls_cp437 zram zsmalloc crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg authenc uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom phy_qcom_ipq806x_usb ahci sd_mod ahci_platform libahci_platform libahci libata scsi_mod gpio_button_hotplug btrfs xor xor_neon raid6_pq libcrc32c crc32c_generic
[   32.388340] CPU: 0 PID: 1105 Comm: swconfig Not tainted 5.4.99 #0
[   32.410570] Hardware name: Generic DT based system
[   32.416831] PC is at ar8327_init_port+0x28/0xd0
[   32.421508] LR is at ar8xxx_sw_reset_switch+0x80/0xf0
[   32.425933] pc : [<c06f526c>]    lr : [<c06f13b4>]    psr: 600d0013
[   32.431143] sp : da06bc48  ip : dce4cb70  fp : 00000014
[   32.437217] r10: dce18300  r9 : c0c2d340  r8 : 00000000
[   32.442426] r7 : dce48220  r6 : 0000007c  r5 : dce48000  r4 : 00000000
[   32.447638] r3 : 00000000  r2 : 00001000  r1 : 00000000  r0 : dce48000
[   32.454236] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   32.460745] Control: 10c5787d  Table: 5c06c06a  DAC: 00000051
[   32.467949] Process swconfig (pid: 1105, stack limit = 0xb25bb582)
[   32.473678] Stack: (0xda06bc48 to 0xda06c000)
[   32.479763] bc40:                   00000000 dce48000 c0a3b430 c06f13b4 c0c29038 dce48000
[   32.484195] bc60: da06bd00 c06ee458 00000000 c06eeb14 c0a3b3fc dce48000 da06bd00 c06eef5c
[   32.492356] bc80: dab35400 00000001 c0c29038 00000000 00000000 00000000 c06efb34 00000000
[   32.500515] bca0: 00000000 00000000 00000004 c0a399b4 00001000 00000000 00000000 00000000
[   32.508675] bcc0: 000d28c0 c0c291b8 c0c2921c dac3f214 da868000 00000000 c0c2d340 dce18300
[   32.516835] bce0: 00000014 c0811768 00000000 da06bd54 dce18300 00000000 bef64ec1 da06bd54
[   32.524994] bd00: 602e06cd 00000451 dac3f200 dac3f210 dac3f214 dce18300 c0c2d340 00000000
[   32.533155] bd20: 00000000 da06bd54 00000000 00000000 00000000 da868000 c0811588 dac3f200
[   32.541315] bd40: 00000000 00000000 00000000 c0810c5c c0c60840 00000000 00000000 00000000
[   32.549474] bd60: 00000000 00000000 00000000 00000000 00000000 c0c04e88 c0c2f088 da868000
[   32.557634] bd80: dab35400 da868000 c0c067cc c08112d4 dd50d400 00000024 dab35400 c0810460
[   32.565794] bda0: 00000024 7fffffff da06bf70 da06bf68 da06bf70 da868000 dac3f200 00000024
[   32.573952] bdc0: dab35400 c08106b8 00000051 da06be7c 00000008 00000000 00000001 da06bebc
[   32.582112] bde0: 00000001 db43f5c0 00000000 00000451 00000000 00000000 00000128 da06bf68
[   32.590273] be00: c0810500 d9833400 00000000 00000000 00000024 da06be24 bef64ba4 c078c248
[   32.598431] be20: 00000051 00000000 da06a000 c078cbf8 da06be78 da06bf70 dcb5bcd0 00e0d20c
[   32.606591] be40: 0000000c c0c04e88 00000001 00000000 da06bf68 00000000 d9833400 00000000
[   32.614751] be60: da06a000 00000128 bef64ba4 c078ccf0 00000000 da06be78 00000000 00e0e7f8
[   32.622912] be80: 00000024 dcc23000 00e0de28 c0c05204 00000000 00000001 000007ff 00000000
[   32.631071] bea0: bef64ec1 c0488f50 dcc23000 dab3c800 ffffe000 00000000 da06bfb0 00000010
[   32.639230] bec0: 00000000 00000000 da06bee0 c040d23c c09e0be8 00080040 00000000 00000000
[   32.647390] bee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   32.655552] bf00: 00000020 00000000 dab3cc3c 00000000 dab3cc3c c0925bd0 dab3cc3c da06a000
[   32.663709] bf20: da06bfb0 c0301204 fffffe30 c0301204 c0c04e8c 00000006 5ac3c35a c0c04e88
[   32.671870] bf40: d9833400 bef64ad8 00000000 00000128 c0301204 c078e11c 00000000 00000000
[   32.680028] bf60: 00000000 fffffff7 da06bebc 0000000c 00000005 00000000 00000000 da06be84
[   32.688189] bf80: 00000000 c0478e94 00000000 00000000 00000000 00000000 00e0d200 bef64ad8
[   32.696349] bfa0: b6fe6560 c0301000 00e0d200 bef64ad8 00000003 bef64ad8 00000000 00000000
[   32.704508] bfc0: 00e0d200 bef64ad8 b6fe6560 00000128 00000000 00024f20 00e0de40 bef64ba4
[   32.712669] bfe0: b6fb2f8c bef64aa8 b6fa033c b6e84144 600d0010 00000003 00000000 00000000
[   32.720827] [<c06f526c>] (ar8327_init_port) from [<c06f13b4>] (ar8xxx_sw_reset_switch+0x80/0xf0)
[   32.728983] [<c06f13b4>] (ar8xxx_sw_reset_switch) from [<c06eeb14>] (swconfig_set_attr+0x130/0x2c4)
[   32.737845] [<c06eeb14>] (swconfig_set_attr) from [<c0811768>] (genl_rcv_msg+0x1e0/0x464)
[   32.746604] [<c0811768>] (genl_rcv_msg) from [<c0810c5c>] (netlink_rcv_skb+0xd4/0x144)
[   32.754936] [<c0810c5c>] (netlink_rcv_skb) from [<c08112d4>] (genl_rcv+0x30/0x48)
[   32.762748] [<c08112d4>] (genl_rcv) from [<c0810460>] (netlink_unicast+0x188/0x228)
[   32.770299] [<c0810460>] (netlink_unicast) from [<c08106b8>] (netlink_sendmsg+0x1b8/0x378)
[   32.777767] [<c08106b8>] (netlink_sendmsg) from [<c078c248>] (____sys_sendmsg+0x1fc/0x274)
[   32.786100] [<c078c248>] (____sys_sendmsg) from [<c078ccf0>] (___sys_sendmsg+0x7c/0xc0)
[   32.794345] [<c078ccf0>] (___sys_sendmsg) from [<c078e11c>] (sys_sendmsg+0x48/0x7c)
[   32.802245] [<c078e11c>] (sys_sendmsg) from [<c0301000>] (ret_fast_syscall+0x0/0x54)
[   32.809878] Exception stack(0xda06bfa8 to 0xda06bff0)
[   32.817869] bfa0:                   00e0d200 bef64ad8 00000003 bef64ad8 00000000 00000000
[   32.822825] bfc0: 00e0d200 bef64ad8 b6fe6560 00000128 00000000 00024f20 00e0de40 bef64ba4
[   32.830979] bfe0: b6fb2f8c bef64aa8 b6fa033c b6e84144
[   32.839139] Code: e1a06106 e58de00c e590323c 1a00001b (e5932000) 
[   32.844279] ---[ end trace 80c947de6d8bb126 ]---
[   32.850317] Kernel panic - not syncing: Fatal exception
[   32.854933] CPU1: stopping
[   32.859876] CPU: 1 PID: 109 Comm: kworker/1:3 Tainted: G      D           5.4.99 #0
[   32.862656] Hardware name: Generic DT based system
[   32.870214] Workqueue: ubiblock0_0 ubiblock_do_work
[   32.875075] [<c030fc2c>] (unwind_backtrace) from [<c030b8f4>] (show_stack+0x14/0x20)
[   32.879850] [<c030b8f4>] (show_stack) from [<c090be90>] (dump_stack+0x8c/0xa0)
[   32.887835] [<c090be90>] (dump_stack) from [<c030ebec>] (handle_IPI+0x184/0x1b8)
[   32.894871] [<c030ebec>] (handle_IPI) from [<c05f4700>] (gic_handle_irq+0x94/0x98)
[   32.902420] [<c05f4700>] (gic_handle_irq) from [<c0301a8c>] (__irq_svc+0x6c/0x90)
[   32.909791] Exception stack(0xdcb79c20 to 0xdcb79c68)
[   32.917351] 9c20: dd4412cc a0030113 dd4412e0 00006282 dcb79c8c dd441280 000001f4 a0030113
[   32.922390] 9c40: dd4412cc dd4efe80 ffffffff 000001f4 00000000 dcb79c70 c0646e98 c092a4cc
[   32.930542] 9c60: a0030113 ffffffff
[   32.938699] [<c0301a8c>] (__irq_svc) from [<c092a4cc>] (_raw_spin_unlock_irqrestore+0x1c/0x20)
[   32.942009] [<c092a4cc>] (_raw_spin_unlock_irqrestore) from [<c0646e98>] (adm_tx_status+0x98/0xd4)
[   32.950685] [<c0646e98>] (adm_tx_status) from [<c0642b0c>] (dma_sync_wait+0x50/0xa0)
[   32.959627] [<c0642b0c>] (dma_sync_wait) from [<c06be6e8>] (submit_descs+0x13c/0x1a4)
[   32.967524] [<c06be6e8>] (submit_descs) from [<c06c02b4>] (read_page_ecc+0x184/0x54c)
[   32.975255] [<c06c02b4>] (read_page_ecc) from [<c06b1d38>] (nand_read_oob+0x1c0/0x758)
[   32.983069] [<c06b1d38>] (nand_read_oob) from [<c069c81c>] (part_read_oob+0x40/0x8c)
[   32.990874] [<c069c81c>] (part_read_oob) from [<c0699ad0>] (mtd_read_oob+0x60/0xf0)
[   32.998772] [<c0699ad0>] (mtd_read_oob) from [<c0699ba0>] (mtd_read+0x40/0x5c)
[   33.006149] [<c0699ba0>] (mtd_read) from [<c06d0b48>] (ubi_io_read+0xd4/0x368)
[   33.013447] [<c06d0b48>] (ubi_io_read) from [<c06ce700>] (ubi_eba_read_leb+0xa8/0x438)
[   33.020647] [<c06ce700>] (ubi_eba_read_leb) from [<c06ceb14>] (ubi_eba_read_leb_sg+0x84/0x194)
[   33.028548] [<c06ceb14>] (ubi_eba_read_leb_sg) from [<c06cd16c>] (ubi_leb_read_sg+0x8c/0xcc)
[   33.037142] [<c06cd16c>] (ubi_leb_read_sg) from [<c06d9268>] (ubiblock_do_work+0xd0/0x128)
[   33.045738] [<c06d9268>] (ubiblock_do_work) from [<c034575c>] (process_one_work+0x1f8/0x46c)
[   33.053809] [<c034575c>] (process_one_work) from [<c0345a44>] (worker_thread+0x74/0x5dc)
[   33.062406] [<c0345a44>] (worker_thread) from [<c034be64>] (kthread+0x160/0x164)
[   33.070473] [<c034be64>] (kthread) from [<c03010e8>] (ret_from_fork+0x14/0x2c)
[   33.077846] Exception stack(0xdcb79fb0 to 0xdcb79ff8)
[   33.084880] 9fa0:                                     00000000 00000000 00000000 00000000
[   33.090011] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   33.098168] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   33.106325] Rebooting in 3 seconds..

maybe swconfig is trying to do something it shouldn't since only dsa should be getting used

looks like you still have the old binding in the dts

ok i'm trying a full merge of your branch and i've edited qcom-ipq8064-eax500.dtsi

to reflect the same as you did here:

make sure you commented the old mdio node

i should be good to build without the swconfig package yes ?

yes swconfig should not be compiled

ok it has booted up OK

i'll see if I can get anything working now

https://ghostbin.com/paste/G9ggd

basic config seems ok

i'm not sure exactly how to go about vlan configuration

root@rockProbe:~# iperf3 -c 192.168.1.20
Connecting to host 192.168.1.20, port 5201
[  5] local 192.168.1.1 port 39916 connected to 192.168.1.20 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  66.9 MBytes   561 Mbits/sec  134    747 KBytes       
[  5]   1.00-2.00   sec  69.0 MBytes   578 Mbits/sec    3    591 KBytes       
[  5]   2.00-3.00   sec  68.7 MBytes   577 Mbits/sec    0    662 KBytes       
[  5]   3.00-4.00   sec  69.8 MBytes   585 Mbits/sec    0    728 KBytes       
[  5]   4.00-5.00   sec  70.2 MBytes   588 Mbits/sec    0    785 KBytes       
[  5]   5.00-6.00   sec  69.3 MBytes   583 Mbits/sec    4    624 KBytes       
[  5]   6.00-7.00   sec  70.1 MBytes   588 Mbits/sec    0    693 KBytes       
[  5]   7.00-8.00   sec  69.2 MBytes   581 Mbits/sec    0    754 KBytes       
[  5]   8.00-9.00   sec  69.8 MBytes   585 Mbits/sec    6    588 KBytes       
[  5]   9.00-10.00  sec  70.9 MBytes   595 Mbits/sec    0    662 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   694 MBytes   582 Mbits/sec  147             sender
[  5]   0.00-10.01  sec   692 MBytes   579 Mbits/sec                  receiver

iperf Done.
root@rockProbe:~# iperf3 -c 192.168.1.20 --reverse
Connecting to host 192.168.1.20, port 5201
Reverse mode, remote host 192.168.1.20 is sending
[  5] local 192.168.1.1 port 39920 connected to 192.168.1.20 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   106 MBytes   890 Mbits/sec                  
[  5]   1.00-2.00   sec   111 MBytes   932 Mbits/sec                  
[  5]   2.00-3.00   sec   109 MBytes   914 Mbits/sec                  
[  5]   3.00-4.00   sec   104 MBytes   871 Mbits/sec                  
[  5]   4.00-5.00   sec   100 MBytes   842 Mbits/sec                  
[  5]   5.00-6.00   sec  91.2 MBytes   765 Mbits/sec                  
[  5]   6.00-7.00   sec   110 MBytes   923 Mbits/sec                  
[  5]   7.00-8.00   sec  81.5 MBytes   684 Mbits/sec                  
[  5]   8.00-9.00   sec   111 MBytes   934 Mbits/sec                  
[  5]   9.00-10.00  sec   111 MBytes   935 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.01  sec  1.01 GBytes   869 Mbits/sec  168             sender
[  5]   0.00-10.00  sec  1.01 GBytes   869 Mbits/sec                  receiver

iperf Done.