Zum Inhalt springen

Fonera: Unterschied zwischen den Versionen

MovGP0 (Diskussion | Beiträge)
AndiS (Diskussion | Beiträge)
 
(13 dazwischenliegende Versionen von 5 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 14: Zeile 18:
'''2. Enable tftp'''
'''2. Enable tftp'''


Alternative 1:
Get [http://ww2.unime.it/flr/tftpserver/ TFTPServer], point it to the directory that contains the firmware; it needs to be world-read/writable; you can let that program fix permissions for you.
Get [http://ww2.unime.it/flr/tftpserver/ TFTPServer], point it to the directory that contains the firmware; it needs to be world-read/writable; you can let that program fix permissions for you.
Altenative 2: Use the tftp server which comes with Mac OS X:
<pre>
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
</pre>


'''3. Copy OpenWRT files to tftp dir:'''
'''3. Copy OpenWRT files to tftp dir:'''
Zeile 70: 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 113: 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 125: Zeile 151:
  *****
  *****


note: after flashing, the fingerprint of the router changes. in that case you can delete the known-hosts file from ssh:  
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:  
  rm ~/.ssh/known_hosts
  [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 211: Zeile 238:
   option dns 10.0.0.138          # dns server
   option dns 10.0.0.138          # dns server
</pre>
</pre>
''Note:'' Routing is enabled by default, so you usually don't have to configure routing tables.




Zeile 298: Zeile 326:




; Example 2<nowiki>:</nowiki><br/>Configure an WDS
; Example 2<nowiki>:</nowiki><br/>Configure WDS
:WDS Access Point (WDS-AP)
 
 
:WDS Access Point (WDS-AP; first node)
<pre>
<pre>
config wifi-device wifi0
config wifi-device wifi0
Zeile 320: Zeile 350:
   option key      ***********        # google 'wep key generator' to get a key
   option key      ***********        # google 'wep key generator' to get a key
</pre>
</pre>
:WDS-Station (WDS-STA)
 
 
:WDS-Station (WDS-STA; all other nodes)
<pre>
<pre>
config wifi-device wifi0
config wifi-device wifi0
Zeile 381: Zeile 413:
== MESH NETWORKS ==
== MESH NETWORKS ==
For Mesh Networks you have to install one of
For Mesh Networks you have to install one of
* olsrd (may produce routing loops)
* olsrd (may produce routing loops, but standardized and most widely deployed)
* batman (also included in the [http://www.blogin.it/ robin firmware]; does not scale)
* batman (also included in the [http://www.blogin.it/ robin firmware]; does not scale for big networks; beta)
* babel (also works with wired connections)
* babel (also works with wired connections; beta)
on all your nodes.  
on all your nodes.  


Zeile 411: 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==