Firmware compiling 1.9.2.7 rtn - ovpet/wl500g GitHub Wiki

1. Required software

  • Linux with the following packages installed
    • standard compilation software
    • libncurses-dev
    • gawk
    • g++
    • flex
    • bison
    • zlib development
    • git

2. Download the additional tools/sources

3. Unpack the archives and prepare the building tree

  1. Unpacking (replace the path /whatever-you-want with the one, where your building tree will be located),
    mkdir -p /opt/brcm
    tar -C /opt/brcm -jxvf hndtools-mipsel-uclibc-4.6.4-K26-r5128.tar.bz2
    ln -sf /opt/brcm/hndtools-mipsel-uclibc-4.6.4-K26 /opt/brcm/hndtools-mipsel-uclibc

  2. Checking out firmware sources
    git clone http://github.com/wl500g/wl500g.git /whatever-you-want/broadcom/src

4. Building

  1. Preparation
    $ cd /whatever-you-want/broadcom/src/gateway
    $ make config

  2. Model selection

  • select one or more models from Router Models menu
  • exit & save new configuraton
  1. Compiling
    $ cd /whatever-you-want/broadcom/src/gateway
    $ make
    $ make install

  2. Firmware image and extra kernel modules resides under /whatever-you-want/broadcom/src/gateway/mipsel-uclibc/

  • Mostly precision update also possible, but it requires knowledge of development tools such as patch, make etc., and they cannot be described in this HowTo.