doc:appunti:hardware:la_fonera_openwrt
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous 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:50] (current) – [Flash dell'immagine OpenWrt Backfire] 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' |
| - | Prelevati i file **openwrt-atheros-2.6-vmlinux.lzma** e **openwrt-atheros-2.6-root.squashfs** da [[http://downloads.openwrt.org/ | + | Qui le istruzioni ufficiali: |
| - | Avviata La Fonera | + | Scaricati i file **openwrt-atheros-vmlinux.lzma** |
| - | < | + | Avviata La Fonera e raggiunto il prompt |
| - | RedBoot> ip_address -l 169.254.255.1/ | + | |
| - | IP: 169.254.255.1/ | + | |
| - | Default server: 169.254.255.46 | + | |
| - | </ | + | |
| - | + | ||
| - | Si carica l'immagine del kernel dal server tftp. L'immagine viene caricata | + | |
| < | < | ||
| Line 285: | Line 283: | ||
| FIS directory | FIS directory | ||
| RedBoot config | RedBoot config | ||
| + | </ | ||
| - | RedBoot> load -r -b 0x80041000 | + | Si carica in RAM l' |
| + | |||
| + | < | ||
| + | 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} | ||
| Using default protocol (TFTP) | Using default protocol (TFTP) | ||
| - | Raw file loaded | + | Raw file loaded |
| - | </ | + | |
| - | Si crea la nuova immagine nella memoria | + | RedBoot> fis init |
| + | About to initialize [format] | ||
| + | *** Initialize FLASH Image System | ||
| + | ... Erase from 0xa87e0000-0xa87f0000: . | ||
| + | ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ||
| - | < | ||
| RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7 | RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7 | ||
| - | An image named ' | + | ... Erase from 0xa8030000-0xa8110000: .............. |
| - | ... Erase from 0xa8730000-0xa87e0000: ........... | + | ... Program from 0x80040800-0x80120800 |
| - | ... Program from 0x80041000-0x800f1000 | + | |
| ... Erase from 0xa87e0000-0xa87f0000: | ... Erase from 0xa87e0000-0xa87f0000: | ||
| ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ||
| </ | </ | ||
| - | Si carica in RAM anche l' | + | Si carica in RAM via ftp l' |
| < | < | ||
| - | RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-root.squashfs | + | RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs |
| Using default protocol (TFTP) | Using default protocol (TFTP) | ||
| - | Raw file loaded 0x80040800-0x801607ff, assumed entry at 0x80040800 | + | Raw file loaded 0x80040800-0x802207ff, assumed entry at 0x80040800 |
| + | |||
| + | RedBoot> fis create rootfs | ||
| + | ... Erase from 0xa8110000-0xa82f0000: | ||
| + | ... Program from 0x80040800-0x80220800 at 0xa8110000: .............................. | ||
| + | ... Erase from 0xa87e0000-0xa87f0000: | ||
| + | ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ||
| </ | </ | ||
| - | Si crea la nuova immagine FLASH, tutti i valori predefiniti sono dedotti dal comando **load** dato in precedenza, si indica solo l' | + | Si verifica |
| < | < | ||
| - | RedBoot> | + | RedBoot> |
| - | An image named ' | + | boot_script: |
| - | ... Erase from 0xa8030000-0xa8730000: .................................. | + | boot_script_data: |
| - | ... Program from 0x80040800-0x80160800 at 0xa8030000: .................. | + | .. 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: | ... Erase from 0xa87e0000-0xa87f0000: | ||
| ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . | ||
| </ | </ | ||
| - | Come si vede l' | + | Infine |
| - | + | ||
| - | < | + | |
| - | RedBoot> fis list | + | |
| - | Name FLASH addr Mem addr Length | + | |
| - | RedBoot | + | |
| - | rootfs | + | |
| - | vmlinux.bin.l7 | + | |
| - | FIS directory | + | |
| - | RedBoot config | + | |
| - | </ | + | |
| < | < | ||
| Line 337: | Line 362: | ||
| </ | </ | ||
| - | + | OpenWrt Backfire installa l' | |
| - | + | ||
| - | + | ||
| ====== Configurare OpenWrt ====== | ====== Configurare OpenWrt ====== | ||
doc/appunti/hardware/la_fonera_openwrt.1225094808.txt.gz · Last modified: (external edit)
