Neither USB2 or USB3 works right now (eth logs are unrelated)
[ 4453.309800] usb 1-1: USB disconnect, device number 2
[ 4453.756955] usb 1-1: new high-speed USB device number 3 using xhci-mtk
[ 4465.537079] mt7530-mmio 1fb58000.switch lan3: Link is Down
[ 4465.542670] br-lan: port 3(lan3) entered disabled state
[ 4467.076976] usb usb1-port1: attempt power cycle
[ 4475.416848] usb usb1-port1: unable to enumerate USB device
[ 4475.546696] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 4495.697690] mt7530-mmio 1fb58000.switch lan3: Link is Up - 100Mbps/Full - flow control rx/tx
[ 4495.706194] br-lan: port 3(lan3) entered blocking state
[ 4495.711462] br-lan: port 3(lan3) entered forwarding state
Neither USB2 or USB3 works right now (eth logs are unrelated)
```
[ 4453.309800] usb 1-1: USB disconnect, device number 2
[ 4453.756955] usb 1-1: new high-speed USB device number 3 using xhci-mtk
[ 4465.537079] mt7530-mmio 1fb58000.switch lan3: Link is Down
[ 4465.542670] br-lan: port 3(lan3) entered disabled state
[ 4467.076976] usb usb1-port1: attempt power cycle
[ 4475.416848] usb usb1-port1: unable to enumerate USB device
[ 4475.546696] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 4495.697690] mt7530-mmio 1fb58000.switch lan3: Link is Up - 100Mbps/Full - flow control rx/tx
[ 4495.706194] br-lan: port 3(lan3) entered blocking state
[ 4495.711462] br-lan: port 3(lan3) entered forwarding state
[ 2.693270] xhci-mtk 1fad0000.usb: clocks are not stable (0x0)
[ 2.699140] xhci-mtk 1fad0000.usb: can't setup: -110
That was new. It looks like the mux should be properly set for usb mode. Can you run:
devmem 0x1FB00094
bit 29 is the usb3 mux. It needs to be set for usb3 mode.
[ 2.693270] xhci-mtk 1fad0000.usb: clocks are not stable (0x0)
[ 2.699140] xhci-mtk 1fad0000.usb: can't setup: -110
That was new. It looks like the mux should be properly set for usb mode. Can you run:
devmem 0x1FB00094
bit 29 is the usb3 mux. It needs to be set for usb3 mode.
There is only one USB port (`usb0`), we don't have a `usb1` port
https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/777a90a2cdc72b0da0f7bc44ff2d5b408c7157df/target/linux/airoha/dts/en7523.dtsi#L528-L538
[ 2.693270] xhci-mtk 1fad0000.usb: clocks are not stable (0x0)
[ 2.699140] xhci-mtk 1fad0000.usb: can't setup: -110
That was new. It looks like the mux should be properly set for usb mode. Can you run:
devmem 0x1FB00094
bit 29 is the usb3 mux. It needs to be set for usb3 mode.
root@OpenWrt:~# devmem 0x1FB00094
0xE0002820
> [ 2.693270] xhci-mtk 1fad0000.usb: clocks are not stable (0x0)
> [ 2.699140] xhci-mtk 1fad0000.usb: can't setup: -110
>
> That was new. It looks like the mux should be properly set for usb mode. Can you run:
>
> devmem 0x1FB00094
>
> bit 29 is the usb3 mux. It needs to be set for usb3 mode.
root@OpenWrt:~# devmem 0x1FB00094
0xE0002820
It wouldn't just be usb0, without usb1?
https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/777a90a2cdc72b0da0f7bc44ff2d5b408c7157df/target/linux/airoha/dts/en7523.dtsi#L494-L539
@merbanan so it wouldn't just be usb0, without usb1, that's my question
USB0
[ 2.574234] xhci-mtk 1fab0000.usb: xHCI Host Controller
[ 2.579551] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 1
[ 2.590962] xhci-mtk 1fab0000.usb: hcc params 0x01400f98 hci version 0x110 quirks 0x0000000000200010
[ 2.600183] xhci-mtk 1fab0000.usb: irq 46, io mem 0x1fab0000
[ 2.606016] xhci-mtk 1fab0000.usb: xHCI Host Controller
[ 2.611279] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 2
[ 2.618732] xhci-mtk 1fab0000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[ 2.626569] hub 1-0:1.0: USB hub found
[ 2.630516] hub 1-0:1.0: 2 ports detected
[ 2.635341] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.644167] hub 2-0:1.0: USB hub found
[ 2.648063] hub 2-0:1.0: 1 port detected
[ 2.660457] xhci-mtk 1fad0000.usb: xHCI Host Controller
[ 2.665726] xhci-mtk 1fad0000.usb: new USB bus registered, assigned bus number 3
[ 2.693270] xhci-mtk 1fad0000.usb: clocks are not stable (0x0)
[ 2.699140] xhci-mtk 1fad0000.usb: can't setup: -110
[ 2.704117] xhci-mtk 1fad0000.usb: USB bus 3 deregistered
[ 2.712580] xhci-mtk 1fad0000.usb: probe with driver xhci-mtk failed with error -110
@merbanan so it wouldn't just be `usb0`, without `usb1`, that's my question
## USB0
```
[ 2.574234] xhci-mtk 1fab0000.usb: xHCI Host Controller
[ 2.579551] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 1
[ 2.590962] xhci-mtk 1fab0000.usb: hcc params 0x01400f98 hci version 0x110 quirks 0x0000000000200010
[ 2.600183] xhci-mtk 1fab0000.usb: irq 46, io mem 0x1fab0000
[ 2.606016] xhci-mtk 1fab0000.usb: xHCI Host Controller
[ 2.611279] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 2
[ 2.618732] xhci-mtk 1fab0000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[ 2.626569] hub 1-0:1.0: USB hub found
[ 2.630516] hub 1-0:1.0: 2 ports detected
[ 2.635341] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.644167] hub 2-0:1.0: USB hub found
[ 2.648063] hub 2-0:1.0: 1 port detected
```
https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/777a90a2cdc72b0da0f7bc44ff2d5b408c7157df/target/linux/airoha/dts/en7523.dtsi#L494-L503
https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/777a90a2cdc72b0da0f7bc44ff2d5b408c7157df/target/linux/airoha/dts/en7523.dtsi#L516-L526
----
## USB1
```
[ 2.660457] xhci-mtk 1fad0000.usb: xHCI Host Controller
[ 2.665726] xhci-mtk 1fad0000.usb: new USB bus registered, assigned bus number 3
[ 2.693270] xhci-mtk 1fad0000.usb: clocks are not stable (0x0)
[ 2.699140] xhci-mtk 1fad0000.usb: can't setup: -110
[ 2.704117] xhci-mtk 1fad0000.usb: USB bus 3 deregistered
[ 2.712580] xhci-mtk 1fad0000.usb: probe with driver xhci-mtk failed with error -110
```
https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/777a90a2cdc72b0da0f7bc44ff2d5b408c7157df/target/linux/airoha/dts/en7523.dtsi#L505-L514
https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/777a90a2cdc72b0da0f7bc44ff2d5b408c7157df/target/linux/airoha/dts/en7523.dtsi#L528-L538
usb 1-1: new high-speed USB device number 2 using xhci-hcd
usb 1-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
add_ep parameters: rh_port_num 2, dev_speed 3, is_in 1, isTT 0, ep_type 2, maxp 512, interval 128, burst 0, mult 0, ep 0xd3330c00, ep_ctx 0xe7cfe080
[DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[DBG] BOFFSET: 0, BREPEAT: 0
usb 1-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
add_ep parameters: rh_port_num 2, dev_speed 3, is_in 0, isTT 0, ep_type 2, maxp 512, interval 128, burst 0, mult 0, ep 0xd3330c30, ep_ctx 0xe7cfe0a0
[DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[DBG] BOFFSET: 0, BREPEAT: 0
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi host0: usb-storage 1-1:1.0
[214.166][cmgr] 779 - WARN: container not running, skip query data
[214.167][cos] 1386 - ERROR: Can not find ee whoes name is EE_wifispot
scsi 0:0:0:0: Direct-Access TOSHIBA TransMemory 1.00 PQ: 0 ANSI: 4
sd 0:0:0:0: [sda] 15155200 512-byte logical blocks: (7.76 GB/7.23 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 45 00 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2
hotplug_storage.c#hotplusd 0:0:0:0: [sda] Attached SCSI removable disk
USB3:
/var # usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
add_ep parameters: rh_port_num 1, dev_speed 5, is_in 1, isTT 0, ep_type 2, maxp 1024, interval 1, burst 15, mult 0, ep 0xd3570880, ep_ctx 0xe7cfc080
[DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[DBG] BOFFSET: 0, BREPEAT: 0
add_ep parameters: rh_port_num 1, dev_speed 5, is_in 0, isTT 0, ep_type 2, maxp 1024, interval 1, burst 15, mult 0, ep 0xd35708b0, ep_ctx 0xe7cfc0a0
[DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[DBG] BOFFSET: 0, BREPEAT: 0
usb-storage 2-1:1.0: USB Mass Storage device detected
scsi host1: usb-storage 2-1:1.0
scsi 1:0:0:0: Direct-Access TO Exter nal USB 3.0 0204 PQ: 0 ANSI: 6
sd 1:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 47 00 00 08
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1
sd 1:0:0:0: [sda] Attached SCSI disk
/var # ./busybox-armv7l lsusb
Bus 002 Device 002: ID 0080:a001
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
/var # ./busybox-armv7l lspci
00:00.0 Class 0604: 14c3:0810
00:01.0 Class 0604: 14c3:0811
01:00.0 Class 0280: 14c3:790a
02:00.0 Class 0280: 14c3:7906
Stock FW USB2:
```
usb 1-1: new high-speed USB device number 2 using xhci-hcd
usb 1-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
add_ep parameters: rh_port_num 2, dev_speed 3, is_in 1, isTT 0, ep_type 2, maxp 512, interval 128, burst 0, mult 0, ep 0xd3330c00, ep_ctx 0xe7cfe080
[DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[DBG] BOFFSET: 0, BREPEAT: 0
usb 1-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
add_ep parameters: rh_port_num 2, dev_speed 3, is_in 0, isTT 0, ep_type 2, maxp 512, interval 128, burst 0, mult 0, ep 0xd3330c30, ep_ctx 0xe7cfe0a0
[DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[DBG] BOFFSET: 0, BREPEAT: 0
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi host0: usb-storage 1-1:1.0
[214.166][cmgr] 779 - WARN: container not running, skip query data
[214.167][cos] 1386 - ERROR: Can not find ee whoes name is EE_wifispot
scsi 0:0:0:0: Direct-Access TOSHIBA TransMemory 1.00 PQ: 0 ANSI: 4
sd 0:0:0:0: [sda] 15155200 512-byte logical blocks: (7.76 GB/7.23 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 45 00 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2
hotplug_storage.c#hotplusd 0:0:0:0: [sda] Attached SCSI removable disk
```
USB3:
```
/var # usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
add_ep parameters: rh_port_num 1, dev_speed 5, is_in 1, isTT 0, ep_type 2, maxp 1024, interval 1, burst 15, mult 0, ep 0xd3570880, ep_ctx 0xe7cfc080
[DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[DBG] BOFFSET: 0, BREPEAT: 0
add_ep parameters: rh_port_num 1, dev_speed 5, is_in 0, isTT 0, ep_type 2, maxp 1024, interval 1, burst 15, mult 0, ep 0xd35708b0, ep_ctx 0xe7cfc0a0
[DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[DBG] BOFFSET: 0, BREPEAT: 0
usb-storage 2-1:1.0: USB Mass Storage device detected
scsi host1: usb-storage 2-1:1.0
scsi 1:0:0:0: Direct-Access TO Exter nal USB 3.0 0204 PQ: 0 ANSI: 6
sd 1:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 47 00 00 08
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1
sd 1:0:0:0: [sda] Attached SCSI disk
```
```
/var # ./busybox-armv7l lsusb
Bus 002 Device 002: ID 0080:a001
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
/var # ./busybox-armv7l lspci
00:00.0 Class 0604: 14c3:0810
00:01.0 Class 0604: 14c3:0811
01:00.0 Class 0280: 14c3:790a
02:00.0 Class 0280: 14c3:7906
```
I think we have a hub with 2 ports and one port is usb3 capable. I can only find one mac. This could be the same setup as the EN751221. The AN7581 has 2 USB3 capable ports and for that you need 2 XHCI MACs.
That is how my version of the usb support for the EN751221 looks like. Pretty sure the EN7523 should be similar but with some AN7581 logic sprinkled in it.
@Sirherobrine23 On the EN7523 there is only one AIROHA_SCU_SERDES_USB. I'm not sure we have working SCU muxing driver yet.
This is the only available usb3 phy:
usb_phy@1fad0000 {
compatible = "econet,ecnt-usb_phy";
reg = <0x1fad0000 0x1fff>;
};
I think the an7581 driver should work for it.
Here should the usb3 mac be:
xhci_hcd: xhci@1fab0000 {
compatible = "econet,ecnt-xhci";
reg = <0x1fab0000 0x3e00>, //MAC base address
<0x1fab3e00 0x100>; //IPPC base address
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
};
The mtk driver should be working.
I think we have a hub with 2 ports and one port is usb3 capable. I can only find one mac. This could be the same setup as the EN751221. The AN7581 has 2 USB3 capable ports and for that you need 2 XHCI MACs.
https://github.com/merbanan/openwrt/blob/457075f8435d67b175c9bf92f05b1d1bcf67fd1b/target/linux/econet/dts/en751221.dtsi#L161
That is how my version of the usb support for the EN751221 looks like. Pretty sure the EN7523 should be similar but with some AN7581 logic sprinkled in it.
root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.12.68 xhci-hcd xHCI Host Controller
Bus 002 Device 001: ID 1d6b:0003 Linux 6.12.68 xhci-hcd xHCI Host Controller
xx230v
```
root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.12.68 xhci-hcd xHCI Host Controller
Bus 002 Device 001: ID 1d6b:0003 Linux 6.12.68 xhci-hcd xHCI Host Controller
```
[ 156.195311] usb 1-1: new high-speed USB device number 2 using xhci-mtk
root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.12.68 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 346d:5678 USB Disk 20
Bus 002 Device 001: ID 1d6b:0003 Linux 6.12.68 xhci-hcd xHCI Host Controller
```
[ 156.195311] usb 1-1: new high-speed USB device number 2 using xhci-mtk
root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.12.68 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 346d:5678 USB Disk 20
Bus 002 Device 001: ID 1d6b:0003 Linux 6.12.68 xhci-hcd xHCI Host Controller
```
Yeah, usb storage seems to work this time. I can't test my USB 3.0 device though as the drive is formatted to NTFS
I also no longer get the weird errors in dmesg
(no idea why NPU failed to get version)
[ 1.664648] spi-nand spi0.0: Micron SPI NAND was found.
[ 1.669943] spi-nand spi0.0: 512 MiB, block size: 256 KiB, page size: 4096, OOB size: 256
[ 1.691089] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.697536] Creating 4 MTD partitions on "spi0.0":
[ 1.702344] 0x000000000000-0x000000080000 : "boot"
[ 1.708768] 0x000000080000-0x0000000c0000 : "romfile"
[ 1.715230] 0x0000000c0000-0x0000004c0000 : "misc"
[ 1.728586] 0x0000004c0000-0x0000054c0000 : "firmware"
[ 2.035703] no rootfs found after FIT image in "firmware"
[ 2.118165] airoha-npu 1e900000.npu: L2C sram size: 0x00
[ 2.123498] airoha-npu 1e900000.npu: FPGA Stage: 1
[ 2.638720] airoha-npu 1e900000.npu: Cannot get NPU Version
[C1][C2]core freq at 333000000 Hz
[C2]timer_init: Timer clk[is run ing at 125 Mhz
[ 2]core2_mai
2.658193] airoha-usb-phy 1fad0000.phy: Frequency not detected, using default SR calibration.
[C2]timer_isr Store Value 1e903000, val[ 2.675082] xhci-mtk 1fab0000.usb: xHCI Host Controller
[ 2.680380] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 1
[ 2.691757] xhci-mtk 1fab0000.usb: hcc params 0x01400f98 hci version 0x110 quirks 0x0000000000200010
[ 2.700981] xhci-mtk 1fab0000.usb: irq 47, io mem 0x1fab0000
[ 2.706820] xhci-mtk 1fab0000.usb: xHCI Host Controller
[ 2.712067] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 2
[ 2.719517] xhci-mtk 1fab0000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[ 2.727297] hub 1-0:1.0: USB hub found
[ 2.731207] hub 1-0:1.0: 2 ports detected
[ 2.735941] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.744708] hub 2-0:1.0: USB hub found
[ 2.748593] hub 2-0:1.0: 1 port detected
[ 2.753287] i2c-mt7621 1fbf8000.i2c0: clock 100 kHz
[ 2.771559] en7523-audio 1fbe2200.audio-controller: mtk_afe_combine_sub_dai(), num of dai 2
[ 2.780400] debugfs: Directory '1fbe2200.audio-controller' with parent 'en7523-i2s' already present!
[ 2.790463] NET: Registered PF_INET6 protocol family
[ 2.796808] Segment Routing with IPv6
[ 2.800518] In-situ OAM (IOAM) with IPv6
[ 2.804511] NET: Registered PF_PACKET protocol family
[ 2.809827] 8021q: 802.1Q VLAN Support v1.8
[ 2.814125] Registering SWP/SWPB emulation handler
[ 2.906154] mt7530-mmio 1fb58000.switch: configuring for fixed/internal link mode
[ 2.913767] mt7530-mmio 1fb58000.switch lan1 (uninitialized): PHY [mt7530-0:09] driver [Airoha EN7523 PHY] (irq=POLL)
[ 2.925262] mt7530-mmio 1fb58000.switch lan2 (uninitialized): PHY [mt7530-0:0a] driver [Airoha EN7523 PHY] (irq=POLL)
[ 2.936789] mt7530-mmio 1fb58000.switch lan3 (uninitialized): PHY [mt7530-0:0b] driver [Airoha EN7523 PHY] (irq=POLL)
[ 2.948249] mt7530-mmio 1fb58000.switch wan (uninitialized): PHY [mt7530-0:0c] driver [Airoha EN7523 PHY] (irq=POLL)
[ 2.959665] airoha_eth 1fb50000.ethernet eth0: entered promiscuous mode
...
...
[ 86.015735] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[ 86.367820] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 86.375604] scsi host0: usb-storage 1-1:1.0
[ 87.490339] scsi 0:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[ 87.500498] sd 0:0:0:0: [sda] 3891200 512-byte logical blocks: (1.99 GB/1.86 GiB)
[ 87.508286] sd 0:0:0:0: [sda] Write Protect is off
[ 87.513307] sd 0:0:0:0: [sda] No Caching mode page found
[ 87.518705] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 88.294422] sda: sda1
[ 88.297128] sd 0:0:0:0: [sda] Attached SCSI removable disk
...
...
[ 130.566539] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 130.588489] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 130.595533] scsi host0: usb-storage 2-1:1.0
[ 131.750695] scsi 0:0:0:0: Direct-Access TO Exter nal USB 3.0 0204 PQ: 0 ANSI: 6
[ 131.782873] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 131.790803] sd 0:0:0:0: [sda] Write Protect is off
[ 131.796006] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 131.857546] sda: sda1
[ 131.860197] sd 0:0:0:0: [sda] Attached SCSI disk
Yeah, usb storage seems to work this time. I can't test my USB 3.0 device though as the drive is formatted to NTFS
I also no longer get the weird errors in dmesg
(no idea why NPU failed to get version)
```
[ 1.664648] spi-nand spi0.0: Micron SPI NAND was found.
[ 1.669943] spi-nand spi0.0: 512 MiB, block size: 256 KiB, page size: 4096, OOB size: 256
[ 1.691089] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.697536] Creating 4 MTD partitions on "spi0.0":
[ 1.702344] 0x000000000000-0x000000080000 : "boot"
[ 1.708768] 0x000000080000-0x0000000c0000 : "romfile"
[ 1.715230] 0x0000000c0000-0x0000004c0000 : "misc"
[ 1.728586] 0x0000004c0000-0x0000054c0000 : "firmware"
[ 2.035703] no rootfs found after FIT image in "firmware"
[ 2.118165] airoha-npu 1e900000.npu: L2C sram size: 0x00
[ 2.123498] airoha-npu 1e900000.npu: FPGA Stage: 1
[ 2.638720] airoha-npu 1e900000.npu: Cannot get NPU Version
[C1][C2]core freq at 333000000 Hz
[C2]timer_init: Timer clk[is run ing at 125 Mhz
[ 2]core2_mai
2.658193] airoha-usb-phy 1fad0000.phy: Frequency not detected, using default SR calibration.
[C2]timer_isr Store Value 1e903000, val[ 2.675082] xhci-mtk 1fab0000.usb: xHCI Host Controller
[ 2.680380] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 1
[ 2.691757] xhci-mtk 1fab0000.usb: hcc params 0x01400f98 hci version 0x110 quirks 0x0000000000200010
[ 2.700981] xhci-mtk 1fab0000.usb: irq 47, io mem 0x1fab0000
[ 2.706820] xhci-mtk 1fab0000.usb: xHCI Host Controller
[ 2.712067] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 2
[ 2.719517] xhci-mtk 1fab0000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[ 2.727297] hub 1-0:1.0: USB hub found
[ 2.731207] hub 1-0:1.0: 2 ports detected
[ 2.735941] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.744708] hub 2-0:1.0: USB hub found
[ 2.748593] hub 2-0:1.0: 1 port detected
[ 2.753287] i2c-mt7621 1fbf8000.i2c0: clock 100 kHz
[ 2.771559] en7523-audio 1fbe2200.audio-controller: mtk_afe_combine_sub_dai(), num of dai 2
[ 2.780400] debugfs: Directory '1fbe2200.audio-controller' with parent 'en7523-i2s' already present!
[ 2.790463] NET: Registered PF_INET6 protocol family
[ 2.796808] Segment Routing with IPv6
[ 2.800518] In-situ OAM (IOAM) with IPv6
[ 2.804511] NET: Registered PF_PACKET protocol family
[ 2.809827] 8021q: 802.1Q VLAN Support v1.8
[ 2.814125] Registering SWP/SWPB emulation handler
[ 2.906154] mt7530-mmio 1fb58000.switch: configuring for fixed/internal link mode
[ 2.913767] mt7530-mmio 1fb58000.switch lan1 (uninitialized): PHY [mt7530-0:09] driver [Airoha EN7523 PHY] (irq=POLL)
[ 2.925262] mt7530-mmio 1fb58000.switch lan2 (uninitialized): PHY [mt7530-0:0a] driver [Airoha EN7523 PHY] (irq=POLL)
[ 2.936789] mt7530-mmio 1fb58000.switch lan3 (uninitialized): PHY [mt7530-0:0b] driver [Airoha EN7523 PHY] (irq=POLL)
[ 2.948249] mt7530-mmio 1fb58000.switch wan (uninitialized): PHY [mt7530-0:0c] driver [Airoha EN7523 PHY] (irq=POLL)
[ 2.959665] airoha_eth 1fb50000.ethernet eth0: entered promiscuous mode
...
...
[ 86.015735] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[ 86.367820] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 86.375604] scsi host0: usb-storage 1-1:1.0
[ 87.490339] scsi 0:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[ 87.500498] sd 0:0:0:0: [sda] 3891200 512-byte logical blocks: (1.99 GB/1.86 GiB)
[ 87.508286] sd 0:0:0:0: [sda] Write Protect is off
[ 87.513307] sd 0:0:0:0: [sda] No Caching mode page found
[ 87.518705] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 88.294422] sda: sda1
[ 88.297128] sd 0:0:0:0: [sda] Attached SCSI removable disk
...
...
[ 130.566539] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 130.588489] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 130.595533] scsi host0: usb-storage 2-1:1.0
[ 131.750695] scsi 0:0:0:0: Direct-Access TO Exter nal USB 3.0 0204 PQ: 0 ANSI: 6
[ 131.782873] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 131.790803] sd 0:0:0:0: [sda] Write Protect is off
[ 131.796006] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 131.857546] sda: sda1
[ 131.860197] sd 0:0:0:0: [sda] Attached SCSI disk
```
Not relevant here, but I noticed that the max speed for wifi 5ghz seems to cap at 1200mbps with the openwrt fw, however I can get 2400mbps with the stock fw
Not relevant here, but I noticed that the max speed for wifi 5ghz seems to cap at 1200mbps with the openwrt fw, however I can get 2400mbps with the stock fw
Not relevant here, but I noticed that the max speed for wifi 5ghz seems to cap at 1200mbps with the openwrt fw, however I can get 2400mbps with the stock fw
we haven't yet activated the NPU for the mt7915/mt7916, so we don't have wireless acceleration
> okay, need add ntfs support
try new build
> Not relevant here, but I noticed that the max speed for wifi 5ghz seems to cap at 1200mbps with the openwrt fw, however I can get 2400mbps with the stock fw
we haven't yet activated the `NPU` for the mt7915/mt7916, so we don't have wireless acceleration
root@OpenWrt:~/a# lsusb -t
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/2p, 480M
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/1p, 20000M/x2
|__ Port 001: Dev 004, If 0, Class=[unknown], Driver=usb-storage, 5000M/x2
root@OpenWrt:~/a# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 298.1G 0 disk
└─sda1 8:1 0 298.1G 0 part /root/a
mtdblock0 31:0 0 512K 1 disk
mtdblock1 31:1 0 256K 1 disk
mtdblock2 31:2 0 4M 1 disk
mtdblock3 31:3 0 80M 0 disk
Seems to work fine.
```
root@OpenWrt:~/a# lsusb -t
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/2p, 480M
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/1p, 20000M/x2
|__ Port 001: Dev 004, If 0, Class=[unknown], Driver=usb-storage, 5000M/x2
root@OpenWrt:~/a# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 298.1G 0 disk
└─sda1 8:1 0 298.1G 0 part /root/a
mtdblock0 31:0 0 512K 1 disk
mtdblock1 31:1 0 256K 1 disk
mtdblock2 31:2 0 4M 1 disk
mtdblock3 31:3 0 80M 0 disk
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
@lilmayofuksu could you test the USB 3.0 so I know if it's working before marking it as completed on ToDo?
Neither USB2 or USB3 works right now (eth logs are unrelated)
Perhaps related?
[ 2.693270] xhci-mtk 1fad0000.usb: clocks are not stable (0x0)
[ 2.699140] xhci-mtk 1fad0000.usb: can't setup: -110
That was new. It looks like the mux should be properly set for usb mode. Can you run:
devmem 0x1FB00094
bit 29 is the usb3 mux. It needs to be set for usb3 mode.
There is only one USB port (
usb0), we don't have ausb1port777a90a2cd/target/linux/airoha/dts/en7523.dtsi (L528-L538)https://sirherobrine23.com.br/airoha_en7523/docs/src/branch/main/en7523/en7529ct_datasheet.md#:~:text=One%20USB3.0%20interface%20and%20one%20USB%202.0%20interface
Yes, there are 2 usb2 interfaces with one that can be muxed into a usb3 interface.
root@OpenWrt:~# devmem 0x1FB00094
0xE0002820
It wouldn't just be usb0, without usb1?
777a90a2cd/target/linux/airoha/dts/en7523.dtsi (L494-L539)With a usb2 device, this is the only kernel log
[ 7040.535589] usb 1-1: new high-speed USB device number 7 using xhci-mtk
@merbanan so it wouldn't just be
usb0, withoutusb1, that's my questionUSB0
777a90a2cd/target/linux/airoha/dts/en7523.dtsi (L494-L503)777a90a2cd/target/linux/airoha/dts/en7523.dtsi (L516-L526)USB1
777a90a2cd/target/linux/airoha/dts/en7523.dtsi (L505-L514)777a90a2cd/target/linux/airoha/dts/en7523.dtsi (L528-L538)Stock FW USB2:
USB3:
only
usb0@Sirherobrine23 On the EN7523 there is only one AIROHA_SCU_SERDES_USB. I'm not sure we have working SCU muxing driver yet.
This is the only available usb3 phy:
I think the an7581 driver should work for it.
Here should the usb3 mac be:
The mtk driver should be working.
I think we have a hub with 2 ports and one port is usb3 capable. I can only find one mac. This could be the same setup as the EN751221. The AN7581 has 2 USB3 capable ports and for that you need 2 XHCI MACs.
https://github.com/merbanan/openwrt/blob/457075f8435d67b175c9bf92f05b1d1bcf67fd1b/target/linux/econet/dts/en751221.dtsi#L161
That is how my version of the usb support for the EN751221 looks like. Pretty sure the EN7523 should be similar but with some AN7581 logic sprinkled in it.
xx230v
@lilmayofuksu you have usb 3.0 device?
Yes, see: ("SuperSpeed")
I just enabled the modules to mount USB storage, in addition to enabling exFAT and FAT
@lilmayofuksu try new build
Yeah, usb storage seems to work this time. I can't test my USB 3.0 device though as the drive is formatted to NTFS
I also no longer get the weird errors in dmesg
(no idea why NPU failed to get version)
okay, need add ntfs support
Not relevant here, but I noticed that the max speed for wifi 5ghz seems to cap at 1200mbps with the openwrt fw, however I can get 2400mbps with the stock fw
Throughput or link rate ?
try new build
we haven't yet activated the
NPUfor the mt7915/mt7916, so we don't have wireless accelerationLink rate
I have the same problem with my laptop.
Seems to work fine.
If you only get 1134mbit I think only one antenna is in use for some reason.