Author Topic: Could not open CFE.bin for reading  (Read 2176 times)

TxPres

  • Newbie
  • *
  • Posts: 7
Could not open CFE.bin for reading
« on: January 12, 2010, 10:53:53 AM »
Trying to flash cfe.bin to my WRT54GL v1.1. using Jtag.
I can probe and erase with no problem using TjTag3.
However, when I try to flash, it gets down to "you have selected to flash the CFE.bin".
Then I get the message "Could not open CFE.bin for reading".

The CFE.bin is in the same folder as the TjTag3.
I have tried several different CFE.bin files, some from skynet and some from others on the net.
The command I use is -flash:cfe /noemw /noreset /nobreak

I also tried the program "TjTagv2" and got the same result.

I don't know why it can't read the CFE.bin. IF it can't read the file, there is no way I can flash it.
Any ideas?


tornado

  • Moderator
  • Newbie
  • *****
  • Posts: 24
Re: Could not open CFE.bin for reading
« Reply #1 on: January 12, 2010, 11:19:22 AM »
One suggestion, the cfe.bin file has to be in the same directory you execute tjtag from ?

TxPres

  • Newbie
  • *
  • Posts: 7
Re: Could not open CFE.bin for reading
« Reply #2 on: January 12, 2010, 11:20:43 AM »
Thought I would add a little more info. Below is the results of the Probeonly and the Flash attempt.

C:\Documents and Settings\XXXX XXXX>c:\tjtag3 -probeonly /noemw /n
obreak

==============================================
 EJTAG Debrick Utility v3.0.1 Tornado-MOD
==============================================

Probing bus ... Done

Instruction Length set to 8

CPU Chip ID: 00000101001101010010000101111111 (0535217F)
*** Found a Broadcom BCM5352 Rev 1 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS32

Issuing Processor / Peripheral Reset ... Skipped
Enabling Memory Writes ... Skipped
Halting Processor ... Skipped
Clearing Watchdog ... Done

Probing Flash at (Flash Window: 0x1fc00000) ...
Done

Flash Vendor ID: 00000000000000000000000011000010 (000000C2)
Flash Device ID: 00000000000000000010001010101000 (000022A8)
*** Found a MX29LV320B 2Mx16 BotB      (4MB) Flash Chip ***

    - Flash Chip Window Start .... : 1fc00000
    - Flash Chip Window Length ... : 00400000
    - Selected Area Start ........ : 00000000
    - Selected Area Length ....... : 00000000



 *** REQUESTED OPERATION IS COMPLETE ***


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\XXXX XXXX>c:\tjtag3 -flash:cfe /noemw /noreset /n
obreak

==============================================
 EJTAG Debrick Utility v3.0.1 Tornado-MOD
==============================================

Probing bus ... Done

Instruction Length set to 8

CPU Chip ID: 00000101001101010010000101111111 (0535217F)
*** Found a Broadcom BCM5352 Rev 1 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00800904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS32

Issuing Processor / Peripheral Reset ... Skipped
Enabling Memory Writes ... Skipped
Halting Processor ... Skipped
Clearing Watchdog ... Done

Probing Flash at (Flash Window: 0x1fc00000) ...
Done

Flash Vendor ID: 00000000000000000000000011000010 (000000C2)
Flash Device ID: 00000000000000000010001010101000 (000022A8)
*** Found a MX29LV320B 2Mx16 BotB      (4MB) Flash Chip ***

    - Flash Chip Window Start .... : 1fc00000
    - Flash Chip Window Length ... : 00400000
    - Selected Area Start ........ : 1fc00000
    - Selected Area Length ....... : 00040000

*** You Selected to Flash the CFE.BIN ***

Could not open CFE.BIN for reading

C:\Documents and Settings\XXXX XXXX>

TxPres

  • Newbie
  • *
  • Posts: 7
Re: Could not open CFE.bin for reading
« Reply #3 on: January 12, 2010, 11:23:25 AM »
I have both the tjtag3 program and the cfe.bin next to each other in the same directory on the c drive. I have tried putting both in the Windows directory on the c drive and get the same result.

tornado

  • Moderator
  • Newbie
  • *****
  • Posts: 24
Re: Could not open CFE.bin for reading
« Reply #4 on: January 12, 2010, 11:52:19 AM »
okay, the 5352 processor does not need /nobreak, and the CFE.BIN must be in the same directory as tjtag.exe

TxPres

  • Newbie
  • *
  • Posts: 7
Re: Could not open CFE.bin for reading
« Reply #5 on: January 12, 2010, 12:15:05 PM »
Thanks for the reply.
I have tried w/o the nobreak. No change.
Reguarding the cfe.bin being in the same directory as the tjtag3 program, maybe I am missing something.
I have both the program and the cfe.bin file located on my c drive. They are not in any folder, just copied to my c drive.
I assume that this means they are in the same directory?

I have also put both in the Windows folder of my c drive and run from there. No change.

I also created a folder called jtjag and put both cfe.bin and program there, no change.

