maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   USB Networking (https://talk.maemo.org/showthread.php?t=11128)

averyml 2007-10-29 18:34

USB Networking
 
I have been trying for a couple weeks now to get usb networking working on my n800 so that I can use it at work (where we have no wireless access), but I have so far been unsuccessful. This topic is covered in many different wiki pages, but the information is rather fragmented, and it's kind of difficult to piece together which steps are for the 770, the n800, different firmware versions, etc., so I'm hoping someone here can help me. Here's what I've done so far:

After many unsuccessful attempts mucking around, I decided to do a fresh flash, with the newest version of the firmware, and start over.

Since I'm working with Windows XP at work, I started with this page. But, it says for the n800, to ignore all steps pertaining to the 770 since bora supplies the "maemo-statusbar-usbnet" applet. The phrasing there would make me think that this applet is already installed, but upon finding it wasn't, and didnt' appear to be in any of the repositories either, I googled it, and found next to nothing. I did have the .deb on my desktop from my previous attempts, so I tried using that. The application manager reported that it was incompatible. So, I figured I had to find a different way to do it.

Since I could find no other methods of setting up usb networking on windows, I decided to try using the n800 steps from this page and then go on to the windows steps for the previous page. Using gainroot as described there returned a message along the lines of "Enable R&D mode if you want to brick your device", so I then used these directions to get root access. Now that I had root access, I tried to
Code:

Nokia-N800: # insmod /mnt/initfs/lib/modules/2.6.18-omap1/g_ether.ko
with the usb cable connected as the directions said, but my device tells me
Code:

insmod: cannot insert '/mnt/initfs/lib/modules/2.6.18-omap1/g_ether.ko': Device or resource busy (-1): Device or resource busy
So now I'm a little lost...Any help?

Tahitibob 2007-10-29 19:24

Re: USB Networking
 
Hi
Try to umount mmc cards before charging g_ether.ko module :
umount /media/mmc1
umount /media/mmc2
insmod /mnt/initfs/lib/modules/2.6.18-omap1/g_ether.ko

David.

averyml 2007-10-29 20:22

Re: USB Networking
 
Thank you! It took a couple tries, but I finally figured it out. With the cable unplugged I unmounted the memory cards, then plugged it back in and issued the insmod command. I can finally ssh to my n800 over usb! I'm not sure if I can access the internet from it though...If I'm understanding the directions correctly, I have to set up internet connection sharing in windows in order to do that...but when I try to enable it on my network adapter, it says that it will automatically set the ip address to a certain static ip, which I obviously can't do on our network here...is there any other way of doing it?

dwmcqueen 2007-11-06 16:03

Re: USB Networking
 
BTW - I see the maemo-statusbar-usbnet applet when I enable red pill mode. Didn't see it before.

therblack 2007-12-19 19:34

Re: USB Networking
 
Thanks! I got things going really easily with the official on2008! I can now download stuff from an xterm...

The one problem that I have is when I fire up the browser [or anything else that accesses the internet for that matter] it keeps on trying to connect wirelessly rather that using the wired connection. Any idea how to stop this happening?

thanks

viking938 2007-12-19 21:50

Re: USB Networking
 
therblack;

control panel;connectivity;deselect 'connect automatically'

this may help

brendan 2008-02-01 15:35

Re: USB Networking
 
Quote:

Originally Posted by dwmcqueen (Post 91284)
BTW - I see the maemo-statusbar-usbnet applet when I enable red pill mode. Didn't see it before.

is this still available? i dont have access to the intarwebs via my nokia right now...

aflegg 2008-02-01 16:09

Re: USB Networking
 
Quote:

Originally Posted by brendan (Post 136615)
is this still available? i dont have access to the intarwebs via my nokia right now...

Code:

andrew@serenity:~$ ssh nit


BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ apt-cache show maemo-statusbar-usbnet 
W: Unable to locate package maemo-statusbar-usbnet
E: No packages found

Gronmayer.com says there's a bora version in repository.maemo.org. So it's intended for use in Scratchbox or similar, from Packages:

Code:

Package: maemo-statusbar-usbnet
Priority: optional
Section: unknown
Installed-Size: 180
Maintainer: Maemo Integration <integration@maemo.org>
Architecture: armel
Version: 0.6-1
Replaces: maemo-dm
Conflicts: maemo-dm
Filename: pool/maemo3.2/free/binary/maemo-statusbar-usbnet_0.6-1_armel.deb
Size: 13742
MD5sum: f3e68ea5626e3e3de21394dada4661a3
Description: USB networking statusbar plugin
 This package contains statusbar and control panel plugin and standalone application to enable/disable MMC&&UsbNet

HTH,

Andrew

alSee 2008-04-30 09:46

Re: USB Networking
 
aflegg, ok, I can install it on OS2008. But it doesn't work anyway.

Gourmand 2008-04-30 15:15

Re: USB Networking
 
Quote:

umount /media/mmc1
umount /media/mmc2
this will completely unmount both sd-cards
but it's much more interesting keep them mounted but terminate USB-connection to them from PC

idea is simple - if you unmount these cards, then you will loose storage for downloading files from Internet over USB...

any ideas how to break USB-connection to sd-cards but not unmount them?

qwerty12 2008-04-30 15:17

Re: USB Networking
 
Quote:

Originally Posted by alSee (Post 176280)
aflegg, ok, I can install it on OS2008. But it doesn't work anyway.

Use this instead:
https://garage.maemo.org/projects/usb-otg-plugin/

anpaza 2008-05-16 21:58

Re: USB Networking
 
I need USB networking on my N810.

I tried the usb-otg-plugin and it crashes for me. When I try to switch to USB Ethernet mode, it makes the UI unresponsive, although it clicks when I touch the screen.

Besides, I'm not sure what's the difference between "USB Networking" and "USB Ethernet". I'd say it refers to the same thing.

So, the any way so far is to do it manually. You need to be root first, then launch the following script, with USB unplugged:

Code:

#!/bin/sh                                                                               
                                                                                         
if grep -q g_file_storage /proc/modules; then                                           
    if ! rmmod g_file_storage; then                                                     
        echo "Cannot remove the storage gadget driver!"                                 
        exit 1                                                                           
    fi                                                                                   
fi                                                                                       
                                                                                         
insmod /mnt/initfs/lib/modules/`uname -r`/g_ether.ko                                     
ifconfig usb0 192.168.0.202 up
route add default gw 192.168.0.200

This will set up your gadget as 192.168.0.202 and will expect your PC to be 192.168.0.200, now you can plug it via USB and Linux will see it immediately; you only have to set up the address 192.168.0.200 on the usb0 interface. Unfortunately on N810 Maemo will unmount storage cards when you plug USB in; you will have to mount them back manually. Anybody knows if it's possible to prevent this somehow?

Kytrix 2008-09-11 13:45

Re: USB Networking
 
Hi,
I try to using usb networking on my n810,
so i install several packages
maemo-control maemo-control-usb ...
at first try i get it work by enabling usb-networking in control panel
.. next times i was unable to get it work again:
on the pc (ubuntu) i see that cdc_ether is connected .. so interface can get up and one second after it"s deconnected.
On the tablet it say: cable connected .. one second or two .. cable deconected :/
I think this is more the tablet who did the disconection ...

I Also try the status bar usb applet but it freeze my n810.

Does someone use usb-networking and could help me?
.. wiki on maemo.org seems to be a little deprecated.

Thanks
Kytrix

Kytrix 2008-09-15 07:26

Re: USB Networking
 
Strange.
I have re-install some packages and now it seeems to work:
I have to set usb-otg-plugin on usb network device mode AND in the configuration panel set up usb-networking .

Kytrix 2008-11-06 11:11

Re: USB Networking
 
I worked one time or two!
now it's do the same a two post before :
the interface disconect from pc juste after be connected
here is my log on my ubuntu host:
Code:

[12831.515316] usb0: register 'cdc_ether' at usb-0000:00:1d.7-8, CDC Ethernet Device, ea:db:23:44:2a:ae
[12831.515735] usbcore: registered new interface driver cdc_ether
[12832.679005] usb 5-8: USB disconnect, address 5
[12832.679172] usb0: unregister 'cdc_ether' usb-0000:00:1d.7-8, CDC Ethernet Device

here is what I doing on tablet:
in my usb-applet i choose USB network device mode
then i go in the control panel and click on setup network usb.

after that i can see the network interface in ifconfig
and then I plug the tablet on le pc.


All times are GMT. The time now is 08:56.

vBulletin® Version 3.8.8