![]() |
Building OpenWrt firmware for NSLU2 from sourcePrerequisites:
Command line example for kamikaze 7.09$ mkdir openwrt $ cd openwrt $ wget http://downloads.openwrt.org/kamikaze/7.09/kamikaze_7.09.tar.bz2 $ tar xvjf kamikaze_7.09.tar.bz2 $ cd kamikaze_7.09 $ mkdir dl $ mv /tmp/IPL_ixp400NpeLibrary-2_4.zip dl [moved downloaded file from /tmp to dl dir] $ make menuconfig [select Target System (Intel XScale IXP4xx [2.6]) and Target Profile (Linksys NSLU2)] $ make ... You will find in bin directory file openwrt-nslu2-2.6-squashfs.bin that can be uploaded to nslu2 using UpSlug2 tool like $ sudo upslug2 -i bin/openwrt-nslu2-2.6-squashfs.bin If you want to change any of the default build configurations under 'make menuconfig', be aware that the naming convention for selected items works a little differently for the OpenWrt tree. <*> means include package in firmware image <M> means compile package, but exclude from firmware image < > means do not compile package In order to modify the default kernel configuration, run 'make kernel_menuconfig'. Kernel modules tagged for inclusion under 'make menuconfig' seem also to need to be flagged to be built under 'make kernel_menuconfig' - or they will not be compiled and included in your image. Building snapshot release from trunkLatest (unstable) release of OpenWrt can be built with checking out from subversion repository $ svn checkout https://svn.openwrt.org/openwrt/trunk kamikaze $ cd kamikaze $ make menuconfig $ mkdir dl $ cp /tmp/dl/IPL_ixp400NpeLibrary-2_4.zip dl $ make Note that latest version of build firmware defaults network to 192.168.1.1 and that there is no default gateway nor nameserver set. This could be changed by adding option dns 192.168.1.1
option gateway 192.168.1.1
to /etc/config/network
Correct src snapshots http://downloads.openwrt.org/snapshots/ixp4xx-2.6/packages src packages http://downloads.openwrt.org/kamikaze/packages/armeb src nslu2 http://ipkg.nslu2-linux.org/feeds/openwrt/kamikaze-7.09 src optware http://ipkg.nslu2-linux.org/feeds/optware/openwrt-ixp4xx/cross/unstable dest root / dest ram /tmp X-wrt webifWith default OpenWrt selection there is no X-Wrt included and thus no webif interface on http://192.168.1.77/ For that one must manually install webif with the following instructions:
src release http://downloads.openwrt.org/kamikaze/7.09/ixp4xx-2.6/packages
src packages http://downloads.openwrt.org/kamikaze/packages/armeb
src nslu2 http://ipkg.nslu2-linux.org/feeds/openwrt/kamikaze-7.09
src optware http://ipkg.nslu2-linux.org/feeds/optware/openwrt-ixp4xx/cross/unstable
dest root /
dest ram /tmp
src X-Wrt http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/ixp4xx-2.6/packages
view ·
edit ·
print ·
history ·
Last edited by stefan keller-tuberg.
Based on work by stefan keller-tuberg, maciek, Daniel Albuquerque - danielimpabr, fcarolo, and oleo. Originally by oleo. Page last modified on May 08, 2008, at 04:48 AM
|