WAG54GV3 Howto

From ProjectWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
==How to compile WAG54GV3 Firmware==
 
==How to compile WAG54GV3 Firmware==
This tells u how to compile the WAG54GV3 firmware. This is written for unbuntu since all the newfags use that, but will prolly work with whatever if your not complteely tarded~
+
This tells u how to compile the WAG54GV3-AU firmware. This is written for unbuntu since all the newfags use that, but will prolly work with whatever if your not complteely tarded~
  
 
* first downloads teh TI-toolchains-2_1_0-cy07.PROPER.tar.bz2 and WAG54GV3-AU_v1.00.22.PROPER.tar.bz2.  
 
* first downloads teh TI-toolchains-2_1_0-cy07.PROPER.tar.bz2 and WAG54GV3-AU_v1.00.22.PROPER.tar.bz2.  
Line 39: Line 39:
  
 
==onoes! teh fail :/==
 
==onoes! teh fail :/==
if you gets:
+
'''if you gets:'''
 
  /home/isabella/ForL3x/WAG54GV3-AU_v1.00.22/src/linux/linux-2.4.17_mvl21/tools/7zip: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
 
  /home/isabella/ForL3x/WAG54GV3-AU_v1.00.22/src/linux/linux-2.4.17_mvl21/tools/7zip: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
 
trys:
 
trys:
Line 47: Line 47:
 
  sudo mv libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/
 
  sudo mv libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/
  
What no bison?! if you gets:
+
'''What no bison?! if you gets:'''
 
  make[2]: bison: Command not found
 
  make[2]: bison: Command not found
 
trys:
 
trys:
 
  sudo apt-get install bison
 
  sudo apt-get install bison
  
if you gets: (btw this is only necessary if your re-building after a previous build, but rly that it generates error messages and fuglys up your terminal should be reason enough to fix this...)
+
'''if you gets:''' (btw this is only necessary if your re-building after a previous build, but rly that it generates error messages and fuglys up your terminal should be reason enough to fix this...)
 
  /bin/sh: rcsclean: not found
 
  /bin/sh: rcsclean: not found
 
trys:
 
trys:
 
  sudo apt-get install rcs
 
  sudo apt-get install rcs
  
==What did j00 do to this?!?!==
+
==What did j00 do to fix0r this?!?!==
Tbh, i cannot remember exactly, fix0r'd few things, firstly finding the right toolchains and where to put it was a plus, then finding a few syntax errors in the main Makefile, and umm ummm, oh yah, finding that library file was pita mostly because i didn't get that it was looking for file to run 7zip and not link it or somethign and missing libstdc++blahblah, also installing bison and such...
+
Tbh, i cannot remember exactly, fixd few things, firstly finding the right toolchains and where to put it was a plus, then finding a few syntax errors in the main Makefile, and umm ummm, oh yah, finding that library file was pita mostly because i didn't get that it was looking for file to run 7zip and not link it or somethign and missing libstdc++blahblah, also installing bison and such...
 +
 
 +
Likes zomg this is ossum, yet useless to me as i have EU or capitalist american firmware?! Well sry, i dont even own one of these and just did this for a friend, but the main problems were in the router/Makefile, you can prolly copy/pasta the modified Makefile from this version over and get it to work (it had several syntax errors... SYNTAX?! WTF?!?! i srsly suspect they just fux0rd it to prevent easy compilation).
  
 
jaja... sounds easy, but took 4 days :P
 
jaja... sounds easy, but took 4 days :P

Revision as of 08:31, 6 June 2008

Contents

How to compile WAG54GV3 Firmware

This tells u how to compile the WAG54GV3-AU firmware. This is written for unbuntu since all the newfags use that, but will prolly work with whatever if your not complteely tarded~

  • first downloads teh TI-toolchains-2_1_0-cy07.PROPER.tar.bz2 and WAG54GV3-AU_v1.00.22.PROPER.tar.bz2.
  • extract TI-toolchains-2_1_0-cy07.PROPER.tar.bz2 and copy opt/ to / (there is probably already a /opt hopefully it wont copy over anything impotant. However usually mv just nicely merges two sets of files.. i think.. or hell whatever just cp -R it.. u_u).
tar -jxf TI-toolchains-2_1_0-cy07.PROPER.tar.bz2
sudo cp -R opt /
rm -rf opt

That'll get your toolchain setup and in the proper location.

  • Set the proper paths.
export PATH=$PATH:/opt/TI-toolchains-2_1_0-cy07/mipsfple/bin/:/opt/TI-toolchains-2_1_0-cy07/mipsfple-uclibc/bin/

now the compilers should be in your path.. type mips- and press tab a few times, you should see a buncha mips-blah-blah files show up.. this means issok! :D (if you plan to work with the code alot, make mods, etc, might wanna add this to .bashrc or .login or such :)


  • extract TI-toolchains-2_1_0-cy07.PROPER.tar.bz2 to your home dir. it will create the WAG54GV3-AU_v1.00.22 dir.
tar -jxf TI-toolchains-2_1_0-cy07.PROPER.tar.bz2
cd /WAG54GV3-AU_v1.00.22/src

Okaies lastly run teh sorta totally lameass scripte to actually build everything. Alternately see the Manual compile section below...

./make.sh

This will make everything, hopefully. If your done you should have a file called upgrade_code.bin in the image dir.. (may be 1 directory up if you cd router'ed). If not see the troubleshooting section..

Manual compile

Normally you run ./make.sh, but if thats having issues, it may be useful to make each step seperately, helps finding error messages as it'll prolly halt abruptly leaving the error message visable and not buried under a shitton of other crap. To do that first type this once:

cd router

and then type (one line at a time newbs):

make linux-clean
make linux-dep
make linux
make clean
make 
make linux-modules
make install
make rom
make upgrade
make lang

onoes! teh fail :/

if you gets:

/home/isabella/ForL3x/WAG54GV3-AU_v1.00.22/src/linux/linux-2.4.17_mvl21/tools/7zip: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

trys:

sudo apt-get install something with libc6

I THINK!! Okaies, try that first, and if thats not workin or your not on debian/ubuntu/etc and since i may have just forget what i installed to get this file... just do this:

wget http://blea.ch/~eris/wrt/libstdc++-3-libc6.2-2-2.10.0.so
sudo mv libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/

What no bison?! if you gets:

make[2]: bison: Command not found

trys:

sudo apt-get install bison

if you gets: (btw this is only necessary if your re-building after a previous build, but rly that it generates error messages and fuglys up your terminal should be reason enough to fix this...)

/bin/sh: rcsclean: not found

trys:

sudo apt-get install rcs

What did j00 do to fix0r this?!?!

Tbh, i cannot remember exactly, fixd few things, firstly finding the right toolchains and where to put it was a plus, then finding a few syntax errors in the main Makefile, and umm ummm, oh yah, finding that library file was pita mostly because i didn't get that it was looking for file to run 7zip and not link it or somethign and missing libstdc++blahblah, also installing bison and such...

Likes zomg this is ossum, yet useless to me as i have EU or capitalist american firmware?! Well sry, i dont even own one of these and just did this for a friend, but the main problems were in the router/Makefile, you can prolly copy/pasta the modified Makefile from this version over and get it to work (it had several syntax errors... SYNTAX?! WTF?!?! i srsly suspect they just fux0rd it to prevent easy compilation).

jaja... sounds easy, but took 4 days :P

Personal tools
irssi scripts
eggdrop scripts