[fixed] espressobin switch not detected

This is for ARMv8 based devices

[fixed] espressobin switch not detected

Postby sulaweyo » Mon Jun 05, 2017 9:34 am


i have run into a problem with my new espressobin base board. I have installed the standard image (https://archlinuxarm.org/platforms/armv ... spressobin) and it boots up perfectly with kernel linux-espressobin 4.4.70-1. My problem ist that i do not get network devices for the 3 network ports - i just get eth0. I can get an ip for eth0 and network works but the other ports basically just act as a switch would and neither wan or lan ports show up.

dmesg shows this:
Code: Select all
[    4.900234] Distributed Switch Architecture driver version 0.1
[    4.901318] mvneta d0030000.ethernet eth0: [0]: could not detect attached switch
[    4.901324] mvneta d0030000.ethernet eth0: [0]: couldn't create dsa switch instance (error -22)

Imho this tells me DSA did not recognize the chip and so i just get the eth0 device without access to the ports but so far i did not find a way to fix that and i just assume that the kernel for this board actually provides all needed drivers. In the kernel config (https://archlinuxarm.org/packages/aarch ... les/config) i'd say this option would enable that:
Code: Select all
# CONFIG_NET_DSA_MV88E6060 is not set

Code: Select all
00:01.0 PCI bridge: Marvell Technology Group Ltd. Device 0100 (prog-if 00 [Normal decode])
        Flags: fast devsel
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: None
        Memory behind bridge: None
        Prefetchable memory behind bridge: 00000000-000fffff [size=1M]

That's my first dev board and i obviously miss something here :/ Any help would be highly appreciated.
Last edited by sulaweyo on Tue Jul 25, 2017 3:55 pm, edited 2 times in total.
Posts: 4
Joined: Mon Jun 05, 2017 9:06 am

Re: espressobin switch not detected

Postby sulaweyo » Fri Jun 09, 2017 2:07 pm

By now i did a bunch of tests and the driver for the switch (Marvell 88E6390) on my board does not seem to be in the repo kernel. I have built some newer kernels by now with so far no real success.
4.11.4 detects the switch flawless but then fails on mounting the root partition on the SD card.
4.12-rc4 has the Marvel Xenon driver which i found in the repo kernel but it still fails to bring up the root device.
I refuse to switch to a different os for the board as all my devices run Arch so i'll just go on i guess..
Last edited by sulaweyo on Fri Jun 09, 2017 4:00 pm, edited 1 time in total.
Posts: 4
Joined: Mon Jun 05, 2017 9:06 am

Re: espressobin switch not detected

Postby sulaweyo » Fri Jun 09, 2017 3:52 pm

Ok i'm running on a workaround now.
Kernel 4.11.4 and not booting from SD card but from a USB stick. Not exactly beautiful but working for now.

I have attached my 4.11.4 PKGBUILD which is basically the PKGBUILD from the repo with minor adjustments to build 4.11.4 kernel. Use at your own risk.
My PKGBUILD, use at your own risk
(36.34 KiB) Downloaded 85 times
Posts: 4
Joined: Mon Jun 05, 2017 9:06 am

Re: [workaround found] espressobin switch not detected

Postby WarheadsSE » Mon Jun 12, 2017 3:53 pm

I was actually been working this while at SouthEast Linux Fest this past weekend, and may have found a part of a patch that was missed. I will be testing this as soon as I can.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
Posts: 6804
Joined: Mon Oct 18, 2010 2:12 pm

Re: [fixed] espressobin switch not detected

Postby sulaweyo » Tue Jul 25, 2017 3:54 pm

The latest kernel 4.12.3-1 detects the switch correctly and works nicely out of the box! Thx

I'm still having problems booting from sdcard but as the sdcard is detected correctly in the booted up os i'm most likely missing something ... and i really did, a simple 'mkinitcpio -p linux-espressobin' with connected sdcard fixed it!
Posts: 4
Joined: Mon Jun 05, 2017 9:06 am

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 1 guest