Thread: USB Networking
View Single Post
Posts: 47 | Thanked: 78 times | Joined on May 2008
#12
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?

Last edited by anpaza; 2008-05-16 at 22:15.
 

The Following User Says Thank You to anpaza For This Useful Post: