ipq806x: add support for Linksys EA8500#6
ipq806x: add support for Linksys EA8500#6ianchi wants to merge 37 commits intolede-project:masterfrom
Conversation
|
looks ok, will pull this once we have v4.4 support in the tree |
|
I am a little bit unsure about ath10k stuff (the last + base-files patches)
your changes: ar71xx: 2116 |
|
Hi @plntyk, Regarding the difference in size, I don't know. That is the size of the data as it comes preloaded in art partition from Linksys. The size is confirmed in the first two bytes of the caldata. |
|
Few comments.
|
|
@bendavid I've tried removing the patch but the updated drivers won't work, I'm getting the same old error: In the new drivers, core.c seems similar in this critical part. The problem remains as it continues to check for return code of 'ath10k_core_get_board_id_from_otp(ar)' The option mentioned by @plntyk is also not working, as it gets checked further down the code, and ath10k_core_get_board_id_from_otp still results in an error. The modified patch I added to his PR is somehow working. But something with the new driver has changed, and even though wlan is UP and I can connect, I get random warnings traces to the console from compat-wireless-2016-05-12/net/mac80211/rx.c (which weren't there with the previous drivers): |
|
Hi @blogic , Obviously your 4.4 branch is work in progress, but I wanted to share my results with it. Before trying with your stagging tree, I have also been trying to upgrade to 4.4 myself, and I was having the same problem. Anyway, it compiles ok, but I had the exact same problem. MTD is not recognized that way either. I'm willing to help with this target if I can. Please let me know if you have any hint to try. Thnks |
|
Hi, ok, that is what i found. i hope to have time next week to look into this. i am currently waiting on receiving some test hardware. this is why the pot is pending. thanks for your patience. i think this will take another 2-3 weeks to get resolved. |
|
@ianchi I see the same ath10k stack traces with the new compat-wireless on the C2600, although I don't see any noticable impact on the functionality of the wireless. |
|
Perhaps @nbd168 can help us with this warning from the new version of Compat-wireless. I copy again the log: |
|
(I think you mean QCA9980.) |
|
This happens when the driver reports packets without setting the band properly in the receive status. It might be an upstream bug, or maybe the calibration data is broken. |
|
So, interesting point: The ath10k stack trace goes away after updating kernel from 3.18 to 4.4. (Maybe there has been some implicit/minor incompatibilities introduced between the newer compat-wireless and the older 3.18 kernel). Anyway, looks like the problem will solve itself when the 4.4 update converges regardless. |
|
Ok, no, spoke too soon, the stack trace did eventually appear again also in 4.4. |
|
The QCOM RPM driver was included upstream in v4, but a later commit (regulator: qcom: Rework to single platform device) left the smb208 regulator out. |
|
Indeed, this probably explains my speed test results here |
|
Added commit to fix buttons & wifi led. |
|
@bendavid I haven't tested wifi speed with this new driver. Will do asap. My patch enables again smb208 in the driver, but there are still some problems with pcie in DTS. I've been doing some research but couldn't find the missing mappings. |
|
Ok I was actually referring to the wired network speed. |
4d84e9f to
a9741be
Compare
|
Rebased to current trunk. I've re-tested in EA8500 and is working ok on Kernel 4.4. |
|
ovrall looks good but i see a lot of small problems. i will try to look at this in detail during the coming days. |
|
@ianchi, if I cherry-pick your regulator patch on top of the current master and build with kernel 4.4 for the c2600, then the cpu clock speed is set properly, but I get corruption issues over wired lan, with ssh connections for example being terminated with errors like This doesn't happen without the patch (but then the cpu frequency scaling doesn't work correctly and I think the cpu is stuck at a default low clockspeed). |
| hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr) | ||
|
|
||
| ucidef_add_switch "switch0" \ | ||
| "1:lan" "2:lan" "3:lan" "4:lan" "0t@eth0" "5:wan" "0t@eth0" |
There was a problem hiding this comment.
Does this router really only have one ethernet controller connected to the switch? Otherwise why not use separate ethernet controllers for wan and lan as for ap148 et al?
There was a problem hiding this comment.
no it has two. But I've been unable to make them work.
This is the only way I've got wired eth working.
Any ideas to try?
There was a problem hiding this comment.
Well what happens if you use
ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0" ;;
as above?
|
@bendavid I've been running with the regulator patch for more than a day now, with many SSH sessions and I've never got that error. I've compared with your C2600 dts and we do have some differences, don´t know if they might be causing the trouble (and my problem with eth1 not coming up): In phy0: ethernet-phy@0 I have one different qca,ar8327-initvals: Besides in gmac1: ethernet@37200000 { When I find some time I'll try using your settings. |
|
@blogic please any changes you see are needed, pls just tell me and I'll gladly correct them. |
|
Ok, yes, for the c2600 I just copied the gmac sections verbatim from the ap148 dts. Latest version is here I guess: |
|
@ianchi firmware for C2600 booting correctly. |
|
@heinzek do you have the same problem I had with memory and/or wired ethernet corruption? Should be reproducible just ssh'ing in and running dmesg or logread repeatedly (or anything which produces a non-trivial amount of output on the console) |
|
Yes. Same problem on C2600: On windows putty |
|
Yup, actually one thing I didn't try is whether the same occurs over a wireless connection (could narrow down whether the corruption is occurring in memory or specifically in the wired ethernet connection) |
|
I think we should try to commit this branch so that from there we work on a unified code to fix the pending issues. The bootargs patch still needs a definition, and I believe should be made the same on all three targets using it (that was why I send it as a "general" patch). |
|
i just pushed everything from last week prior to the boot mangle patch. please rebase any pending work on the current state and send a new PR. i will close this one now. thanks for the effort and sorry for taking so long to process it. |
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as lede-project#1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,lede-project#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as lede-project#1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,lede-project#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as #1,lede-project#2 (PHY lede-project#6, lede-project#7). RTL8367R-VB has ports indexed as #0,#1 (PHY lede-project#5,lede-project#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
Tested and working:
for original firmware 1.1.4.168206 an another for 1.1.4.169978, newer US
Firmwares are not supported due to signing)
Pending: