Aleksandar Ristovski(deleted)
|
Re: Problems Debugging Target with BDI on mpc8313
|
Aleksandar Ristovski(deleted)
01/08/2009 9:47 AM
post19636
|
Re: Problems Debugging Target with BDI on mpc8313
Marc Roessler wrote:
> Hi,
>
> we are trying to load a QNX image to our target (mpc8313) RAM, then starting the image. We attempt this using the
BDI2000.
>
> We cross checked the image by loading it via UBoot, it works on that eval board. When loading it with the BDI it
crashes during boot, so there seems to be a major difference between the UBoot setup and the way our BDI does the setup
(according to the BDI config file).
>
> The BDI succeeds in stopping the CPU, it then setups the RAM at 0x0 etc... It is possible to load the QNX image to
address 0x200000, and it verifies all right (using the BDI "verify" commmand). We are using the RAW image format, loaded
using BDI with the "BIN" argument:
> load 0x200000 image.raw BIN
>
> When starting the image using "go 0x200000", the following happens:
> - qnx kernel messages are _not_ displayed on the serial console
> - after sthe bsh script starts the serial drivers, the display_msg calls are displayed properly
> - slogger and pipe start correctly as it seems
> - as soon as I try to start any other driver (network, etfs, ...) the system freezes at that point. According to GDB,
when halting, the PC is somewhere around 0xFExxxxxx - which is not valid memory!
>
> I'm wondering how & why the CPU jumps there... usually, starting at 0xFExxxxxx the NOR memory is mapped, but why should it jump there? After all, this is not an image tailored to NOR boot, but a general image that can be loaded via NAND, TFTP or NOR... (verified to work with those three methods).
>
> By the way, MBAR is set to 0xe0000000, just as QNX expects... so this should not be the problem?
>
What is the gdb version you are using?
I remember there was a bug we had to fix in order to get gdb
to work correctly with BDI2000. If you are not using it
already, I would suggest downloading the latest gdb.
I do not claim this would solve issues you are seeing, but
latest gdb should work better, and hopefully help.
---
Aleksandar Ristovski
|
|
|
Marc Roessler
|
Re: Problems Debugging Target with BDI on mpc8313
|
Marc Roessler
01/08/2009 11:33 AM
post19660
|
Re: Problems Debugging Target with BDI on mpc8313
I think the basic question it all boils down to is:
what registers does QNX require to be set when it's started as a pre-requisite?
Does anyone happen to know this?
Greetings,
Marc
|
|
|