[maemo-developers] USB Networking doesn't work on my N810 (diablo) and Ubuntu Linux 8.04

From: Kalle Valo kalle.valo at nokia.com
Date: Mon Jul 21 10:46:13 EEST 2008
"ext Andrea Grandi" <a.grandi at gmail.com> writes:

> When I try to do this on my PC, I get these errors:
>
> 1) I bring up usb0 on tablet using the control panel applet
>
> 2) I connect the usb cable to both PC and tablet
>
> 3) I do this:
>
> root at noteboontu:/home/andy80# ifup usb0
> usb0: ERROR while getting interface flags: No such device
> SIOCSIFADDR: No such device
> usb0: ERROR while getting interface flags: No such device
> SIOCSIFNETMASK: No such device
> SIOCSIFBRDADDR: No such device
> usb0: ERROR while getting interface flags: No such device
> usb0: ERROR while getting interface flags: No such device
> Failed to bring up usb0.

Did you get these errors from from your PC or tablet? I didn't quite
understand that.

I'm guessing that you did that on your PC and it happened because
cdc_ether module was missing.

> The device should be ok: g_ether module is loaded and usb0 interface
> (with ip 192.168.2.15) is up.
> I think the problem is my Ubuntu, because if I try to bring up the
> same module, I get this error:
>
> root at noteboontu:/home/andy80# modprobe g_ether
> FATAL: Error inserting g_ether
> (/lib/modules/2.6.24-19-generic/kernel/drivers/usb/gadget/g_ether.ko):
> No such device

g_ether is the gadget side driver, you shouldn't use that on your PC.
On PC side you should use cdc_ether module. On my debian box it's
loaded automatically, but I don't why it didn't happen for you. Try
reinserting USB cable, for example.

Outputs from 'ifconfig -a', 'lsmod' and 'dmesg', both from the PC and
the tablet, help diagnose the problem better.

-- 
Kalle Valo

More information about the maemo-developers mailing list