Re: Internet connection sharing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux