openSuse 13.1 with usbnet

Hi,

I’m using 13.1 and want to access an embedded board using usbnet. I know it works with this board because I’ve it before with Ubuntu, but I’ve changed to openSuse. Looking around I found this thread https://forums.opensuse.org/showthread.php/494441-13-1-working-with-ethernet-over-USB but that doesn’t help other than mentioning loading the driver. I’ve searched the machine for a usbnet driver but didn’t find anything. So how can I go on ?

Thanks.

I don’t own such a device, but I’d start by sharing details about the hardware. What is reported by the following?

usb-devices

Is there a network interface created when it is plugged in?

/sbin/ifconfig

Are you using ifup or network manager to control your network interfaces? (That will change the IP configuration steps required)

Only Intel and Logitech devices, not a BeagleBoard (that’s the embedded device)

Is there a network interface created when it is plugged in?

/sbin/ifconfig

No, there isn’t.

Are you using ifup or network manager to control your network interfaces? (That will change the IP configuration steps required)

Network manager. But I know from previous experience that I first have to install usbnet, before the network manager can detect it. So that’s what I’m after.

The usbnet module should be included as part of the kernel package installed. Try the following (with the beagleboard plugged in)

modprobe usbnet

then

usb-devices

If it is supported/working, then I would expect to see a network interface present too (/sbin/ifconfig).

Anyway, the kernel module loading can be automated, provided we can get it working manually first.

Actually, it is the cdc_ether module that provides ‘ethernet-over-usb’ framework.
The list of supported chipsets can be found via

modinfo cdc_ether

It can be loaded with

modprobe cdc_ether

Ok, did all you suggested, but nothing comes forward. /sbin/ifconfig doesn’t show the expected usb0. So I need to do some more research and trying out on this…

Thank you for the help so far.

I suspect this is the actual problem. All those drivers, including usbnet, support specific device(s) connected over USB; but what we actually need here is effectively user level network using USB simply as transport. I could not find anything like this after brief search.

What I do remember from previous experience, is that whenever the device was connected and detected correctly (using VirtualBox but that shouldn’t matter) in the USB list “gadget” was listed. So now I setup a similar VBox with Ubuntu 12.04, loaded usbnet but get no result. Considering the monitor connected to the device, it’s working fine. Just the usbnet connection isn’t.

So start with showing output of “lsusb” with your board connected.

All devices are listed, both in and out the VBox, except the connected embedded board. So I wonder what (driver ?) is missing.

I think your are missing here some of the habits we have. When someone (who tries to help you) asks for the output of a command, he means he wants to see that. Not that you summarize what you think that might be important.

Thus when on asks for an

lsusb

please do that in a terminal emulator of your choice and copy/paste the prompt, the command, the output and the next prompt in one sweep between CODE ags in your post. You get the CODE tags by clicking on the # button in the tool bar of the post editor. That looks somethink like:

boven:~ # lsusb
Bus 001 Device 005: ID 15a9:0004 Gemtek WUBR-177G [Ralink RT2571W]
Bus 001 Device 006: ID 0bda:0111 Realtek Semiconductor Corp. RTS5111 Card Reader Controller
Bus 002 Device 002: ID 03f0:7e04 Hewlett-Packard DeskJet F4100 Printer series
Bus 003 Device 002: ID 0c45:182e Microdia 
Bus 003 Device 003: ID 03f0:0f0c Hewlett-Packard Wireless Keyboard and Optical Mouse receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
boven:~ 

Such listings tell other people much, much more about what is going on in your system then a lot of story telling.

No need to lecture me or go sour on me. If you stay polite, I will. So, here are the outputs of the commands with the board connected and usbnet loaded.

lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 174f:1442 Syntek
Bus 001 Device 005: ID 8086:0189 Intel Corp.
Bus 002 Device 003: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 002 Device 004: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)

