[okl4-developer] Error building OKL 1.5.2 for imx31 on Fedora7 & python2.5

DeVico, Michael mdevico at qualcomm.com
Wed May 21 03:46:46 EST 2008


Thanks for the quick responses!

After I sent my original email, I figured out one thing.

If I add the 'example=' option to the build command line as follows:

tools/build.py machine=kzm_arm11 project=iguana example=naming

I get past the expect_test_data issue, but I still hit the
unpack issue.

I also went back and checked, and I actually have python2.5.1
installed on my box and not 2.5. If I type /usr/bin/env python2.5
from the command line, I get:

Python 2.5.1 (r251:54863, Aug 23 2007, 20:17:30)
[GCC 4.1.2 20070502 (Red Hat 4.1.2-12)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

--Mike

-----Original Message-----
From: David Mirabito [mailto:davidm at ok-labs.com]
Sent: Monday, May 19, 2008 6:54 PM
To: DeVico, Michael
Cc: 'developer at okl4.org'
Subject: Re: [okl4-developer] Error building OKL 1.5.2 for imx31 on Fedora7 & python2.5

Hi Mike,

When you changed the python version to 2.5, are you running 2.5.0 by
any chance? There is a known bug in python causing the 'unpack' error
you are seeing.
Upgrading to 2.5.1(or down to 2.4) should fix this, and allow you to
obtain a final image.

Please let me know how it goes,
  - David


On 20/05/2008, at 9:47 AM, DeVico, Michael wrote:

> Hello,
>
> I just downloaded OKL v1.5.2 and installed the arm cross-compiler from
> http://www.ertos.nicta.com.au/downloads/tools/arm-linux-3.4.4.tar.gz)
>
> But when I tried to invoke an imx31 build as follows:
>
> ./tools/build.py project=iguana machine=kzm_arm11
>
> I kept getting the following error:
>
> scons: Reading SConscript files ...
> projects/iguana/SConstruct:433 Error: KengeBuild instance has no
> attribute 'expect_test_data'
>
> So I tried commenting out the following lines in projects/iguana/
> SConstruct:
>
> elif machine.__name__ == 'kzm_arm11':
> #    build.expect_test_data = [('KZM_ARM11 #', '^Ecfsetenv bootfile
> regression/kzm_arm11'), \
> #        ('KZM_ARM11 #', 'dhcp'), ('KZM_ARM11 #', 'go 0x80000000')]
> + build.expect_test_data
>     build.TestImage(boot_image)
>     build.RunImage(boot_image)
>     Default(boot_image)
>
> After doing so, the build actually seemed to run. It got all the way
> to the end but then complained
> with the following error:
>
> [ELF ] build/images/image.elf
> An error occurred: unpack requires a string argument of length 36
> [ELF ] build/images/image.boot
> An error occurred: [Errno 2] No such file or directory: 'build/
> images/image.elf'
> scons: done building targets.
>
> So what I am doing wrong?
>
> I'm building on Fedora 7.
>
> Also, note that I had to update the #!/bin/env line at the top of
> build.py to use python2.5 instead of
> 2.4 because that's the version installed on my box.
>
> BTW: I'm completely new to OKL and SConstruct files, so if my
> question sounds extremely dumb I apologize in
> advance!! J
>
> Thanks!
>
> --Mike
>
>
>
>
>
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080520/7dd3fa8b/attachment.htm 


More information about the Developer mailing list