[maemo-users] Internet connection sharing
From: Marius Gedminas marius at pov.ltDate: Tue Oct 20 00:41:40 EEST 2009
- Previous message: Internet connection sharing
- Next message: Small useful script: whence
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 10.20.30.1 netmask 255.255.255.0 up
> dnsmasq -i wlan0 -a 10.20.30.1 -I lo -z -d -x /var/run/dnsmasq.wlan0.pid
For extra convenience also pass
--dhcp-range=10.20.30.10,10.20.30.100,6h
--dhcp-option=3,10.20.30.1
--dhcp-option=6,10.20.30.1
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
http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Kernel_and_Debugging_Guide/Maemo_Kernel_Guide,
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
- Previous message: Internet connection sharing
- Next message: Small useful script: whence
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
