Difference between revisions of "Debrick Routers Using JTAG Cable"

From TIAO's Wiki
Jump to: navigation, search

10 PCS, 10cm x 10cm, 2 layers prototype for $38.80 shipped!
(Debrick Routers Using JTAG Cable)
(Debrick Routers Using JTAG Cable)
Line 21: Line 21:
 
====NVRAM====
 
====NVRAM====
  
NVRAM stands for nonvolatile RAM.  It can hold its contents when the main power source is lost.  You may even know this type of memory as static RAM (SRAM), Broadcom based router uses NVRAM to store the startup configuration file.  Most
+
NVRAM stands for nonvolatile RAM.  It can hold its contents when the main power source is lost.  You may even know this type of memory as static RAM (SRAM), Broadcom based router uses NVRAM to store the startup configuration file.  Most bricked routers are caused by a wrong configuration file.
 +
 
 +
 
 +
====Common Firmware Environment (CFE)===
 +
 
 +
CFE stands for Common Firmware Environment.  The Broadcom Common Firmware Environment (CFE) is a collection of software modules for initialization and bootstrap of designs incorporating Broadcom MIPS64™ processors.  CFE is used to bootstrap the OS.
 +
 
 +
On startup, CFE performs the following low-level initialization:
 +
#Reset and ROM trap handler vectors
 +
#CPU and FPU initialization
 +
#L1 and L2 Cache initialization
 +
#Multiprocessor initialization
 +
#Memory controller initialization
 +
#PCI and LDT bus configuration
 +
#Environment variables
 +
#Console device initialization
 +
#Bootstrap device initialization

Revision as of 12:41, 8 February 2009

Debrick Routers Using JTAG Cable

In this tutorial, I am going to show you how to debrick your router using DIYGADGET's dedicated JTAG cable for routers (solderless way).

Before you try to JTAG your router, we highly recommend you to try a few other steps before you JTAG your router.

Things need to try before you JTAG the router

Please read carefully on this article:

Recover from a Bad Flash

If you have tried everything before the section "Recovery by JTAG cable" and it still doesn't work, you can now proceed with the following tutorials on how to save your router by using DIYGADGET's JTAG cable.

Router Basics

I think it is very important to introduce some router basics before we get started. Because we are going to work on these stuff later on to save your router.

You probably already heard of terms like, NVRAM, CFE, FLASH ect. So what are they?

NVRAM

NVRAM stands for nonvolatile RAM. It can hold its contents when the main power source is lost. You may even know this type of memory as static RAM (SRAM), Broadcom based router uses NVRAM to store the startup configuration file. Most bricked routers are caused by a wrong configuration file.


=Common Firmware Environment (CFE)

CFE stands for Common Firmware Environment. The Broadcom Common Firmware Environment (CFE) is a collection of software modules for initialization and bootstrap of designs incorporating Broadcom MIPS64™ processors. CFE is used to bootstrap the OS.

On startup, CFE performs the following low-level initialization:

  1. Reset and ROM trap handler vectors
  2. CPU and FPU initialization
  3. L1 and L2 Cache initialization
  4. Multiprocessor initialization
  5. Memory controller initialization
  6. PCI and LDT bus configuration
  7. Environment variables
  8. Console device initialization
  9. Bootstrap device initialization


10 PCS, 10cm x 10cm, 2 layers prototype for $38.80 shipped!