WZR-HP-AG300H » History » Version 3

« Previous - Version 3/5 (diff) - Next » - Current version
Alexey Trenikhin, 10/10/2012 03:16 PM


  • Get zrouter and zrouter's FreeBSD source trees as described in Quickstart
  • Copy zrouter/boards/D-Link/DIR-825/* to zrouter/boards/Buffalo/WZR-HP-AG300H
  • Edit zrouter/boards/Buffalo/WZR-HP-AG300H/boards.hints
    •* (GEOM MAP)"flash/spi0""bootloader"
    • Edit zrouter/boards/Buffalo/WZR-HP-AG300H/
      Specify board flash size

      Specify board memory
      # Board have 128M of RAM
      KERNCONF_OPTIONS+=    AR71XX_REALMEM=128*1024*1024

      Set maximum firmware size
      # Image must not be biggest than GEOM_MAP_P2 (upgrade part.)
  • Build
    • make TARGET_PAIR=Buffalo/WZR-HP-AG300H. This will produce Buffalo_WZR-HP-AG300H.zimage under $OBJ_DIR/...
    • Prepare TFTP image. I have used buffaulo-tftp utility from OpenWRT (in future should be included into build)
      (echo -n "# Airstation FirmWareNrun u_fwNresetNN" | tr "N" "\012" | dd bs=512 count=1 conv=sync; dd if=Buffalo_WZR-HP-AG300H.zimage) > tftp.tmp
      buffalo-tftp -i tftp.tmp -o Buffalo_WZR-HP-AG300H-tftp.bin

      Resulting Buffalo_WZR-HP-AG300H-tftp.bin can be flashed via tftp. (I believe Buffalo_WZR-HP-AG300H.zimage can be flashed via OpenWRT upgrade utility, but I never tried)
  • flash