Zum Inhalt springen

Fonera: Unterschied zwischen den Versionen

Pepi (Diskussion | Beiträge)
MariusKintel (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 10: Zeile 10:
'''1. Set IP address of your Mac:'''
'''1. Set IP address of your Mac:'''
<pre>
<pre>
sudo ifconfig en0 192.168.1.166
sudo ifconfig en0 192.168.1.254
</pre>
</pre>


antifuchs says: this does not work reliably on Leopard. What does work is: In Network.prefpane, Make a new network location, make inactive every device except ethernet; set ethernet config to "Manual", configure IP address 192.168.1.166. Then select that location as your current location.
antifuchs says: this does not work reliably on Leopard. What does work is: In Network.prefpane, Make a new network location, make inactive every device except ethernet; set ethernet config to "Manual", configure IP address 192.168.1.254. Then select that location as your current location.


'''2. Enable tftp'''
'''2. Enable tftp'''
Zeile 52: Zeile 52:
'''Flash new kernel and filesystem images in RedBoot:'''
'''Flash new kernel and filesystem images in RedBoot:'''


In RedBoot (assuming you configured the machine with the tftp server to 192.168.1.166):
In RedBoot (assuming you configured the machine with the tftp server to 192.168.1.254):
<pre>
<pre>
ip_address -h 192.168.1.166
fis init
fis init
load -r -b 0x80041000 openwrt-atheros-2.6-vmlinux.lzma
load -r -b 0x80041000 openwrt-atheros-2.6-vmlinux.lzma
Zeile 69: Zeile 68:
====Flashing automatically (the lazy approach)====
====Flashing automatically (the lazy approach)====


Get this expect script: [http://boinkor.net/misc/flashit.expect flashit.expect], make sure your ethernet device is configured to use 192.168.1.166 (or edit the script to reflect your reality), plug in the box, wait for the second light to flash + 2 seconds, then run
Get this expect script (written by [[Benutzer:Antifuchs|Antifuchs]] and [[Benutzer:MariusKintel|Marius]]):
<pre>
https://whatever.metalab.at/user/kintel/fonera/flashit.expect
$ expect flashit.expect
 
</pre>
Usage:<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
2. Connect and power up the Fonera<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
I added some error and cmd-line parameter handling to the script, and updated it to use the default IP addresses.
NB! Not very well tested, use at your own risk for now. [[Benutzer:MariusKintel|MariusKintel]] 19:14, 9. Mär. 2008 (CET)
https://whatever.metalab.at/user/kintel/fonera/flashit.expect
Caution: You need to add the following line after line 29 in Marius' script to actually make it work.
<pre>expect timeout abort $prompt { send "ip_address -h 192.168.1.166\n" }</pre>
I kept the IP common to this article. Adjust the IP to your reality if needed.
--[[Benutzer:Pepi|Pepi]] 00:08, 24. Mär. 2008 (CET)


=== Windows/Linux (easyflash): ===
=== Windows/Linux (easyflash): ===