| ASUS WL-Series Cross-Compiling Guide |
|
|
|
| Written by macsat | |
| Friday, 25 November 2005 | |
After finishing this guide, you should be able to create the .ipk packages available in the official WL500g package feed at http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/
Tutorial Index1. Prerequisites - What is needed to get started.2. Setting up the software 3. Testing / Building an ipk package PrerequisitesMy own setup is a Fedore Core 3 running on an AMD XP 2100+, and everything worked flawlessly. Setting up the softwareIf it dosnt exist create the directory /opt and make it writeable for the user you wish to use for compiling. Here I make it writeable for everyone : mkdir /opt < enter > chmod 777 < enter > Now change to the newly created directory, and download the build environment from cvs : cd /opt < enter > cvs -d:pserver:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
:/cvsroot/nslu co unslung < enter > This will create a directory /opt/unslung containing all the unslung stuff needed to compile packages. To keep your build environment updated with the latest packages, from time to time you should do: cd /opt/unslung < enter > cvs update -dP < enter > Besides the unslung stuff, we need to download the Asus GPL sources for getting the Asus toolchain (note that this is around 273 MB in size !) : cd /opt < enter > wget http://www.asuscom.de/pub/ASUS/wireless/WL-500g-03/GPL_1927.zip < enter > tar zxf ./GPL_1927.zip < enter > cp -R /opt/broadcom/opt/brcm /opt < enter > Now you can safely delete the .zip and the /opt/broadcom dir (you can also keep for safety if you have space :-) ) rm -R -f /opt/broadcom < enter > rm /opt/GPL_1927.zip < enter > When using Olegs firmware versions equal to or above version 1.9.2.7-4, a patch for the Asus toolchain by Oleg is also needed. wget http://oleg.wl500g.info/uClibc-0.9.19/hndtools-mipsel-uclibc-3.2.3-full.tar.bz2 Theese are installed according to Olegs own instructions : cd /opt < enter > tar -xjf hndtools-mipsel-uclibc-3.2.3-full.tar.bz2 < enter > rm -f /opt/brcm/hndtools-mipsel-uclibc < enter > ln -s hndtools-mipsel-uclibc-3.2.3-full /opt/brcm/hndtools-mipsel-uclibc < enter > rm /opt/hndtools-mipsel-uclibc-3.2.3-full.tar.bz2 < enter > Use your favourite editor to set the following line in /opt/unslung/Makefile : UNSLUNG_TARGET = wl500g Now we just need a final step : cd /opt/unslung < enter > make directories < enter > make ipkg-utils < enter > Testing / Building an ipk packageA simple test is easy to perform : cd /opt/unslung < enter > make < enter > This should make it start to download and compile all packages currently on the package stream. Once you have seen it compile a couple without errors, your environment is working, and you can stop the compiling by pressing < ctrl > + < C > if you like. Explaining how to build your own packages is way beyond the scope of this guide, but it will be included later in another guide on theese pages :-) Comments are welcome by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it |
|
| Last Updated ( Friday, 20 January 2006 ) |
| < Prev | Next > |
|---|







