[okl4-developer] Error building OKL 1.5.2 for imx31 on Fedora7 & python2.5
David Mirabito
davidm at ok-labs.com
Tue May 20 11:54:05 EST 2008
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
More information about the Developer
mailing list