I am trying to build the tisdk-rootfs-image from the sources. I am getting the following errors
[linux-devkit]:~/oe/oe-layersetup/build> MACHINE=am335x-evm bitbake tisdk-rootfs-image
File "<string>", line 1
import
^
SyntaxError: invalid syntax
BitBake requires Python 2.6 or later
[linux-devkit]:~/oe/oe-layersetup/build>
I am running ubuntu 10.04LTS with recent updates. Native python is 2.6.5. To do the build, I performed the following steps:
install the latest SDK from here:
http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/sdk/AM335xSDK/latest/exports/ti-sdk-am335x-evm-05.06.00.00-Linux-x86-Install
Installed the recommended oe-core packages:
sudo apt-get install gawk wget git-core diffstat unzip texinfo build-essential chrpath libsdl1.2-dev xterm
created a subdirectory of my $HOME called oe, then from the ~/oe directory I installed and ran the oe-layertool-setup.sh script
git clone git://arago-project.org/git/projects/oe-layersetup.git
cd oe-layersetup; ./oe-layertool-setup.sh –f configs/amsdk/amsdk-05.06.00.00-config.txt
To put the toolchain in my path, I sourced the environment-setup script:
. /home/bone/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/environment-setup
To setup the build environment, I sourced the setenv script:
[linux-devkit]:~/oe/oe-layersetup> cd build/
[linux-devkit]:~/oe/oe-layersetup/build> . ./conf/setenv
This process seemed to work with the 05.05.00 version of the toolchain, but the 05.05.00 version of the toolchain did not include Python 2.7
Should I go back to using the toolchain from the 05.05.00 linux-devkit/bin to do builds?
By the way, if instead of sourcing the environment-setup script I just put the tool chain at the end of my path, I get a different also bad result:
Pseudo is not present but is required, building this first before the main build
/bin/arm-arago-linux-gnueabi-gdb.real: error while loading shared libraries: /bin/arm-arago-linux-gnueabi-gdb.real: cannot open shared object file: No such file or directory
/bin/arm-arago-linux-gnueabi-gdb.real: error while loading shared libraries: /bin/arm-arago-linux-gnueabi-gdb.real: cannot open shared object file: No such file or directory
ERROR: Failure expanding variable ARG_VER_GDB[:=], expression was ${@arg_get_gdb_version(d)} which triggered exception IndexError: list index out of range
ERROR: Command execution failed: Exited with 1
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.