The officially official Devuan Forum!

You are not logged in.

#1 2018-05-10 18:36:58

ubik
Member
Registered: 2018-05-10
Posts: 6  

Odroid XU4 with ASCII RC - USB/net problem

I'm having a problem getting Devuan ASCII running on an Odroid XU4 (http://www.hardkernel.com/main/products … 3452239825), I'm not sure if I've missed something obvious or if there's a problem with the image - I've tried the ASCII beta and the RC.

I've copied the image to an SD card and it boots but the network interface doesn't come up.

As far as I can tell something is getting confused with the USB and making the network interface appear on the wrong bus / wrong speed interface:

root@devuan:~# lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480M

If I boot a Debian image and do the same thing the network works and the interface appears under the high speed Bus 06 entry rather than the 480M Bus 05 entry.

When running the Devuan ASCII image I tried plugging in other USB devices to see if I can get something to work, the USB2 interface responds with a "New USB device found" message on the console, the upper USB3 port doesn't show any sign of recognising that something has been connected and the lower USB3 port gave an error when I plugged in a disk:

[  141.349656] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[  142.319857] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[  143.279971] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[  144.241201] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[  144.248239] usb 3-1: USB disconnect, device number 2
[  148.321980] usb usb3-port1: connect-debounce failed

The gigabit network interface is the third USB3 device.

I'm connecting to the XU4 with a serial adapter connected to the UART.

Is it something I've done or is it a bug?

If there's any other info that would help let me know.

Thanks.

Offline

#2 2018-06-27 17:48:03

M0E-lnx
Member
Registered: 2018-06-27
Posts: 8  

Re: Odroid XU4 with ASCII RC - USB/net problem

Hi Ubik
I have this same board, but mine runs a heavily modified ubuntu xenial.

I wonder if you have this board in a case or maybe have accidentally pressed on these ports the wrong way (as in breaking off the board almost).  If you're sure that's not the case, then there is a couple of things you can try.  To start off, see if you have a

usb-devices

command available and post the output here if you do.

Offline

#3 2018-06-27 19:50:48

ubik
Member
Registered: 2018-05-10
Posts: 6  

Re: Odroid XU4 with ASCII RC - USB/net problem

Hi,

Thanks for the reply. Re-flashing with the release version of Ascii doesn't seem to have made any difference. Running usb-devices gives:

root@devuan:~# usb-devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 3
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.14
S:  Manufacturer=Linux 4.14.48 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=12110000.usb
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev=04.14
S:  Manufacturer=Linux 4.14.48 ohci_hcd
S:  Product=USB Host Controller
S:  SerialNumber=12120000.usb
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.14
S:  Manufacturer=Linux 4.14.48 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.2.auto
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=04.14
S:  Manufacturer=Linux 4.14.48 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.2.auto
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=5000 MxCh= 2
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=05e3 ProdID=0616 Rev=22.23
S:  Manufacturer=GenesysLogic
S:  Product=USB3.0 Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.14
S:  Manufacturer=Linux 4.14.48 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.5.auto
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  2
P:  Vendor=0bda ProdID=8153 Rev=30.00
S:  Manufacturer=Realtek
S:  Product=USB 10/100/1000 LAN
S:  SerialNumber=000001000000
C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=180mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=r8152

T:  Bus=06 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=04.14
S:  Manufacturer=Linux 4.14.48 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.5.auto
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

I think that still shows the network interface appearing on the 480M Bus05 rather than the 5000M Bus06.

The board is in a custom case but it's certainly not been mangled. I did boot a Debian image and the network came up with no problems so I was assuming that the hardware was ok.

I think it's a Devuan problem rather than hardware but I could be wrong. My guess is that something is mixed up in the device tree blob (the bit of the bootloader that defines the hardware configuration) but I've not had the time to read up on that to figure out how that bit works.

ifconfig only shows the loopback interface:

root@devuan:~# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

and trying to bring up the interface gives:

root@devuan:~# ifup eth0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.
ifup: failed to bring up eth0

It's the lack of the interface that makes me suspect that the USB is confused.

Offline

#4 2018-06-27 20:45:11

M0E-lnx
Member
Registered: 2018-06-27
Posts: 8  

Re: Odroid XU4 with ASCII RC - USB/net problem

I read the same thing from your output.

Here is the output from mine

T:  Bus=06 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  2
P:  Vendor=0bda ProdID=8153 Rev=30.00
S:  Manufacturer=Realtek
S:  Product=USB 10/100/1000 LAN
S:  SerialNumber=000001000000
C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=256mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=r8152

If it came down to configs, I could provide what my setup is using to see if you can adjust on your end.

Last edited by M0E-lnx (2018-06-27 20:54:31)

Offline

#5 2021-10-13 19:09:12

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: Odroid XU4 with ASCII RC - USB/net problem

Sorry for the necro-posting but does it really exist a Devuan image for this board?

Offline

#6 2021-10-13 20:15:40

ubik
Member
Registered: 2018-05-10
Posts: 6  

Re: Odroid XU4 with ASCII RC - USB/net problem

It's been a while since I installed Devuan on my XU4 but the good news is that it does work! I'm running Beowulf but with the latest kernel from backports - the last couple of versions of that seem to have finally solved the USB problems I was having.

How I got there is a bit of a memory test as it was a while ago. I ended up building u-boot from Debian along with the Odroid specific bits and tftp booting the Debian installer over the LAN. Things that helped at the time were setting net.ifnames=0 in the kernel cmdline to get sensible interface names. Having a serial interface to get a console (and a lot of patience) helped! Once I'd got Debian running I converted to Devuan.

I don't know if there's a current image available, I can't see anything in
https://pkgmaster.devuan.org/devuan/dis … nt/images/

Offline

#7 2021-10-13 21:38:29

golinux
Administrator
Registered: 2016-11-25
Posts: 3,317  

Re: Odroid XU4 with ASCII RC - USB/net problem

Maybe this thread would help.

Online

Board footer