1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WAG354G: how to compile GPL sources?

Discussion in 'Other Linksys Equipment' started by EviL, Mar 17, 2006.

  1. EviL

    EviL Guest

    I've a WAG354G and I've downloaded from Linksys GPL sources of firmware 1.01.05-EU.

    Someone could suggest me an HOWTO or toolchain's binaries in order to compile sources?

    Of couse, under Linux i386.
  2. HiSpeed

    HiSpeed Network Guru Member

  3. OohAhh

    OohAhh Network Guru Member

    The README in the tools-src directory tells you where you get Monta Vista Linux preview. Unfortunately you can't just download it, but have to register in order to apply for permission to download a copy.
  4. Toxic

    Toxic Administrator Staff Member

    afaik any linux should be able to compile the source code.

    Think DD-WRT firmware is created with http://www.colinux.org/
  5. capthookb

    capthookb Network Guru Member

    Is there any howto or any directions at all in order to help someone to build the firwmare;
    And with "someone" i mean anyone that knows how to compile kernels, has some experience with general programming in c++;
    Montavista is optional;
  6. icest0rm

    icest0rm Network Guru Member

    the problem by me is to make the toolchain to compile against mipsel in an x86 environment...
  7. capthookb

    capthookb Network Guru Member

    Have you tried the directions in the README on /src-tools ?

    I'll set up a temporary linux distribution on a new disk in order to try some stuff. I'll let you know if i come up with anything
  8. icest0rm

    icest0rm Network Guru Member

    yes they don't explain how to setup the toolchain
  9. capthookb

    capthookb Network Guru Member

  10. capthookb

    capthookb Network Guru Member

    Ok, the script compiled gcc etc for mipsel and created file:/opt/crosstool/mipsel-unknown-linux-uclibc/gcc-3.3.3-uClibc-0.9.23/bin

    Does anyone know how to use these new binaries in order to build the firmware; the make command will use the normal gcc located under /usr/bin/ or the gcc i have compiled for mipsel cpu? How will it be able to tell the difference? Do i have to remove the gcc for i386 first?
  11. DavidC

    DavidC Network Guru Member

  12. capthookb

    capthookb Network Guru Member

    Thank you for this very informative thread!
  13. Easen

    Easen LI Guru Member

    How about compiling the v1.01.54 source, and see if that fixes the PS2 problems. If you do, give me a PM and i will test it out for you.

    Kind Regards
    Marc Easen
  14. capthookb

    capthookb Network Guru Member

    Personally, i don't have a PS2. The problem in my country is that the router gets disconnected from the isp when using p2p software.
    The difficult part is how to compile the sources. Although i have set the correct toolchaing i still get errors like this:
    /ti_ap/wireless.o: Relocations in generic ELF (EM: 8)
    ../ti_ap/wireless.o: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status
    make[1]: *** [httpd] Error 1
  15. Advis

    Advis Network Guru Member

    Well keep at it, your almost there! Is there any desire to create 3rd part firmware for the WAG354G? I think we need new firmware for this router IMHO. v1.01.07-DE appeared a couple of months ago but hasn't surfaced as a binary.
  16. capthookb

    capthookb Network Guru Member

    Yes, the desire exists.
    But i'm more interested to make openwrt to work with this router, than to create a new firmware by myself from the start, or improve Linksys's firmware.

    By the way, i downloaded and tried to compile all versions of Linksys's GPL code for this router (except v2 tarballs) and they all stop at the same errors. I don't know if i haven't done something right, or the source code is in purpose wrong...
  17. icest0rm

    icest0rm Network Guru Member

    no way,
    I've looked into the source code and there are only minor changes to adjust it for upcoming V2 but nothing new..

Share This Page