Welcome! Log In Create A New Profile

Advanced

Debian on Linksys EA4500 / EA4200

Posted by megal0maniac 
Re: Debian on Linksys EA4500 / EA4200
January 21, 2018 03:34AM
youxiaojie,

> Do you try the new driver in new architecture
> uboot?

I was close to get this working with u-boot 2016.05. I had to stop when being too busy with works.


> What is your new driver in "There was a
> good potential to get it working by tweaking a new
> driver for another Marvell switch, " can I
> download from Internet? Thanks

Sure! this is the new driver:

https://lists.denx.de/pipermail/u-boot/2015-December/238146.html

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Linksys EA4500 / EA4200
January 21, 2018 08:50AM
Thanks I want to test my 88e6161. Btw my original uboot has the ability to read register by a command is it useful to determine register address?
Re: Debian on Linksys EA4500 / EA4200
September 17, 2018 03:47PM
I'm back! I thought I'd dust off the router and try and get DSA working again, but to no avail. Even with the latest kernel and the DSA .dtb, it fails with
mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: could not detect attached switch
mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -22)

Full boot log is here: https://paste.ubuntu.com/p/6fPYB7z2rV/

I'm running 4.18.4-kirkwood-tld-1

Any thoughts? I'd love to get this working. Also, through DSA, do we have the ability to change the link status of individual ports?
Re: Debian on Linksys EA4500 / EA4200
September 17, 2018 04:16PM
Interestingly, the dtb from your previous post (https://forum.doozan.com/read.php?2,26854,36051#msg-36051) works.
Not sure of the difference between that one and the one in the latest kernel, but I have all 5 interfaces and can do fancy thinks like
ip link set ethernet1 down
Re: Debian on Linksys EA4500 / EA4200
September 17, 2018 06:02PM
Hi megal0maniac,

> Interestingly, the dtb from your previous post
> (https://forum.doozan.com/read.php?2,26854,36051#msg-36051)
> works.

Good to hear there is a work around!

> Not sure of the difference between that one and
> the one in the latest kernel

There might have been a change in mainline DTS that were brought in without us knowing about (through include statements). If previous DTS version works with the new kernel, then I think that's probably the reason. I'll boot up my EA4500 to see if I can repeat your problem.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Linksys EA4500 / EA4200
September 17, 2018 07:29PM
> but I have all 5
> interfaces and can do fancy thinks like
>
> ip link set ethernet1 down
>

That's the beauty of the DSA switch! And the DSA design is really cool how it works internally.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Linksys EA4500 / EA4200
September 17, 2018 08:23PM
megal0maniac,

I've just booted up the EA4500. I have no problem with the switch at all.

root@EA4500:/boot# lst uImage
-rw-r--r-- 1 root root 4170563 Aug 26 02:31 uImage


root@EA4500:/boot# lst /boot/dts/kirkwood-ea4500.dtb
-rw-r--r-- 1 root root 12419 Aug 25 12:11 /boot/dts/kirkwood-ea4500.dtb

root@EA4500:/boot# uname  -a
Linux EA4500 4.18.4-kirkwood-tld-1 #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018 armv5tel GNU/Linux

root@EA4500:/boot# dmesg | grep eth | grep -v MAC
[    0.167998] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    7.751113] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.956473] mv88e6085 f1072004.mdio-bus-mii:10 ethernet1 (uninitialized): PHY [mv88e6xxx-0:00] driver [Generic PHY]
[    9.983657] mv88e6085 f1072004.mdio-bus-mii:10 ethernet2 (uninitialized): PHY [mv88e6xxx-0:01] driver [Generic PHY]
[   10.010351] mv88e6085 f1072004.mdio-bus-mii:10 ethernet3 (uninitialized): PHY [mv88e6xxx-0:02] driver [Generic PHY]
[   10.038254] mv88e6085 f1072004.mdio-bus-mii:10 ethernet4 (uninitialized): PHY [mv88e6xxx-0:03] driver [Generic PHY]
[   30.152072] mv643xx_eth: no PHY
[   30.152116] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   30.565558] mv88e6085 f1072004.mdio-bus-mii:10 ethernet1: configuring for phy/gmii link mode
[   30.584991] IPv6: ADDRCONF(NETDEV_UP): ethernet1: link is not ready
[   33.715505] mv88e6085 f1072004.mdio-bus-mii:10 ethernet1: Link is Up - 1Gbps/Full - flow control rx/tx
[   33.725006] IPv6: ADDRCONF(NETDEV_CHANGE): ethernet1: link becomes ready

Checked your cable?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 09/17/2018 08:23PM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: