Skip to content

airoha: Add support for TP-Link xx230v v1, xx530v v1 and ex530v v1#20104

Open
Sirherobrine23 wants to merge 7 commits intoopenwrt:mainfrom
Sirherobrine23:main
Open

airoha: Add support for TP-Link xx230v v1, xx530v v1 and ex530v v1#20104
Sirherobrine23 wants to merge 7 commits intoopenwrt:mainfrom
Sirherobrine23:main

Conversation

@Sirherobrine23
Copy link
Copy Markdown

@Sirherobrine23 Sirherobrine23 commented Sep 20, 2025

Devices specification base

SoC: Econet/Airoha EN7529CT
FXS: Si32192FM1
Ethernet: 4x Gigabit en7523 + VLAN
Button: Reset, Wifi
Bootloader: U-Boot 2014.04-rc1 (Apr 23 2025 - 11:33:03)
LEDs: 6 LEDs


  • xx230v v1 and xx530v v1
    NAND: ESMT F50L1G4JLB (128Mb)
    LEDs: 6 LEDs
    USB: 1x 2.0
    XPON: Econet EN7571N
    Switch leds: 4x

  • xx230v v1
    RAM: Zentrl A3T2GF40CBF (256Mb)
    Wifi: Mediatek MT7905DEN + Mediatek MT7975DN

  • xx530v v1
    RAM: Winbond W634GU6QB-11 (512Mb) / ESMT M15T2G16128A (256Mb)
    Wifi: Mediatek MT7916AN + Mediatek MT7976DN


  • ex530v v1
    USB: 1x 3.0
    NAND: ESMT F50L4G41XB (512Mb)
    RAM: 512Mb

Booting OpenWrt initramfs and installing:

  • Set your computer's IP address to 192.168.1.100.
  • Run a TFTP server providing the initramfs image.
  • Power on the device and hit ctrl-c to canceling autoboot.
  • tftpboot 0x84dc8f18 openwrt-airoha-en7523-tplink_xx230v_v1-initramfs-kernel.bin; bootm 0x84dc8f18; or setenv loadaddr 0x84dc8f18; and put with tftp client, done run bootm

@github-actions github-actions bot added kernel pull request/issue with Linux kernel related changes core packages pull request/issue for core (in-tree) packages target/airoha pull request/issue for airoha target labels Sep 20, 2025
@Sirherobrine23 Sirherobrine23 force-pushed the main branch 2 times, most recently from 10e60b5 to 0f64a7a Compare September 24, 2025 01:24
@Sirherobrine23 Sirherobrine23 force-pushed the main branch 2 times, most recently from 849fd5b to f0806af Compare September 25, 2025 03:01
@Sirherobrine23
Copy link
Copy Markdown
Author

current issue is switch not working

root@OpenWrt:~# ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100): 56 data bytes
^C
--- 192.168.1.100 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:~#
xx230v boot log
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.12.48 (buildbot@42b9b24eca5e) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 14.3.0 r30955+1-d751f1e57e) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 SMP Wed Sep 24 22:12:27 2025
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TP-Link xx230v
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] earlycon: ns16550 at MMIO32 0x1fbf0000 (options '115200n8')
[    0.000000] printk: legacy bootconsole [ns16550] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080200000-0x000000008fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000]   node   0: [mem 0x0000000084000000-0x00000000849fffff]
[    0.000000]   node   0: [mem 0x0000000084a00000-0x0000000084afffff]
[    0.000000]   node   0: [mem 0x0000000084b00000-0x0000000084bfffff]
[    0.000000]   node   0: [mem 0x0000000084c00000-0x0000000084ffffff]
[    0.000000]   node   0: [mem 0x0000000085000000-0x00000000869fffff]
[    0.000000]   node   0: [mem 0x0000000086a00000-0x0000000086cfffff]
[    0.000000]   node   0: [mem 0x0000000086d00000-0x0000000086dfffff]
[    0.000000]   node   0: [mem 0x0000000086e00000-0x0000000086ffffff]
[    0.000000]   node   0: [mem 0x0000000087000000-0x0000000089ffffff]
[    0.000000]   node   0: [mem 0x000000008a000000-0x000000008c61ffff]
[    0.000000]   node   0: [mem 0x000000008c620000-0x000000008c625fff]
[    0.000000]   node   0: [mem 0x000000008c627000-0x000000008fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000008fffffff]
[    0.000000] On node 0, zone Normal: 512 pages in unavailable ranges
[    0.000000] On node 0, zone Normal: 1 pages in unavailable ranges
[    0.000000] OF: reserved mem: 0x84000000..0x849fffff (10240 KiB) nomap non-reusable npu_binary@84000000
[    0.000000] OF: reserved mem: 0x84b00000..0x84bfffff (1024 KiB) nomap non-reusable npu_flag@84B0000
[    0.000000] OF: reserved mem: 0x85000000..0x869fffff (26624 KiB) nomap non-reusable npu_pkt@85000000
[    0.000000] OF: reserved mem: 0x87000000..0x88ffffff (32768 KiB) nomap non-reusable qdma0-buf@87000000
[    0.000000] OF: reserved mem: 0x89000000..0x89ffffff (16384 KiB) nomap non-reusable qdma1-buf@89000000
[    0.000000] OF: reserved mem: 0x86d00000..0x86dfffff (1024 KiB) nomap non-reusable npu_rxdesc@86D00000
[    0.000000] OF: reserved mem: 0x8c620000..0x8c6267ff (26 KiB) nomap non-reusable npu-txbufid@90c00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 14 pages/cpu s25100 r8192 d24052 u57344
[    0.000000] Kernel command line: console=ttyS0,115200 earlycon
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65023
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GICv3: 256 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: GICD_CTRL.DS=0, SCR_EL3.FIQ=0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x09080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.000001] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[    0.008801] Switching to timer-based delay loop, resolution 40ns
[    0.015551] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.026939] CPU: Testing write buffer coherency: ok
[    0.032324] pid_max: default: 32768 minimum: 301
[    0.045273] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.053329] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.065287] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.072622] Setting up static identity map for 0x80300000 - 0x80300060
[    0.079989] rcu: Hierarchical SRCU implementation.
[    0.085257] rcu:     Max phase no-delay instances is 1000.
[    0.091308] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.100536] smp: Bringing up secondary CPUs ...
[    0.120652] GICv3: CPU1: found redistributor 1 region 0:0x090a0000
[    0.120705] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.120852] smp: Brought up 1 node, 2 CPUs
[    0.138365] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.145264] CPU: All CPU(s) started in SVC mode.
[    0.150799] Memory: 139052K/260092K available (7519K kernel code, 594K rwdata, 1952K rodata, 18432K init, 217K bss, 120284K reserved, 0K cma-reserved)
[    0.169141] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.180021] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.191477] pinctrl core: initialized pinctrl subsystem
[    0.199268] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.206090] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.214399] thermal_sys: Registered thermal governor 'step_wise'
[    0.214484] cpuidle: using governor menu
[    0.227447] /pcie@1fa91000: Fixed dependency cycle(s) with /pcie@1fa91000/interrupt-controller
[    0.237329] /pcie@1fa92000: Fixed dependency cycle(s) with /pcie@1fa92000/interrupt-controller
[    0.256209] SCSI subsystem initialized
[    0.260584] usbcore: registered new interface driver usbfs
[    0.266673] usbcore: registered new interface driver hub
[    0.272608] usbcore: registered new device driver usb
[    0.279594] clocksource: Switched to clocksource arch_sys_counter
[    0.293274] NET: Registered PF_INET protocol family
[    0.298801] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.307443] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.316687] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.325218] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.333663] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.341569] TCP: Hash tables configured (established 2048 bind 2048)
[    0.348988] MPTCP token hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.357230] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.364440] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.372580] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.378836] PCI: CLS 0 bytes, default 64
[    0.389759] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.399452] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.405985] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.424343] mtk-pcie 1fa91000.pcie: host bridge /pcie@1fa91000 ranges:
[    0.431727] mtk-pcie 1fa91000.pcie:      MEM 0x0020000000..0x0021ffffff -> 0x0020000000
[    1.029607] mtk-pcie 1fa91000.pcie: Port0 link down
[    1.035270] mtk-pcie 1fa91000.pcie: PCI host bridge to bus 0000:00
[    1.042138] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.048170] pci_bus 0000:00: root bus resource [mem 0x20000000-0x21ffffff]
[    1.056576] PCI: bus0: Fast back to back transfers enabled
[    1.062640] pci_bus 0000:00: resource 4 [mem 0x20000000-0x21ffffff]
[    1.069855] mtk-pcie 1fa92000.pcie: host bridge /pcie@1fa92000 ranges:
[    1.077059] mtk-pcie 1fa92000.pcie:      MEM 0x0022000000..0x0023ffffff -> 0x0022000000
[    1.608035] mtk-pcie 1fa92000.pcie: PCI host bridge to bus 0001:00
[    1.614883] pci_bus 0001:00: root bus resource [bus 00-ff]
[    1.620939] pci_bus 0001:00: root bus resource [mem 0x22000000-0x23ffffff]
[    1.628832] pci 0001:00:01.0: [14c3:0811] type 01 class 0x060400 PCIe Root Port
[    1.637069] pci 0001:00:01.0: BAR 0: can't handle BAR larger than 4GB (size 0x200000000)
[    1.645979] pci 0001:00:01.0: BAR 0 [mem size 0x00000001 64bit pref disabled]
[    1.653903] pci 0001:00:01.0: PCI bridge to [bus 00]
[    1.659422] pci 0001:00:01.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.668949] PCI: bus0: Fast back to back transfers disabled
[    1.675137] pci 0001:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.684628] pci 0001:01:00.0: [14c3:7915] type 00 class 0x000280 PCIe Endpoint
[    1.692786] pci 0001:01:00.0: BAR 0 [mem 0x00000000-0x000fffff 64bit pref]
[    1.700476] pci 0001:01:00.0: BAR 2 [mem 0x00000000-0x00003fff 64bit pref]
[    1.708136] pci 0001:01:00.0: BAR 4 [mem 0x00000000-0x00000fff 64bit pref]
[    1.716407] pci 0001:01:00.0: supports D1 D2
[    1.721110] pci 0001:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.728719] pci 0001:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0001:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.745756] PCI: bus1: Fast back to back transfers disabled
[    1.751920] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    1.759254] pci 0001:00:01.0: bridge window [mem 0x22000000-0x221fffff]: assigned
[    1.767501] pci 0001:00:01.0: BAR 0 [mem 0x22200000 64bit pref disabled]: assigned
[    1.775869] pci 0001:00:01.0: BAR 0: error updating (0x2220000c != 0x0000000c)
[    1.783856] pci 0001:01:00.0: BAR 0 [mem 0x22000000-0x220fffff 64bit pref]: assigned
[    1.792468] pci 0001:01:00.0: BAR 2 [mem 0x22100000-0x22103fff 64bit pref]: assigned
[    1.801068] pci 0001:01:00.0: BAR 4 [mem 0x22104000-0x22104fff 64bit pref]: assigned
[    1.809670] pci 0001:00:01.0: PCI bridge to [bus 01]
[    1.815152] pci 0001:00:01.0:   bridge window [mem 0x22000000-0x221fffff]
[    1.822693] pci_bus 0001:00: resource 4 [mem 0x22000000-0x23ffffff]
[    1.829590] pci_bus 0001:01: resource 1 [mem 0x22000000-0x221fffff]
[    1.836706] pcieport 0001:00:01.0: enabling device (0140 -> 0142)
[    1.844251] pcieport 0001:00:01.0: PME: Signaling with IRQ 31
[    1.851881] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.859951] printk: legacy console [ttyS0] disabled
[    1.865771] 1fbf0000.serial: ttyS0 at MMIO 0x1fbf0000 (irq = 32, base_baud = 115200) is a 16550
[    1.875431] printk: legacy console [ttyS0] enabled
[    1.875431] printk: legacy console [ttyS0] enabled
[    1.885510] printk: legacy bootconsole [ns16550] disabled
[    1.885510] printk: legacy bootconsole [ns16550] disabled
[    1.898937] spi-nand spi0.0: ESMT SPI NAND was found.
[    1.904093] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.919662] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.926064] OF: Bad cell count for /spi@1fa10000/nand@0/partitions
[    1.932452] OF: Bad cell count for /spi@1fa10000/nand@0/partitions
[    1.938901] OF: Bad cell count for /spi@1fa10000/nand@0/partitions
[    1.945175] OF: Bad cell count for /spi@1fa10000/nand@0/partitions
[    1.951617] Creating 6 MTD partitions on "spi0.0":
[    1.956424] 0x000000000000-0x000000080000 : "bootloader"
[    1.964258] 0x000000080000-0x000000120000 : "romfile"
[    1.971649] 0x0000000a0000-0x000000240000 : "misc"
[    1.980063] OF: Bad cell count for /spi@1fa10000/nand@0/partitions
[    1.986475] 0x0000001a0000-0x0000021a0000 : "firmware"
[    2.061119] 0x000002000000-0x000005e60000 : "firmware_slave"
[    2.201386] 0x000003fe0000-0x000007fe0000 : "reserve"
[    2.379975] airoha-npu 1e900000.npu: SRAM Size: 0x60000
[    2.490595] airoha-npu 1e900000.npu: enabling NPU 0 core
[C0]core freq at 333000000 Hz
[C0]timer_init: Timer clk is running at 125 Mhz
[C0]wcid_counter_init:0
[C0]wcid_counter_init:1
[C0][NPU] ba_node_init...
[C0]baNode_array_init
[C0]counter_init:2
[C0][NPU] queue_mutex_init...
[C0]qdma_init
[    2.600587] airoha-npu 1e900000.npu: rebooting NPU core 1 with val 0x203
[C1]core1_main
[    2.710578] airoha-npu 1e900000.npu: rebooting NPU core 2 with val 0x407
[C2]timer_isr  Store Value 1e903000, val[C2]core2_main
[    2.820572] airoha-npu 1e900000.npu: rebooting NPU core 3 with val 0x80f
[C3]core3_main
[C3]do npu_enq_deq_init
[    2.929579] airoha-npu 1e900000.npu: NPU Loaded
[    2.948040] NET: Registered PF_INET6 protocol family
[    2.954739] Segment Routing with IPv6
[    2.958468] In-situ OAM (IOAM) with IPv6
[    2.962530] NET: Registered PF_PACKET protocol family
[    2.967824] 8021q: 802.1Q VLAN Support v1.8
[    2.972141] Registering SWP/SWPB emulation handler
[    3.029100] mt7530-mmio 1fb58000.switch: configuring for fixed/internal link mode
[    3.037590] mt7530-mmio 1fb58000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[    3.040987] mt7530-mmio 1fb58000.switch lan1 (uninitialized): PHY [mt7530-0:09] driver [Generic PHY] (irq=POLL)
[    3.058132] mt7530-mmio 1fb58000.switch lan2 (uninitialized): PHY [mt7530-0:0a] driver [Generic PHY] (irq=POLL)
[    3.070343] mt7530-mmio 1fb58000.switch lan3 (uninitialized): PHY [mt7530-0:0b] driver [Generic PHY] (irq=POLL)
[    3.082621] mt7530-mmio 1fb58000.switch wan (uninitialized): PHY [mt7530-0:0c] driver [Generic PHY] (irq=POLL)
[    3.093529] airoha_eth 1fb50000.ethernet eth0: entered promiscuous mode
[    3.100280] DSA: tree 0 setup
[    3.104280] clk: Disabling unused clocks
[    3.108227] PM: genpd: Disabling unused power domains
[    3.132121] Freeing unused kernel image (initmem) memory: 18432K
[    3.138441] Run /init as init process
[    3.451061] init: Console is alive
[    3.454705] init: - watchdog -
[    3.465161] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.473909] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.486173] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.498970] init: - preinit -
[    7.409589] random: crng init done
[    7.560447] mt7530-mmio 1fb58000.switch lan1: configuring for phy/internal link mode
[    7.571297] mt7530-mmio 1fb58000.switch lan1: Link is Up - 1Gbps/Full - flow control rx/tx
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
[   11.770620] mt7530-mmio 1fb58000.switch lan1: Link is Down
[   11.781109] procd: - early -
[   11.784146] procd: - watchdog -
[   12.320855] procd: - watchdog -
[   12.324523] procd: - ubus -
[   12.380564] procd: - init -
Please press Enter to activate this console.
[   12.642487] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.917334] i2c_dev: i2c /dev entries driver
[   12.923817] Loading modules backported from Linux version v6.16-0-g038d61fd6422
[   12.931186] Backport generated by backports.git v6.1.145-1-47-g6194bf852a3e
[   13.002458] mt7915e 0001:01:00.0: enabling device (0140 -> 0142)
[   13.139792] mt7915e 0001:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240429200716a
[   13.139792] 
[   13.165996] mt7915e 0001:01:00.0: WM Firmware Version: ____000000, Build Time: 20240429200752
[   13.203686] mt7915e 0001:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20240429200812
[   13.255746] urngd: v1.0.2 started.
[   13.326889] mt7915e 0001:01:00.0: registering led 'mt76-phy0'
[   13.401109] mt7915e 0001:01:00.0: registering led 'mt76-phy1'
[   13.536294] PPP generic driver version 2.4.2
[   13.570397] NET: Registered PF_PPPOX protocol family
[   13.589871] kmodloader: done loading kernel modules from /etc/modules.d/*
[   27.892921] mt7530-mmio 1fb58000.switch lan1: configuring for phy/internal link mode
[   27.902603] br-lan: port 1(lan1) entered blocking state
[   27.907871] br-lan: port 1(lan1) entered disabled state
[   27.913318] mt7530-mmio 1fb58000.switch lan1: entered allmulticast mode
[   27.920027] airoha_eth 1fb50000.ethernet eth0: entered allmulticast mode
[   27.927065] mt7530-mmio 1fb58000.switch lan1: entered promiscuous mode
[   27.943090] mt7530-mmio 1fb58000.switch lan2: configuring for phy/internal link mode
[   27.953658] br-lan: port 2(lan2) entered blocking state
[   27.958919] br-lan: port 2(lan2) entered disabled state
[   27.964327] mt7530-mmio 1fb58000.switch lan2: entered allmulticast mode
[   27.971401] mt7530-mmio 1fb58000.switch lan2: entered promiscuous mode
[   27.982408] mt7530-mmio 1fb58000.switch lan3: configuring for phy/internal link mode
[   27.991719] br-lan: port 3(lan3) entered blocking state
[   27.996985] br-lan: port 3(lan3) entered disabled state
[   28.002430] mt7530-mmio 1fb58000.switch lan3: entered allmulticast mode
[   28.009424] mt7530-mmio 1fb58000.switch lan3: entered promiscuous mode
[   28.070351] mt7530-mmio 1fb58000.switch wan: configuring for phy/internal link mode
[   36.241426] mt7530-mmio 1fb58000.switch lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   36.249860] br-lan: port 1(lan1) entered blocking state
[   36.255105] br-lan: port 1(lan1) entered forwarding state

@Sirherobrine23 Sirherobrine23 force-pushed the main branch 2 times, most recently from fecf51e to 888f910 Compare September 26, 2025 02:53
@Sirherobrine23 Sirherobrine23 force-pushed the main branch 2 times, most recently from 2fc6790 to bb5cf4f Compare October 13, 2025 22:49
@ghost
Copy link
Copy Markdown

ghost commented Oct 14, 2025

Regarding the issue of eth0 having no traffic, I believe the problem lies in the airoha_eth driver. It was written for the AN7581, so using it on the EN7523 will not work.

@Sirherobrine23
Copy link
Copy Markdown
Author

@merbanan where this could be happening is in the eth driver, i have absolutely no idea where it could be

@Sirherobrine23
Copy link
Copy Markdown
Author

Sirherobrine23 commented Apr 1, 2026

That is the difference between the changes

old_ethernet_branch.patch

@Sirherobrine23
Copy link
Copy Markdown
Author

I just bought a Mikrotik hex S (2025) which has the en7562CT SoC so I can test it as well

@thienanhpro1
Copy link
Copy Markdown

Do you have any way to boot from NAND flash? Or is there any way to replace U-Boot? I cannot boot from NAND flash; it shows errors like "FDT_MAGIC fail" and "IH_MAGIC fail" with the original U-Boot.

@Sirherobrine23

This comment was marked as off-topic.

@Sirherobrine23

This comment was marked as off-topic.

@Sirherobrine23

This comment was marked as off-topic.

@Sirherobrine23

This comment was marked as off-topic.

@Sirherobrine23

This comment was marked as off-topic.

@Sirherobrine23

This comment was marked as off-topic.

@Sirherobrine23

This comment was marked as off-topic.

@Sirherobrine23

This comment was marked as off-topic.

@Sirherobrine23
Copy link
Copy Markdown
Author

@merbanan would it be a good idea to start testing with kernel 6.18 (#21019) now?

@hurrian
Copy link
Copy Markdown
Contributor

hurrian commented Apr 8, 2026

Hi! I'd greatly appreciate some cross-testing on 6.18; since I don't have any EN7523 hardware to test. We can figure out which patches we can pull in / revise.

One of the biggest changes for Airoha on 6.18 is FWNODE_PCS, but I believe EN7523 does not support it. There are ifdefs to exclude it on compile but it hasn't been tested yet for functionality.

@Sirherobrine23
Copy link
Copy Markdown
Author

hello @hurrian, i could test and discuss it with @merbanan. i'm currently working with uboot for the xx230v and xx530v, and i still need to add the Mikrotik hEX S (2025) that i also got to test with an7523

@hurrian
Copy link
Copy Markdown
Contributor

hurrian commented Apr 9, 2026

Thanks @Sirherobrine23 ! For EN7523, do you plan to eventually drop BMT/BBT?

On AN7581, the reference devices have been converted to a U-boot that natively supports UBI, while the bootloader locked devices use a chainloader to load a uboot that supports UBI.

If you are doing the same on EN7523, we can get rid of the BMT/BBT support entirely.

@Sirherobrine23
Copy link
Copy Markdown
Author

i wanted to be able to remove the stock uboot from these devices and replace it with the upstream uboot, but not now, only after the drivers for the an7523 are stable so i can test that, TP-Link's uboot has a really annoying limitation, and I also want to be able to use all of the NAND for openwrt, For now, I making chainload for TP-Link devices same Gemtek, i haven't been working with those devices much this week

add nodes in dst that do not need patches
enable some options in the linux kernel config

Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
some files were added for the an7523 such as
uboot-envtools, and base-files. In addition to the
new pinctrl, thermal to the SoC and some changes
to scuclk and trng, it was also added eip93,
watchdog, uart2, usb and i2c

Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
driver for ethernet, airoha NPU, was introduced
and the mt7530 switch that required small fixes to
work correctly on an7523, most of the worker was
in relation to the ethernet drive, minor changes
have been applied for NPU and mt7530 switch

Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
Signed-off-by: Benjamin Larsson <benjamin.larsson@genexis.eu>
Device specification for xx230v v1.x
--------------------
SoC:         Econet/Airoha EN7529CT
FXS:         Si32192FM1
Ethernet:    4x Gigabit en7523 + VLAN
Button:      Reset, Wifi
Bootloader:  U-Boot 2014.04-rc1 (Apr 23 2025 - 11:33:03)
LEDs:        6 LEDs
NAND:        ESMT F50L1G4JLB (128Mb)
USB:         1x 2.0
XPON:        Econet EN7571N
Switch leds: 4x
RAM:         Zentrl A3T2GF40CBF (256Mb)
Wifi:        Mediatek MT7905DEN + Mediatek MT7975DN

Device specification for xx230v v1.x
--------------------
SoC:         Econet/Airoha EN7529CT
FXS:         Si32192FM1
Ethernet:    4x Gigabit en7523 + VLAN
Button:      Reset, Wifi
Bootloader:  U-Boot 2014.04-rc1 (Apr 23 2025 - 11:33:03)
LEDs:        6 LEDs
NAND:        ESMT F50L1G4JLB (128Mb)
USB:         1x 2.0
XPON:        Econet EN7571N
Switch leds: 4x
RAM:         Winbond W634GU6QB-11 (512Mb) / ESMT M15T2G16128A (256Mb)
Wifi:        Mediatek MT7916AN + Mediatek MT7976DN

1. Set your computer's IP address to 192.168.1.100.
2. Run a TFTP server providing the initramfs image.
3. Power on the device and hit ctrl-c to canceling autoboot.
4. run `setenv loadaddr 0x89800000; tftpboot $loadaddr openwrt-airoha-en7523-tplink_xx230v_v1-initramfs-kernel.bin; bootm;`
5. install with sysupgrade file

Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
Device specification for ex530v v1.x
--------------------
SoC:         Econet/Airoha EN7526CT
FXS:         Si32192FM1
Ethernet:    4x Gigabit en7523 + VLAN
Button:      Reset, Wifi
Bootloader:  U-Boot 2014.04-rc1 (Apr 23 2025 - 11:33:03)
LEDs:        7 LEDs
NAND:        ESMT F50L4G41XB (512Mb)
USB:         1x 3.0
RAM:         - (512Mb)
Wifi:        Mediatek MT7905DEN + Mediatek MT7975DN

1. Set your computer's IP address to 192.168.1.100.
2. Run a TFTP server providing the initramfs image.
3. Power on the device and hit ctrl-c to canceling autoboot.
4. run `setenv loadaddr 0x89800000; tftpboot $loadaddr openwrt-airoha-en7523-tplink_ex530v_v1-initramfs-kernel.bin; bootm;`
5. install with sysupgrade file

Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
small fix for an7523 to avoid some kernel panic's
related to these drivers

for pcie panic

```
[    1.855492] pcieport 0001:00:01.0: BAR 0 [mem size 0x00000000 64bit pref disabled]: not assigned; can't enable device
[    1.867196] pcieport 0001:00:01.0: probe with driver pcieport failed with error -22
...
[    8.029608] pci 0001:00:01.0: BAR 0 [mem size 0x00000000 64bit pref disabled]: not assigned; can't enable device
[    8.039840] pci 0001:00:01.0: Error enabling bridge (-22), continuing
[    8.046328] mt7915e 0001:01:00.0: enabling device (0140 -> 0142)
[   13.344324] mt7915e 0001:01:00.0: Retry message 00000010 (seq 1)
[   18.384322] mt7915e 0001:01:00.0: Message 00000010 (seq 1) timeout
[   18.390538] mt7915e 0001:01:00.0: Could not release semaphore
[   18.390584] 8<--- cut here ---
[   18.396337] mt7915e 0001:01:00.0: Failed to get patch semaphore
[   18.399361] Unable to handle kernel NULL pointer dereference at virtual address 00000004 when write
[   18.414328] [00000004] *pgd=00000000
[   18.417915] Internal error: Oops: 817 [#1] SMP ARM
[   18.422704] Modules linked in: mt7915e(O+) mt76_connac_lib(O) mt76(O) mac80211(O) libchacha20poly1305 ipt_REJECT cfg80211(O) xt_time xt_tcpudp xt_tcpmss xt_statistic xt_recent xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda slhc sch_cake poly1305_arm nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_quota nft_numgen nft_log nft_limit nft_hash nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_compat nf_tables nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcurve25519_generic libcrc32c iptable_mangle iptable_filter ipt_ECN ip_tables hwmon crc_ccitt compat(O) chacha_neon act_vlan ntfs3 sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact i2c_dev xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet
[   18.423058]  ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ipmac ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 msdos ifb ip6_udp_tunnel udp_tunnel nls_utf8 nls_iso8859_1 nls_cp437 sha512_generic sha512_arm seqiv sha3_generic jitterentropy_rng drbg hmac geniv rng cmac usb_storage leds_gpio xhci_plat_hcd uhci_hcd ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug(O) vfat fat exfat crc32c_generic
[   18.569305] CPU: 1 UID: 0 PID: 277 Comm: kworker/u8:1 Tainted: G           O       6.12.77 #0
[   18.577835] Tainted: [O]=OOT_MODULE
[   18.581323] Hardware name: Generic DT based system
[   18.586117] Workqueue: mt76 mt7915_mac_reset_work [mt7915e]
[   18.591740] PC is at mt76_txq_schedule_pending+0x5c/0x1e0 [mt76]
[   18.597764] LR is at mt76_txq_schedule_pending+0x44/0x1e0 [mt76]
[   18.603780] pc : [<bf6f3774>]    lr : [<bf6f375c>]    psr: a0000013
[   18.610047] sp : c613fe90  ip : 00000000  fp : cb5aa6e4
[   18.615273] r10: 00000000  r9 : cb5a98bc  r8 : cb5a98b8
[   18.620498] r7 : c613fe90  r6 : 00000000  r5 : cb5a98a0  r4 : cb5a98a0
[   18.627026] r3 : c613fe90  r2 : 00000000  r1 : 00000000  r0 : cb5a98b8
[   18.633554] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   18.640691] Control: 10c5383d  Table: 8abd806a  DAC: 00000055
[   18.646436] Register r0 information: non-slab/vmalloc memory
[   18.652104] Register r1 information: NULL pointer
[   18.656808] Register r2 information: NULL pointer
[   18.661514] Register r3 information: non-slab/vmalloc memory
[   18.667173] Register r4 information: non-slab/vmalloc memory
[   18.672833] Register r5 information: non-slab/vmalloc memory
[   18.678492] Register r6 information: NULL pointer
[   18.683197] Register r7 information: non-slab/vmalloc memory
[   18.688858] Register r8 information: non-slab/vmalloc memory
[   18.694517] Register r9 information: non-slab/vmalloc memory
[   18.700177] Register r10 information: NULL pointer
[   18.704969] Register r11 information: non-slab/vmalloc memory
[   18.710715] Register r12 information: NULL pointer
[   18.715507] Process kworker/u8:1 (pid: 277, stack limit = 0x10619fca)
[   18.721948] Stack: (0xc613fe90 to 0xc6140000)
[   18.726309] fe80:                                     c613fe90 c613fe90 cb5a98a0 cb5a98a0
[   18.734487] fea0: 00000000 cb5a9dc4 cb5ac6e4 cb5a98a0 00000000 bf6f3908 00000000 cb5ab234
[   18.742664] fec0: 00000000 bf70fcdc cb5af6e4 cb5a98ac 00000000 00000000 c0a396a4 c62c2d00
[   18.750841] fee0: cb5a9e30 00000000 cb5a9e18 cb5ab9b4 74030188 00000000 00000000 cb5a9dc4
[   18.759019] ff00: c5e3e850 c5e3e800 cb5af6e4 c608f800 c0008600 01000000 c608f805 c5e3e850
[   18.767195] ff20: 00000000 c01339c4 c62c326 c62c2d00 c0008600 c4e03d40 cb5af6e4 00000000
[   18.775373] ff40: c5e3e800 c0008600 c4e03d40 c0008620 c62c2d00 c5e3e82c 00000000 c013456
[   18.783549] ff60: c5e3e800 ca840f40 c006bec8 ca840a40 c62c2d00 c01343f0 c5e3e800 ca840f40
[   18.791727] ff80: c006bec8 00000000 00000000 c013c220 ca840a40 c013c148 00000000 00000000
[   18.799904] ffa0: 00000000 00000000 00000000 c010013c 00000000 00000000 00000000 00000000
[   18.808081] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   18.816258] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[   18.824431] Call trace:
[   18.824485]  mt76_txq_schedule_pending [mt76] from mt76_txq_schedule_all+0x10/0x48 [mt76]
[   18.835222]  mt76_txq_schedule_all [mt76] from mt7915_mac_reset_work+0xa68/0xcb8 [mt7915e]
[   18.843561]  mt7915_mac_reset_work [mt7915e] from process_one_work+0x1a4/0x34c
[   18.850832]  process_one_work from worker_thread+0x17c/0x340
[   18.856506]  worker_thread from kthread+0xd8/0xf4
[   18.861220]  kthread from ret_from_fork+0x14/0x38
[   18.865933] Exception stack(0xc613ffb0 to 0xc613fff8)
[   18.870987] ffa0:                                     00000000 00000000 00000000 00000000
[   18.879166] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   18.887342] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   18.893959] Code: 0a000008 e595101c e5952020 e59d3000 (e581d004)
[   18.900069] ---[ end trace 0000000000000000 ]---
[   18.904701] Kernel panic - not syncing: Fatal exception in interrupt
```

and for eip93 panic

```
[   18.584872] 8<--- cut here ---
[   18.587950] Unable to handle kernel paging request at virtual address d6d2221b when read
[   18.596051] [d6d2221b] *pgd=00000000
[   18.599662] Internal error: Oops: 5 [#1] SMP ARM
[   18.604305] Modules linked in: xt_connlimit pppoe ppp_async nf_conncount xt_state xt_helper xt_conntrack xt_connmark xt_connbytes xt_CT wireguard pppox ppp_generic nft_redir nft_nat nft_masq nft_flow_offload nft_fib_inet nft_ct nft_chain_nat nf_nat nf_flow_table_inet nf_flow_table nf_conntrack mt7915e(O) mt76_connac_lib(O) mt76(O) mac80211(O) libchacha20poly1305 ipt_REJECT cfg80211(O) xt_time xt_tcpudp xt_tcpmss xt_statistic xt_recent xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda slhc sch_cake poly1305_arm nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_quota nft_numgen nft_log nft_limit nft_hash nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_compat nf_tables nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcurve25519_generic libcrc32c iptable_mangle iptable_filter ipt_ECN ip_tables hwmon crc_ccitt compat(O)
[   18.604721]  chacha_neon act_vlan ntfs3 sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact i2c_dev cryptodev(O) 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 ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ipmac ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 msdos ifb ip6_udp_tunnel udp_tunnel nls_utf8 nls_iso8859_1 nls_cp437 sha512_generic sha512_arm seqiv sha3_generic jitterentropy_rng drbg hmac geniv rng cmac usb_storage leds_gpio xhci_plat_hcd uhci_hcd ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug(O) vfat fat exfat crc32c_generic
[   18.775239] CPU: 0 UID: 0 PID: 2432 Comm: openssl Tainted: G           O       6.12.74 #0
[   18.783450] Tainted: [O]=OOT_MODULE
[   18.786959] Hardware name: Generic DT based system
[   18.791778] PC is at _eip93_hash_init+0xe0/0x2d4
[   18.796431] LR is at _eip93_hash_init+0x5c/0x2d4
[   18.801074] pc : [<c064afe4>]    lr : [<c064af60>]    psr: 40000013
[   18.807368] sp : c7899ab8  ip : 00000000  fp : 00000000
[   18.812620] r10: bf2d0a14  r9 : d6d22217  r8 : 3a400fc3
[   18.817872] r7 : cb3bb040  r6 : cb3bb040  r5 : c78ff680  r4 : c78ff480
[   18.824433] r3 : cb3e5dc0  r2 : ffffffff  r1 : 00000000  r0 : c78ff680
[   18.830977] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   18.838115] Control: 10c5383d  Table: 8795406a  DAC: 00000055
[   18.843859] Register r0 information: slab kmalloc-128 start c78ff680 pointer offset 0 size 128
[   18.852496] Register r1 information: NULL pointer
[   18.857201] Register r2 information: non-paged memory
[   18.862253] Register r3 information: slab kmalloc-128 start cb3e5d80 pointer offset 64 size 128
[   18.870968] Register r4 information: slab kmalloc-128 start c78ff480 pointer offset 0 size 128
[   18.879597] Register r5 information: slab kmalloc-128 start c78ff680 pointer offset 0 size 128
[   18.888225] Register r6 information: slab kmalloc-256 start cb3bb000 pointer offset 64 size 256
[   18.896940] Register r7 information: slab kmalloc-256 start cb3bb000 pointer offset 64 size 256
[   18.905656] Register r8 information: non-paged memory
[   18.910708] Register r9 information: vmalloc memory
[   18.915586] Register r10 information: 3-page vmalloc region starting at 0xbf2d0000 allocated at load_module+0x6a4/0x196c
[   18.926474] Register r11 information: NULL pointer
[   18.931273] Register r12 information: NULL pointer
[   18.936065] Process openssl (pid: 2432, stack limit = 0x912c4ac3)
[   18.942158] Stack: (0xc7899ab8 to 0xc789a000)
[   18.946518] 9aa0:                                                       67452301 efcdab8
[   18.954697] 9ac0: cb87b5c0 8ba7b5c0 bf2d0a14 c793f0c0 cbcae540 c78ff480 cb3bb040 c7899b84
[   18.962874] 9ae0: 00000000 bf2d0a14 00000000 c064b2d4 00000000 bf2d0a14 00000000 8ba7b5c0
[   18.971051] 9b00: c793f0c0 cbcae540 c793f128 c7899dd4 c7899b84 bf2ca050 cbcae540 c793f128
[   18.979228] 9b20: c793f0c0 bf2c7e48 00000000 00000000 cfb96640 cfb9665c 00000000 00000000
[   18.987406] 9b40: 00000020 33323130 37363534 31303938 35343332 39383736 33323130 37363534
[   18.995583] 9b60: 31303938 c4fc2ca4 00000000 00000000 c4f9ac40 00000000 c4f9a8f0 00000000
[   19.003759] 9b80: c4fc13b8 00000000 00000000 00000000 00000098 ba2e8ba3 00000000 00052cc0
[   19.011937] 9ba0: 00000000 c7899e14 c7899e14 00000000 00000001 00052cc0 00052cc0 c4fc13b8
[   19.020114] 9bc0: 00040cc0 00000000 c684ea80 c029fd98 c4f9a6c0 cfb96640 cfd87e68 c029e430
[   19.028291] 9be0: cb54cb00 ffffffff c4f9a6c0 c4f0e2a4 c4fc2d10 00000000 11111111 38e38e39
[   19.036468] 9c00: fffff800 c4fc2ca8 c4fc5764 83f00000 38e38e39 c4f9a6c0 00000001 c7899cfc
[   19.044646] 9c20: c7899cf8 c02be8c4 c7899cfc c4f9ac40 00000000 c4f9ac40 00000000 00000000
[   19.052822] 9c40: 00000000 00000000 0000003e c025226c c0026c40 60000013 00000001 cfd87e68
[   19.061000] 9c60: 00000001 4bddc23f c0001180 00000015 cfccf4dc c052d618 c0001180 00052cc0
[   19.069176] 9c80: cfccf4dc c793f000 c4f0e2a4 c02a5ca4 0000001f c793f000 ffe00000 c0026c40
[   19.077354] 9ca0: cfd8888 cfb96270 cfd67078 00000000 c0001180 c0000080 ffffffff 00000088
[   19.085530] 9cc0: c684ea80 c02a63f8 00000dc0 00000dc0 00000001 c0026c40 b6b19000 c02b99d4
[   19.093708] 9ce0: cfd87e68 cbbc8820 cb792590 cb7925f0 00150015 c08bb938 cb000000 cfd87e68
[   19.101886] 9d00: b6b1a000 c0001180 00000dc0 00000435 cbcae55c c0a82400 bf2ce240 00000088
[   19.110063] 9d20: c7899d28 c02a7950 ffffff04 ffff0a00 cb7923c0 bf2c72e8 ffffff04 ffff0a00
[   19.118239] 9d40: ffffffff bf2d0518 00000002 c08b5af0 00000040 ffffff04 ffff0a00 c684ea80
[   19.126415] 9d60: c684ea80 c7899e74 c7899e34 00000040 ffffff04 ffff0a00 cb485800 c793f0c0
[   19.134593] 9d80: c793fdc0 bea311a0 c7899df0 49a65b70 cbcae540 c01c6366 cbcae540 bea31168
[   19.142771] 9da0: bea31168 c684ea80 00000004 c6b7cda8 b6b0d010 bf2c8778 c6b7cda8 c684ea80
[   19.150950] 9dc0: c0a1e980 c6b7cda8 c5e896e8 c5e89748 c7899dd0 00000000 0000000d 00000000
[   19.159133] 9de0: 00000000 00000000 00000000 00000000 68616da8 28626365 29736561 65646500
[   19.167318] 9e00: 00000029 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   19.175496] 9e20: 00000000 00000000 00000000 00000000 00000000 28626365 2d736561 39706965
[   19.183673] 9e40: 70002933 00293339 00000006 00000010 0000003e b6f1c270 00000000 b6bdae6c
[   19.191849] 9e60: 00000000 b6f1c048 ffffffff 00000040 00000012 00000000 00000000 00000004
[   19.200029] 9e80: 0000003e 015ebdf0 00001000 b6b19000 00000000 b6f35b70 00001000 b6f7ef50
[   19.208214] 9ea0: 00001000 b6f1b7d4 b6b19000 00001000 0000006a c793fdc0 c793fd80 c4f8eb00
[   19.216401] 9ec0: cbcae548 c78ff680 c793fdc0 c793fd80 c4f8eb00 c793fd80 c793f0dc c793f0c0
[   19.224585] 9ee0: c793f0c0 bf2ce240 68616da8 cbcae548 c793f0c8 00000004 00000000 49a65b70
[   19.232762] 9f00: c01c6366 c684ea80 00000000 bea31168 c684ea80 00000004 c6b7cda8 c02dc334
[   19.240939] 9f20: c6b96000 ffffff9c c0100258 cb54cb00 00000005 c02c2df4 00000000 00020002
[   19.249116] 9f40: b6b10000 00000006 00000100 00000001 c7899f58 b6b0b64d 00000000 00000002
[   19.257294] 9f60: 00000005 c02c3054 00020002 00000000 cb485800 0000000 000d0f30 49a65b70
[   19.265479] 9f80: c0100258 00000004 bea31168 00000000 00000036 c0100258 cb54cb00 00000036
[   19.273655] 9fa0: b6b0d010 c0100060 00000004 bea31168 00000004 c01c6366 bea31168 00000000
[   19.281833] 9fc0: 00000004 bea31168 00000000 00000036 00000000 b6b0d088 bea31184 b6b0d010
[   19.290010] 9fe0: b6b0cf34 bea31020 b6b0a428 b6f33974 60000010 00000004 00000000 00000000
[   19.298183] Call trace:
[   19.298193]  _eip93_hash_init from eip93_hash_init+0x34/0x170
[   19.306490]  eip93_hash_init from cryptodev_hash_reset+0x10/0x64 [cryptodev]
[   19.313671]  cryptodev_hash_reset [cryptodev] from cryptodev_release+0x808/0xc3c [cryptodev]
[   19.322238]  cryptodev_release [cryptodev] from cryptodev_ioctl+0x3bc/0xda8 [cryptodev]
[   19.330370]  cryptodev_ioctl [cryptodev] from sys_ioctl+0x2f4/0xb1c
[   19.336708]  sys_ioctl from ret_fast_syscall+0x0/0x4c
[   19.341767] Exception stack(0xc7899fa8 to 0xc7899ff0)
[   19.346823] 9fa0:                   00000004 bea31168 00000004 c01c6366 bea31168 00000000
[   19.355001] 9fc0: 00000004 bea31168 00000000 00000036 00000000 b6b0d088 bea31184 b6b0d010
[   19.363176] 9fe0: b6b0cf34 bea31020 b6b0a428 b6f33974
[   19.368233] Code: e5963040 e1a00005 e5843040 e5845044 (e5998004)
[   19.374331] ---[ end trace 0000000000000000 ]---
[   19.378948] Kernel panic - not syncing: Fatal exception
[   19.384282] Rebooting in 3 seconds..
```

Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
@Sirherobrine23
Copy link
Copy Markdown
Author

My new Mikrotik arrived, and I'm a bit lost trying to locate the UART, unlike the old version, it seems to be in a different place on the PCB

20260409_104953
20260409_104839
20260409_105907
20260409_105820
20260409_105309
20260409_105247
20260409_105110

@merbanan
Copy link
Copy Markdown

merbanan commented Apr 9, 2026

The serial port is most likely on one of the test points. I think some points are connected to the spi-nand chip. Perform a continuity test against the spi-nand to reduce the amount of pins to guess. RX and TX should be a 3.3V.

@Sirherobrine23
Copy link
Copy Markdown
Author

Sirherobrine23 commented Apr 9, 2026

Pin 2 in column 1 is receiving data, but I haven't found the baud rate yet

GND       | 3.3v | 3.3V | 3.3V | GND
0.8v~1.2v | 3.1V | 3.3V | 3.3V | 0.04v

@merbanan
Copy link
Copy Markdown

merbanan commented Apr 9, 2026

With a LA you could look at the signals more properly. It should be 115200 baud.

@Sirherobrine23
Copy link
Copy Markdown
Author

I found the UART serial pads using this part here, but for now only the BL2 log:

Secure key does not exist

EN7523DRAMC V0.5
dram_type = 5, speed = 1866
Final Impdance Cal Result: OCDP:0x17, OCDN:0x1b, ODTP:0x6, ODTN:0x6
DDR1866 PLL setting init
[Dramc] PCDDR3 AC Timing update 
Fire MRW command...
ModeReg.2, value.0x20 done
Fire MRW command...
ModeReg.3, value.0x0 done
Fire MRW command...
ModeReg.1, value.0x6 done
Fire MRW command...
ModeReg.0, value.0x1114 done
Fire MRW command...
ModeReg.1, value.0x86 done
Fire MRW command...
ModeReg.1, value.0x6 done
Calculate size.
DRAM size=512MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build/scripts/tools pull request/issues for build, scripts and tools related changes core packages pull request/issue for core (in-tree) packages kernel pull request/issue with Linux kernel related changes target/airoha pull request/issue for airoha target

Projects

None yet

Development

Successfully merging this pull request may close these issues.