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

HOWTO compile Linux for WAG54G V2 (& a request for help)

Discussion in 'Other Linksys Equipment' started by alextangent, Apr 22, 2005.

  1. alextangent

    alextangent Network Guru Member

    I'm in need of some help, but as a trade, here's information on how to compile a new .bin for a WAG54G V2 (bought & used in the UK). This works; I’ve got it to run OK on my Suse9.2 system.

    Step 1: Install ncurses-devel package.

    The menuconfig for the kernel depends on it and the ncurses package; ncurses-devel is not installed by default under Suse9.2. Don’t know about any other distros.

    Step 2: Download the source from here:

    http://www.linksys.com/support/opensourcecode/wag54gv2/1.00.19/WAG54GV2_V1.00.19_GPL.tgz

    It’s a pretty big download at 108Mb.

    Step 3: Untar the beast

    Assuming this is in your home directory, then untar and unzip;

    tar –zxvf WAG54GV2_V1.00.19_GPL.tgz

    This will put it into directory WAG54GV2 under /home/<user>

    Step 4: Install the MIPS toolchain

    First thing to do is install the toolchain for the MIPS part of gcc; as this is a MIPS processor, the standard x86 toolchain won’t work.

    su to root, then ;

    cd WAG54GV2/
    tar –zxvf TI-toolchains-2_1_0-cy07-Redhat7_1.tgz –C /opt
    cd /opt
    ln –s TI_toolchains-2_1_0-cy07

    Step 5: export PATH

    Exit from root back to <user>. Then;

    export PATH=$PATH$:/opt/cy/mipsfple/bin:/opt/cy/mipsfple-ucllibc/bin

    This you will need to do every time before a build.

    Step 6: Inspect the .config for the kernel build

    cd src/router
    make menuconfig

    I wouldn’t make any changes here to start!

    Step 7: do the build

    cd ..
    ./make.sh

    This will build a file called upgrade-router.bin for AnnexA only in src/image.

    Compared with the 1.0.19 firmware download for AnnexA, the one I’ve built is smaller. The download .bin is 3858488 bytes, where my upgrade is 3739704. Don’t know why.

    Step 8: Upgrade the firmware

    Yes, I did this, and yes, it appears to work. The router is in the factory state at this point. I’ve also reverted back to the original firmware successfully.

    Now to my questions;

    1. I’d like to build in the telnet support for the router. I’ve found the makefile (in src/), turned on the build for telnetd, and rebuilt. But I don’t know how to get the daemon started; where are the startup scripts?

    2. My ADSL connection stopped working the other day. The DSL light flashes, but it won’t train up after trying for around 10 seconds. The USB Thomson speedtouch that I have syncs after about 15 seconds, and seems to have a second go at it if the ADSL light is anything to go by. 15 seconds to train is a long time; but if that’s as good as it gets, I’d like assistance in finding the ADSL code for the router (there’s lots of code!) and see if there’s a timeout hardcoded, or some way of keeping trying until it succeeds.

    Thanks to anyone who replies.
     
  2. Wickus

    Wickus Network Guru Member

    Hey

    I'm using a fedora core 3 box to compile the software.Everything went fine with the compile as you described in your post.

    My upgrade_code.bin is exactly the same size as your compiled bin file
    3739704.

    when the router reboots everything is ok. factory state by default.

    I save all my relevant settings for dsl and network. clicked on save settings. switch off the router.

    now the router is back in factory default state.

    Can u perhaps check to see if u also experience the same thing.

    I noticed the busybox software is version 0.60.0

    I also upgraded my software to use 1.0.0 but still no luck in getting the telnetd working.

    i will try later on to play more with busybox.

    Thanks

    Wickus
     
  3. jiauka

    jiauka Network Guru Member

    Hi,


    Apparently on the router.h file the telnet daemon is on (on the busybox part)

    //#define BB_TELNET
    //kirby 2004/12.22
    #define BB_TELNETD

    but it does not work, at leat on the stock kernel


    I want to play with the firmware, mainly to add a captive portal (Nocat based??)

    I have seen that you use a tool from
    TI-toolchains-2_1_0-cy07-Redhat7_1.tgz

    but i'm not able to find neither this toolchain nor a suitable toolchain.

    Were i can find it?

    have fun.

    j.

    Forget the above, i had a partial download :(
    now i can play with it.
     
  4. alextangent

    alextangent Network Guru Member

    Here's a guess; the GPL code is not the official firmware; I reckon it's been bulit from somthing much later, and much larger. I'm checking further, will post more when I've had a good explore (24-48hrs time or so).

    Update; there's an Aussie version available now on http://www.linksys.com/support/open...Only_1.00.19/src_WAG54GV2-AU_v1.00.39_GPL.tgz which I'm going to compare with the non-oz version.
     
  5. Wickus

    Wickus Network Guru Member

    Hi jiauka

    once you've untarred the tgz file. There is a dir called tools. In there is the TI-toolchains-2_1_0-cy07-Redhat7_1.tgz file that u need.

    There is a readme file as well

    Thanks
     
  6. jiauka

    jiauka Network Guru Member

    Hi again:

    I have been doing some tests:

    1. File system is a modified squashfs file system in order to use LZMA compression iso the standard kernel libz.
    look at
    #define __TI_SQUASHFS_LZMA
    in
    WAG54GV2/src/linux/linux/fs/squashfs/inode.c

    I have been able to patch my 2.6.11.6 kernel in order to mount this kind of filesystem

    The funny think is that i have extracted the fs from the oficial ".1.0.0.19" firmware and i can't not mount it.

    ## syslog output using SQUASHFS_TRACE option on the squashfs build.
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Entered squashfs_read_superblock
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Block @ 0x0, uncompressed size 63
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Found valid superblock on loop0
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Inodes are compressed
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Data is compressed
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Check data is not present in the filesystem
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Filesystem size 3068591 bytes
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Block size 32768
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Number of inodes 385
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Number of uids 3
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Number of gids 2
    Apr 25 16:49:57 jcb kernel: SQUASHFS: sBlk->inode_table_start 2eb7eb
    Apr 25 16:49:57 jcb kernel: SQUASHFS: sBlk->directory_table_start 2ec62d
    Apr 25 16:49:57 jcb kernel: SQUASHFS: sBlk->uid_start 2ed29b
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Block @ 0x2ed29b, uncompressed size 20
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Entered squashfs_iget_1
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Entered squashfs_get_cached_block [2eb7eb:1a52]
    Apr 25 16:49:57 jcb kernel: SQUASHFS: Block @ 0x2eb7eb, compressed size 3648
    Apr 25 16:49:57 jcb kernel: internal_size = 15980, header size = 200300
    Apr 25 16:49:57 jcb kernel: lc = 4, lp=3, pb=2
    Apr 25 16:49:57 jcb kernel: byte=4, dictionary size = b655d470
    Apr 25 16:49:57 jcb kernel: SQUASHFS error: lzma returned unexpected result 0xfffffffe
    Apr 25 16:49:57 jcb kernel: SQUASHFS error: Unable to read cache block [2eb7eb:1a52]
    Apr 25 16:49:57 jcb kernel: SQUASHFS error: Unable to read inode [2eb7eb:1a52]
    Apr 25 16:49:57 jcb kernel: SQUASHFS error: Root inode create failed


    ## syslog end.
    this is the syslog when mounting the own build 1.0.0.19 from the src tree
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Entered squashfs_read_superblock
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Block @ 0x0, uncompressed size 63
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Found valid superblock on loop0
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Inodes are compressed
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Data is compressed
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Check data is not present in the filesystem
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Filesystem size 2951517 bytes
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Block size 32768
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Number of inodes 390
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Number of uids 1
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Number of gids 0
    Apr 25 16:52:34 jcb kernel: SQUASHFS: sBlk->inode_table_start 2cf078
    Apr 25 16:52:34 jcb kernel: SQUASHFS: sBlk->directory_table_start 2cfd12
    Apr 25 16:52:34 jcb kernel: SQUASHFS: sBlk->uid_start 2d0959
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Block @ 0x2d0959, uncompressed size 4
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Entered squashfs_iget_1
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Entered squashfs_get_cached_block [2cf078:1af4]
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Block @ 0x2cf078, compressed size 3224
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Read cache block [2cf078:1af4]
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Entered squashfs_get_cached_block [2cf078:1af4]
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Directory inode 0:1af4, start_block 0, offset 153e
    Apr 25 16:52:34 jcb kernel: SQUASHFS: Leaving squashfs_read_super

    As you can see, there are several diferences.
    size: we already knew it
    numbers of users id (3 iso 1)
    number of group id (2 iso 0)
    and worst of all it does not mount. Problably is a (re)modified LZMA version of maybe another compression method.


    have fun jiauka

    For alextangent:


    The ATM (DSL) drivers are at
    /work/WAG54GV2/src/linux/linux/drivers/atm/

    but there are several chip drivers, i need to open the router in order to check the current one
     
  7. alextangent

    alextangent Network Guru Member

    Thanks. The source is definitely not up to date; it looks like version 0 rather than version 1. I'm going to avoid it until there's been an update which could take some time.
     
  8. jiauka

    jiauka Network Guru Member

    Hi again:

    I did a test with the AU-1.0.39 firmware.

    At fisrt try the unit refused to load the file (invalid firmware or something like this), so i decided to fake the firmware header changing the addpattern (see Makefile under WAG54GV2/src/image/ in order to have the required header at offset 0 of "WA21" iso "WAG2".

    So far so good, the firmware loads at the http show Firmware succesfully loaded.

    But, the unit refuses to power on, the power led keeps flashing and nothing else happens :(

    after some googling i found this info:
    http://openwrt.org/MiniHowtos#head-d3252a48c01960d4a6746c4b79a7429e1f9c8646

    that works fine on the WAG54G too, finally i was able to tftp the image.

    If you have the same problem be sure that the filename starts with WAG54AGV2 !!!! otherwise you will see a "filename error" on the tftp.


    The only good think is that looks that the unit is quite strong against uncorrect firmwares.

    Tomorrow i will install a serial port (YES!!! there a connector inside) and try to get a console.

    have fun

    jiauka
     
  9. Wickus

    Wickus Network Guru Member

  10. jiauka

    jiauka Network Guru Member

    Hi Wickus:

    Just use any hex editor (i did it with khexedit) and find the ASCII sequence "hsqs", thsio is the beginning of the files sytem, for there till the end of the file but the last 8 bytes. Remember i was able to mouint my own FS build (extracted from my own generated upgrade_code.bin) but not the oficial 1.0.19.1 release.

    BTW, i have a serial port and a console ;)

    U need a MAX232 between JP3 and the PC. The PINout is as follows
    PIN 1: GND (opossite to the JP3 marking)
    PIN 2: NC
    PIN 3: RX
    PIN 4 : TX
    PIN 5: VCC (3v3)

    A good pictures of the unit are at
    http://www.wireless-italia.com/modules.php?name=Sections&op=viewarticle&artid=57

    The adaptation is similar to:
    http://www.theforestnetworking.com/sveasoft/serial.php
    but the WAG54G connector has a totally diferent pinout.

    I will post some pictures when i have some time to do them.

    Here it is the output from the serial.

    Restarting system.

    ADAM2 Revision 0.22.12
    (C) Copyright 1996-2003 Texas Instruments Inc. All Rights Reserved.
    (C) Copyright 2003 Telogy Networks, Inc.
    Usage: setmfreq [-d] [-s sys_freq, in MHz] [cpu_freq, in MHz]
    Memory optimization Complete!

    mac_init(): Find mac [xx:xx:xx:xx:xx:xx] in location 0
    Find mac [xx:xx:xx:xx:xx:xx] in location 0
    mac_value:xx:xx:xx:xx:xx:xx
    tftpserver initialized

    Adam2_AR7WRD >
    Press any key to abort OS load, or wait 5 seconds for OS to boot...
    Launching kernel decompressor.
    Kernel decompressor was successful ... launching kernel.

    LINUX started...
    Config serial console: ttyS0,38400
    CPU revision is: 00018448
    Primary instruction cache 16kb, linesize 16 bytes (4 ways)
    Primary data cache 16kb, linesize 16 bytes (4 ways)
    Number of TLB entries 16.
    Linux version 2.4.17_mvl21-malta-mips_fp_le (root@junzhao) (gcc version 2.95.3 200103154Determined physical RAM map:
    memory: 14000000 @ 00000000 (reserved)
    memory: 00020000 @ 14000000 (ROM data)
    memory: 00fe0000 @ 14020000 (usable)
    On node 0 totalpages: 4096
    zone(0): 4096 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line:
    the pacing pre-scalar has been set as 600.
    calculating r4koff... 000b71b0(750000)
    CPU frequency 150.00 MHz
    Calibrating delay loop... 149.91 BogoMIPS
    Freeing Adam2 reserved memory [0x14001000,0x0001f000]
    Memory: 13952k/16384k available (1806k kernel code, 2432k reserved, 131k data, 60k init)Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
    Inode-cache hash table entries: 1024 (order: 1, 8192 bytes)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
    Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Checking for 'wait' instruction... unavailable.
    POSIX conformance testing by UNIFIX
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    Disabling the Out Of Memory Killer
    devfs: v1.7 (20011216) Richard Gooch (rgooch@atnf.csiro.au)
    devfs: boot_options: 0x1
    pty: 32 Unix98 ptys configured
    Serial driver version 5.05c (2001-07-08) with no serial options enabled
    ttyS00 at 0xa8610e00 (irq = 15) is a 16550A
    ttyS01 at 0xa8610f00 (irq = 16) is a 16550A
    block: 64 slots per queue, batch=16
    Using freq from the env variable for CPMAC(s).
    Using the MAC with external PHY
    halInit
    ConfigInit=0
    Cpu frequency for cpmacs is 150000000
    miiBase: 0xA8611E00 22
    Found the Link for the CPMAC.
    eth0 irq= 0 io=a8612800
    Installed 1 cpmac instances.
    avalanche flash device: 0x400000 at 0x10000000.
    Amd/Fujitsu Extended Query Table v1.1 at 0x0040
    Physically mapped flash: Swapping erase regions for broken CFI table.
    number of CFI chips: 1
    Looking for mtd device :mtd0:
    Found a mtd0 image (0xe0000), with size (0x310000).
    Looking for mtd device :mtd1:
    Found a mtd1 image (0x20000), with size (0xc0000).
    Looking for mtd device :mtd2:
    Found a mtd2 image (0x0), with size (0x20000).
    Looking for mtd device :mtd3:
    Found a mtd3 image (0x3f0000), with size (0x10000).
    Looking for mtd device :mtd4:
    Found a mtd4 image (0x20000), with size (0x3d0000).
    Creating 5 MTD partitions on "Physically mapped flash":
    0x000e0000-0x003f0000 : "mtd0"
    0x00020000-0x000e0000 : "mtd1"
    0x00000000-0x00020000 : "mtd2"
    0x003f0000-0x00400000 : "mtd3"
    0x00020000-0x003f0000 : "mtd4"
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP, IGMP
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 1024 bind 1024)
    Linux IP multicast router 0.06 plus PIM-SM
    klips_info:ipsec_init: KLIPS startup, FreeS/WAN IPSec version: super-freeswan-1.99.8
    klips_info:ipsec_alg_init: KLIPS alg v=0.8.1-0 (EALG_MAX=255, AALG_MAX=15)
    klips_info:ipsec_alg_init: calling ipsec_alg_static_init()
    ipsec_1des_init(alg_type=15 alg_id=2 name=1des): ret=0
    You should NOT load 1DES support except for testing purposes !
    ipsec_null_init(alg_type=15 alg_id=11 name=null): ret=0
    ip_conntrack version 2.1 (128 buckets, 1024 max) - 344 bytes per conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    NET4: Ethernet Bridge 008 for NET4.0
    802.1Q VLAN Support v1.6 Ben Greear <greearb@candelatech.com>
    vlan Initialization complete.
    VFS: Mounted root (squashfs filesystem) readonly.
    Mounted devfs on /dev
    Freeing unused kernel memory: 60k freed
    Firmware Version: 1.00.19
    now insmod tiatm
    Using /lib/modules/2.4.17_mvl21-malta-mips_fp_le/kernel/drivers/atm/tiatm.o
    Hit enter to continue...killall: httpd: no process killedNumber of State Elements = 7
    Total Length = 60
    adsl_led_init fail
    name=[eth0] lan_ifname=[br0]
    =====> set br0 hwaddr to eth0
    =====> set br0 hwaddr to eth0
    wlconf: No such file or directory
    Lan Ipaddr: 255.255.255.0 Netmask: 255.255.255.0................
    255.255.255.0 255.255.255.0
    Using /lib/modules/2.4.17_mvl21-malta-mips_fp_le/kernel/drivers/net/tiwlan_module_ksymsoUsing /lib/modules/2.4.17_mvl21-malta-mips_fp_le/kernel/drivers/net/tiwlan.o
    DUMMY Config Man : Waiting...
    main : Linux WLAN AP user mode driver starting...
    DUMMY Config Man : LOAD
    len = 3426
    DUMMY Config Man : Waiting...
    .............list ..............
    The boot is UNKNOWN
    tftp server started
    tftpd: standalone socket
    HTTPD start, port 80
    dhcpd:auto_search_ip=0,firstsetlanip=1
    .............list ..............
    info, udhcp server (v0.9.8) started
    killall: snmpd: no process killeddone
    Jan 1 00:00:15 : 5bUpnpd-igd-v003 start!!!

    upnpd-igd:current select wan connection:0
    killall: leijun--upnpd-igd ver 0.83 2004-0329: no process killedzebra disabled
    killall: adslpolling: no process killedIDLE
    Hit enter to continue...current wan connection=0,wan_ipaddr=0.0.0.0
    upnp_content_num_0 = 14
    device count=3
    wan def hwaddr 00:13:10:29:27:97
    polling now .......
    killall: begin_now: no process killedSegmentation fault


    BusyBox v0.60.0 (2004.11.30-17:58+0000) Built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    #
    # help

    Built-in commands:
    -------------------
    . : alias break builtin cd chdir continue eval exec exit export
    false fc hash help jobs let local pwd read readonly return set
    setvar shift times trap true type ulimit umask unalias unset
    wait

    # ls
    proc
    mnt
    dev
    var
    tmp
    lib
    bin
    www
    sbin
    etc
    usr
    # ls /etc
    ld.so.cache hosts services server.pem dh1024.pem
    ld.so.conf resolv.conf igd root.pem cert.pem
    cron.d led.conf ap.bin key.pem
    #



    Now, my next step will be to get the full FS from the unit and rebuild it using the provided PC Linux tools in the image folder.

    have fun,

    jiauka
     
  11. jiauka

    jiauka Network Guru Member

    Hi all,

    Finally i have managed to build my own upgrade and have full functionality on it. It is mainly based on the original binary firmware, but you can add/remove items before rebuilding it and it allows to add new functions or mod the web interface.

    The file is 5.5 MB , is it posible to upload it somewhere?, or does someone know the people working on other linksys linux hack?

    have fun,

    jiauka

    P.S.: The "init" program is NOT busybox, it is a propietary binary file, called "rc" in the original firmware and "pcmd" in the GPL src. It means that adding new boot functions -like a telnetd daemon- implies using the busybox init and do the right scripts to have the same functionality.
     
  12. alextangent

    alextangent Network Guru Member

    I'd be interested; short of mailing it to me, or putting it up on a yahoo group somewhere, I don't have the space for this.

    --
    Regards
    Alex McDonald
     
  13. Wickus

    Wickus Network Guru Member

  14. jiauka

    jiauka Network Guru Member

    Hi,

    Thinks are somewhat easier.

    The TI (Texas Instruments) MIPS based devices can have 2 kind of boots, the standard one (ADAM2) and PSP.

    My WAG54G has an ADAM2 boot, but the kernel with teh GPL'd 1.00.19 provided by linksys is broken when choosing the adam2 boot style.


    IHMO, the published GPLd -with some very important binaries on it- is somewhere between the oficial 1.00.19 and the aussie 1.00.39.

    I have to double check everthing, and i will post a diff file against the GPLd source.


    But, if you don't want/you are not able to wire a serial cable on it, you will get lost -at least if you plan to hack the source-

    have fun

    jiauka
     
  15. Wickus

    Wickus Network Guru Member

    httpd on WAG54G V2

    Hi Jiauka

    it looks like the httpd version they using is micro-asp. Not sure about the gpl license but here is the link where u can down the file.

    http://wrt54g.free.fr/openwrt/micro-asp-0.04.tar.gz

    In the source u can see there is a filed called broadcom.c which is not used when the httpd is build. Also in the broadcom is alot of the functions that can be seen with "strings httpd"

    btw is it perhaps possible to compile a image with out pcmd and use busybox init.

    Unfortunately i dont have access to the max232. Can u compile the source and burn in to the router and check what the output is.

    Thanks
     
  16. nextdayflight

    nextdayflight Network Guru Member

    Is it possible to recover from a bad flash on the WAG54G without the serial console, ie. tftp?

    My WAG54G (V2 Aussie version) is the only ADSL modem I own so I don't won't to mess it up for too long.
     
  17. jiauka

    jiauka Network Guru Member

    For nextdayflight:

    Yes, but then it is more dificult to find the window time you have ,there is a 3 seconds seconds after 2 seconds after boot. With a console it is very easy to see it and launch the tftp, without it, will be more difictult, but not very hard, you may need to try several times.

    best r.

    jiauka
     
  18. komUnec8

    komUnec8 Network Guru Member

    Has anyone had any success building a new image in an Ubuntu 5.04 Linux environment?

    I can install the Toolchain (why is it Red Hat? Is there another option anywhere else?) and I can get the Make process to run by following the instructions "alextangent" left above (with a few typo changes). Also, I'm using version 1.00.39 AU source. But I never seem to be able to get a new code.bin file produced?

    I'm wondering if there are subtle differences in the source files that are not being handled by a Debian-based distro?

    Any help appreciated. TIA.
     
  19. Wickus

    Wickus Network Guru Member

    Code

    Hi komUnec8

    Do u get any errors. Can u maybe put all the out in a file and upload it somewhere. Myself and jiauka is busy with the firmware and we've successfully compiled a new releases of the firmware.

    Let me know where i can get the output from.

    Thanks
     
  20. jiauka

    jiauka Network Guru Member

    Hi,

    I use a debian distro.

    But the toolchain is binary not related to any distro, the redhat only appears in the name.

    Just follow the readme under the tools folder and everything will be fine in early any linux distro.

    be sure to export
    export PATH=$PATH:/opt/cy/mipsfple/bin:/opt/cy/mipsfple-uclibc/bin
    in every shell you use to compile it or add it to your shell defaults.


    have fun

    j.
     
  21. komUnec8

    komUnec8 Network Guru Member

    Can't add Attachments to post

    Sorry if this is in the wrong forum, but this was just where I was trying to post.

    Trying to attach a .zip file (<128K) to a post (or a PM) but getting the following error:-

    "Could not login to FTP Server. The Username 'files' or the Password is wrong. Please check your FTP-Settings. "

    What am I doing wrong?
     
  22. komUnec8

    komUnec8 Network Guru Member

    Am I bad?

    Okay, I read the FAQ now. So, I probably don't have enough rights to post attachments. I will have to find another way! Sorry for the extra noise.
     
  23. HardCorePawn

    HardCorePawn Guest

    Howdy, has anyone successfully created a new firmware for the WAG54G v2? If so, have they been made public yet?

    I am getting frustrated with a couple of the 'broken' features of the factory 1.00.39(AU) version that came with the router... specifically the DynDNS feature & the broken traceroute which seems to prevent me using my Playstation2 online (i have confirmed the router as the issue as my old dynalink rta-020 works perfectly)



    regards,
    Jared
     
  24. __nbd

    __nbd Network Guru Member

    Hey WAG54G hackers,

    we (at openwrt.org) are currently working on integrating hardware support from the WAG54Gv2 sources into our own heavily patched 2.4.30 kernel from OpenWrt. If you want to help, please join #WRT54G on irc.freenode.net and talk to wbx or z3ro. Thanks for your help.
     
  25. nextdayflight

    nextdayflight Network Guru Member

    With the 1.00.39 AU source, I found that I have to run "./make.sh" TWICE to get the firmware binary (but I haven't tried the firmware yet)
     
  26. Wickus

    Wickus Network Guru Member

    Firmware for the AU version of the WAG54G v2

    Hi HardCorePawn and nextdayflight.

    There is a firmware released for the AU version.

    WAG54GV2_AnnexA_FCC_v1.00.57_002_­ code.bin. It is a beta release but i'm sure i can test with it and see if there is problems with it.

    message me if u want to test the file

    Thanks
     
  27. komUnec8

    komUnec8 Network Guru Member

    Fix to enable build of .bin image from 1.00.39-AU source

    I've just managed to build a new image using the 1.00.39-AU source. I'm running Ubuntu 5.04 (2.6.10-5). However, I found a problem with a bad sym link that seems to have been incorrectly left behind, and points to a /work/... directory (probably on the developer's own box??). ie it doesn't exist on my box.

    Anyway, I made the link relative, and now I get an upgrade-code.bin image built in the src/image directory. Yay! (NB Haven't tested it yet, tho!)

    If you are having a problem getting the image file to build, take a look at the following location in the src code tree and change the sym link for 'perlasm' that you find there to:-


    garryk@ubuntu:~/WAG54GV2/src/linux/linux/net/ipsec/alg/perlasm$

    perlasm -> ../../libcrypto/perlasm

    i.e using

    $ ln -sf ../../libcrypto/perlasm perlasm

    when in the ...../alg/perlasm directory.

    Thanks to Wickus for his help in putting me on the path to tracking this down.
    He also had me load 'bison', which fixed another problem I was having. :))
     
  28. magistratusx

    magistratusx Guest

    I'd be interested, too; short of mailing it to me. And I have the space for this.

    Are you interested in an own linksys linux hack project?
     
  29. oz3004

    oz3004 Network Guru Member

    code.bin

    Hi there.

    I have a question, in the GPL code file for the WAG54G-E1 V2 annex B version 1.00.23 which you can find here ftp://ftp.linksys.com/opensourcecode/wag54gv2/1.00.23-E1/ there is a code.bin file in the src/image folder.

    Could someone tell me if that is the already compiled firmware file of the source files as they are?

    I tried to upgrade with it but that didn't work. And i don't have the guts to try with tftp. But it shows 3,65 megs which should be the right size...

    Could someone please check if i'm right? I would be really grateful for help.
     
  30. j0n3z

    j0n3z Guest

Share This Page