I have no doubt that I am doing something wrong that is simple, but I sure don't know what it is.

tornado

  • Moderator
  • Newbie
  • *****
  • Posts: 24
Re: Could not open CFE.bin for reading
« Reply #6 on: January 12, 2010, 12:38:53 PM »
Ok, one more thing, tjtag is a console application, and must be run fro the CMD prompt, where tjtag and the cfe.bin are in the same directory. are you doing this ?

tornado

  • Moderator
  • Newbie
  • *****
  • Posts: 24
Re: Could not open CFE.bin for reading
« Reply #7 on: January 12, 2010, 12:40:09 PM »
show me the commad you are using ? and the output

TxPres

  • Newbie
  • *
  • Posts: 7
Re: Could not open CFE.bin for reading
« Reply #8 on: January 12, 2010, 12:50:46 PM »
I have both the program and the CFE.BIN file in a folder named tjtag on my c drive.
Here is the output:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\XXXX XXXX>c:\tjtag\tjtag3 -flash:cfe /noemw /nore
set

==============================================
 EJTAG Debrick Utility v3.0.1 Tornado-MOD
==============================================

Probing bus ... Done

Instruction Length set to 8

CPU Chip ID: 00000101001101010010000101111111 (0535217F)
*** Found a Broadcom BCM5352 Rev 1 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00800904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS32

Issuing Processor / Peripheral Reset ... Skipped
Enabling Memory Writes ... Skipped
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ... Done

Probing Flash at (Flash Window: 0x1fc00000) ...
Done

Flash Vendor ID: 00000000000000000000000011000010 (000000C2)
Flash Device ID: 00000000000000000010001010101000 (000022A8)
*** Found a MX29LV320B 2Mx16 BotB      (4MB) Flash Chip ***

    - Flash Chip Window Start .... : 1fc00000
    - Flash Chip Window Length ... : 00400000
    - Selected Area Start ........ : 1fc00000
    - Selected Area Length ....... : 00040000

*** You Selected to Flash the CFE.BIN ***

Could not open CFE.BIN for reading

C:\Documents and Settings\XXXX XXXX>

Hope this helps!!
And yes, I am running from the CMD prompt
« Last Edit: January 12, 2010, 12:52:45 PM by TxPres »

tornado

  • Moderator
  • Newbie
  • *****
  • Posts: 24
Re: Could not open CFE.bin for reading
« Reply #9 on: January 12, 2010, 01:08:27 PM »
I do not know where or who convinced you of using /noreset with a 5352 processor, but I have already told you it is not needed, and it seems you are not listening ? change the priveledges on the file, maybe something like that...it is working here fine...

TxPres

  • Newbie
  • *
  • Posts: 7
Re: Could not open CFE.bin for reading
« Reply #10 on: January 12, 2010, 01:13:03 PM »
I thought you told me that /nobreak was not needed and I stopped using it. I looked back and did not see where you told me to not use /noreset. I will leave it out.
I am listening and very much appreciate your help.
I will check the file priveledges and see what they are.

Thanks for the help.

OldTimmer

  • Newbie
  • *
  • Posts: 4
Re: Could not open CFE.bin for reading
« Reply #11 on: January 13, 2010, 08:42:37 PM »
What OS are you using XP or Vista ?
If you are using Vista you need to have tjtag3 and cfe.bin ina folder then run tjtag3 -flash:cfe
And what ever switchs you may need like /noemw.
If you are in linux upper or lower case makes a diffrence.

tornado

  • Moderator
  • Newbie
  • *****
  • Posts: 24
Re: Could not open CFE.bin for reading
« Reply #12 on: January 14, 2010, 12:41:45 AM »
@TxPres
Looking at your post above
C:\Documents and Settings\XXXX XXXX>c:\tjtag\tjtag3 -flash:cfe /noemw /nore
set

says you are running tjtag from this Dir -> C:\Documents and Settings\XXXX XXXX>

change to the c:\tjtag directory then run tjtag3 without the path

TxPres

  • Newbie
  • *
  • Posts: 7
Re: Could not open CFE.bin for reading
« Reply #13 on: January 18, 2010, 07:01:02 PM »
Sorry to be so slow getting back, was out of town.
You are correct. Even though I had both the CFE and the program in the same place, next to each other, it would not work.
I used the program to save a file, found where it saved it, and put the CFE there. It then worked!
Your suggestion does the same thing.

Router is now working fine!

Thanks for the help.

Mike

  • Administrator
  • Sr. Member
  • *****
  • Posts: 263
Re: Could not open CFE.bin for reading
« Reply #14 on: January 20, 2010, 05:55:31 AM »
Thank you for your update.  I am glad it worked for you,

Have fun!

Sorry to be so slow getting back, was out of town.
You are correct. Even though I had both the CFE and the program in the same place, next to each other, it would not work.
I used the program to save a file, found where it saved it, and put the CFE there. It then worked!
Your suggestion does the same thing.

Router is now working fine!

Thanks for the help.