Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ClearFog / interfaces setup for switched ports

Featured Replies

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

  • Author
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

 

 
 

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.

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.

Hi Igor,

 

Many thanks for the reply. I will try the link you forwarded and see how I get on.

 

Thanks again,

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.