Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipq806x: enable Linksys EA8500 eth1 interface #3185

Closed
wants to merge 1 commit into from

Conversation

CHKDSK88
Copy link
Contributor

@CHKDSK88 CHKDSK88 commented Jul 8, 2020

At this moment Linksys EA8500 uses only eth0.

This patch change switch registers, which allow to use eth1 as lan
and eth0 as wan. The method work with similar Linksys EA7500V1
and it work with EA8500.

Suggested-by: Sungbo Eo mans0n@gorani.run
Tested-by: Brian Onn brian.a.onn@gmail.com
Signed-off-by: Pawel Dembicki paweldembicki@gmail.com

@adschm adschm added RFT pull request ready for testing target/ipq806x pull request/issue for ipq806x target labels Jul 8, 2020
@adschm
Copy link
Member

adschm commented Jul 8, 2020

I'd remove all the references to the RFT from the commit and only keep them in the PR title/comment/message.

Despite that: Enable->enable and simmilar->similar

@ianchi
Copy link
Contributor

ianchi commented Jul 8, 2020

Hi @CHKDSK88, this would be great news, since this is a pending issue from when I first ported this board, 4 years ago.
It's been a long time and I don't remember exactly, but at the time I have fondled with most registers with no luck ( lede-project/source#134 , lede-project/source#6 & some others). I vaguely recall that the default values for that register where the same as the one used by the stock Linksys firmware, but I'm not really sure.

Right now I don't have the dev environment to compile and test it, but I will give it a try at the first opportunity.
I would really like to see this fixed.

@brianonn
Copy link

brianonn commented Jul 9, 2020

This patch works on my EA8500

[ Wed Jul 08 19:00:35 ]
[ ~/src/openwrt ]
[530] $ git log --oneline -n1 
8530cb4bfc (HEAD -> linksys_ea8500_eth1_fix, origin/linksys_ea8500_eth1_fix) [RFT] ipq806x: Enable Linksys EA8500 eth1 interface

[ Wed Jul 08 19:00:40 ]
[ ~/src/openwrt ]
[531] $ ./scripts/getver.sh 
r13744-8530cb4bfc

[ Wed Jul 08 19:01:02 ]
[ ~/src/openwrt ]
[532] $ cd bin/targets/ipq806x/generic

[ Wed Jul 08 19:01:15 ]
[ ~/src/openwrt/bin/targets/ipq806x/generic ]
[533] $ ls -l *.bin
-rw-r--r-- 1 brian brian 7471104 Jul  8 18:46 openwrt-ipq806x-generic-linksys_ea8500-squashfs-factory.bin
-rw-r--r-- 1 brian brian 6124294 Jul  8 18:46 openwrt-ipq806x-generic-linksys_ea8500-squashfs-sysupgrade.bin

after sysupgrade and reboot:
Note: IP addresses and MAC addresses are obscured or randomized below

[571] $ ssh root@oppa.lan

BusyBox v1.31.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r13744-8530cb4bfc
 -----------------------------------------------------
root@oppa:~# 
root@oppa:~# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr A3:00:12:FF:ac:23  
          inet addr:xxx.xxx.xxx.xxx  Bcast:xxx.xxx.xxx.255  Mask:255.255.255.0
          inet6 addr: dead:beef:cafe:f00d:1234:5678/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36253 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23451 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:32194782 (30.7 MiB)  TX bytes:5191290 (4.9 MiB)
          Interrupt:33 

root@oppa:~# brctl show br-lan
bridge name     bridge id               STP enabled     interfaces
br-lan          7fff.1341227d122a1       no              wlan0-1
                                                        wlan1
                                                        eth0.1
root@oppa:~# ifconfig br-lan
br-lan    Link encap:Ethernet  HWaddr 11:44:55:66:77:88  
          inet addr:10.71.82.1  Bcast:10.71.82.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:188146 errors:0 dropped:0 overruns:0 frame:0
          TX packets:211902 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25952515 (24.7 MiB)  TX bytes:136602789 (130.2 MiB)

Screenshot from 2020-07-08 20-23-25

Screenshot from 2020-07-08 20-49-23

eth1 is dedicated to my WAN now.
eth0 is my LAN

Screenshot from 2020-07-08 21-22-46

@CHKDSK88
Copy link
Contributor Author

CHKDSK88 commented Jul 9, 2020

@adrianschmutzler

I will fix commit message.

@brianonn

Thank You for test. I'm glad, that it was possible to fix this bug.
Can I put Your name into "tested-by" field?

@brianonn
Copy link

brianonn commented Jul 9, 2020

Can I put Your name into "tested-by" field?

Yes, it's ok

Thanks for fixing this.. I have wanted for so long to be able to dedicate eth1 to the WAN.

@CHKDSK88 CHKDSK88 changed the title [RFT] ipq806x: Enable Linksys EA8500 eth1 interface ipq806x: enable Linksys EA8500 eth1 interface Jul 9, 2020
@CHKDSK88 CHKDSK88 marked this pull request as ready for review July 9, 2020 04:58
@ynezz ynezz added ready for merge pull request reviewed and prepared for merge and removed RFT pull request ready for testing labels Jul 9, 2020
@ynezz ynezz self-assigned this Jul 9, 2020
@ianchi
Copy link
Contributor

ianchi commented Jul 9, 2020

@CHKDSK88 great work!!

I also tested it, and finally eth1 is up and running

@CHKDSK88
Copy link
Contributor Author

@CHKDSK88 great work!!

I also tested it, and finally eth1 is up and running

Thank You for test.
Can I put Your name into "tested-by" field?

@ianchi
Copy link
Contributor

ianchi commented Jul 10, 2020

Can I put Your name into "tested-by" field?

Yes sure.

Thanks for the fix.

At this moment Linksys EA8500 uses only eth0.

This patch change switch registers, which allow to use eth1 as lan
and eth0 as wan. The method work with similar Linksys EA7500V1
and it work with EA8500.

Suggested-by: Sungbo Eo <mans0n@gorani.run>
Tested-by: Brian Onn <brian.a.onn@gmail.com>
Tested-by: Adrian Panella <ianchi74@outlook.com>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
@ynezz
Copy link
Member

ynezz commented Jul 11, 2020

Thanks! Pulled into my staging tree at https://git.openwrt.org/openwrt/staging/ynezz.git

@ynezz ynezz closed this Jul 11, 2020
@CHKDSK88 CHKDSK88 deleted the linksys_ea8500_eth1_fix branch November 4, 2020 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge pull request reviewed and prepared for merge target/ipq806x pull request/issue for ipq806x target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants