Tiny Core Base > TCB Q&A Forum
[Resolved] Autostart wireless connection on EeePC 901
paulfxh:
--- Quote from: roberts on January 24, 2009, 09:58:20 AM ---You could tar up your /lib/modules/2.6.26-tinycore/kernel/drivers/net/rt2860sta.ko.gz and name it rt2860sta.tcem then copy it to your tce directory
tces are basically tarballs with optional menu and icon items.
The ending 'm' signals that the extension has module(s) and thus depmod is automactic.
By doing so, you can then drop these lines
--- Code: ---cd /home/tc
cp rt2860sta.ko.gz /lib/modules/2.6.26-tinycore/kernel/drivers/net/
depmod -a
--- End code ---
This also saves you from backing up and restoring the static content of rt2860sta.ko.gz
Something that TC encourages, factorization of static from dynamic content via making your own personal extensions.
--- End quote ---
I very much would like to do this but I'm running into a problem (essentially due to inexperience :D).
I have read the creating extensions guide but note that this refers to packages rather than to single files such as this driver.
In any event, what I did was to copy the "/lib/modules/2.6.26-tinycore/kernel/drivers/net/rt2860stta.ko.gz" file to "rt2860sta.filelist" and ran this command:
--- Code: ---sudo tar -cvzpf rt2860sta.tcem rt2860sta.filelist
--- End code ---
I was unable to use the --numeric-owner switch as it caused the command to fail.
I then placed the resulting rt2860sta.tcem in /mnt/hdd7/tce and commented out the three lines you referred to in your post from my script (startwifi).
However, during the next reboot, not only was wireless not started but the ra0 interface wasn't created either.
Obviously, I've slipped up somewhere. :-[
roberts:
I was just thinking of tar command like this, after you have copied the module:
tar -C / -czvf ra2860.tcem lib/modules/2.6.26-tinycore/kernel/drivers/net/rt2860sta.ko.gz
Then move the ra2860.tcem to your tce directory.
paulfxh:
Well, that wasn't too difficult and it works fine.
My wireless autostart script is down to just eight lines now:
--- Code: ---#!/bin/sh
echo nameserver 208.67.222.222 > /etc/resolv.conf
echo nameserver 208.67.220.220 >> /etc/resolv.conf
modprobe rt2860sta
ifconfig ra0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255 up
/usr/local/sbin/iwconfig ra0 key open
/usr/local/sbin/iwconfig ra0 key xxxxxxxxxxxxxxxxxxxxxxxxxx
/usr/local/sbin/iwconfig ra0 essid "xxxxxxxxxxxxxxx"
route add default gw 192.168.1.254
--- End code ---
Thanks for the advice.
jpeters:
--- Quote from: roberts on January 24, 2009, 03:12:58 PM ---I was just thinking of tar command like this, after you have copied the module:
tar -C / -czvf ra2860.tcem lib/modules/2.6.26-tinycore/kernel/drivers/net/rt2860sta.ko.gz
Then move the ra2860.tcem to your tce directory.
--- End quote ---
I just tried modprobing bcm43.xx.ko and got an invalid module format error for some reason.
edit: after a little research, I can see broadcom requires a bit more......think I'll stick with my simple
ath0 cards....
Navigation
[0] Message Index
[*] Previous page
Go to full version