Am 04.07.2013 01:35, schrieb Pete Batard:
> On 2013.07.03 06:22, Oleksij Rempel wrote:
>>> And once more, many thanks for the help there. If there's additional
>>> feedback you'd like to have, let me know - I'll see what I can do.
>>
>> Yes, i need some tests on breakpoints and watchpoints.
>>
>> If you can dissamble you bootloader it will be great.
>
> I guess you mean a gdb compatible disassembly. All I have at the moment
> is a an IDA Pro one (fairly unexciting since it's just decompression of
> the second stage bootloader).
>
> Will a binutils objdump disassembly do? If not, that first stage
> bootloader is 20 KB, so let me know if you want to take a stab at it,
> and I'll send it to you.
>
> I should also point out that I'm fairly new to _actually_ using OpenOCD
> for much of anything, as most of my interest with it so far as been with
> compilation (in part to test libusb/libusbx) and poking a few JTAG
> devices I have lying around. I think I'll read a little bit on gdb usage
> with OpenOCD before I start testing breakpoints, watchpoints and other
> stuff => it may be next week before I get back to you on that.
>
> In case it matters, the device I'm playing with is a SpeedTouch ST546v6
> DSL modem/router (running proprietary
> Thomson/Whatever-their-new-name-is-these-days firmware).
>
> Regards,

It doesn’t meter what do you use. Just dissas, first part of first stage 
boot loader and try to use break points. And compare your results with 
disassembled code.

Here is one example:
reset; sleep 1; halt
bp 0xbfc004b0 0x4 hw
resume 0xbfc00000

if there is some code on 0xbfc004b0 and it will be executed, then 
openocd should stop here.

Other example:
reset; sleep 1; halt
wp 0xb0404008 0x4
resume 0xbfc00000

if boot loader trying to access register located at 0xb0404008,  openocd 
will stop one or two instructions later.


-- 
Regards,
Oleksij

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to