[meta-xilinx] Adding distro support for Red Hat Enterprise Linux 6.5
Elvis Dowson
elvis.dowson at gmail.com
Fri Mar 28 23:03:10 PDT 2014
Hi,
I just noticed that RHEL-6.5 is not a supported distro with the current poky master branch.
Xilinx officially supports RHEL-6.5 for the ISE/Vivado tools, and at the moment, one cannot build the a linux distro using yocto for this distro.
I get the following error while running bitbake:
WARNING: Host distribution "RedHatEnterpriseWorkstation-6.5" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |#################################################################################| ETA: 00:00:00
Parsing of 864 .bb files complete (0 cached, 864 parsed). 1223 targets, 58 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.21.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "RedHatEnterpriseWorkstation-6.5"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "zc702-zynq7"
DISTRO = "poky"
DISTRO_VERSION = "1.5+snapshot-20140329"
TUNE_FEATURES = " armv7a vfp neon zynq"
TARGET_FPU = "vfp-neon"
meta
meta-yocto
meta-yocto-bsp = "master:95cd5688c67fa179204a7704b1287980672894fd"
meta-xilinx = "master:9d446e98558239d0453d61f65e69b67c4df72f26"
meta-xilinx-community = "master:3b513f2b29f047b17778538c331bfaddd6105e39"
NOTE: Preparing runqueue
python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
ERROR: An uncaught exception occured in runqueue, please see the failure below:
ERROR: Running idle function
Traceback (most recent call last):
File "/tool/yocto/poky/bitbake/lib/bb/cooker.py", line 1173, in buildTargetsIdle(server=<ProcessServer(ProcessServer-1, started)>, rq=<bb.runqueue.RunQueue instance at 0x2a89a28>, abort=False):
try:
> retval = rq.execute_runqueue()
except runqueue.TaskFailure as exc:
File "/tool/yocto/poky/bitbake/lib/bb/runqueue.py", line 1093, in RunQueue.execute_runqueue():
try:
> return self._execute_runqueue()
except bb.runqueue.TaskFailure:
File "/tool/yocto/poky/bitbake/lib/bb/runqueue.py", line 1048, in RunQueue._execute_runqueue():
else:
> self.start_worker()
self.rqexe = RunQueueExecuteScenequeue(self)
File "/tool/yocto/poky/bitbake/lib/bb/runqueue.py", line 919, in RunQueue.start_worker():
self.teardown = False
> self.worker, self.workerpipe = self._start_worker()
File "/tool/yocto/poky/bitbake/lib/bb/runqueue.py", line 893, in RunQueue._start_worker(fakeroot=False, rqexec=None):
> worker.stdin.write("<cookerconfig>" + pickle.dumps(self.cooker.configuration) + "</cookerconfig>")
worker.stdin.write("<workerdata>" + pickle.dumps(workerdata) + "</workerdata>")
IOError: [Errno 32] Broken pipe
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn't need to be rerun and all succeeded.
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
real 0m39.196s
user 3m50.935s
sys 0m2.210s
Some of the things that I’ve had to do, in terms of setup for RHEL-6.5, included installing python-2.7 and tar-1.27.
The full set of steps that I’ve performed are listed below:
Step 01.00: Install required packages for building Yocto on RHEL-6.5.
Step 01.01: Enable optional repositories.
$ su
# subscription-manager repos --list
# subscription-manager repos --enable rhel-6-workstation-optional-rpms
# yum update
# yum upgrade
Step 01.02: Enable the EPEL repository for RHEL-6.5.
$ su
# cd /tmp
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
To install a package from the epel repo, type the following command:
# yum –enablerepo=epel install <package> -y
Step 01.03: Install essential and graphical packages you need for a supported CentOS distribution are shown in the following command:
$ sudo yum install gawk make wget bzip2 gzip python unzip perl patch \
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath SDL-devel xterm
Step 01.04: Install python-2.7.
Install required packages.
yum install sudo
Add the python-2.7 scl repo.
sudo sh -c 'wget -qO- http://people.redhat.com/bkabrda/scl_python27.repo >> /etc/yum.repos.d/scl.repo'
Install python-2.7.
sudo yum install python27
then we get:
scl -l
python27
scl enable python27 bash
python -V
Python 2.7.5
yum install python27-tkinter python27-python-tools python27-scldevel
Step 01.04: Install python-ply.
yum install python-ply
Step 01.05: Install python-argparse.
yum install python-argparse
Step 01.06: Install 32-bit compatibility packages.
yum install glibc.i686
Step 01.05: Download, build and install tar-1.27 from sources, since it is not available as an rpm on the RHEL or EPEL repositories.
$ mkdir -p /tool/gnu
$ cd /tool/gnu
$ wget http://ftp.gnu.org/gnu/tar/tar-1.27.tar.bz2
$ ./configure
$ make -j8
$ sudo make install
Verify the installation:
$ which tar
/usr/local/bin/tar
$ tar --version
tar (GNU tar) 1.27
Step 02.00: Prepare the Yocto build environment.
Step 02.01: Clone the yocto repositories.
mkdir -p /tool/yocto
cd /tool/yocto
git clone ssh://git@server/tools/poky.git
git clone ssh://git@server/tools/meta-xilinx.git
git clone ssh://git@server/tools/meta-xilinx-community.git
Step 02.02: Create a build directory for each platform:
mkdir -p /tool/yocto/build/zc702
mkdir -p /tool/yocto/build/zc706
mkdir -p /tool/yocto/build/ml507
mkdir -p /tool/yocto/build/sp601
Step 02.03: Run bitbake:
scl enable python27 bash # Enable python-2.7 since it is not enabled by default.
cd /tool/yocto/poky
git checkout -b dora --track remotes/origin/dora
source oe-init-build-env /tool/yocto/build/zc702
Regards,
Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20140329/bd54a227/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1536 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20140329/bd54a227/attachment.pgp>
More information about the meta-xilinx
mailing list