View Single Post
Posts: 13 | Thanked: 11 times | Joined on Jan 2010
#26
Originally Posted by qole View Post
Good news! And bad news.

Combining greygoo's instructions with wek's instructions (with my "slirpvde" modification) sets up a joikuspot-style router with a stock kernel... for a second, until my N900 rebooted.

0. Install Easy Debian and apt-get install vde2

1. run the three vde2 commands in three Easy Debian root terminals (sudo debian):
Code:
vde_switch -s /var/run/vde_sock
slirpvde -s /var/run/vde_sock -D
vde_pcapplug -s /var/run/vde_sock wlan0
2. make sure the N900 is on the GPRS data network (not wifi)

3. run the three commands from greygoo as root (I don't have iwconfig in Maemo, so I also ran these in a root Debian terminal):

Code:
iwconfig wlan0 mode ad-hoc
ifconfig wlan0 10.0.0.1
iwconfig wlan0 essid N900
4. Find the "N900" hotspot with your N800 (or laptop if you aren't cool enough to own an N800) and connect.

5. Get the IP address (yes, you get one!)

6. Try to load a web page... see the web browser show the title of the web page at the title bar... then watch the N900 reboot...
As you said good and bad news...

Your IP-Address should be 0.0.0.0 instead of 10.0.0.1 to keep
the IP-Stack out of the game.
But I'm afraid this is not our problem with stability.
I would expect that libpcap is not properly built against
freemantle but this is just a guess.
Something else which came to my mind is the following:
Per default, the device is probably opened promiscuous, which
might not work properly with wlan0 and as I remember from my gone n810 pan0.
Don't know if slirpvde (sorry for my mistake here
with the naming) has an option to do that.
I remember that I had changed that in my implementation on
the N810. Of course if the interface is not opened
promiscuous then slirp has to be forced to use the mac-address
of your wlan0 or whatever device you are connecting to.
Also remember to have built a mac-selection-option into
slirp. Can't remember if that went into the current slirp (the one
in current qemu) but it is for shure not in the old implementation
coming with vde2.
Looks as if I should try to dig out my old implementation (last
version is for shure gone but there might be something left
somewhere) and give it a try to see if the n900 behaves
differently in comparison to the n810...