OpenWrt Forum Archive

Topic: OpenWRT on Compex Product WP54 WP18 and WP188

The content of this topic has been archived on 6 Nov 2015. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

To load OpenWRT you are not required to use JTAG as Compex Myloader V2.40 or above is already support OpenWRT

So what you need to do is to Check whether your loader version is Compex Loader V 2.40 (Now should be V2.43 that already able to Support kamiakze 7.09 ) at 22 July 2007
So if Already V2.4x then you may load you firmware by using TFTP .

If not please provide you serial plus all information needed to the Support or you will need to waste your time for this info again.


HOW IF YOU DON HV SERIAL CONSOLE  ? (Take it easy)

1. Go to the loader/firmware mode
[Press and hold the reset button then power on, the diag led will blinking]

2. then go to the same directory then do the tftp
[TFTP -i 192.168.168.1 firmware.bin]
[192.168.168.1 is default frimware mode IP]

3. Wait
[The dig led will steady on now. Wait for 1 Min the diag led will blinking again]
[If your diag led never steadly on mean the firmware is not loaded to the device then you may try it again]

4. After blinking, you may restart your device.

Now check ur IP and set to 192.168.1.2-254 [192.168.1.1 = default ip]

Telnet to 192.168.1.1

Done if you see OpenWRT logo.

If not but a serial console to see what is going on.


END




IF YOU HAVE SERIAL CONSOLE ? (More easy now)

1. Put in the serial cable n everything

2. you may follow above method by go to the loader/firmware mode by pressing n power up the device
    OR
    Keep Pressing "ESC" button when the device is boot up until you see the "boot menu"

    You will see this
    ================================================================
    MyLoader version 2.43.0706
    System memory: 16MB

    Probe Flash Device: 00400000 at bfc00000
    Flash Device: Found 1 x16 devices at 0x0 in 16-bit mode
    Amd/Fujitsu Extended Query Table v1.1 at 0x0040
    number of CFI chips: 1

    Flash memory: 4MB
   
   
    Update Firmware (Image Mode)
   
    Mini TFTP Server 1.0 (IP : 192.168.168.1)
    Usage (Windows 2000/XP) :
     tftp -i 192.168.168.1 put <filename>

    ================================================================
    or This
   
    ================================================================

    Main Menu

    1 - Load Firmware
    2 - Load Program
    3 - BIOS Setup
    4 - Fdisk Utility
    5 - Update Flash (Binary Mode)
    6 - Update Firmware (Image Mode)
    7 - Reboot System
    8 - Memory Test
   
    Please select : 
    ==================================================================

    IF YOU GO SEE THE "MAIN MENU:"  dont worry u just need to choose option "6 - Update Firmware (Image Mode)"
    Then it will go to the "Update Firmware (Image Mode)"  (like above:)


3. then go to the same directory then do the tftp
[TFTP -i 192.168.168.1 firmware.bin]
[192.168.168.1 is default frimware mode IP]

