Krautkanal.com

Veröffentlicht am 2018-02-26 20:54:41 in /t/

/t/ 32084: JTAG Bernd

kennyadr Avatar
kennyadr:#32084

Hallo Berundo,
kennst du dich mit (ur)jtag aus?
Ich würde gerne den Inhalt eines Flashspeichers dumpen. Vorhanden ist urjtag auf Linux und usbblaster.
Der Controller IC ist ein Altera EP1C20F400 (MAX II).
So weit, so gut.
jtag> cable usbblaster
Connected to libftdi driver.

jtag> detect
IR length: 10
Chain length: 1
Device Id: 00000010000010100001000011011101 (0x020A10DD)
Manufacturer: Altera (0x0DD)
Part(0): EPM240 (0x20A1)
Stepping: 0 0
Filename: /usr/share/urjtag/altera/epm240/epm240
jtag>


Das klappt alles wunderbar. Doch nun muss der Bus noch initialisiert werden, damit das Kerlchen gelesen werden kann. Doch hier hapert es, da ich nicht weiß, welchen Busname ich nehmen muss. Ich kann hierzu auch absolut nichts in einer Doku finden.

Hast du noch eine Idee?

chatyrko Avatar
chatyrko:#32085

Da der Post zu lange war, hier noch die vorhandenen Busnamen in urjtag:

Usage: initbus BUSNAME
Initialize new bus driver for active part.

BUSNAME Name of the bus

List of available buses:
arm9tdmi ARM9TDMI compatible bus driver
au1500 AU1500 BUS Driver via BSR
avr32 Atmel AVR32 multi-mode bus driver, requires <mode> parameter
valid <mode> parameters:
x8: 8 bit bus for the uncached HSB area, via OCD registers
x16: 16 bit bus for the uncached HSB area, via OCD registers
x32: 32 bit bus for the uncached HSB area, via OCD registers
OCD : 32 bit bus for the OCD registers
HSBC: 32 bit bus for the cached HSB area, via SAB
HSBU: 32 bit bus for the uncached HSB area, via SAB
bcm1250 Broadcom BCM1250 compatible bus driver via BSR
bf518f_ezbrd Blackfin BF518F EZ-Board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf51x Blackfin Generic BF51x bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf526_ezkit Blackfin BF526 EZ-Kit board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf527_ezkit Blackfin BF527 EZ-Kit board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf527_sdp Blackfin BF527 SDP board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf52x Blackfin Generic BF52x bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf533_ezkit Blackfin BF533 EZ-Kit board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf533_stamp Blackfin BF533 Stamp board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf537_ezkit Blackfin BF537 EZ-Kit board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf537_stamp Blackfin BF537 Stamp board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf538f_ezkit Blackfin BF538F EZ-Kit board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf53x Blackfin Generic BF53x bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf548_ezkit Blackfin BF548 EZ-KIT board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
bf561_ezkit Blackfin BF561 EZ-KIT board bus driver via BSR
hwait=[/]SIGNAL Use specified SIGNAL as HWAIT
flashbscoach Goepel Boundary Scan Coach compatible bus driver for flash programming via BSR
ejtag EJTAG compatible bus driver via PrAcc
ejtag_dma EJTAG compatible bus driver via DMA
fjmem FPGA JTAG memory bus driver via USER register, requires parameters:
opcode=<USERx OPCODE> [len=<FJMEM REG LEN>]
h7202 H7202 compatible bus driver via BSR
ixp425 Intel IXP425 compatible bus driver via BSR
ixp435 Intel IXP435 compatible bus driver
ixp465 Intel IXP465 compatible bus driver via BSR
jopcyc JOP.design Cyclone Board compatible bus driver via BSR
lh7a400 Sharp LH7A400 compatible bus driver via BSR (flash access only!)
mpc5200 Freescale MPC5200 compatible bus driver via BSR, parameter: [mux]
mpc824x Motorola MPC824x compatible bus driver via BSR
mpc837x Freescale MPC837x compatible bus driver via BSR, parameter: [mux] [width]
ppc405ep IBM PowerPC 405EP compatible bus driver via BSR
ppc440gx_ebc8 IBM PowerPC 440GX 8-bit EBC compatible bus driver via BSR
prototype Configurable prototype bus driver via BSR, requires parameters:
amsb=<addr MSB> alsb=<addr LSB> dmsb=<data MSB> dlsb=<data LSB>
ncs=<CS#>|cs=<CS> noe=<OE#>|oe=<OE> nwe=<WE#>|we=<WE> [amode=auto|x8|x16|x32]

rdbannon Avatar
rdbannon:#32086

pxa27x Intel PXA27x compatible bus driver via BSR
pxa2x0 Intel PXA2x0 compatible bus driver via BSR
s3c4510x Samsung S3C4510B compatible bus driver via BSR
sa1110 Intel SA-1110 compatible bus driver via BSR
sh7727 Hitachi SH7727 compatible bus driver via BSR
sh7750r Hitachi SH7750R compatible bus driver via BSR
sh7751r Hitachi SH7751R compatible bus driver via BSR
SHARC_21065L SHARC_21065L compatible bus driver via BSR
SHARC_21369_EZKIT SHARC_21369 EZ-KIT bus driver via BSR
slsup3 SLS UP3 compatible bus driver via BSR
tx4925 Toshiba TX4925 compatible bus driver via BSR
zefant-xs3 Simple Solutions Zefant-XS3 Board compatible bus driver via BSR

kershmallow Avatar
kershmallow:#32087

>>32084
Bernd, vergiss es wieder. Walter hat mich darauf hingewiesen, dass der Altera Max 2 ein FPA ist und mit dem Flash nichts zu tun hat. Um den Flash kümmert sich ein Blackfin. Mein Fehler.