Downloads
DocumentsDate added
-
Firmware Upgrade v4hot!
- 13.04.2007
-
*** 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=
====================
- Hits: 1106
-
Firmware Upgrade V3hot!
- 15.02.2007
-
This firmware upgrade image fixes some issues with the previos versions.
If a file called autoexec is placed in the root of the disk ( /mnt/autoexec ) it will be run a boot time. This means that if one should wish so, a complete linux can be placed on the disk, and the autoexec file can be used to chroot to it. This completely opens the routers, and as the CPU is running i486 emulation, most x86 applications can be run here !
Changes:
- Test SDA1/autoexec and after HDA1/autoexec (you can restore a bad HD filesystem with USB one)
- AT-Keyboard lag in syslogd out.
- FTP server ok.
- chmod -R 777 down.
- mkswap & swapon/off. loop & losetup. iwtools included.
For the Techies amoungst you, this is what has been changed:CHANGES from original MFB100
**************************************
File: ./rom_disk/bak.etc/rc.d/rc.bridge
======================================
#!/bin/ash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
echo 'set path'
#--- begin changes ----------------
mount /dev/sda1 /mnt
if [ -f /mnt/autoexec ];then
/mnt/autoexec
exit
else
echo "USB /mnt/autoexec not found"
umount /mnt
fi ;
mount /dev/hda1 /mnt
if [ -f /mnt/autoexec ];then
/mnt/autoexec
exit
else
echo "HDA1 /mnt/autoexec not found"
umount /mnt
fi ;
#---end changes ----------------
mkdir /var/log
.
.
.
route add -net 224.0.0.0 netmask 240.0.0.0 dev br0
#---- begin changes ---------------
telnetd &
chmod ugo-w /share &
#-----end changes --------------
exit
**************************************File: ./usr_src/amit_bin/hotplug.sh
Files created from telnet-root are only readable for shares.
======================================
#!/bin/ash
case $1 in
.
.
.
fi
fi
done
SDR=/dev/$i
mount -t ext2 $SDR $DIR/$DEV$Disk
if [ "$?" = "0" ];then
- # comment---> #chmod -R 777 $DIR/$DEV$Disk
if [ -d "$DIR2" -a "$DEV" = "USB_" ];then
mount -o bind $DIR/$DEV$Disk $DIR2/$DEV$Disk
fi
rec="$rec $i $DEV$Disk"
.
.
. - Hits: 634




