www.mamboteam.com
macsat.com - OpenWrt | Olegs Firmware  
Home arrow Tutorials - Oleg arrow ASUS WL-Series Cross-Compiling Guide
Friday, 21 November 2008
 
 
Main Menu
Home
About
News
Tutorials - OpenWrt (WR)
Tutorials - Oleg
Wiki (RDC Based Routers)
Online Shop
Forum
Downloads
Free Linux eBooks
Links
Search
Contact Us
We have 7 guests online
2811148 Visitors
Login
Welcome Guest.






Lost Password?
No account yet? Register
Old macsat.com
Nokia Unlock (Dansk)
Nokia Unlock (English)
XBins IRC Chat
ASUS WL-Series Cross-Compiling Guide PDF Print E-mail
(3 votes)
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 Index

1. Prerequisites - What is needed to get started.
2. Setting up the software
3. Testing / Building an ipk package

Prerequisites

  • A computer with a running Linux Distribution
  • Basic knowledge of standard unix commands / usage
  • Some experience with compiling software with configure && make && make install would be an advantage
  • Non-dialup internet connection (or plenty of time ;-) )
  • Around 3 GB of hard disc space
  • My own setup is a Fedore Core 3 running on an AMD XP 2100+, and everything worked flawlessly.

    Setting up the software

    If 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 package

    A 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 >
    Buy Router
    Buffalo Technology WBR2G54
    Buffalo Technology WBR2G54
    Recent Forum Topics
    Donations

    If you appriciate this site, please consider making a small donation.

    All donations will be used to cover expenses from running macsat.com.

    Sponsored Ads
     
    Top! Top!