Hi,
I have a router which contains RTL8197D . The board does not have any JTAG Header. Although i have figured out the oins and somehow managed to attach a header for JTAG. I am using the wiggler cable as mentioned in this link
http://wiki.openwrt.org/doc/hardware/po … e.buffered
Signal i am using are :
1. TMS
2. TCK
3. TDI
4. TDO
5. TRST_IN
The board support EJTAG.
As RTL8179D contains Lexra RLX5281 cpu cores, Urjtag and tjtag doesnot support such SOC. Although i have added support in tjtag v3.0.1 and urjtag by adding device id in the code. The utility now identifies the the SOC but it doesnot reconizes the SPI flash. SPI Flash used in the board is MX25L12805D.
i have used both switches /dma and /nodma in tjtag but no result.
Following is the result with /dma swtich
###############################################################################
# ./tjtag -probeonly /wiggler /dma /flash_debug
==============================================
EJTAG Debrick Utility v3.0.1 Tornado-MOD
==============================================
Probing bus ... Done
Instruction Length set to 5
CPU Chip ID: 00010101001010000001000000001101 (1528100D)
*** Found a LX5281 chip ***
- EJTAG IMPCODE ....... : 00000010110000010000000010000000 (02C10080)
- EJTAG Version ....... : 1 or 2.0
- EJTAG DMA Support ... : Yes
- EJTAG Implementation flags: R4k ASID_8 MIPS16 MIPS32
*** DMA Mode Forced On ***
Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Done
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ... Done
spi_flash_read 0x1fc00000
spi_flash_mmr 0x11300000
spi_flash_mmr_size 0x0000000c
spi_flash_ctl 0x00000000
spi_flash_opcode 0x00000004
spi_flash_data 0x00000008
spi_ctl_start 0x00000100
spi_ctl_busy 0x00010000
Probing Flash at (Flash Window: 0x1fc00000) ...
Debug AMD Vendid : 00000000000000000000000000000000 (00000000)
Debug AMD Devdid : 00000000000000000000000000000000 (00000000)
Debug SST Vendid : 00000000000000000000000000000000 (00000000)
Debug SST Devdid : 00000000000000000000000000000000 (00000000)
Debug BSC-SCS Vendid :00000000000000000000000000000000 (00000000)
Debug BCS-SCS Devdid :00000000000000000000000000000000 (00000000)
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000000
REG 0x00000004 REGWRITE32 0x0000009f
SPI_FLASH_OPCODE 0x00000004 PTR_OPCODE 0x0000009f
REG 0x00000000 REGWRITE32 0x00000131
SPI_FLASH_CTL SEND -> 0x00000000 reg 0x00000131
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000000
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000008
Debug SPI id : 00000000000000000000000000000000 (00000000)
Debug SPI Vendid : 00000000000000000000000000000000 (00000000)
Debug SPI Devdid : 00000000000000000000000000000000 (00000000)
Done
*** Unknown or NO Flash Chip Detected ***
*** REQUESTED OPERATION IS COMPLETE ***
##############################################################################
Following is the result with /nodma switch
##############################################################################
# ./tjtag -probeonly /wiggler /flash_debug /nodma
==============================================
EJTAG Debrick Utility v3.0.1 Tornado-MOD
==============================================
Probing bus ... Done
Instruction Length set to 5
CPU Chip ID: 00010101001010000001000000001101 (1528100D)
*** Found a LX5281 chip ***
- EJTAG IMPCODE ....... : 00000010110000010000000010000000 (02C10080)
- EJTAG Version ....... : 1 or 2.0
- EJTAG DMA Support ... : Yes
- EJTAG Implementation flags: R4k ASID_8 MIPS16 MIPS32
*** DMA Mode Forced Off ***
Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Done
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ... Done
spi_flash_read 0x1fc00000
spi_flash_mmr 0x11300000
spi_flash_mmr_size 0x0000000c
spi_flash_ctl 0x00000000
spi_flash_opcode 0x00000004
spi_flash_data 0x00000008
spi_ctl_start 0x00000100
spi_ctl_busy 0x00010000
Probing Flash at (Flash Window: 0x1fc00000) ...
Debug AMD Vendid : 00000000000000000000101111110000 (00000BF0)
Debug AMD Devdid : 00000000000000000000000000000100 (00000004)
Debug SST Vendid : 00000000000000000000101111110000 (00000BF0)
Debug SST Devdid : 00000000000000000000000000000100 (00000004)
Debug BSC-SCS Vendid :00001011111100000000000000000100 (0BF00004)
Debug BCS-SCS Devdid :00001011111100000000000000000100 (0BF00004)
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000000
REG 0x00000004 REGWRITE32 0x0000009f
SPI_FLASH_OPCODE 0x00000004 PTR_OPCODE 0x0000009f
REG 0x00000000 REGWRITE32 0x00000131
SPI_FLASH_CTL SEND -> 0x00000000 reg 0x00000131
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000000
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000008
Debug SPI id : 00000000000000000000000000000000 (00000000)
Debug SPI Vendid : 00000000000000000000000000000000 (00000000)
Debug SPI Devdid : 00000000000000000000000000000000 (00000000)
Done
*** Unknown or NO Flash Chip Detected ***
*** REQUESTED OPERATION IS COMPLETE ***
##############################################################################
Please Help