4. Wait n see the serial console
[After everything is trasfer and uploaded successfuly you will asked to reboot the device]
[Now check ur IP and set to 192.168.1.2-254 [192.168.1.1 = default ip]

5. Telnet to 192.168.1.1

Done if you see OpenWRT logo.

If not = Impossible

Done


SO JTAG IS NOT NEEDED AT ALL.
JTAG is only needed when your loader is corrupted, as long as loader able to boot up serial console is sufficient enough.


[Info taken from Compex Support]

(Last edited by DD7 on 22 Jul 2008, 04:59)

Jtag Compex device

NOW I GOING TO SHARE WITH ALL OF YOU HOW TO JTAG THE COMPEX DEVICE [Copy from their tech support]



VERY IMPORTANT NOTE:"
1. Do this only if you not able go to the loader mode or your loader is corrupted.
2. After do this your mac address will be erased.
3. FIRMWARE corrupted  does not required to do this. you need to reupload the firmware to solve this problem .
4. Failed on doing this method may caused the board to be malfuntion. So don break you working board.
You going to fix the problem not make another one..


This method is work with WP18 WP188 WP54 and also most of the Compex product
as i tried on WP18, WP188 and WP54 soon will test on WP543

IAM USING mylOADER v 2.43


Please follow the guide step by step and follow the information given in every step.

1. Put the JTAG cable on the WP54 board and run OCD Commander
          - Please use the OCD Commander Ver 2.5.4 (the new version is not compatible with our product).

2. "Connection Dialog... " will then pop up.
     OCD Commander settings:
     Target Processor: MIPS, EJTAG 2.5, 32 bit   [Choose intel 4222/5 if you use WP18/188]
     Connection        : LPT1
     OCD Device      : Wiggler
     OCD Speed       : 380 KHz


    - Press and hold the "Reset" button then Press OK,
    - If there is an error appear like below, then make sure the cable is connected properly via LPT1

   [ "Error Response from INITIALIZE: 0x03 initialize_target : cable disconnected  (10 : 03)" ]

    - If no error then Proceed to Step No 3.   


3. Click on the "Macro" button then Choose the "init-wp54g-16m.mac" (Choose anothe file if WP18/188)
    - the process might take a little longer. So please wait untill you able to see "GO".
    - After that the light Will blink at 1 blink/sec


4. Upload the Compex loader
    - First you must able to Ping 192.168.168.1
    - Then Upload the Compex loader by running the "UpbiosNMylo.bat"
    - After 2 files (Upbios.tst and Zmylo.bin) has been transfered then Go to step No.5
    (If Time out Occurred then turn off the device and redo the step No.1)

    REMEMBER DO NOT RUN THIS "MORE THAN ONCE" BEFORE YOU REBOOT IT. YOU BOARD MAY SPOILT IF YOU DO SO.

5. Turn Off the device and UNPLUG the JTAG device


6. Then turn on, Now the Diag Light will blink more faster st 2 blink/Sec


7. Upload the FirmWare (Compex/Open WRT firmware)

    7.1 FOR Compex Firmware
    - Go to CMD/DOS then type
   
    Tftp -i 192.168.168.1 put <FIRMWARE NAME>
   
    - Firmware is available via http://www.compex.com.sg/
    - the light will keep turn on(No blink) when uploading the Firmware, Wait until it blinks again the restart.
    - DO NOT Turn Off even the CMD prompt that the file transfer is transfered successful,
    - You Must wait until the Diag light is blinking.
    - IF the Diag Led is blinking (after 60 Seconds) then restart the device
    - The device is loaded with COMPEX's loader V2.4 and Compex Firmware.

    7.2 FOR Open-WRT
  - ASK the patches from the support if you want to built or compile your own.
  - IF not you may ask from them compiled image



If you still unsuccessful you can try to contact at support@compex.com.sg

i have one cuestion ,  is need conect power adapter ?
thanks

HI , please help me ....i have one cuestion ,  is need conect power adapter ?
thanks


DD7 wrote:

Jtag Compex device

NOW I GOING TO SHARE WITH ALL OF YOU HOW TO JTAG THE COMPEX DEVICE [Copy from their tech support]



VERY IMPORTANT NOTE:"
1. Do this only if you not able go to the loader mode or your loader is corrupted.
2. After do this your mac address will be erased.
3. FIRMWARE corrupted  does not required to do this. you need to reupload the firmware to solve this problem .
4. Failed on doing this method may caused the board to be malfuntion. So don break you working board.
You going to fix the problem not make another one..


This method is work with WP18 WP188 WP54 and also most of the Compex product
as i tried on WP18, WP188 and WP54 soon will test on WP543

IAM USING mylOADER v 2.43


Please follow the guide step by step and follow the information given in every step.

1. Put the JTAG cable on the WP54 board and run OCD Commander
          - Please use the OCD Commander Ver 2.5.4 (the new version is not compatible with our product).

2. "Connection Dialog... " will then pop up.
     OCD Commander settings:
     Target Processor: MIPS, EJTAG 2.5, 32 bit   [Choose intel 4222/5 if you use WP18/188]
     Connection        : LPT1
     OCD Device      : Wiggler
     OCD Speed       : 380 KHz


    - Press and hold the "Reset" button then Press OK,
    - If there is an error appear like below, then make sure the cable is connected properly via LPT1

   [ "Error Response from INITIALIZE: 0x03 initialize_target : cable disconnected  (10 : 03)" ]

    - If no error then Proceed to Step No 3.   


3. Click on the "Macro" button then Choose the "init-wp54g-16m.mac" (Choose anothe file if WP18/188)
    - the process might take a little longer. So please wait untill you able to see "GO".
    - After that the light Will blink at 1 blink/sec


4. Upload the Compex loader
    - First you must able to Ping 192.168.168.1
    - Then Upload the Compex loader by running the "UpbiosNMylo.bat"
    - After 2 files (Upbios.tst and Zmylo.bin) has been transfered then Go to step No.5
    (If Time out Occurred then turn off the device and redo the step No.1)

    REMEMBER DO NOT RUN THIS "MORE THAN ONCE" BEFORE YOU REBOOT IT. YOU BOARD MAY SPOILT IF YOU DO SO.

5. Turn Off the device and UNPLUG the JTAG device


6. Then turn on, Now the Diag Light will blink more faster st 2 blink/Sec


7. Upload the FirmWare (Compex/Open WRT firmware)

    7.1 FOR Compex Firmware
    - Go to CMD/DOS then type
   
    Tftp -i 192.168.168.1 put <FIRMWARE NAME>
   
    - Firmware is available via http://www.compex.com.sg/
    - the light will keep turn on(No blink) when uploading the Firmware, Wait until it blinks again the restart.
    - DO NOT Turn Off even the CMD prompt that the file transfer is transfered successful,
    - You Must wait until the Diag light is blinking.
    - IF the Diag Led is blinking (after 60 Seconds) then restart the device
    - The device is loaded with COMPEX's loader V2.4 and Compex Firmware.

    7.2 FOR Open-WRT
  - ASK the patches from the support if you want to built or compile your own.
  - IF not you may ask from them compiled image



If you still unsuccessful you can try to contact at support@compex.com.sg

The discussion might have continued from here.