Does the CFE get flashed during a normal firmware upgrade?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Thu Oct 20, 2011 17:52    Post subject: Does the CFE get flashed during a normal firmware upgrade? Reply with quote
Topic.
Sponsor
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Thu Oct 20, 2011 17:57    Post subject: Reply with quote
no.. the cfe never gets touched. It is actually protected.

That does not hold true for all routers. I know that some netgears include the cfe in the firmware flash (oem). I'm sure there are others.

Linksys, the cfe never gets touched by a firmware flash.

_________________
[Moderator Deleted] Shocked
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Thu Oct 20, 2011 18:01    Post subject: Reply with quote
I'll add to that - dd-wrt does never update a boot loader with its firmware flash.
_________________
Kernel panic: Aiee, killing interrupt handler!
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Thu Oct 20, 2011 18:29    Post subject: Reply with quote
Well I kinda thought that but how are people seemingly messing up their CFE from firmware updates? Also, can you change the way DD-wrt installs to overwrite the CFE?
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Thu Oct 20, 2011 18:43    Post subject: Reply with quote
Bird333 wrote:
Well I kinda thought that but how are people seemingly messing up their CFE from firmware updates? Also, can you change the way DD-wrt installs to overwrite the CFE?


installing dd-wrt does not, can not, write the cfe space using normal methods (tftp, gui upgrade, etc). I suppose things can get screwed up if someone "experiments" with firmware in a router that is not supported but even then, writing the cfe space really can't happen.

The only time a cfe needs replacing is when the install procedure manipulates the cfe (vxworks bsp to linux cfe, TM, RG, etc.), and replacing a cfe to change a router (320 to e2000, 610 to e3000) and things go wrong.

What you see is someone that bricked the router and all that needs to be done is to erase nvram and / or kernel but they fire up jtag and erase wholeflash.

you can mess thing up with mtd commands.

_________________
[Moderator Deleted] Shocked
nuke12
DD-WRT User


Joined: 10 Jul 2011
Posts: 90

PostPosted: Thu Oct 20, 2011 18:51    Post subject: Reply with quote
barryware wrote:

you can mess thing up with mtd commands.


With the OP's question, that was my first thought. I'm sure I can screw-up any part of the flash, including the CFE with MTD commands.
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Thu Oct 20, 2011 18:54    Post subject: Reply with quote
nuke12 wrote:
barryware wrote:

you can mess thing up with mtd commands.


With the OP's question, that was my first thought. I'm sure I can screw-up any part of the flash, including the CFE with MTD commands.


mtd unlock cfe
mtd erase cfe

that will erase the cfe space

or depending on the router..

mtd erase pmon


One guy toasted his 600 by:

mtd erase 1
mtd erase 2

_________________
[Moderator Deleted] Shocked
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Thu Oct 20, 2011 19:09    Post subject: Reply with quote
barryware wrote:
Bird333 wrote:
Well I kinda thought that but how are people seemingly messing up their CFE from firmware updates? Also, can you change the way DD-wrt installs to overwrite the CFE?


installing dd-wrt does not, can not, write the cfe space using normal methods (tftp, gui upgrade, etc). I suppose things can get screwed up if someone "experiments" with firmware in a router that is not supported but even then, writing the cfe space really can't happen.

The only time a cfe needs replacing is when the install procedure manipulates the cfe (vxworks bsp to linux cfe, TM, RG, etc.), and replacing a cfe to change a router (320 to e2000, 610 to e3000) and things go wrong.

What you see is someone that bricked the router and all that needs to be done is to erase nvram and / or kernel but they fire up jtag and erase wholeflash.

you can mess thing up with mtd commands.


This was what I thought but sometime ago Eko created some test firmware for me for a WRTSL54GS and he needed to modify the CFE. It has been quite awhile ago but I don't ever remember replacing the CFE with the 'mtd' commands.
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Thu Oct 20, 2011 19:18    Post subject: Reply with quote
Bird333 wrote:
barryware wrote:
Bird333 wrote:
Well I kinda thought that but how are people seemingly messing up their CFE from firmware updates? Also, can you change the way DD-wrt installs to overwrite the CFE?


installing dd-wrt does not, can not, write the cfe space using normal methods (tftp, gui upgrade, etc). I suppose things can get screwed up if someone "experiments" with firmware in a router that is not supported but even then, writing the cfe space really can't happen.

The only time a cfe needs replacing is when the install procedure manipulates the cfe (vxworks bsp to linux cfe, TM, RG, etc.), and replacing a cfe to change a router (320 to e2000, 610 to e3000) and things go wrong.

What you see is someone that bricked the router and all that needs to be done is to erase nvram and / or kernel but they fire up jtag and erase wholeflash.

you can mess thing up with mtd commands.


This was what I thought but sometime ago Eko created some test firmware for me for a WRTSL54GS and he needed to modify the CFE. It has been quite awhile ago but I don't ever remember replacing the CFE with the 'mtd' commands.


All the prep's, killers, cfe updaters do write to the cfe space but were designed to do so.

The thread start out: "Does the CFE get flashed during a normal firmware upgrade?"

Keyword here is normal

_________________
[Moderator Deleted] Shocked
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Thu Oct 20, 2011 21:14    Post subject: Reply with quote
Yeah, ok. What is changed in the firmware that allows it to write to the CFE?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum