doc:appunti:hardware:la_fonera_openwrt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:hardware:la_fonera_openwrt [2013/10/01 18:23] – [OpenWrt] niccolo | doc:appunti:hardware:la_fonera_openwrt [2013/10/01 18:38] – [Flash dell'immagine OpenWrt Backfire] niccolo | ||
---|---|---|---|
Line 202: | Line 202: | ||
* [[http:// | * [[http:// | ||
* [[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 | + | Scaricati |
- | Avviata La Fonera e raggiunto il prompt RedBoot dalla console seriale. Configurata la Ethernet specificando anche l' | + | Avviata La Fonera e raggiunto il prompt RedBoot dalla console seriale, |
- | + | ||
- | < | + | |
- | 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 281: | ||
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 | + | |
- | </ | + | |
< | < | ||
RedBoot> reset | RedBoot> reset | ||
</ | </ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
====== Configurare OpenWrt ====== | ====== Configurare OpenWrt ====== | ||
doc/appunti/hardware/la_fonera_openwrt.txt · Last modified: 2013/10/01 18:50 by niccolo