Ethernet #2
Notifications
Due Date
No due date set.
Blocks
#3 WDMA + WED
tplink_xx230v/kernel
Reference: tplink_xx230v/kernel#2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Files
4d76b59039/sdk/en7529/linux-4.4.115/arch/arm/mach-econet/ecnt_frame_engine.c4d76b59039/sdk/en7529/linux-4.4.115/arch/arm/mach-econet/ecnt_xsi.cqdma_dev consume
External comments
XPON - Related but will not be implemention now
4d76b59039/sdk/en7529/linux-4.4.115/arch/arm/mach-econet/ecnt_xpon.c4d76b59039/sdk/en7529/linux-4.4.115/arch/arm/mach-econet/ecnt_pon_phy.cI am getting packet data through to the CPU now. But it is not correctly mapped to the correct interface. I am seeing ARP and stuff.
00:02:48.104438 IP 192.168.1.100 > OpenWrt.lan: ICMP echo request, id 139, seq 5, length 64
00:02:48.104561 IP OpenWrt.lan > 192.168.1.100: ICMP echo reply, id 139, seq 5, length 64
00:02:49.128439 IP 192.168.1.100 > OpenWrt.lan: ICMP echo request, id 139, seq 6, length 64
00:02:49.128562 IP OpenWrt.lan > 192.168.1.100: ICMP echo reply, id 139, seq 6, length 64
00:02:50.152444 IP 192.168.1.100 > OpenWrt.lan: ICMP echo request, id 139, seq 7, length 64
00:02:50.152568 IP OpenWrt.lan > 192.168.1.100: ICMP echo reply, id 139, seq 7, length 64
EN7523 CPU can now RX
You can send me the patcher so I can test it when I receive the xx230v.
Yeah, I will. I'll try to sort out tx now.
Why are the values different?
I fucked up I think.
Lovely, I was getting hangs after 100s of packets. This setting assigns sram over to the fe block. So I guess it get upset because of that.
devmem 0x1fbf9074 that needs to be 3.
Ok, still hangs after a while. Probably has to do with the descriptor allocation/queues.
Ok, 74 -> 0x74 is probably needed.
I'm supposed to receive my router tomorrow, but I don't think they'll deliver it tomorrow.
Ok, much better. Ping seems stable now.
Ok, I'm gonna do some other stuff for the time being. Validate my changes when you get your device.
okay
Ping flood from my computer.
GDMP_DATA_SELto change yep?Yes.
This:
https://econet-linux.pkt.wiki/hardware/EN751221/frame-engine
and the following page 125
https://drive.google.com/file/d/1iZMXhaKoSO1bupRaXUShmNzj9Hj6n9Th/view
describes how things are connected and work.
On the EN7523 it has the WED connected via the GDM3 though and the port indexing has other meanings. But basically there is a PSE with different blocks connected to the PSE ports. And the QDMA is passing packets (descriptors) around.
so it will be something like this
This is the list of ports on the PSE and the component first connected to the port. Other things can be connected after it.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/ethernet/airoha/airoha_eth.h?h=v6.18-rc4#n114
A somewhat interesting gathering of information.
https://github.com/RuijieNetworksCommunity/openwrt-en75xx/blob/en7562-24.10/en7562ct.md