CFE 1.5 Question

22 posts / 0 new
Last post
Fmay
Fmay's picture
CFE 1.5 Question

Something know if the CFE commands change on v1.5 

 ------------------------------------------------------------------------------------------------------------

WGR614v8 - 1.5 (Fri Jun  6 15:53:24 CST 2008)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.30.0
Device eth0:  hwaddr 00-00-00-00-06-00, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
CFE> ^C
CFE> ^C
CFE> setenv
Invalid command: "setenv"

 command status=-1
CFE> printenv
Invalid command: "printenv"

 command status=-1
CFE> help
Invalid command: "help"

 command status=-1

CFE> nvram
 command status=-8

CFE> nvram get board_id
U12H072T00_NETGEAR
 command status=0

CFE>CFE> tftpd
Reading :: Done. 3268666 bytes read
Reading :: Done. 3268666 bytes read
Reading :: Done. 3268666 bytes read
Reading ::

 --------------------------------------------------------------------

Thanks for any help.

 

bzing2
bzing2's picture
Netgear have "helpfully"

Netgear have "helpfully" stripped out all the help and a load of the commands in version 1.5; setenv and printenv have gone, along with help! The nvram command does work, but as you see you have to give a whole command, as there is no help.

You will be glad to know, that as far as I can tell, that CFE will fall back to the board id in nvram if the one in flash is corrupted. So you can recover if you accidentally write over it in flash..

<rant>
For the life of me I cannot work out why Netgear have crippled the boot loader on an "Open Source" router. Between, not using the standard checksum in a TRX, storing values in the middle of flash (when nvram would have done), changing the load address (to 0x80001400 not 0x80001000), and finally removing half the boot loader and help commands. For a device designed to let you tinker they sure make it harder than it needs to be...
</rant>

Fmay
Fmay's picture
These things pretty useless

These things pretty useless use an ugly amount of space in Flash....

Can be possible to change the CFE on these routers? at what moment? how?

Somebody know What is the hard method to recover it?

bzing2
bzing2's picture
It is possible to upgrade the

It is possible to upgrade the boot loader in exactly the same way one upgrades the kernel... Boot into Linux, and write to the MTD block device...

The problem is what happens if it goes wrong! For that your going to need to have a working JTAG port and programmer. All of which is possible. Its on my list, but only as a last resort.

Nachi
Nachi's picture
To flash a different boot

To flash a different boot loader from CFE (works if you have a serial port).

1. State a tftp server in the PC
2. Copy the CFE binary file into the tftpserver directory. In Linux it is usually /tftpboot
3. Execute the following command at the CFE prompt

flash -noheader 192.168.1.2:v8_cfe_1_3 flash1.boot

This of course assumes you do have the correct boot loader.

Fmay
Fmay's picture
It sounds a few easier, but

It sounds a few easier, but where can I download the source code of CFEv1.3 proper to v8, or where can I find or extract the binary of v8_cfe_1_3?

Thanks for any information.

Fmay
Fmay's picture
Probably, the save command

Probably, the save command would help to extract the binary of CFE v1.3:

CFE> save 192.168.1.2:v8_cfe_1_3 startaddr length

Something know if it is valid and the values of startaddr and length.

Thanks for any information

Fmay
Fmay's picture
Ok, I've downloaded the CFE

Ok, I've downloaded the CFE from broadcom. I've compiled cfe-1.4.2/build/broadcom/tiny/ with CFG_BOARDNAME set as bcm947xx

I would like to know if the file cfe.flash produced is enough to flash on flash1.boot.

Thanks for any help or commentary

Tornado
Tornado's picture
@bzing2 and Fmay,

@bzing2 and Fmay,

I am looking for some additional testers for Tjtagv3, I have included support for the wgr614v8 and wgr614v9...interested ? I would also be interested in having you test my replacement CFE ?

I am looking for feedback the will help me improve the tool, it is at RC2 now.

Fmay
Fmay's picture
The procedure is as follow:

The procedure is as follow:

From WGR614v8 CFEv1.3 get the binary:
dd if=/dev/mtd/0 of=/tmp/v8_cfe_1_3

Put the v8_cfe_1_3 file on tftpboot dir.

And apply on CFE for WGR614v8 version: 1.5:

CFE> flash -noheader 192.168.1.2:v8_cfe_1_3 flash1.boot
Reading 192.168.1.2:v8_cfe_1_3: Done. 131072 bytes read
Programming...done. 131072 bytes written
command status=0

Tornado:: please send me more information about the tool.

Thanks a lot!!

bzing2
bzing2's picture
Tornado,

Tornado,

Send me a link to where the tool is, and probably another for the cable needed (guessing a waggler). I have "playing with JTAG" on my TODO list; if I get to it is another matter...

mikie
mikie's picture
I feel really stupid. I have

I feel really stupid. I have following messages:

WGR614v8 - 1.5 (Fri Jun 6 15:53:24 CST 2008)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.30.0
Device eth0: hwaddr 00-FF-FF-FF-FF-FF, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
CFE> ^C
CFE> ^C
CFE> ^C
CFE> tftpd
Reading :: Done. 3761210 bytes read
Reading :: Done. 3761210 bytes read
Reading :: Done. 3761210 bytes read
Reading :: Done. 3761210 bytes read

after power off, power on