usb-devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=03.11
S: Manufacturer=Linux 3.11.10-21-desktop ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:1a.0
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=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 6
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=8087 ProdID=0024 Rev=00.00
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=01 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=174f ProdID=1442 Rev=03.01
S: Manufacturer=Generic
S: Product=USB Video Device
S: SerialNumber=200901010001
C: #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I: If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo

T: Bus=01 Lev=02 Prnt=02 Port=05 Cnt=02 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=8086 ProdID=0189 Rev=69.19
C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=03.11
S: Manufacturer=Linux 3.11.10-21-desktop ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:1d.0
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=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 6
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=8087 ProdID=0024 Rev=00.00
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=02 Prnt=02 Port=02 Cnt=01 Dev#= 3 Spd=480 MxCh= 4
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0409 ProdID=005a Rev=01.00
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

T: Bus=02 Lev=03 Prnt=03 Port=03 Cnt=01 Dev#= 4 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c408 Rev=14.00
S: Manufacturer=Logitech
S: Product=USB Trackball
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=50mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid

Hi
So you have a usb/ethernet dongle on the embedded board, or just usb? If
no dongle, sure you not looking at some sort of serial connection over
USB?

embedded board-> usb <–> ethernet dongle <–> openSUSE 13.1 host
ethernet <–> vm ethernet <–>virtual machine?

or

embedded board->usb <–> usb <–> openSUSE 13.1 host usb <–> usb
virtual machine?

Or I’m off base?

I have a USB asix ethernet dongle here, plug it in to the laptop usb
port, asix module gets loaded, ifconfig and dmesg show it’s all up and
ready to go.

If the embedded board doesn’t have the module available for a
ethernet dongle, then need to add it to the image. What os is on the
embedded board?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

It does not look like you have any USB device related to networking (OK, you have Bluetooth adapter :)). Do you have link to your board data sheet? Could it be that you used special cable before (e.g. so called Host-to-Host cable)?

I had assumed the former, but now I think the OP is after the latter, using a virtual usb network device. There are references to using g_ether (a driver that provides for ethernet emulation over usb).

http://www.linux-usb.org/gadget/
http://linux-sunxi.org/USB_Gadget

It might be a case of compiling to gain that support.

The BeagleBoard doesn’t have a RJ45 connection, so the connection between the host and the board is by IP-over-USB. As said before, this did work well in the past and deano_ferrari shares 2 links, the first of which I already visited but gives no download. The 2nd link I didn’t know but visited and raises the question on which side the problem is.
Also, the hardware connection is from USB to mini-USB on the board (USB-OTG). There is a USB-A connector to which either WiFi or Bluetooth can be connected, but I haven’t done that (yet).
As for the question which OS runs on the board: currently a custom generated image from http://narcissus.angstrom-distribution.org/. I did try Ubuntu 14.04, but that didn’t seem to boot (correctly).

On 2014-12-15 19:56, hvn52 wrote:

> The 2nd link I didn’t
> know but visited and raises the question on which side the problem is.
> Also, the hardware connection is from USB to mini-USB on the board
> (USB-OTG).

I think that when you connect the cable to the openSUSE side you should
see “something”. Ie, lsusb should list it, even if it does not support
it and needs some special driver to handle it. If you force load
something when the connection is not seen, nothing will work.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Documents I have seen suggest that USB networking on this board is implemented using gadget driver mentioned before. Do you see any interface on your BeagleBoard (ifconfig -a)? Could you upload output of dmesg on BeagleBoard to http://susepaste.org/?

Right now I don’t have direct keyboard access to the board. That’s what I’m trying to get, so no info on ifconfig and dmesg from the board.

Ok, I found another way to connect to the board: using RS232+null-modem+RS232-USB converter. This way I found out that all images I’ve tried to run so far actually end in either panic or are unable to start the kernel. The USB-USB-mini cable is still used but for power only. So now it’s a matter to find out why the images don’t work.

Thank you for helping out so far.