[maemo-users] Internet connection sharing

From: Marius Gedminas marius at pov.lt
Date: Tue Oct 20 00:41:40 EEST 2009
On Mon, Oct 19, 2009 at 11:19:20PM +0300, Marius Gedminas wrote:
> I've had partial success with wifi, after installing wireless-tools from
> the fremantle tools repository (it's also in downloads.maemo.nokia.com):
>   ifconfig wlan0 down # otherwise iwconfig mode says device busy
>   iwconfig wlan0 mode ad-hoc
>   ifconfig wlan0 up # otherwise iwconfig essid times out
>   iwconfig wlan0 essid n900
>   ifconfig wlan0 netmask up
>   dnsmasq -i wlan0 -a -I lo -z -d -x /var/run/dnsmasq.wlan0.pid

For extra convenience also pass


to dnsmasq, then your tablet will act as a DHCP server.

> Trouble is, every 10 minutes the device does a wifi scan or something
> and shuts down the hardware.

Fixable if you go to Settings -> Internet Connections and set WLAN
search interval to Never.

> Also, I want iptables.  Trying to build iptable_nat.ko kinda failed:
>   ~ $ sudo insmod iptable_nat.ko 
>   insmod: error inserting 'iptable_nat.ko': -1 Invalid module format
>   ~ $ dmesg | tail
>   ...
>   [90600.794433] iptable_nat: no symbol version for struct_module
> Clearly, I'm doing something wrong.

This could be because the SDK has kernel sources of version
2.6.28-20093908+0m5, and my device has kernel 2.6.28-20094102+0m5.

Any idea where to find the appropriate sources?  GPL requirements etc.,
they ought to be out there somewhere.

FWIW I'm following the instructions at
but it seems that those are a bit outdated
(maemo-sdk-rootstrap_5.0beta_armel.tgz?  EXTRAVERSION=-maemo2?).  I
would appreciate any feedback from people who have tried building kernel
modules with the final SDK.

Marius Gedminas
We're sysadmins. To us, data is a protocol-overhead.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20091020/d26e7cff/attachment.pgp 
More information about the maemo-users mailing list