Fonera: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
Zeile 6: Zeile 6:
 
=== Mac OS X ===
 
=== Mac OS X ===
  
FON2200 am Mac OS X flashen (kein easyflash).
+
Since EasyFlash isn't available for Max OS X, we do this manually (FON2200 + ethernet only):
Für FON2200 + ethernet only:
 
  
 +
'''1. Set IP address of your Mac:'''
 
<pre>
 
<pre>
 
sudo ifconfig en0 192.168.1.254
 
sudo ifconfig en0 192.168.1.254
 
</pre>
 
</pre>
 +
 +
 +
'''2. Enable tftp'''
  
 
Either temporarily enable tftpd serving files from /private/tftpboot/:
 
Either temporarily enable tftpd serving files from /private/tftpboot/:
Zeile 29: Zeile 32:
 
</pre>
 
</pre>
  
openwrt(vmlinux+rootfs) files ins tftpdir kippen
+
'''3. Copy OpenWRT files to tftp dir:'''
 +
 
 +
These files are typically what you want to use:
 +
* openwrt-atheros-2.6-vmlinux.lzma
 +
* openwrt-atheros-2.6-root.squashfs
  
dann wie hier vorgehen:
+
'''4. Get access to the RedBoot bootloader:'''
http://forum.openwrt.org/viewtopic.php?pid=63402
+
 
 +
See also http://forum.openwrt.org/viewtopic.php?pid=63402.
  
 
<pre>
 
<pre>
 
echo -e "\003" > break
 
echo -e "\003" > break
 +
</pre>
 
fonera an den strom, wenn das 2te led zu blinken beginnt:
 
fonera an den strom, wenn das 2te led zu blinken beginnt:
 +
<pre>
 
nc -vvv 192.168.1.1 9000 < break;
 
nc -vvv 192.168.1.1 9000 < break;
 +
</pre>
 
danach ctrl+c
 
danach ctrl+c
 +
<pre>
 
telnet 192.168.1.1 9000
 
telnet 192.168.1.1 9000
 +
</pre>
 +
 +
-> You should now have a "RedBoot>" prompt. If not, rince and repeat.
  
 +
'''5. Flash new kernel and filesystem images in RedBoot:'''
 +
 +
In RedBoot:
 +
<pre>
 
fis init
 
fis init
load -r -b 0x80041000 openwrt-atheros-vmlinux.lzma
+
load -r -b 0x80041000 openwrt-atheros-2.6-vmlinux.lzma
 
fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
 
fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
load -r -b 0x80041000 openwrt-atheros-root.squashfs
+
load -r -b 0x80041000 openwrt-atheros-2.6-root.squashfs
 
fis create -l 0x06F0000 rootfs
 
fis create -l 0x06F0000 rootfs
fis load -l vmlinux.bin.l7
+
</pre>
exec
 
  
warten....
+
'''6. Reboot'''
  
telnet 192.168.1.1
+
You are now where EasyFlash ends.
</pre>
+
Wait for the boot to finish and telnet to 192.168.1.1 and set a root password.
  
 
=== Windows/Linux (easyflash): ===
 
=== Windows/Linux (easyflash): ===

Version vom 8. März 2008, 15:29 Uhr

Fonera

FLASHING

Mac OS X

Since EasyFlash isn't available for Max OS X, we do this manually (FON2200 + ethernet only):

1. Set IP address of your Mac:

sudo ifconfig en0 192.168.1.254


2. Enable tftp

Either temporarily enable tftpd serving files from /private/tftpboot/:

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist

..or permanently enable tftpd serving files from custom directory:

tftpserver config in /System/Library/LaunchDaemons/tftp.plist

disabled auf false
directory auf irgendein worldreadable dir
$sudo launchctl
load -F /System/Library/LaunchDaemons/tftp.plist
start com.apple.tftpd

3. Copy OpenWRT files to tftp dir:

These files are typically what you want to use:

  • openwrt-atheros-2.6-vmlinux.lzma
  • openwrt-atheros-2.6-root.squashfs

4. Get access to the RedBoot bootloader:

See also http://forum.openwrt.org/viewtopic.php?pid=63402.

echo -e "\003" > break

fonera an den strom, wenn das 2te led zu blinken beginnt:

nc -vvv 192.168.1.1 9000 < break;

danach ctrl+c

telnet 192.168.1.1 9000

-> You should now have a "RedBoot>" prompt. If not, rince and repeat.

5. Flash new kernel and filesystem images in RedBoot:

In RedBoot:

fis init
load -r -b 0x80041000 openwrt-atheros-2.6-vmlinux.lzma
fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
load -r -b 0x80041000 openwrt-atheros-2.6-root.squashfs
fis create -l 0x06F0000 rootfs

6. Reboot

You are now where EasyFlash ends. Wait for the boot to finish and telnet to 192.168.1.1 and set a root password.

Windows/Linux (easyflash):

http://downloads.berlin.freifunk.net/fonera/

[ ]	ap51-flash-fonera-1.0-38	18-Dec-2007 19:10 	3.3M
[ ]	ap51-flash-fonera-gui-1.0-38.exe	18-Dec-2007 19:12 	3.3M

Passendes Tool runterladen.


http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/
 [   ] openwrt-atheros-2.6-root.jffs2-64k                 30-Sep-2007 20:16  1.6M  
 [   ] openwrt-atheros-2.6-vmlinux.lzma                   30-Sep-2007 20:16  768K   

die beiden runterladen.



Jetzt kommts..
1. Fonera mit ETHERNETKABEL an eth0 anstecken.
2. ./ap51-flash-fonera-1.0-38 eth0 openwrt-atheros-2.6-root.jffs2-64k  openwrt-atheros-2.6-vmlinux.lzma 
3. Strom an den Fonera anstecken 


Der Fonera schickt nun beim hochfahren einen ARP request raus, das Flashtool wartet darauf und tut dann seine Magie.
Der ganze Flashvorgang dauert rund _15_ Minuten.
Zuerst sieht man die IP vom Router 
Dann steht da was von 
Loading RootFS ..
Writing RootFS..  (10 Minuten)
Loading Kernel ..
Writing Kernel.. 
Rebooting Device..


Fertig.

Danach hat der Fonero die IP 192.168.1.1 und ist über TELNET erreichbar.
Happy hacking.











SOFTWARE

software zum flashen + packages .. http://download.berlin.freifunk.net/fonera/


Buildchain http://wiki.openwrt.org/BuildingPackagesHowTo

svn co https://svn.openwrt.org/openwrt/tags/kamikaze_7.09

http://forum.openwrt.org/viewtopic.php?pid=31794#p31794


Fettes ipkg repository http://downloads.openwrt.org/kamikaze/packages/mips/

HARDWARE

LCD am fonera? http://www.lefinnois.net/wpen/index.php/2007/11/11/lcd-screen-for-la-fonera/

I2C bus? http://www.lefinnois.net/wpen/index.php/2007/05/13/i2c-bus-for-la-fonera/

SD card am fonera? http://www.larsen-b.com/Article/262.html http://phrozen.org/fonera.html


GPIO kernel modul http://mobileaccess.de/fonera/gpio/ http://daubau.net/proc_gpio/

Fertig compiliertes GPIO kernelmodul im feschen .ipk + src Media:Kamikaze_7.09_GPIOkmod.tar.gz