IRC log for #openjtag on 20070417

02:18.04*** join/#openjtag swinchen (n=swinchen@strongbad.eece.maine.edu)
04:48.35*** join/#openjtag ka6sox (n=ka6sox@nslu2-linux/ka6sox)
07:14.50*** join/#openjtag rd_ (n=redragon@segfault.net)
07:15.07*** join/#openjtag rd_ (n=redragon@vnsecurity.net)
07:27.52*** join/#openjtag aproemel (n=aproemel@p508ABE71.dip0.t-ipconnect.de)
07:58.30*** join/#openjtag nm (n=hongtd@58.187.130.214)
12:19.16*** join/#openjtag Trou (i=trou@valhalla.syscall.eu)
12:19.27Trouhello people
12:19.56Troui was surveying available jtag hardware for reverse engineering and wondered if you could help me
12:20.07Troui already built a wiggler clone which functions well
12:20.11Troubut it's awfully slwo
12:20.27Trouso I have checked some commercial offerings like usb2demon
12:20.40Trouwhich look faster but are not compatible with opensource tools and not documented
12:21.07Trouso I wondered if anyone had experiences with commercial jtags and could tell me if they are worth anything
12:21.24Trouor if i'd better go and get used to waiting with my wiggler cable
12:21.35Trouthe main objective if flash reading / writing
12:21.49Troulike with hairydairymaid's utility
12:22.29Trouor if anyone understands FASTDATA in the EJTAG spec, i'd be glad to have a meaningul explanation ;)
12:24.17drathI'm mostly concerned with ARM based targets, and know little about MIPS
12:25.24drathThe FT2232 from FTDI can be used as a JTAG interface - see openocd.berlios.de for an open source project using it for ARM debugging
12:25.38drathWhich software are you using with the Wiggler?
12:25.58Trouhairydairymaid's
12:26.26Troumainly used by openwrt users to debrick their linksys/MIPS based routers
12:26.46Troui think i saw some things based on the FT2232 but I don't think they support MIPS
12:27.09drathno, they don't at the moment, but it's fully documented
12:27.15Trouat least openocd does not
12:27.18Trouhmm
12:28.23drathThe major problem isn't going to be the JTAG hardware - the JTAG protocol is rather simple
12:28.39drathBut the software site is difficult, i.e. what to send over JTAG to talk to your target
12:29.01draths/site/side/
12:29.11Trouyes
12:29.16Troubut atm this part is OK
12:29.38drathyeah - and I think you might be able to extend whatever JTAG tool you're currently using to make use of the FT2232
12:30.51Trouthe debrick utility uses processor access to access the flash to send the data to the JTAG
12:30.51Trouyeah OK
12:30.51Trouwhat's the speed difference between a wiggler and a JT2232 based cable ?
12:30.51Troubecause atm it take 24h to dump the 16MB of flash of the router i'm working on :x
12:30.51draththe FT2232 can do up to 6mhz in theory, during ARM debug I get ~1.5mhz effective
12:30.53dratha wiggler does ~200kHz
12:31.19drathbut it really depends on the target requirements, and i don't know mips enough
12:31.30drathdo you have a link to 14:26 < Trou> hairydairymaid's
12:31.51Trouhttp://downloads.openwrt.org/utils/HairyDairyMaid_WRT54G_Debrick_Utility_v48.zip
12:32.01Trouit implements the EJTAG protocol
12:34.03drathhum, ok, guess it would require a major rewrite
12:34.36drathwhen using a parallelport, you just toggle the port pins when you want to
12:34.45drathbut when using the USB, you have to queue larger command sequences
12:34.59drathto achieve reasonable throughput
12:35.18Trouhmm ok
12:35.32Troumaybe modifying openocd would be easier ?
12:37.14Troulooks like it probably would
12:38.32drathwell, being the OpenOCD's author of course I'd like to see someone extend it to another architecture - but the OpenOCD aims to be a complete debugger, and probably requires you to implement a lot of stuff which you wouldn't need to just read/write flash
12:38.59Trouindeed
12:39.06Troua full debugger wouldn't be bad
12:39.20Troubut I surely won't have the time to do this
12:39.53Troumy employer wouldn't like to see me working full time on this I bet :(
12:39.56drathok, you could replace ReadWriteData from hairdydairymaid's with something using FT2232 quite easily
12:40.21drathbut i'm not sure if that's enough to achieve a performance gain over a wiggler
12:40.56drathevery USB read-write is going to take 2-10ms, so you could only do 100-500 32-bit accesses
12:41.39drathon the wiggler, scanning 32 bit should roughly take 100us
12:42.06Trouthe difference is not really worth it
12:42.19drathno, it's actually 20x worse than a wiggler
12:42.40TrouI should probably implement the FASTDATA mechanism
12:42.45Trouah yeah I read 100ms
12:44.14Trouthanks a lot for the info :)
12:44.37drathyou're welcome
13:38.57*** join/#openjtag prpplague (n=dave@mail.americanmicrosystems.com)
14:10.45*** join/#openjtag gerdi__ (n=gerdi@dslb-084-059-130-239.pools.arcor-ip.net)
22:29.51*** join/#openjtag drath_ (i=vmaster@p5B07D91B.dip.t-dialin.net)
22:46.24*** join/#openjtag dwery (n=dwery@nslu2-linux/dwery)
23:54.01flybackhttp://www.youtube.com/watch?v=M7w5OUXwTZs <--- HOLY MOTHER OF CANUCK
23:56.41flybackj4k3 http://www.youtube.com/watch?v=M7w5OUXwTZs <--- YOU GO TO HELL AND YOU DIE
23:57.07flybackopps wrong /msg sorry

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.