Fonera: Unterschied zwischen den Versionen
AndiS (Diskussion | Beiträge) |
|||
(7 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
== FLASHING == | == FLASHING == | ||
=== NEW: Gargoyle Flash Fon Utility === | |||
Gargoyle project includes a [http://www.gargoyle-router.com/download.php Flash Fon utility] that works similarly as EasyFlash, but works on MacOSX, Linux and Windows | |||
=== Mac OS X === | === Mac OS X === | ||
Zeile 76: | Zeile 80: | ||
Usage:<br/> | Usage:<br/> | ||
1. Start script: ./flashit.expect<br/> | 1. Start script: ./flashit.expect<br/> | ||
Optionally, you can give kernel and squashfs files as parameters if they don't have the default filenames | Optionally, you can give kernel and squashfs files as parameters if they don't have the default filenames<br/> | ||
2. Connect and power up the Fonera<br/> | 2. Connect and power up the Fonera<br/> | ||
3. When you see stuff happening, go for lunch.<br/ | 3. When you see stuff happening, go for lunch.<br/> | ||
When the script exits (and you see no error message), you can safely reboot the box and telnet to 192.168.1.1 | When the script exits (and you see no error message), you can safely reboot the box and telnet to 192.168.1.1 | ||
Zeile 119: | Zeile 123: | ||
Danach hat der Fonero die IP 192.168.1.1 und ist über TELNET erreichbar. | Danach hat der Fonero die IP 192.168.1.1 und ist über TELNET erreichbar. | ||
Happy hacking. | Happy hacking. | ||
=== Flashen direkt aus laufendem OpenWRT === | |||
Wenn OpenWRT bereits läuft kann man auch direkt auf eine neue Version updaten bzw. diese über die grade laufende Version drüber flashen. | |||
'''ABER VORSICHT!''' Das geht nur wenn die neuen Kernel- und Dateisystemimages gleich groß oder kleiner sind als die die aktuell installiert sind, sonst ist nicht genug Platz frei! In dem Fall müssen die Partitionen ohnehin neu angelegt werden - also eine der anderen hier beschriebenen Updateroutinen verwenden!! | |||
Zuerst per SSH einloggen, dann: | |||
<pre> | |||
cd /tmp | |||
scp user@host:/path/to/openwrt-atheros-vmlinux.lzma . | |||
scp user@host:/path/to/openwrt-atheros-root.squashfs . | |||
mtd -e vmlinux.bin.l7 write openwrt-atheros-vmlinux.lzma vmlinux.bin.l7 | |||
mtd -e rootfs write openwrt-atheros-root.squashfs rootfs | |||
</pre> | |||
Danach einfach neu starten (Stecker ziehen), per Telnet einloggen und den SSH Zugang neu aktivieren (siehe unten) | |||
=== set password after flashing === | === set password after flashing === | ||
Zeile 131: | Zeile 151: | ||
***** | ***** | ||
note: after flashing, the fingerprint of the router changes. in that case | note: after flashing, the fingerprint of the router changes. in that case delete the old entry for 192.168.1.1 from your ssh known_hosts file: | ||
[open ~/.ssh/known_hosts with your favourite editor] | |||
[remove the line starting with 192.168.1.1] | |||
ssh root@192.168.1.1 | ssh root@192.168.1.1 | ||
yes | yes | ||
Zeile 422: | Zeile 443: | ||
<b>NB! This has not been tested very well, so use with caution until it's been more quality assured.</b> | <b>NB! This has not been tested very well, so use with caution until it's been more quality assured.</b> | ||
Bugreports are welcome :) | Bugreports are welcome :) | ||
''kyrah says:'' I've tried cloning my Fonera (running OpenWrt) using these instructions, resulting in #fail: | |||
Looks like the rootfs_data partition is overwritten when firstboot is run. Must investigate further. | |||
==SOFTWARE== | ==SOFTWARE== |