I tried to detect the flash on a wrt54g with dirtyjtag cable:
https://github.com/jeanthom/DirtyJTAG
urjtag segfaults:
jtag> discovery
[...]
Detecting DR length for IR 11111011 ... 1
Detecting DR length for IR 11111100 ... 1
Detecting DR length for IR 11111101 ... 1
Detecting DR length for IR 11111110 ... 1
jtag> initbus ejtag_dma
Initialized bus 5, active bus 0
jtag> detectflash 0x1fc00000
Segmentation fault (core dumped)
Any idea how to debug that? strace?
I would start with GDB. Here are my notes on the topic from 5 years ago:
/The UrJTAG uses a libtool wrapper for starting, so debugging with GDB
is a bit tricky.//
//
//You should debug the src/apps/jtag/.libs/lt-jtag binary. //
//But it does not appears right after building it, the wrapper script
creates it if not exists. //
//So ran ./src/apps/jtag/jtag first.//
//
//Then execute //
/|/
//gdb ./src/apps/jtag/.libs/lt-jtag
/Run the urjtag with GDB reproduce the problem and then type bt and st
in the gdb prompt./
/
HTH,
Miklos
|
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development