PDA

Bekijk de volledige versie : HOW-TO: Compiling the firmware for version 1.0.4.6



DaNawq
30-09-2006, 20:11
It's only a short tut on how to compile your own firmware from the 1.0.4.6 GPL-sources.

It's based on a clean Fedora Core 5 install:

1. Download/Install ash as rpm. (the one for FC 3 does the job)
2. Download and extract the GPL sources tar xzvf GPL-filename-1.0.4.6.tar.gz
3. as root untar the toolchainfile in /opt => result /opt/brcm
4. untar the new GPL file => result maybe /root/WL700g
5. replace mkcramfs with /sbin/mkfs.cramfs in the Makefile in src/apps; /src/apps/pivot_root and /src/apps/mfg_digest (or similar, can't remember excatly)
6. export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin
7. make clean && make rebuild in /src/apps will create a new firmware in /src/apps/mipsel/WLxxxxx.nas

Notes: If you use make menuconfig in /src/apps you have to cp .config Config_ASUS else the old config will be used

It's only a small updated tut for a linux experienced user. I'll extend it perhaps later :P

DaNawq
30-09-2006, 20:16
My progress so far:

- updated hdparm 5.5 to 6.6
- some small changes on the kernel (deactivated unnecessary options)
- compiled dropbear ssh-server for mipsel
- got twonkyvision 3.1 to work on my device
- modifying busybox by adding vi login etc. works as long I use 1.0pre2
- busybox 1.2.1 makes the sources very unstable. (I'm on that now)

IMM22
30-09-2006, 20:56
My progress so far:

- updated hdparm 5.5 to 6.6
- some small changes on the kernel (deactivated unnecessary options)
- compiled dropbear ssh-server for mipsel
- got twonkyvision 3.1 to work on my device
- modifying busybox by adding vi login etc. works as long I use 1.0pre2
- busybox 1.2.1 makes the sources very unstable. (I'm on that now)

Fine fine... Some one his working and getting some results. I'm very excited... :D

Keep the good work, and thanks for your GREAT contribution

fireflash
06-10-2006, 14:29
Nice tutorial, I was able to successfully (I hope, anyways) compile the firmware, which is pretty good for a Linux n00b like myself. I'm just afraid to test it now. lol

markc
25-01-2007, 21:10
I'd like to make some notes about what I needed to do... mainly so I can find them again next time. I've got 2.6.19 kernel headers so I bumped into the 'UTS_RELEASE' undeclared problem. First, as root...

mkdir /opt
cd /bin
ln -s bash ash
cd /usr/bin
ln -s ../../bin/install .
cd /sbin
ln -s mkfs.cramfs mkcramfs
cd /opt
wget http://dlsvr01.asus.com/pub/ASUS/wireless/WL-700g/GPL_WL700gE_1046.zip
unzip GPL_WL700gE_1046.zip
tar xzf toolchain_wl700ge.tar.gz
tar xzf GPL_WL700gE_1.0.4.6.tar.gz
chown -R user:group WL700g brcm
cd WL700g
chmod u+w -R *
find -type d -exec chmod u+x {} \;
nano /opt/WL700g/nasoc/src/apps/nfs-utils/tools/Makefile
# remove "getiversion getkversion" from the SUBDIRS variable
cd /opt/WL700g/nasoc/src/apps
nano ez-ipupdate/Makefile
# change "DESTDIR=" to "DESTDIR=$(INSTALLDIR)"
su user
export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin
make clean && make rebuild
ls -ltr mipsel

Notes: "user:group" is whatever you normal non-root user ID and group are. The nfs-tools Makefile edit step may need to be done after an initial "make rebuild". Thanks to kfurge, then follow the rest of http://home.comcast.net/~kfurge/wl700ge.html

It's a great view from up on the shoulders of others.