variable Posted April 7, 2016 Posted April 7, 2016 I was hoping someone using a clearfog board could help me out with a working config for the switched ethernet ports on the clearfog board, to be able to access them as individually as possible as the hardware and linux allow for. Anyone with a Clearfog board by chance? Thanks! -Eric
Igor Posted April 7, 2016 Posted April 7, 2016 I am not sure that driver for switch is already in the build which is available for download, but it's available if you build on your own. More info: http://forum.armbian.com/index.php/topic/590-quick-review-of-solidruns-clearfog/?p=6364
variable Posted April 8, 2016 Author Posted April 8, 2016 If I check the logs, it says "could not detect attached switch" and "couldn't create dsa switch instance (error -22)" but then plugging into either port 1 and/or 6 on eth0 works (in a switched fashion). > grep mvneta /var/log/kern.log /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 2.757054] mvneta f1030000.ethernet eth0: Using device tree mac address 00:50:43:84:25:2f /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 2.766103] mvneta f1034000.ethernet eth1: Using device tree mac address 00:50:43:0d:19:18 /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 2.775131] mvneta f1070000.ethernet eth2: Using device tree mac address 00:50:43:25:fb:84 /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 5.870134] mvneta f1030000.ethernet eth0: [0]: could not detect attached switch /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 5.877581] mvneta f1030000.ethernet eth0: [0]: couldn't create dsa switch instance (error -22) /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 5.921177] mvneta f1030000.ethernet eth0: [0]: could not detect attached switch /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 5.928620] mvneta f1030000.ethernet eth0: [0]: couldn't create dsa switch instance (error -22) /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 8.276781] mvneta f1030000.ethernet eth0: configuring for link AN mode fixed /var/log/kern.log:Feb 12 08:36:58 localhost kernel: [ 8.289888] mvneta f1030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off How do I get DSA up and running? Would you happen to have a primer on DSA ? Seems that at least the marvel bit is compiled in. > uname -r 4.4.1-marvell > lsmod Module Size Used by marvell_cesa 26406 0 dsa_core 15184 0 Also, the ports on eth0 only work in one mode, GbE, no flow control. Tested alternate modes: # 100mbps Full Duplex Connected, no traffic Half Duplex Connected, no traffic Full Duplex, Flow Control -No Connection- # 1 GbE Full Duplex Connected/Working Full Duplex, Flow Control -No Connection- However eth2 will work in 100mbps perfectly fine. I haven't yet installed an SFP yet so I can not say there, whether that affects the operation of the eth0 ports (1-6). Maybe it is missing the driver / I am missing the driver as you say Igor -- And once I have that installed it will Auto-negotiate properly? Ideas ? Suggestions from here? Thanks! -Eric
Igor Posted April 8, 2016 Posted April 8, 2016 I am not sure everything works perfectly yet, but testing is the first stage to find out I only plugged SFP inside and it's detected. Don't have a spare fiber to plug it in. Try also legacy kernel. It might be a better choice. At this moment.
jetebony Posted July 4, 2016 Posted July 4, 2016 I have just downloaded the 4.6.2 kernel version of xenial and get the lan1 to lan6 interfaces appear, but I can not seem to configure them. As mentioned previously, in /var/log/kern.log i see this: mvneta f1030000.ethernet eth1: [0]: couldn't create dsa switch instance (error -22) Which i guess is part of the problem. Are there any clues as to what I need to do to get these interfaces configured/working? According to the link in the in the post below: "Interfaces are presented as lan1-lan6, such that normal network control tools like ip, ifconfig, and properly configured ifup/ifdown work as expected" But, I can not seem to do anything with these interfaces lan1 to lan6? Any pointers would be very helpful. Cheers, Nigel.
Igor Posted July 4, 2016 Posted July 4, 2016 Yes, it's a step but not big enough. Alternatively you can try - compare to a kernel (v4.4.8) from Marvell & SolidRun lab: https://repo.solid-build.xyz/experimental/debian-jessie/ There are no sources yet due too some legal issues and AFAIK switch support is still buggy. When this is resolved and sources become avaliable, it will quickly come to mainline or we will try to port.
jetebony Posted July 5, 2016 Posted July 5, 2016 Hi Igor, Many thanks for the reply. I will try the link you forwarded and see how I get on. Thanks again,
Recommended Posts