Ron Jobmann wrote:
> Is anyone successfully debugging code on ixp42x using Openocd?  If so,
> would you mind sharing config files/scripts that you're using?
>
> I want to be able to debug the linux kernel.  So far, I've got Eclipse
> set up and can cross compile fine.  The next step I guess is to get
> Eclipse to use Openocd to talk to the board.  This is where I need
> some help.
>
I use openocd to flash and debug u-boot - that part works fine.

Debugging the kernel is another thing: I tried this just today for the
first time, without success:

With JTAG disconnected, the board loads the kernel fine.
With JTAG and openocd active, it hangs after "uncompressing kernel".

I am not quite sure how OpenOCD handles debug entry on the IXP42x:
AFAIR, you need to load code into the mini-instruction cache at address
0, which is the reset vector - however, that also overrides all the
other vectors, regardless of what the kernel sets.

The BDI2000 has a configuration option to load user-defined values into
the non-reset vectors, which should match what the application uses - I
have successfully debugged the Linux kernel on an IXP425 using a BDI2000
some time ago.

Looking at the source, it seems OpenOCD lacks such an option, however, I
am not sure if this is the only obstacle.

cu
Michael

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to