Active Topics

 


Reply
Thread Tools
Posts: 268 | Thanked: 304 times | Joined on Oct 2009 @ Orlando, USA
#1
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's Avatar
Posts: 28 | Thanked: 3 times | Joined on Sep 2009 @ London
#2
Originally Posted by archebyte View Post
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's Avatar
Posts: 28 | Thanked: 3 times | Joined on Sep 2009 @ London
#3
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's Avatar
Posts: 28 | Thanked: 3 times | Joined on Sep 2009 @ London
#4
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.
 
Posts: 268 | Thanked: 304 times | Joined on Oct 2009 @ Orlando, USA
#5
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.
 

The Following 2 Users Say Thank You to archebyte For This Useful Post:
detronizator's Avatar
Posts: 28 | Thanked: 3 times | Joined on Sep 2009 @ London
#6
Originally Posted by archebyte View Post
...(provided the /etc/network/interface file has the interface configuration from the wiki)...
Link to the wiki?
 
Posts: 268 | Thanked: 304 times | Joined on Oct 2009 @ Orlando, USA
#7
Originally Posted by detronizator View Post
Link to the wiki?
the link was included in the initial post.
http://wiki.maemo.org/USB_networking
 
detronizator's Avatar
Posts: 28 | Thanked: 3 times | Joined on Sep 2009 @ London
#8
Originally Posted by archebyte View Post
the link was included in the initial post.
http://wiki.maemo.org/USB_networking
Sorry :P
And Thanks.
 
detronizator's Avatar
Posts: 28 | Thanked: 3 times | Joined on Sep 2009 @ London
#9
Works!
Thanks a lot for sharing man.
 
Posts: 51 | Thanked: 15 times | Joined on Apr 2009 @ ChengDu, SiChuan, P.R.C
#10
that's great! i should mark it. thanks.
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:43.