| |
|
|
|
Document details
Details for Firmware Upgrade v4
| Property | Value |
| Name | Firmware Upgrade v4 |
| Description |
*** This version works alone BUT i don't know if it works with previous USB filesystems. ***
*** Only for test alternate distributions like openwrt ***
Pagano provided the following information on what he did to make OpenWrt Kamikaze work:
/sbin/init included. (post changes to do it better)
#!/bin/sh
# Search autoinit file in devices -script to execute before init-
# and search autobootfs -file with ext2 fs- to mount and boot inside.
#
PATH=/bin:/sbin
mount -t proc none /proc
for altboot in sda1 sda2 sdb1 sdb2 hda1 hda2 hda3; do {
mount /dev/$altboot /mnt
if [ -f /mnt/autoinit ];then
echo Found AutoInit in device: $altboot
umount /proc
cd /mnt
mkdir ramroot
pivot_root . ramroot
exec /autoinit
fi ;
if [ -f /mnt/autobootfs ];then
echo Found AutoBootFs in device: $altboot
insmod loop
mkdir /bootfs
losetup /dev/loop0 /mnt/autobootfs
mount /dev/loop0 /bootfs
umount /proc
cd /bootfs
mkdir ramroot
pivot_root . ramroot
exec /autoinit
exec /sbin/init
fi ;
umount /mnt
echo Testing $altboot for autoinit file: NO
}; done
#
# No alternate boot found. Restore init and boot ram
#
umount /proc
mv /sbin/init /sbin/init.altboot
ln -s ../bin/busybox /sbin/init
exec /sbin/init
=========================
The /sbin/init file search for autoinit in storage devices and run it as pid 1. autoinit can umount ram0 and exec /sbin/init
It also search for a autobootfs (ext2 image) and mount it as root device, its usefull for vfat devices or single file.
The /etc/rc.d/rc.bridge file calls autoexec script to fix changes in firmware. It can load modules or execute daemons...
I dont know if it works with v3 usb filesystem.
Openwrt x86 Kamikaze image is working but it lacks samba server and webif^2 must be adapted to configure it.
The autoinit is:
exec /sbin/init
My configure system file /etc/init.d/rcS
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
mount -t proc none /proc
insmod rt2500
rt2500apd
#Wireless Network settings must be in /tmp/RT2500AP.dat and info about it in MGB100_GPL/linux_src/drivers/net/wireless/rt2500/README
ifconfig wl0 0.0.0.0 up ;
ifconfig eth1 0.0.0.0 hw ether 00:80:5A:49:70:69 up &
ifconfig lo 127.0.0.1 up
/etc/init.d/dropbear start &
# Remove comments to release memory.
#umount /ramroot
#freeramdisk /dev/ram0
#rmdir /ramroot
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 wl0
ifconfig eth1 0.0.0.0
ifconfig wl0 0.0.0.0
ifconfig br0 192.168.2.10 up
route add default gw 192.168.2.1 &
echo nameserver 192.168.2.1 > /etc/resolv.conf
====================
My RT2500AP.dat
[Default]
SSIDNum=1
SSID=WHD.AP.NAME *******change it*****
HideSSID=0
CountryRegion=6
WirelessMode=0
TxRate=0
Channel=7
BeaconPeriod=100
DtimPeriod=3
TxPower=50
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=0
TurboRate=0
NoForwarding=0
ShortSlot=0
AutoChannelSelect=0
AuthMode=WPAPSK
EncrypType=TKIP
WPAPSK=wpa.password ******change it *****
IEEE8021X=0
ReKeyMethod=DISABLE
ReKeyInterval=
AccessPolicy=0
AccessControlList=
WdsEnable=0
WdsNum=0
WdsList=
====================
|
| Filename | upgrade-v4.img.gz |
| Filesize | 3.29 MB |
| Filetype | gz (Mime Type: application/x-gzip) |
| Creator | macsat |
| Created On: |
13.04.2007 08:27 |
| Viewers | Everybody |
| Maintained by | |
| Last updated on |
13.04.2007 08:31 |
| Homepage | |
-
|
|
|
|
Donations |
|
If you appriciate this site, please consider making a small donation.
All donations will be used to cover expenses from running macsat.com.
|
|
|