martedì 20 novembre 2012

Compile a minimal OpenWRT build


I prefer using ArchLinux due to its bleeding edge packages version, but any linux distro will work fine.

pacman -S subversion git python python2 unzip base-devel(in case you don't have it, kinda odd though) - (http://wiki.openwrt.org/doc/howto/bu...gence#examples for other distros)
svn co svn://svn.openwrt.org/openwrt/trunk
cd trunk
./script/feeds update -a
./script/feeds install -a
make package/symlinks
make menuconfig 
Target System ---> Lantiq GPON/XWAY/SVIP
Subtarget ---> AR9
Target Profile ---> WBMR - Buffalo WBMR-HP-G300H
Target Images ---> squashfs (jffs2 if you want)
Advanced  configuration options
    Target Options ---> -Os -pipe -mips32r2 -mtune=34kc -fno-caller-saves
    Toolchain Options ---> GCC compiler Version ---> 4.6.x with Linaro or 4.7.x with Linaro
LuCI
    Collections --->   <*> luci
    Applications ---> <*> luci-app-ddns
                             <*> luci-app-upnp
Kernel Modules 
   Network Devices
    <*>kmod-ltq-dsl-firmware-a-ar9 for Annex A 
    <*>kmod-ltq-dsl-firmware-b-ar9 for Annex B - default - YOU MUST USE ONLY ONE
  Wireless Drivers
    <*>kmod-ath9k
Network    
    <*>hostap-mini
    <*>hostap-utils
Now you can save the configuration.
make ( make -jX - X for each CPU core)
cd bin/lantiq/
scp openwrt-lantiq-ar9-WBMR-squashfs.image root@192.168.1.1:
ssh root@192.168.1.1
mtd -r write openwrt-lantiq-ar9-WBMR-squashfs.image linux


Nessun commento:

Posta un commento