Repository navigation
mediatek: Remove modules.builtin file - #19473
Conversation
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]>
31646e8 to
e53c53b
Compare
|
Is rtl8367s_gsw.ko used in any router, maybe the entire driver needs to be removed? |
|
It is used by these devices: The driver is build into the kernel: |
|
There are currently three drivers for the RTL8367S:
I think it should be reduced. |
|
realtek,rtl8367b and realtek,rtl8365mb does not support (h)sgmii mode. realtek,rtl8367b now only supports configure single extif. But for some devices additional extif is used. For example, TOTOLINK A8000RU have both extif connected to GMAC(0/1), and another rk3399 board I have, extif1 is connected to a SFP port. |
|
HSGMII patch: #19445
|
|
Is rtl8367s_gsw.ko on the way of being removed? Is #19187 possible to be accepted? |
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]>
|
@1715173329 Can realtek,rtl8365mb with patches from PR #19445 be used for TOTOLINK A8000RU? |
I don't have TOTOLINK A8000RU board. Will have a try on TP-Link TL-XDR3230, which uses the same switch chip. |
|
I have collected information about the use of rtl8367s in openwrt:
|
seems fine on my board: |
|
Please attach the new DTS file for this router for analysis. |
|
Your router uses only one cpu_port number 6. The totolink router uses two ports. So it requires a different configuration.
|
|
DSA only supports one CPU port. Old switch driver can use both. |
|
Are you able to compare the performance of both drivers? Also with software and hardware offloading. What prevents you from deviating both HSGMII and RGMII outputs in a dts file? But what about the network then? |
|
Additionally, I ask @981213 and @blogic to look into the possibility of switching to the realtek,rtl8365mb driver for totolink,a8000ru and elecom,wrc-2533gent. I also started discussions on the forum: https://forum.openwrt.org/t/reduce-number-of-drivers-for-rtl8367s/237681 |
|
I think the code with two cpu_ports should look like this: I am able to update the configuration of the totolink-a8000ru, elecom-wrc-2533gent and buffalo-wsr-2533dhp2 routers for the realtek,rtl8365mb driver but I am not able to test them in any way. |
Unfortunately no.
As I said, DSA only supports one CPU port.
And there's no port 7. Port number is starting from 0, not 1. |
|
@1715173329 The manual of the Realtek RTL8367S chip states that it has two interfaces extif1 (port 6, SGMII / HSGMI) and extif2 (port 7, RGMII / MII). It is therefore likely that a different chip from this family is used. I modified your file https://github.com/1715173329/imoutowrt/blob/master-mediatek-rtkdsa/target/linux/mediatek/dts/mt7622-tplink-tl-xdr-common.dtsi and this is how you count ports in it. |
|
RTL8367S has 5+2 ports, I guess the manual counts them from 1. |
|
btw on TP-Link TL-XDR3230, port 0 is not connected |
|
And rtl8365mb driver doesn't support it yet. |
|
https://github.com/openwrt/openwrt/blob/main/target/linux/generic/pending-6.12/711-03-net-dsa-qca8k-add-support-for-port_change_master.patch |
|
It should be: I don't know enough about DSA to suggest a solution, I'm treating switching to DSA as an experiment, I don't even have any router with mt7622 and rtl8367s. However, I suspect that multiple cpu ports as you mentioned are not implemented for rtl8367s yet (in rtl8365mb driver). |
|
Hi all, regarding the To have a feature complete |
|
@AlbrechtL There is a similar driver at https://github.com/luizluca/openwrt/tree/c5v4_dsa but it is also not finished. |
|
@namiltd Thanks for the information! I will try your patch https://github.com/openwrt/openwrt/blob/4a57cffcd39279b9ae021106416f35ffa592a4fd/target/linux/generic/pending-6.12/861-net-dsa-realtek-openwrt.patch. Let's see how it performers. I played a bit with Alvin's code (see, AlbrechtL/rtl8365mb-kernel-hacking@68249f1) but I was not fully working. The main issues was that HW offloading was only working in one data flow direction. It was weird. But I never looked into it because I'm not familiar with the RTL8367 internals and Alvin wrote me that the code is not ready, yet. |
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit e53c53b)
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit f894fa9)
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b7d59d444a7964fbeaa66609f13c1133f9) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit f894fa9)
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit f894fa9)
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 Signed-off-by: Hauke Mehrtens <[email protected]>
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit f894fa9)
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit f894fa9)
This file should be generated automatically at runtime by the kernel build system. Link: openwrt/openwrt#19473 (cherry picked from commit e53c53b) Link: openwrt/openwrt#19839 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit f894fa9) Reference: https://github.com/immortalwrt/immortalwrt (openwrt-24.10, commit f894fa9) Signed-off-by: sKyissKy <[email protected]>
This file should be generated automatically at runtime by the kernel build system.