Docstoc

Meraki flashing guide

Document Sample
Meraki flashing guide Powered By Docstoc
					MERAKI FLASH Instructions- Scroll to the bottom of this readme... Fonera Redboot Instructions- REDBOOT FLASH GUIDE FOR OPENWRT DD-WRT IF YOU ALREADY HAVE OPENWRT INSTALLED, YOU CAN SWITCH TO LEGEND WITH A FEW SIMPLE mtd COMMANDS, SEE THE upgrade.txt FILE IN THIS FOLDER (note that Legend Revisions 4.5 and higher have an upgrade script and a webif upgrade tab built-in. DD-WRT uses nvram which make things complicated, so flash-fresh if you are moving to or from DD-WRT. Kill all software firewalls before attempting to flash (XP firewall is generally ok). This goes for Redboot and the freifunk utility usage. Ignore all "AHB ERROR" messages from Redboot. Really. Set your networking card to IP:192.168.1.166 (the "166" can be any legitimate IP number but 254) gateway 192.168.1.254, dns 192.168.1.254. Plug a networking cable from your fon into your PC. Host the image files with tftpd32 ( http://moo.akacrasher.com/~philippej/tftpd32_download.html ) or pumpkin ( http://kin.klever.net/dist/pumpkin-2.7.exe ). All tools are also mirrored on this site. You'll want the files in the same directory as the uploader application (I use tftpd32). Which files do I mean?... for DD-WRT: root.fs vmlinux.bin.l7 for OpenWrt: openwrt-atheros-2.6-root.jffs2-64k openwrt-atheros-2.6-vmlinux.lzma (.gz if you have a meraki mini. Gz kernels take up slightly more room so the firmware cannot be the same size as the maximal fonera firmware, which seems to be around 3,200KB. You'd still have plenty of room to install packages thanks to 8MB of flash.) Start the TFTP application and make sure it's setup to the right IP address (192.168.1.166). If you JUST installed redboot and its out.hex configuration file, you will not have to catch Redboot before it loads a firmware, it will be waiting for you. If you need to catch it: Run cmd.exe in windows, type in "ping 192.168.1.254" but don't hit enter yet. Pull up Putty and set it to TELNET 192.168.1.254 and then port 9000, but don't connect yet. Unplug the foneras power, plug it back in, and as so soon as your network cards LEDs light up, press enter on the cmd command prompt window to ping (this is after a few seconds, if you use a switch in-between the lights will already be on). As soon as the "no route to host" lines end and the you start getting replies, immediately connect with Putty. You'll have redboot waiting, quickly hit Ctrl-C to stop it from going anywhere. Now that you have access to Redboot (if you had serial access you would have been here 20 minutes ago), type in the following commands ONE-BY-ONE (FOR 2.6.21.1 or greater kernel-based firmwares) (NEW KERNEL)

DD-WRT Code: All DD-WRT flashing involves the same instructions, see DD-WRT info below: OPENWRT Code: ip_addr -h 192.168.1.166 -l 192.168.1.254/24 fis init load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-root.jffs2-64k fis create -f 0xA8030000 -l 0x006F0000 rootfs load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7 reset (FOR < 2.6.21.1 (OLD KERNEL) (most, including current DD-WRT) kernelbased firmwares) DD-WRT Code: ip_addr -h 192.168.1.166 -l 192.168.1.254/24 fis init load -r -v -b %{FREEMEMLO} root.fs fis create -f 0xA8030000 -l 0x002C0000 rootfs load -r -v -b %{FREEMEMLO} vmlinux.bin.l7 fis create -r 0x80041000 -e 0x80041000 -l 0x000E0000 vmlinux.bin.l7 fis create -f 0xA83D0000 -l 0x00010000 -n nvram reset OPENWRT Code: ip_addr -h 192.168.1.166 -l 192.168.1.254/24 fis init

load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-root.jffs2-64k fis create -f 0xA8030000 -l 0x00700000 rootfs load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7 reset Note that if you are loading openwrt the first 'fis create' command can take up to 45 minutes, be patient, IT WON'T CRASH ON YOU. Note that these instructions work with both fon2100 and fon2200 models, so feel at ease that there is finally a unified flashing guide. You'll need to have followed one of the fon hacking guides to have either enabled SSH or used the serial port to install Redboot (kolofonium hack still works, but you need to permanently enable SSH once kolofonium temporarily grants it to you: http://stefans.datenbruch.de/lafonera/ ) MERAKI MINI: To flash my firmware onto a Meraki Mini, you'll need the special kernel in the meraki_mini folder AND the openwrt-atheros-2.6-root.jffs2-64k root filesystem from the fonera folder. To flash: Fonera: Proceed to the fonera folder and Flash openwrt-atheros-2.6root.jffs2-64k and openwrt-atheros-2.6-vmlinux.lzma Meraki Mini: Retrieve the special meraki kernel from the meraki_mini folder, use this in place of the openwrt-atheros-2.6-vmlinux.lzma kernel. You still need the openwrt-atheros-2.6-root.jffs2-64k rootfs from the fonera folder. More information: The Meraki Mini needs a special bootloader appended to its kernel in order to use lzma kernel images. USE THE NORMAL FLASH INSTRUCTIONS ABOVE WITH THE SPECIAL MERAKI lzma KERNEL. IF YOU NEED TO FLASH A gz kernel for some reason: (only use this if you are using a gz and not an lzma kernel) _________________________________________________________ fis init load -r -v -b 0x80041000 openwrt-atheros-2.6-root.jffs2-64k fis create -b 0x80041000 -f 0xA8030000 -l 0x006A0000 -e 0x00000000 rootfs load -r -v -b 0x80041000 openwrt-atheros-2.6-vmlinux.gz fis create -r 0x80041000 -l 0x00100000 -e 0x80041000 linux fconfig fis load -d linux exec

__________________________________________________________ I'd say you could skip the "fis load -d linux" and "exec" lines, since if you "reset" the router executes these from its configuration anyway (resetting after flashing isn't a bad idea). It would be a good idea to run "fconfig" in redboot to check to see if the configuration still has these commands (if you have a serious flash problem, they can be cleared).


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:316
posted:1/3/2009
language:English
pages:4