Monday, June 4 2012

Εγκατάσταση openwrt στο GW AVILA light

Η AVILA LIGHT είναι μια εκδοχή του board AVILA της GATEWORKS. Φαίνεται ότι κυκλοφορούν διάφορες εκδοχές. Η συγκεκριμένη που ήρθε στα χέρια μου, σε αντίθεση με την επίσημη AVILA, δεν είχε υποδοχή για κάρτα CF και έφερε 8 MB FLASH.

gateworks-2348-4.jpg

Για να φορτωθεί η έκδοση openwrt backfire 10.03.1, χρειάστηκαν τα παρακάτω:

Σταδιο Α. Φλασάρισμα του bootloader.

Καταρχήν δοκιμάστε το στάδιο Β κατευθείαν, μην τυχόν στην δική σας AVILA δεν χρειάζεται να φλασαριστεί ο bootloader. Αν τελικά χρειαστεί, το αρχείο είναι εδώ.

  • Συνδέστε με σειριακό καλώδιο το board με τον Η/Υ (baud 115200, 8, 1, no xflow) και ανοίξτε ένα terminal.
  • Ξεκινήστε έναν tftp server στον Η/Υ, στην διεύθυνση που θα σας πεί το avila ξεκινώντας (Default Server).

Οι εντολές είναι οι ακόλουθες:

RedBoot> fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0x00020000-0x00070000: .....
... Erase from 0x00080000-0x00080000:
... Erase from 0x00070000-0x00080000: .
... Program from 0x0606f000-0x0607f000 at 0x00070000:

RedBoot> load -r -b %{FREEMEMLO} redboot_ROM.bin
Raw file loaded 0x06046800-0x06062fe8, assumed entry at 0x06046800

RedBoot> cksum

RedBoot> fis unlock RedBoot
... Unlock from 0x00000000-0x00020000: ..
RedBoot> fis create RedBoot -n
An image named 'RedBoot' exists - continue (y/n)? y
* CAUTION * about to program 'RedBoot'
at 0x00000000..0x0001c7e7 from 0x06046800 - continue (y/n)? y
... Erase from 0x00000000-0x00020000: ..
... Program from 0x06046800-0x06062fe8 at 0x00000000: ..
... Erase from 0x00070000-0x00080000: .
... Program from 0x0606f000-0x0607f000 at 0x00070000: .
RedBoot> fis lock RedBoot
... Lock from 0x00000000-0x00020000: ..

reset

Βασικές οδηγίες εδώ και εδώ.

Στάδιο Β: Φλασάρισμα του openwrt

Κατεβάστε τα αρχεία openwrt-avila-zImage και openwrt ipx4xx-generic-squashfs.img από εδώ.

Οι εντολές είναι οι ακόλουθες:

RedBoot> ^C
RedBoot> fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0x50080000-0x50fe0000: .....................................................................................................................
... Unlock from 0x50fe0000-0x51000000: .
... Erase from 0x50fe0000-0x51000000: .
... Program from 0x03fe0000-0x04000000 at 0x50fe0000: .
... Lock from 0x50fe0000-0x51000000: .
RedBoot> load -r -b %{FREEMEMLO} openwrt-avila-zImage
Using default protocol (TFTP)
Raw file loaded 0x00029c00-0x0010d0e3, assumed entry at 0x00029c00
RedBoot> fis create kernel
... Erase from 0x50080000-0x50180000: ........
... Program from 0x00029c00-0x0010d0e4 at 0x50080000: ........
... Unlock from 0x50fe0000-0x51000000: .
... Erase from 0x50fe0000-0x51000000: .
... Program from 0x03fe0000-0x04000000 at 0x50fe0000: .
... Lock from 0x50fe0000-0x51000000: .
RedBoot> load -r -b %{FREEMEMLO} openwrt-ixp4xx-generic-squashfs.img
Using default protocol (TFTP)
Raw file loaded 0x00029c00-0x00129bff, assumed entry at 0x00029c00
RedBoot> fis create -l 0x680000 rootfs
... Erase from 0x50180000-0x50f80000: ................................................................................................................
... Program from 0x00029c00-0x00129c00 at 0x50180000: ........
... Unlock from 0x50fe0000-0x51000000: .
... Erase from 0x50fe0000-0x51000000: .
... Program from 0x03fe0000-0x04000000 at 0x50fe0000: .
... Lock from 0x50fe0000-0x51000000: .
RedBoot> fis free
0x50F80000 .. 0x50FE0000
RedBoot> fconfig
Run script at boot: true
Boot script:
.. fis load linux
.. exec
Enter script, terminate with empty line
>> fis load kernel
>> go
>>
Boot script timeout (100ms resolution): 25
Use BOOTP for network configuration: false
Gateway IP address: 192.168.3.1
Local IP address: 192.168.3.2
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.3.1
Console baud rate: 115200
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Default network device: npe_eth0
Update RedBoot non-volatile configuration - continue (y/n)? y
... Unlock from 0x50fe0000-0x51000000: .
... Erase from 0x50fe0000-0x51000000: .
... Program from 0x03fe0000-0x04000000 at 0x50fe0000: .
... Lock from 0x50fe0000-0x51000000: .
RedBoot> fis load kernel
RedBoot> go

Οι παραπάνω οδηγίες είναι μια διαφορετική εκδοχή των οδηγιών του acoul που βρίσκονται εδώ.

Ένα ακόμη χρήσιμο link εδώ.