Decompressing..........done
WGR614v8 - 1.5 (Fri Jun 6 15:53:24 CST 2008)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.30.0
Device eth0: hwaddr 00-FF-FF-FF-FF-FF, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Loading .
Image chksum: 0xFFFFFFFF
Calc chksum: 0x00000000
Reading ::

could you help me, what to do next?
many thanks
mikie

achilles
achilles's picture
Could any one plz provide me

Could any one plz provide me CFE v1.5 NA version ?

achilles
achilles's picture
Tornado said:

Tornado said:
@bzing2 and Fmay,
I am looking for some additional testers for Tjtagv3, I have included support for the wgr614v8 and wgr614v9...interested ? I would also be interested in having you test my replacement CFE ?
I am looking for feedback the will help me improve the tool, it is at RC2 now.

Hi tornado,

I would also like to test your replacement CFE and Tjtagv3 .

Could you please provide me the necessary stuff ?

mikie
mikie's picture
Tathagata Das said:

Tathagata Das said:
It seems to me that Ethernet MAC is wrong in your board. You can change that by this command
ifconfig eth0 -hwaddr=00:01:02:03:04:05 -addr=192.168.1.1 to enable tftpd at CFE
Give actual MAC address in place of "00:01:02:03:04:05". You can find that MAC address in the cover of the board. This change is temporary. To make it permanent please do the following steps.
1. start tftd at CFE
2. update with default netgear firmware.
3. run burnethermac command
burnethermac in this form
burnboardid U12H072T00_NETGEAR
Please let me know if you have any further query.

I have tried something like: ifconfig eth0 -hwaddr=00:01:02:03:04:05 -addr=192.168.1.1 and next tftpd.. but still no change.. I see some problem. Could you provide default netgear firmware ([email protected]). When I wrote "nvram get boardid" I received U12H072T00_NETGEAR. But I will try also "burnboardid U12H072T00_NETGEAR" as you recommended.

thanks
mikie

achilles
achilles's picture
You can find default Netgear
mikie
mikie's picture
Tathagata Das said:

Tathagata Das said:
It seems to me that Ethernet MAC is wrong in your board. You can change that by this command
ifconfig eth0 -hwaddr=00:01:02:03:04:05 -addr=192.168.1.1 to enable tftpd at CFE
Give actual MAC address in place of "00:01:02:03:04:05". You can find that MAC address in the cover of the board. This change is temporary. To make it permanent please do the following steps.
1. start tftd at CFE
2. update with default netgear firmware.
3. run burnethermac command
burnethermac in this form
burnboardid U12H072T00_NETGEAR
Please let me know if you have any further query.

bad news.

I changed mac using:  ifconfig eth0 -hwaddr=00:01:02:03:04:05

next I run tftpd

next I sent firmware WGR614v8-V1.1.20_7.0.37.chk to the router. But router still tries to read something

Reading .....

Reading .....

I don't have burnethermac and burnboardid in CFE1.5

 

mikie

Fmay
Fmay's picture
Follow the CFE binary: http:

Follow the CFE binary: http://www.myopenrouter.com/download/10741/v8_cfe_1_3/

put it into your tftpboot directory and on CFE apply:

CFE> flash -noheader 192.168.1.2:v8_cfe_1_3 flash1.boot

reboot

CFE> setenv BOARD_ID U12H072T00_NETGEAR
CFE> nvram set boardid=U12H072T00_NETGEAR
CFE> tftpd

mikie
mikie's picture
Fmay said:

Fmay said:
Follow the CFE binary: http://www.myopenrouter.com/download/10741/v8_cfe_1_3/
put it into your tftpboot directory and on CFE apply:
CFE> flash -noheader 192.168.1.2:v8_cfe_1_3 flash1.boot
reboot
CFE> setenv BOARD_ID U12H072T00_NETGEAR
CFE> nvram set boardid=U12H072T00_NETGEAR
CFE> tftpd

I've tried to follow link but acces is denied. Browser said:

Access Denied

You cannot access this download at this time.

 

Could you send CFE 1.3 directly? ([email protected])

thanks

 

achilles
achilles's picture
Fmay said:

Fmay said:
Follow the CFE binary: http://www.myopenrouter.com/download/10741/v8_cfe_1_3/
put it into your tftpboot directory and on CFE apply:
CFE> flash -noheader 192.168.1.2:v8_cfe_1_3 flash1.boot
reboot
CFE> setenv BOARD_ID U12H072T00_NETGEAR
CFE> nvram set boardid=U12H072T00_NETGEAR
CFE> tftpd

Well I am not able to get it , The broser says :

Access Denied

You cannot access this download at this time.

Could you please send it to me directly at : [email protected] 

 

mikie
mikie's picture
Fmay said:

Fmay said:
Follow the CFE binary: http://www.myopenrouter.com/download/10741/v8_cfe_1_3/
put it into your tftpboot directory and on CFE apply:
CFE> flash -noheader 192.168.1.2:v8_cfe_1_3 flash1.boot
reboot
CFE> setenv BOARD_ID U12H072T00_NETGEAR
CFE> nvram set boardid=U12H072T00_NETGEAR
CFE> tftpd

many thanks guys

I have usable router again.

mikie

achilles
achilles's picture
thnx Fmay I have got the CFE1

thnx Fmay I have got the CFE1.3 .... I am going to replace my bootloader with it and hopefully it will work ....