OpenWrt Forum Archive

Topic: JTAG OpenOCD Configuration for Broadcom 63xx

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

Hello,

I have been trying to figure out how to use JTAG on my BCM6348-based, Pirelli A125G router. I am using the latest git clone of OpenOCD, but I fail to find the correct "target" and "board" configuration files, appropriate for this board. Perhaps it's there, but most likely it is not. I have Googled myself blue, but in vain. I know Broadcom is based on MIPS technology, and according to OpenOCD manual, there should be at least one target/cpu/board (or whatever it is) available. See:

http://openocd.berlios.de/doc/html/CPU- … et%20types
http://openocd.berlios.de/doc/html/Conf … lines.html

In addition, I have found the relevant devices (BCM6348/58) in the UrJTAG release. But I do not use UrJTAG as my JTAG USB-dongle is not yet supported there. For more information on UrJTAG data file formats, look here.


My board data are as follows:
-------------------------------------------------------------
SoC         Broadcom 6348 Rev.b0 / 00029107 @ 240 MHz
CPU         BCM6348KPBG V0.7
Flash         AMD? 29LV320CBTC-90G, 4MB (4M*8b | 2M*16b)
SDRAM         Winbond W9812G6GH-6, 16MB (2M*4Banks*16b)
LAN Switch     BCM5325e
Wireless Card     Broadcom BCM4318KFBG
-------------------------------------------------------------

With Flash layout:
-------------------------------------------------------------
CFE         BOOT         64KB     0x00000000-0x00010000
1st Image     IMAGE         ~3.8MB     0x00010000-0x003D0000
1st Conf     CONF         ~64KB     0x003D0000-0x003E0000
2nd Conf     CONF         ~64KB     0x003E0000-0x003F0000
Fact Settings     FACTORY     64KB     0x003F0000-0x00400000
-------------------------------------------------------------


Could someone please:
a)  provide me with a working OpenOCD config file(s) for a board in the Broadcom BCM63xx series?
b)  provide any other relevant help or details regarding JTAG of Broadcom/MIPS based boards?
c)  let me know if it is possible to translate UrJtag data into OpenOCD configuration files? (How?)
d)  provide a serious data sheet for this chip? (Broadcom products are really starting to p155 me off!)

Many thanks in advance for any response!


The successful results of this "study" will be posted in detail here on OpenWRT Wiki.

Other Useful Sources:
________________________________________
Some Broadcom info: 
http://www.linux-mips.org/wiki/Broadcom_SOCs
Great JTAG info/explanation:
http://www.freelabs.com/~whitis/electronics/jtag/
Crucial Router JTAG info from dd-wrt.com:
http://www.dd-wrt.com/wiki/index.php/JTAG
OpenOCD forum (hosted by Sparkfun):
http://forum.sparkfun.com/viewforum.php?f=18
UrJTAG Forum:
http://sourceforge.net/projects/urjtag/ … rum/682993

(Last edited by PopOpen on 26 Apr 2011, 01:48)

the router may be not better than taht based on rt3050f.

The discussion might have continued from here.