Die Firmware zu ändern passiert in wenigen schritten und geht auch per LAN.
- SSH auf dem Fonera aktivieren (gibts genug Seiten zu)
- Redboot ändern
- Firmware aufspielen
Redboot anpassen (vorbereiten zum einspielen einer Neuen Firmware):
1.)
ssh aktivieren
2.)
mit Putty per SSH auf den Fonera verbinden:
root@OpenWrt:~# cd /tmp
root@OpenWrt:~# wget
http://coppercore.net/~kevin/fon/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma
Connecting to coppercore.net[64.27.5.164]:80
openwrt-ar531x-2.4-v 100% |*****************************| 512 KB 00:00 ETA
root@OpenWrt:~# mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7
Unlocking vmlinux.bin.l7 ...
Erasing vmlinux.bin.l7 ...
Writing from openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma to vmlinux.bin.l7 ... [w]
root@OpenWrt:~#
3.)
root@OpenWrt:~# reboot
4.)
mit Putty per SSH auf den Fonera verbinden:
root@OpenWrt:~# cd /tmp
root@OpenWrt:~# wget
http://coppercore.net/~kevin/fon/out.hex
Connecting to coppercore.net[64.27.5.164]:80
out.hex 100% |*******************************| 4096 00:00 ETA
root@OpenWrt:~# mtd -e "RedBoot config" write out.hex "RedBoot config"
Unlocking RedBoot config ...
Erasing RedBoot config ...
Writing from out.hex to RedBoot config ... [w]
root@OpenWrt:~#
5.)
root@OpenWrt:~# reboot
6.)
per telnet auf 192.168.1.254 port: 9000
RedBoot>
das wars...
original:
1 - Download the file
http://rapidshare.com/files/9240866/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma.html on your on PC e move it on your Fonera /tmp folder
2 - Run "mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7"
3 - Restart the router. If everything went OK, it should work as usual. If you have the serial console you will see the messages of my hack
4 - Connect with SSH e move the Heini66 file (
http://rapidshare.com/files/9116527/out.hex.html ) on your /tmp
5 - Run: mtd -e "RedBoot config" write out.hex "RedBoot config"
6 - Reboot.
telnet to ip 192.168.1.254 on port 9000.
works only 10 sec after power on.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=5083&start=291
Firmware einspielen:
ich benutz folgenden tftp server:
http://kin.klever.net/pumpkin/binaries
- einfach runterladen und installieren
- starten
- die beiden openwrt (openwrt-atheros-2.6-root.jffs2-64k und openwrt-atheros-2.6-vmlinux.lzma) files in einen ordner entpacken und dem tftp server diesen ordner freigeben
- nun per telnet auf die kleine box
- dann folgendes eingeben: fis init und mit y bestätigen Quote:
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot>
- dann das eingeben: load -r -v -b 0x80040450 openwrt-atheros-2.6-root.jffs2-64k
nun wird per tftp die datei auf die box geladen Quote:
RedBoot> load -r -v -b 0x80040450 openwrt-atheros-2.6-root.jffs2-64k
Using default protocol (TFTP)
Raw file loaded 0x80040450-0x8020044f, assumed entry at 0x80040450
RedBoot>
- dann dies eingeben: fis create -b 0x80040450 -f 0xA8030000 -l 0x00700000 -e 0x00000000 rootfs
einfach ein wenig warten (so 10 min sicher) Quote:
RedBoot> fis create -b 0x80040450 -f 0xA8030000 -l 0x00700000 -e 0x00000000 root fs
... Erase from 0xa8030000-0xa8730000: ................................................................................................................
... Program from 0x80040450-0x80740450 at 0xa8030000: ................................................................................................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot>
- dann das: load -r -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma
nun wird der 2te teil vom server geladen Quote:
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma
Using default protocol (TFTP)
Raw file loaded 0x80040800-0x800f07ff, assumed entry at 0x80040800
RedBoot>
- nun noch das: fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7 Quote:
RedBoot> fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7
... Erase from 0xa8730000-0xa87e0000: ...........
... Program from 0x80040800-0x800f0800 at 0xa8730000: ...........
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot>
- und das: fis load -l vmlinux.bin.l7 Quote:
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80041000-0x80283085
RedBoot>
- und als letztes das: exec
nun sollte das auf telnet 192.168.1.1 kommen:
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
BusyBox v1.2.1 (2006.12.29-12:14+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (bleeding edge, r5925) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/#
Firmware erstellen:
so hab ich mir die umgebung erstellt:
http://forum.openwrt.org/viewtopic.php?id=8410
mit diesem unterschied:
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=5083&postdays=0&postorder=asc&start=255 Quote:
Well, just point 6 and 7 is a bit different than explained in Setup a development environment for OpenWrt with the VMware Player.
6. check out Kamikaze's latest, source code from the development subversion branch
Code:
cd ~
svn co
https://svn.openwrt.org/openwrt/trunk/ kamikaze
7. run menuconfig and select your target system (Atheros [2.6]) and exit and yes (leave everything else at the defaults)
Code:
cd ~/kamikaze
make menuconfig