Posts: 540 | Thanked: 387 times | Joined on May 2009
#1
Hi, I've been a longtime reader since the Nokia 770 days. Finally took the plunge on the N810 a couple weeks ago.

I want to share my laptop's wifi internet connection with the tablet via the stock usb cable (I also have a usb otg cable I bought off of ebay, though I would prefer to do this via usb rather than usb-otg->ethernet adapter). This is for a couple reasons, firstly my laptop has an atheros card which has far greater range than the wifi chip in the n810 and secondly to decrease latency with VNC sessions and perhaps VNC without a dedicated router in between.

I've come across a lot of scattered information on this topic but from what I have been able to piece together I cannot get it working - this is most likely primarily because most of the old instructions are outdated.

I am running Diablo on a N810. I have a couple SD card backup copies of the OS so I am not worried about trashing an install.

Ok so on the host side I am running Ubuntu 9.04 Jaunty (x86).

Ubuntu /etc/network/interfaces file:

Code:
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp

allow-hotplug usb0

mapping hotplug
        script grep
        map usb0

iface usb0 inet static
       address 192.168.2.14
       netmask 255.255.255.0
       broadcast 192.168.2.255
#       up iptables -I INPUT 1 -s 192.168.2.15 -j ACCEPT
up iptables -t nat -A POSTROUTING -o eth0 -s 192.168.2.15 -j MASQUERADE
up echo 1 > /proc/sys/net/ipv4/ip_forward
down iptables -t nat -D POSTROUTING -o eth0 -s 192.168.2.15 -j MASQUERADE
down echo 0 > /proc/sys/net/ipv4/ip_forward


iface br3 inet dhcp
         hostname ash
         pre-up   echo     "Adding ethernet bridge between LAN and PAN"
         pre-up   ifconfig ath0 0.0.0.0
         pre-up   brctl    addbr br3
         pre-up   brctl    setfd br3 0
         pre-up   brctl    stp br3 off
         pre-up   brctl    addif br3 ath0         
         pre-down echo     "Removing ethernet bridge between LAN and PAN"
         post-down brctl    delif br3 ath0
         post-down brctl    delbr br3
         post-down ifdown ath0
         post-down ifup ath0
(ath0 is my wireless card)


Error msg:
Code:
$ 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.

Nokia N810
/etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto usb0
iface usb0 inet static
        address 192.168.2.15
        netmask 255.255.255.0
        gateway 192.168.2.14
Error msg:
Code:
Nokia-N810-43-7:~# ifdown usb0
mc-disconnect[2548]: GLIB DEBUG default - checking MC status
mc-disconnect[2548]: GLIB DEBUG default - mission_control_get_presence: MC not running.
run-parts: /etc/network/if-post-down.d/zz_proxy_unset exited with return code 1
Nokia-N810-43-7:~# ifup usb0
run-parts: /etc/network/if-up.d/00_proxy_set exited with return code 1
I have installed libicd-network-dummy described in maemo bug #3306.

I can ping 192.168.2.15 (the tablet) from the tablet regardless of my connection. But not the laptop to the tablet at all. Also I see DUMMY, USB, and DEFAULT in the connections manager. I have the usb-otg-control applet installed with USB network device mode selected.

Anyway I'm not entirely sure where the problem is but obviously the connection is severed. I don't see anything on either end from lsusb. Any pointers from anyone that has got this working in Diablo would be appreciated. Thank you.
 
Posts: 7 | Thanked: 1 time | Joined on Aug 2009
#2
bump same issue here, but without the error messages and the pre-up sections, we just can't see each other
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#3
USB networking is working with Fedora. See the wiki page I wrote: http://wiki.maemo.org/Networking_(Diablo)

EDIT: http://wiki.maemo.org/index.php?titl...12&oldid=16794

This is the revision as I left it before it was "cleaned up" by someone

Last edited by linuxeventually; 2009-12-05 at 08:49.
 

The Following User Says Thank You to linuxeventually For This Useful Post:
Posts: 8 | Thanked: 0 times | Joined on Nov 2009
#4
Wow! I'm also thinking if this will be possible with windows,if you have a good idea,let me know.

If you are interested, here is my post:
http://talk.maemo.org/showthread.php?t=35946

UPDATE:How can i do this with my n810, i have already read the wiki which you participated, is the script just .txt ? I'm not familiar with linux commands but i know some basic commands and i will try to search them.
__________________
Totally noob.
Forgive my awful grammar.

Last edited by malon; 2009-12-05 at 08:30.
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#5
Sorry that wiki page was scrubbed of the USB networking section and then they just went ahead and unlinked it from the wiki Users page -__-
 
Reply

Tags
diablo, dummy, internet, networking, usb

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:20.