[okl4-developer] Debugging tips for a new platform

Geoffrey Lee glee at ok-labs.com
Thu Jun 19 14:41:15 EST 2008


On Thu, Jun 19, 2008 at 02:36:51PM +1000, Joshua Root wrote:
> Geoffrey Lee wrote:
>> 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.
>
> Unfortunately l4test seems to be absent from this release...


You're right, I'll talk to Phil to get this fixed.  In the meantime,
I think you can just copy the l4test/ and the projects/l4test/
directories from the 2.1 release over to the fix7 release.


>
>>>> 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?
>
> Could be. I'm running the 1.2.1n binary linked from the wiki. I'll try a  
> newer version.


Cool, let us know how you go.

>
> - Josh

	-gl

>

-- 




More information about the Developer mailing list