by WarheadsSE » Fri Dec 09, 2011 8:34 pm
Credit to Scorp / Geoff for collecting all of this:
$this->bbcode_second_pass_quote('scorp', '
')
note: i had wifi working with the original pogoplug software first
then installing archlinux arm as descriped.
this worked for me to get wifi again:
$this->bbcode_second_pass_code('', '
pacman -S wifi-select #follow instructions after that, this will install iwlist, iwpriv and so on, used by franoreillys script
mkdir /tmp/ce
mount -t ubifs -o ro ubi0:rootfs /tmp/ce
mkdir /etc/Wireless
/bin/cp -rfv /tmp/ce/etc/Wireless/RT2860STA /etc/Wireless
mkdir /lib/modules/2.6.31.6_SMP_820/kernel/drivers/net/wireless
cp /tmp/ce/lib/modules/2.6.31.6_SMP_820/kernel/drivers/net/wireless/rt3390sta.ko /lib/modules/2.6.31.6_SMP_820/kernel/drivers/net/wireless/rt3390sta.ko
depmod -a
')
$this->bbcode_second_pass_quote('franoreilly', '
')Changed the MODULES line in /etc/rc.conf line to :
$this->bbcode_second_pass_code('', '
MODULES=(gmac rt3390sta !rt2800pci)
')
franoreilly's method:
$this->bbcode_second_pass_quote('scorp', '
')Now i followed the instructions of franoreilly:
Created a script file /usr/local/bin/setup_wireless containing (assumes a WPA2 TKIP wifi configuration):
$this->bbcode_second_pass_code('', '
ifconfig ra0 up
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=WPA2PSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set SSID="Your wireless access point name"
iwpriv ra0 set WPAPSK=your wireless access point password
#setting up a static ip address
ifconfig ra0 192.168.0.123 netmask 255.255.255.0 #use your own preferred static ip/netmask
route add default gw 192.168.0.1 #use ip of your router/gateway
')
Make the script executable (you might also need to consider more restrictive permissions since the script file contains your wifi password):
$this->bbcode_second_pass_code('', '
chmod +x /usr/local/bin/setup_wireless
')
Run the script on boot, add the following line to the end of /etc/rc.local:
$this->bbcode_second_pass_code('', '
/usr/local/bin/setup_wireless
')
Geoff's method
$this->bbcode_second_pass_quote('Geoff', '
')I found an alternative, which I think follows more closely the intent of the rc system. I decided to use a static IP address for eth0 and another static IP address for ra0, so I changed /etc/rc.conf as follows:
$this->bbcode_second_pass_code('', '#Static IP example
eth0="eth0 192.168.0.7 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
ra0="ra0 192.168.0.207 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0 ra0)')
As I am using static IP addresses for eth0 and ra0, I added static default gateways for each of these, giving a higher priority to eth0:
$this->bbcode_second_pass_code('', '#gateway="default gw 192.168.0.1"
#ROUTES=(!gateway)
gateway_eth0="default gw 192.168.0.1 metric 0 dev eth0"
gateway_ra0="default gw 192.168.0.1 metric 1 dev ra0"
ROUTES=(gateway_eth0 gateway_ra0)')
Finally, I added some lines to the end of /etc/conf.d/wireless to set the wireless password:
$this->bbcode_second_pass_code('', 'iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK='Your wireless access point password'
wlan_ra0="ra0 mode managed essid 'Your wireless access point name' auth WPA2"
WLAN_INTERFACES=(ra0)')