wiki:cambria/openwrt

Version 1 (modified by trac, 6 months ago) (diff)

--

Building OpenWrt for the Gateworks Cambria Platform

Please refer here for instructions on building OpenWrt for the Gateworks products.

Installing firmware to Cambria Board via Serial/ENET

To install firmware to a Cambria board using Serial/ENET once your kernel/rootfs are on a network attached tftpserver TFTP Instructions do the following:

  1. Connect your target board to your network, set ipaddress and serverip in redboot
    • boot the board and hit a key to enter into u-boot prompt
      Redboot> ip_address -l <localip> -h <serverip>
      
    • For example: Set localip to 192.168.1.211 and serverip to 192.168.1.14
      Redboot> ip_address -l 192.168.1.211 -h 192.168.1.14
      
  1. Unlock flash blocks:
    Redboot> fis unlock -f 0x50000000 -l 0x2000000
    
    • Note: the length param (-l 0x2000000) above differs depending on the flash size of the board:
      • 32MB FLASH - 0x2000000
  1. Initialize redboot partition table
    Redboot> fis init -f
    
  1. Download kernel
    Redboot> load -r -v -b 0x00800000 ixp4xx/openwrt-ixp4xx-generic-zImage
    
  1. create/write linux partition
    Redboot> fis create linux
    
  1. Download rootfs
    Redboot> load -r -v -b 0x00800000 ixp4xx/openwrt-ixp4xx-generic-squashfs.img
    
  1. create/write rootfs partition
    Redboot> fis create -l 0x1e60000 rootfs
    
    • Note: the length param above may differ depending on the flash size of the board (and the flash map you have chosen):
      • 32MB FLASH (allowing for 1MB kernel) - 0x1e60000 (provides 30.375MB for rootfs)
  1. create boot script
    Redboot> fconfig
    
    • specify a boot script of:
      fis load linux
      exec
      
  1. Reboot the board
    Redboot> reset
    

See also: