User Tools

Site Tools


doc:appunti:hardware:la_fonera_openwrt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
doc:appunti:hardware:la_fonera_openwrt [2013/10/01 20:23] – [OpenWrt] niccolodoc:appunti:hardware:la_fonera_openwrt [2013/10/01 20:29] niccolo
Line 202: Line 202:
   * [[http://downloads.openwrt.org/kamikaze/8.09.2/atheros/]]   * [[http://downloads.openwrt.org/kamikaze/8.09.2/atheros/]]
   * [[http://downloads.openwrt.org/backfire/10.03.1/atheros/]]   * [[http://downloads.openwrt.org/backfire/10.03.1/atheros/]]
 +
 +===== Compilazione =====
 +
 +**ATTENZIONE:** Operazione da fare solo in casi particolari, la distribuzione binaria precompilata va più che bene.
  
 ==== 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'immagine OpenWrt Kamikaze =====+===== Flash dell'immagine OpenWrt Backfire ===== 
 + 
 +Scaricati i file **openwrt-atheros-vmlinux.lzma** e **openwrt-atheros-root.squashfs** dal [[http://downloads.openwrt.org/backfire/10.03.1/atheros/|repository]] e resi disponibili sul server **tftp** all'indirizzo IP **169.254.255.46**. 
 + 
 +Avviata La Fonera e raggiunto il prompt RedBoot dalla console seriale. 
 + 
 + 
 +<code> 
 +RedBoot> ip_address -h 169.254.255.46 -l 169.254.255.1/24 
 +IP: 169.254.255.1/255.255.255.0, Gateway: 0.0.0.0 
 +Default server: 169.254.255.46 
 + 
 +RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma 
 +Using default protocol (TFTP) 
 +Raw file loaded 0x80040800-0x801207ff, assumed entry at 0x80040800 
 + 
 +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, 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: . 
 + 
 +RedBoot> fconfig -l -n 
 +boot_script: true 
 +boot_script_data:  
 +.. fis load -l vmlinux.bin.l7 
 +.. exec 
 + 
 +boot_script_timeout:
 +bootp: false 
 +bootp_my_gateway_ip: 0.0.0.0 
 +bootp_my_ip: 0.0.0.0 
 +bootp_my_ip_mask: 255.255.255.255 
 +bootp_server_ip: 0.0.0.0 
 +console_baud_rate: 9600 
 +gdb_port: 9000 
 +info_console_force: false 
 +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 
 +</code>
  
-Prelevati i file **openwrt-atheros-2.6-vmlinux.lzma** e **openwrt-atheros-2.6-root.squashfs** da [[http://downloads.openwrt.org/kamikaze/]] e resi disponibili sul server **tftp** all'indirizzo IP **169.254.255.46**. 
  
-Avviata La Fonera e raggiunto il prompt RedBoot dalla console seriale. Configurata la Ethernet specificando anche l'indirizzo del server tftp: 
  
 <code> <code>
doc/appunti/hardware/la_fonera_openwrt.txt · Last modified: 2013/10/01 20:50 by niccolo