[okl4-developer] Debugging tips for a new platform
Geoffrey Lee
glee at ok-labs.com
Thu Jun 19 14:23:25 EST 2008
On Thu, Jun 19, 2008 at 02:09:16PM +1000, Joshua Root wrote:
>
> Right, I actually have a new ixp4xx platform subdir. I'd be interested
> in documentation for the attributes you can set in machines.py actually,
> particularly which ones affect pistachio.
I think at the very least you need the memory map and subplatform
if there is one. Building with project=l4test should get you
as close as to finding out the minimum the kernel requires.
>
>> The head.spp should work unmodified, we utilize the PXA-based
>> gumstix extensively. That runs in little endian though, but I don't
>> think that is the specific issue.
>
> Right, I have endian = "big" so it looks like it should do the right
> thing. I was just wondering because the slug is a little different to
> the gumstix.
>
>> I just took a brief look at the Skyeye source code and it seems there
>> is support for running in big endian mode. If you specify the -e
>> parameter it infers it from the ELF file automatically. You may
>> want to take a look whether it is worth trying out Skyeye, as
>> it can give you instruction traces, and from there, you can narrow
>> down where to look further.
>
> I actually tried that, but it dies with "elf_checkFile failed: -3". Any
> idea what that means? Getting it running in the simulator would
> certainly be the quickest way forward.
A return -3 means the architecture as read in from the ELF file
is not supported. Perhaps this is a bug in Skyeye?
-gl
>
> I've put up a diff between the 2.1.1-fix7 release and what I have now,
> if you want to have a look:
> <http://www.cse.unsw.edu.au/~jmr/okl4-ixp4xx.diff>
>
> Cheers,
> Josh
>
--
More information about the Developer
mailing list