bodhi, Also, welcome to create pull request for my repo to make openwrt support MI424WR revi. I don't have it so I can't add it to support.by 8086k - Debian
bodhi, Hi, now I have made marvell DSA driver work with 88f6560 internal switch. Check the patches in my repo! link Please consider add 88f6560 support in your debian.by 8086k - Debian
bodhi, Do you know what is 'CPU Streaming' in marvell SoCs? Does it mean hardware decoding or something else?by 8086k - Debian
bodhi, It looks like rtl8192ce card is extremely sensitive to the time of PEX initialization. Adding a little delay could change the problem a lot. For example, before I add the delay, AP mode of channel 1 is unable to transfer data at all. After I add the delay, channel 1 is able to transfer data but there's massive packet loss and delay. I found a factor causing rtl8192ce problem.by 8086k - Debian
Hi bodhi It's me again, I find the cause of realtek chip issue now. Can you run DSA driver on 88f6560 internal switch now? I don't have much time to read the driver code, but I have read it briefly. Many functions are similar. Have a look on this project, please.by 8086k - Debian
bkallus, Look at my u-boot repo here. I provided a toolchain from marvell. I found this in actiontech official site. https://github.com/msdos03/avanta-uboot-f660 Whatever, try all the kwboot sources you know, then you are more likely to find a usable one.by 8086k - Debian
bkallus, This U-Boot must be replaced. There is no 'nand' or 'sf' command to access flash memory. It looks like the only way is to use that GPL code. Kwboot is in u-boot-tools package. This is the only working Kwboot for me. Don't use too old linux OS because their u-boot-tools don't include Kwboot.by 8086k - Debian
bkallus, Use kwboot to boot the image from UART. I think Indiana University has removed some commands from u-boot. You may look for others who has an ap135 and ask for a copy of U-Boot(if it supports bootm). This is a better idea. I don't want to port any U-Boot again because it's very hard and need a lot of tests on device directly. I saw someone said U-Boot is in spi flash. So theby 8086k - Debian
bkallus, There is a repo of the GPL code for aruba there https://github.com/shalzz/aruba-ap-310 If it is usable, then cracking uboot will be so easy. Try to compile it and test on your device. The apboot included there is based on uboot for 88f6560, so it's likely to support your device. If it works, we can remove apboot command and add back standard bootm command. Another option is tby 8086k - Debian
bkallus, Look at my repo. It is openwrt snapshot and still updating regularly. In my repo, I fixed mvneta and orion nand driver. Only need a new device tree to add your device support. https://github.com/msdos03/openwrt-avantaby 8086k - Debian
bodhi, My next step is to solve realtek driver issue. The wireless is more important than using dsa switch driver. Fixing that is almost useless. 8086kby 8086k - Debian
bodhi, You don't understand me, please have a look at the attachment. I have fixed the new MVNETA driver of 5.10 kernel(all the issues are fixed, including IRQ and GMII mode), not bringing back the old one, the patch is in the attachment. My MVNETA patch-work is tested good. And I have also tested using my fixed mvneta driver with DSA driver using several different configs, I changedby 8086k - Debian
@bodhi I have done the patch to make mvneta support 88f6560. Your DTS need to be changed to use this patch, so I will post my F660 DTS. Please add my patch to your debian work. I also proved that kernel DSA driver doesn't work with 88f6560 internal switch, so I dumped mvsw61xx from older openwrt and updated some newer features to it according to the commits. The driver and Kconfig/Makefby 8086k - Debian
@bodhi, For your IRQ issue, I have also found two commits causing the problem. commit2 commit1 I think Avanta just like kirkwood, doesn't support per_cpu interrupts. So these two commits causes the problem. I am thinking how to fix it. Maybe revert as well? :) Until now, I think the easiest way is change some of the armada3700 if cases to armada370 which used by 88f6560. armada3700by 8086k - uBoot
@bodhi Yeah! I know how to solve the mvneta issue! In Claudio's patch, there is a hunk adding device tree gmii phy_mode detect for mvneta. --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -2760,7 +2760,10 @@ static void mvneta_port_power_up(struct if (phy_mode == PHY_INTERFACE_MODE_SGMII) mvneta_port_sgmii_config(pp); - mvneta_gby 8086k - uBoot
bodhi, There is some commits I have found may related to the issue, please try reverting them when you have time :) commit2 commit1by 8086k - uBoot
bodhi, I have improved my C language ability recently. Since I ported new U-Boot for F660 which fixes PCI-E, I have been busy fixing realtek linux driver because RTL8192CE's AP mode seemed to be broken in openwrt compat-wireless. I have also read some mvneta.c commit logs. But have no more spare time to try anything. It's pretty helpful to have newer kernel with ethernet working.by 8086k - uBoot
@bodhi, Any plan on fixing mvneta driver on newer kernel for 88f6560?by 8086k - uBoot
Maybe there are some people owning this modem want to hack it, I have ported U-Boot 2009.08 from SG200 opensource code to these two modems. *Download here* For ZTE F460/F660 v3(they're compatible): Github releases For HGG420N: Github releases To flash it to your modem, you need: Download 'u-boot-xxxx_533_128m_ddr3_nand.bin' and put it to the root directory of an tftby 8086k - uBoot
Good news: I have ported sg200's uboot to F660 and HGG420N. Now everything works fine. Everyone can compile it. NOTE: You must use 32bit linux to compile it Github repo: https://github.com/msdos03/avanta-uboot-f660 https://github.com/msdos03/avanta-uboot-hgg420n 8086kby 8086k - Debian
bodhi, OH, now the driver is naughty. I updated compat-wireless package and there is an oops message which I can't remove. [ 18.923140] mvneta f1074000.ethernet eth1: link up [ 18.939346] Unable to handle kernel NULL pointer dereference at virtual address 00000006 [ 18.947478] pgd = c59c0000 [ 18.950198] [00000006] *pgd=05c7d831, *pte=00000000, *ppte=00000000 [ 18.956526by 8086k - Debian
bodhi, There is a strange problem again. When I try to enable WIFI in openwrt, the whole system halted. No more thing is printed through the serial console. Sometimes the serial console will print something, but just few lines. The driver found the chip and loaded successfully, I can see the device through lspci too. But I can't enable it. What a strange thing. 8086kby 8086k - Debian
bodhi, DTS isn't wrong. But in 3.14 kernel, some configs are not in DTS. I modified KIRKWOOD_PCIE1_IO_PHYS_BASE in kirkwood.h and it works. MI424WR-REVI uses PCIE0 and KIRKWOOD_PCIE_IO_PHYS_BASE is correct. This is why when a box uses PCIE1, the device won't work. 8086kby 8086k - Debian
bodhi, root@OpenWrt:/# lspci 00:01.0 PCI bridge: Marvell Technology Group Ltd. Device 6560 (rev 02) 00:02.0 PCI bridge: Marvell Technology Group Ltd. Device 6500 (rev 02) 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8192CE PCIe Wirel ess Network Adapter (rev 01) root@OpenWrt:/# lspciby 8086k - Debian
bodhi, Yeah, I think I solved the serial interrupt problem. If you want to avoid this problem when booting from uboot console, use go command instead of bootm command. I'm not sure whether it will work on actiontech devices yet. 8086kby 8086k - Debian
bodhi, What problem do you think is in mvneta driver? Mvneta in kernel 5.4 is very different from kernel 3.14, porting it is very hard. I have tested with 3.18 kernel, mvneta doesn't work too. I'm not sure which is the cause to the problem. 3.18 is more similar to 3.14 but there are still some differences. 8086kby 8086k - Debian
bodhi, I modified the pinctrl driver of armada370. Now all the leds can work. How I can control them through terminal commands? 8086kby 8086k - Debian
bodhi, The pinctrl driver in linux is another problem. Kirkwood's driver can only control one and a half bank of GPIOs. I found that armada370's pinctrl driver is more suitable for avanta and it can control two and a half banks of GPIOs. But avanta has three groups of GPIOs. Still several GPIOs can't be controlled. 8086kby 8086k - Debian
bodhi, I found that 88f6560 have 3 groups of GPIO. The first two have 32 GPIOs the last one have 24 GPIOs. This means I must change the DTS. But the successive interrupts which are used in the original DTS is not enough. Can I use other free interrupts? 8086kby 8086k - Debian
bodhi, Thank you for your help! Now I can control the LEDs in U-Boot. But how can I read the state of buttons? The gpio memory values doesn't react that event. 8086kby 8086k - Debian