doc:appunti:hardware:la_fonera_openwrt
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:hardware:la_fonera_openwrt [2008/10/27 09:06] – external edit 127.0.0.1 | doc:appunti:hardware:la_fonera_openwrt [2013/10/01 20:29] – niccolo | ||
---|---|---|---|
Line 3: | Line 3: | ||
In questa pagina trovate i miei appunti generici per aggiornare le immagini flash (il firmware) e in particolare per installare OpenWrt. Altri documenti migliori di questo: | In questa pagina trovate i miei appunti generici per aggiornare le immagini flash (il firmware) e in particolare per installare OpenWrt. Altri documenti migliori di questo: | ||
- | * Wiki ufficiale di OpenWrt: **[[http:// | + | * Wiki ufficiale di OpenWrt: **[[http:// |
* Istruzioni per compilare OpenWrt: **[[http:// | * Istruzioni per compilare OpenWrt: **[[http:// | ||
Line 198: | Line 198: | ||
====== OpenWrt ====== | ====== OpenWrt ====== | ||
- | Attualmente esistono | + | Sulla Fonera si possono installare |
- | | + | * [[http:// |
- | | + | * [[http:// |
+ | |||
+ | ===== Compilazione ===== | ||
+ | |||
+ | **ATTENZIONE: | ||
==== OpenWrt Download ==== | ==== OpenWrt Download ==== | ||
Line 263: | Line 267: | ||
^ 64k, 128k, ... | Most 4M flash chips use a block size of 64k while most 8M chips tend to use a 128k block size. The jffs2 partition needs to be formatted for the correct block size. | | ^ 64k, 128k, ... | Most 4M flash chips use a block size of 64k while most 8M chips tend to use a 128k block size. The jffs2 partition needs to be formatted for the correct block size. | | ||
- | ===== Flash dell' | + | ===== Flash dell' |
+ | |||
+ | Scaricati i file **openwrt-atheros-vmlinux.lzma** e **openwrt-atheros-root.squashfs** dal [[http:// | ||
+ | |||
+ | Avviata La Fonera e raggiunto il prompt RedBoot dalla console seriale. | ||
+ | |||
+ | |||
+ | < | ||
+ | RedBoot> ip_address -h 169.254.255.46 -l 169.254.255.1/ | ||
+ | IP: 169.254.255.1/ | ||
+ | Default server: 169.254.255.46 | ||
+ | |||
+ | RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma | ||
+ | Using default protocol (TFTP) | ||
+ | Raw file loaded 0x80040800-0x801207ff, | ||
+ | |||
+ | RedBoot> fis init | ||
+ | About to initialize [format] FLASH image system - continue (y/n)? y | ||
+ | *** Initialize FLASH Image System | ||
+ | ... Erase from 0xa87e0000-0xa87f0000: | ||
+ | ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ||
+ | |||
+ | RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7 | ||
+ | ... Erase from 0xa8030000-0xa8110000: | ||
+ | ... Program from 0x80040800-0x80120800 at 0xa8030000: .............. | ||
+ | ... Erase from 0xa87e0000-0xa87f0000: | ||
+ | ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ||
+ | |||
+ | RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs | ||
+ | Using default protocol (TFTP) | ||
+ | Raw file loaded 0x80040800-0x802207ff, | ||
+ | |||
+ | RedBoot> fis create rootfs | ||
+ | ... Erase from 0xa8110000-0xa82f0000: | ||
+ | ... Program from 0x80040800-0x80220800 at 0xa8110000: .............................. | ||
+ | ... Erase from 0xa87e0000-0xa87f0000: | ||
+ | ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ||
+ | |||
+ | RedBoot> fconfig -l -n | ||
+ | boot_script: | ||
+ | boot_script_data: | ||
+ | .. fis load -l vmlinux.bin.l7 | ||
+ | .. exec | ||
+ | |||
+ | boot_script_timeout: | ||
+ | bootp: false | ||
+ | bootp_my_gateway_ip: | ||
+ | bootp_my_ip: | ||
+ | bootp_my_ip_mask: | ||
+ | bootp_server_ip: | ||
+ | console_baud_rate: | ||
+ | gdb_port: 9000 | ||
+ | info_console_force: | ||
+ | net_debug: false | ||
+ | |||
+ | RedBoot> fconfig boot_script_data | ||
+ | boot_script_data: | ||
+ | .. fis load -l vmlinux.bin.l7 | ||
+ | .. exec | ||
+ | Enter script, terminate with empty line | ||
+ | >> fis load -l vmlinux.bin.l7 | ||
+ | >> exec | ||
+ | >> | ||
+ | Update RedBoot non-volatile configuration - continue (y/n)? y | ||
+ | ... Erase from 0xa87e0000-0xa87f0000: | ||
+ | ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ||
+ | |||
+ | RedBoot> reset | ||
+ | </ | ||
- | Prelevati i file **openwrt-atheros-2.6-vmlinux.lzma** e **openwrt-atheros-2.6-root.squashfs** da [[http:// | ||
- | Avviata La Fonera e raggiunto il prompt RedBoot dalla console seriale. Configurata la Ethernet specificando anche l' | ||
< | < |
doc/appunti/hardware/la_fonera_openwrt.txt · Last modified: 2013/10/01 20:50 by niccolo