maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   USB networking on the N900 from Ubuntu (https://talk.maemo.org/showthread.php?t=34690)

archebyte 2009-11-18 14:14

USB networking on the N900 from Ubuntu
 
I am struggling with getting the USB networking setup on the N900 using Ubuntu. The setup on the wiki is not updated for the N900.

I am using the pc-connectivity-manager on the N900 from the extras-testing.

On the host (Ubuntu) I have the interfaces file setup as described on the wiki

on the host, usbnet is loaded:
xxxx:~/maemo5sdk/firmware$ lsmod | grep usb
usbnet 17188 1 cdc_subset
mii 5212 2 usbnet,b44

After connecting the device, ifup doesn't bring up the interface.
xxxxx: $ sudo ifup usb0
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.

ifup usb0 on the N900 doesn't work either.

what module needs to be loaded on the N900? g_ether.ko is not available in the /lib/modules directory.

How can I ensure that the setup on the N900 is correct?

If I can some working instructions, I will be happy to update the wiki.

Thanks!

detronizator 2009-11-19 11:27

Re: USB networking on the N900 from Ubuntu
 
Quote:

Originally Posted by archebyte (Post 380747)
I am struggling with getting the USB networking setup on the N900 using Ubuntu. The setup on the wiki is not updated for the N900.

I am using the pc-connectivity-manager on the N900 from the extras-testing.

On the host (Ubuntu) I have the interfaces file setup as described on the wiki

on the host, usbnet is loaded:
xxxx:~/maemo5sdk/firmware$ lsmod | grep usb
usbnet 17188 1 cdc_subset
mii 5212 2 usbnet,b44

After connecting the device, ifup doesn't bring up the interface.
xxxxx: $ sudo ifup usb0
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.

ifup usb0 on the N900 doesn't work either.

what module needs to be loaded on the N900? g_ether.ko is not available in the /lib/modules directory.

How can I ensure that the setup on the N900 is correct?

If I can some working instructions, I will be happy to update the wiki.

Thanks!

Same issue here and no one seems to know how to solve this problem.

detronizator 2009-11-19 12:17

Re: USB networking on the N900 from Ubuntu
 
News.
That's what appears in my "dmesg":
Code:

g_ether: disagrees about version of symbol struct_module
This can only mean that there is a kernel version mismatch between the loaded module, the version of kernel it was compiled against, and the version of kernel it's running.

This problem arises only in the latest N900 Fremantle Update1 Firmware for Production Devices.

Anyone is having the same?
I'm new here: who should be targeted for this issue/bug? (if this is a bug)

detronizator 2009-11-19 14:15

Re: USB networking on the N900 from Ubuntu
 
The problem is in the package
Code:

usb-network-modules
The g_ether module that sits in there has not been recompiled for the latest kernel.

I'm trying to leave a comment to the package page (http://maemo.org/packages/view/usb-network-modules/) but I'm unable to register for now.
Maintainers are Andre Rodrigues and Walter Guerra.

archebyte 2009-11-19 14:25

Re: USB networking on the N900 from Ubuntu
 
Solved. Thanks to Kate Alhola from Nokia!

Connect the N900 and choose the PC Suite Mode.

on the N900, do the following to bring up usb0 (192.168.2.15)
Code:

sudo gainroot
ifup usb0

on Ubuntu, just bring up the interface (provided the /etc/network/interface file has the interface configuration from the wiki)
Code:

sudo ifup usb0
This should set the IP of ubuntu to 192.168.2.14.

The kernel-module on the N900 is no longer g_ether. Kate suggests it is g_nokia handling the usb-networking along with the PC-Suite mode.

detronizator 2009-11-19 15:11

Re: USB networking on the N900 from Ubuntu
 
Quote:

Originally Posted by archebyte (Post 382163)
...(provided the /etc/network/interface file has the interface configuration from the wiki)...

Link to the wiki?

archebyte 2009-11-19 15:15

Re: USB networking on the N900 from Ubuntu
 
Quote:

Originally Posted by detronizator (Post 382235)
Link to the wiki?

the link was included in the initial post.
http://wiki.maemo.org/USB_networking

detronizator 2009-11-19 15:18

Re: USB networking on the N900 from Ubuntu
 
Quote:

Originally Posted by archebyte (Post 382241)
the link was included in the initial post.
http://wiki.maemo.org/USB_networking

Sorry :P
And Thanks.

detronizator 2009-11-19 15:24

Re: USB networking on the N900 from Ubuntu
 
Works!
Thanks a lot for sharing man.

funpig 2009-11-19 16:14

Re: USB networking on the N900 from Ubuntu
 
that's great! i should mark it. thanks.


All times are GMT. The time now is 11:14.

vBulletin® Version 3.8.8