[okl4-developer] Debugging tips for a new platform

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


On Thu, Jun 19, 2008 at 04:04:36PM +1000, Joshua Root wrote:
>
> Not so good I'm afraid. The binary 1.2.1n runs a gumstix image fine, but  
> fails on the big-endian nslu2 image. With the same gumstix image,  
> vanilla 1.2.1 and 1.2.2 output this and nothing more:
>

Hey Josh - 

// snip

> 1.2.3 through 1.2.5 do this:
>
> % skyeye-1.2.5 -c tools/sim_config/gumstix.skyeye -e build/images/image.sim
> Your elf file is little endian.
> arch: arm
> cpu info: xscale, pxa25x, 69052100, fffffff0, 2
> mach info: name pxa_lubbock, mach_init addr 0x8066730
> log_info: Error logon value 2
> log_info: log is off.
> log_info:log file is /tmp/sk1.cw.log, fd is 0x80f8248
> log_info: log start clock 0
> log_info: log end clock 18446744073709551615
> uart_mod:0, desc_in:, desc_out:, converter:
> SKYEYE: use xscale mmu ops
> exec file "build/images/image.sim"'s format is elf32-little.
> load section kernel.text: lma = 0xa0000000 (vma = 0xf0000000)  size =  
> 0x00012af0.
> SKYEYE:NumInstrs 0, mem_write_byte addr = f0000000 no bank
>

I got a fresh 2.1 tarball and skyeye 1.2.5 off skyeye.org and did
./configure; make, built OKL4 with gumstix and ran that and worked fine.
To take a step back, can you at least confirm that it works on skyeye
1.2.5 for gumstix?

There are several issues that I have identified with your patch.
First, your toolchain setup appears to be incorrect.  Please add
the following to the ixp class:

    c_flags = arm.c_flags + ["-mbig-endian"]
    as_flags = ["-mbig-endian"]
    link_flags = ["-EB"]

As well, the default toolchain is gnu_arm_toolchain, which uses the
libgcc included in libgcc.  If you are using the pre-built toolchain,
it uses the gcc provided libgcc.  Since that is little endian it will
not link.  You can use the OKL4 provided libgcc instead.

Finally, the trace log will be of use in determining where you are
stalling.  After those fixes I tried to boot it on Skyeye 1.2.5 and
found that it was spinning on trying to write out to the serial.

I've included a patch, please apply on top of your own patch.

	-gl



> I notice that this is the same problem that Gabi was seeing in this post  
> from February:  
> <http://lists.okl4.org/pipermail/developer/2008-February/000610.html>
>
> Do you have internal patches that are needed to get this working?
>

I think we've had to make patches for ancient versions of skyeye but
I don't recall there being any special patches required for anything
recent.

> - Josh

	-gl

>

-- 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ixp.patch
Type: text/x-diff
Size: 17245 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20080619/7a357abd/attachment.patch 


More information about the Developer mailing list