[Yocto FAQ]: how to setup (build and install) the ADT environment

[Yocto FAQ]: how to setup (build and install) the ADT environment

In the DVD or the files downloaded from the website, there should be a filepoky-src-to-build-yocot-linux/README.txt(please see the end of this post)Following the steps, we can build a yocto sato or sato-sdk image.Here we list the extra setps to build and install the ADT environment sincewe didn't supply that in the form of pre-built files.1. "bitbake meta-toolchain-gmae", and you'll find the toolchain tarball under/home/yocto/poky/build/tmp/deploy/images/.
2. extract the toolchain tarball under the root directory "/".
3. "source /opt/poky/1.1+snapshot/environment-setup-core2-poky-linux"
4. extract the image to a directory as target sysroot, by running "runqemu-extract-sdk/home/yocto/poky/build/tmp/deploy/images/core-image-sato-sdk-esdc2012.tar.bz2"
5. Follow Section 4.1 of ADT manual(http://www.yoctoproject.org/docs/latest/adt-manual/adt-manual.html#setti...)to setup the Eclipse IDE.
NOTE: When installing the Eclipse plug-in, please follow section 4.1.3.3, or manually download the latest eclipse-pluginfrom http://autobuilder.pokylinux.org/pub/nightly/20120405-1/eclipse-plugin/i...and install it through Eclipse Update Site Manager.--------------------------------------------------poky-src-to-build-yocot-linux/README.txt--------------------------------------------------Quick guide: How to build a Yocto Linux image for the ESDC 2012 platform?Please note this is only a simple guide.You can get more information or ask questions by the forum of ESDC 2012 athttp://software.intel.com/zh-cn/esdc2012/The following will show the steps to build an image.Before following the steps, you should have read the necessary documents athttp://www.yoctoproject.org/documentation, such as the "Yocto Project QuickStart" athttp://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-...) create a new user, say 'yocto', with the home directory /home/yocto;2) tar -jxf sources.esdc2012.tar.bz2 and get a directory /home/yocto/sources.esdc2012/;3) tar -jxf esdc2012-poky-src.tar.bz2 and get a directory /home/yocto/esdc2012-poky-src/;4) cd /home/yocto; mv esdc2012-poky-src meta-intel; cp -aux meta-intel poky; mv meta-intel poky;5) now we have /home/yocto/poky and /home/yocto/poky/meta-intel;6) cd poky; git checkout -b esdc2012/poky remotes/origin/esdc2012/poky;7) cd meta-intel; git checkout -b esdc2012/meta-intel remotes/origin/esdc2012/meta-intel; cd ..8) now we're inside /home/yocto/poky;9) source ./oe-init-build-env build10) now we're in /home/yocto/poky/build;11) vi conf/local.conf to modify the config file properly;12) vi conf/bblayers.conf to add the 2 lines for meta-esdc2012;NOTE: For these 2 steps, you should refer to the example config filesin example_config_files/.13) Now, run "bitbake core-image-sato" or "bitbake core-image-sato-sdk" andwait for a few hours, the building will finish.If everything is fine, you can see a new .hddimg file inside/home/yocto/poky/build/tmp/deploy/images/.

publicaciones de 9 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de shushm
when I do the first step ,it comes thhis :libcurl.so.4 is needed by qemu-nativesdk-0.15.1-r4.i686
But the libcurl.so.4 is really exist in /usr/lib/i586-linux-gnu...

Hello,Iwant tobuild a yocto sato-sdk image in my PC but failed.
my system is Fedora-16-i386-DVD,and Idid follow the instruction in poky-src-to-build-yocot-linux/README.txt

Everything is OK untill running task 4578 of 5786 (ID: 130, /home/yocto/poky/meta/recipes-devtools/syslinux/syslinux_4.03.bb, do_compile)

an error occured and the process stopped.
I wonder how to solve this problem and continue building.Thanks a lot.

The following is details:
------------------------------------------------

NOTE: Running task 4578 of 5786 (ID: 130, /home/yocto/poky/meta/recipes-devtools/syslinux/syslinux_4.03.bb, do_compile)
NOTE: package zypper-1.5.3-git1+2c5bb6ceb99ecd950ef993e43d77bf0569ea0582-r1: task do_install: Started
NOTE: package e2fsprogs-native-1.42-r4: task do_compile: Started
NOTE: package syslinux-4.03-r6: task do_compile: Started
NOTE: package syslinux-native-4.03-r6: task do_compile: Started
ERROR: Function failed: do_compile (see /home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/temp/log.do_compile.2583 for further information)
ERROR: Logfile of failure stored in: /home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/temp/log.do_compile.2583
Log data follows:
| ERROR: Function failed: do_compile (see /home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/temp/log.do_compile.2583 for further information)
| NOTE: make -j 8 BINDIR=/home/yocto/poky/build/tmp/sysroots/i686-linux/usr/bin SBINDIR=/home/yocto/poky/build/tmp/sysroots/i686-linux/usr/sbin LIBDIR=/home/yocto/poky/build/tmp/sysroots/i686-linux/usr/lib DATADIR=/home/yocto/poky/build/tmp/sysroots/i686-linux/usr/share MANDIR=/home/yocto/poky/build/tmp/sysroots/i686-linux/usr/share/man INCDIR=/home/yocto/poky/build/tmp/sysroots/i686-linux/usr/include CC=gcc installer
| make -r installer-local
| make[1]: Entering directory `/home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/syslinux-4.03'
| make[1]: Nothing to be done for `installer-local'.
| make[1]: Leaving directory `/home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/syslinux-4.03'
| set -e ; for i in libinstaller mtools linux extlinux utils; do make -r -C $i all ; done
| make[1]: Entering directory `/home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/syslinux-4.03/libinstaller'
| make[1]: Nothing to be done for `all'.
| make[1]: Leaving directory `/home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/syslinux-4.03/libinstaller'
| make[1]: Entering directory `/home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/syslinux-4.03/mtools'
| make[1]: Nothing to be done for `all'.
| make[1]: Leaving directory `/home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/syslinux-4.03/mtools'
| make[1]: Entering directory `/home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/syslinux-4.03/linux'
| gcc -Wp,-MT,syslinux.o,-MMD,./.syslinux.o.d -W -Wall -Wstrict-prototypes -D_FILE_OFFSET_BITS=64 -g -O0 -Dalloca=malloc -I. -I.. -I../libinstaller -c -o syslinux.o syslinux.c
| gcc -Wp,-MT,syslxcom.o,-MMD,./.syslxcom.o.d -W -Wall -Wstrict-prototypes -D_FILE_OFFSET_BITS=64 -g -O0 -Dalloca=malloc -I. -I.. -I../libinstaller -c -o syslxcom.o ../libinstaller/syslxcom.c
| In file included from ../libinstaller/linuxioctl.h:22:0,
| from ../libinstaller/syslxcom.c:33:
| /usr/include/linux/ext2_fs.h:178:41: error: unknown type name 'umode_t'
| In file included from ../libinstaller/linuxioctl.h:22:0,
| from syslinux.c:50:
| /usr/include/linux/ext2_fs.h:178:41: error: unknown type name 'umode_t'
| make[1]: *** [syslxcom.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: *** [syslinux.o] Error 1
| make[1]: Leaving directory `/home/yocto/poky/build/tmp/work/i686-linux/syslinux-native-4.03-r6/syslinux-4.03/linux'
| make: *** [installer] Error 2
| ERROR: oe_runmake failed
NOTE: package syslinux-native-4.03-r6: task do_compile: Failed
ERROR: Task 141 (virtual:native:/home/yocto/poky/meta/recipes-devtools/syslinux/syslinux_4.03.bb, do_compile) failed with exit code '1'
Waiting for 3 active tasks to finish:
0: syslinux-4.03-r6 do_compile (pid 2584)
1: zypper-1.5.3-git1+2c5bb6ceb99ecd950ef993e43d77bf0569ea0582-r1 do_install (pid 2579)
2: e2fsprogs-native-1.42-r4 do_compile (pid 2582)
Waiting for 2 active tasks to finish:
0: zypper-1.5.3-git1+2c5bb6ceb99ecd950ef993e43d77bf0569ea0582-r1 do_install (pid 2579)
1: e2fsprogs-native-1.42-r4 do_compile (pid 2582)
NOTE: package syslinux-4.03-r6: task do_compile: Succeeded
Waiting for 1 active tasks to finish:
0: e2fsprogs-native-1.42-r4 do_compile (pid 2582)
NOTE: package zypper-1.5.3-git1+2c5bb6ceb99ecd950ef993e43d77bf0569ea0582-r1: task do_install: Succeeded
NOTE: package e2fsprogs-native-1.42-r4: task do_compile: Succeeded
NOTE: Tasks Summary: Attempted 4578 tasks of which 4574 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
virtual:native:/home/yocto/poky/meta/recipes-devtools/syslinux/syslinux_4.03.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Imagen de shushm

Have you installed packages for fedora in the quick start documention ?

Thank you for you reply,but what packages should be installed for fedora,I have installed many essential package like gcc,svn,git and so on.
Is there anythingimportant that I forget to install? And I do not know what the quick start documention is.
Please tell some detail and thank you for your help.

Hi, I wonder if there is another server to download the system building tool?, because I always get the file with the size of 2.0 GB instead of 3.1 GB.... and there is a way to know if the file is not corrupted? and the filemd5sums_of_the_binarieswhat's for?Cheers,

The filemd5sums_of_the_binaries.rar contains a text file after you unrar it:
The content of the text file is:
47bcb120e2d227c2e5405cad5a0e1564 yocto-linux-prebuilt-images/core-image-sato-esdc2012-20120314134721.hddimg.bz29e39e2a4ea4db5d19d5d501e2bdcd5f4 yocto-linux-prebuilt-images/core-image-sato-sdk-esdc2012-20120314114151.hddimg.bz20788deb8f2458ecd30b8bac5b07887fa poky-src-to-build-yocot-linux/sources.esdc2012.tar.bz206230d1f2fbc7396c57a53fe4b3539d0 poky-src-to-build-yocot-linux/esdc2012-poky-src.tar.bz247bcb120e2d227c2e5405cad5a0e1564 yocto-linux-prebuilt-images/core-image-sato-esdc2012-20120314134721.hddimg.bz2
9e39e2a4ea4db5d19d5d501e2bdcd5f4 yocto-linux-prebuilt-images/core-image-sato-sdk-esdc2012-20120314114151.hddimg.bz2
0788deb8f2458ecd30b8bac5b07887fa poky-src-to-build-yocot-linux/sources.esdc2012.tar.bz2
06230d1f2fbc7396c57a53fe4b3539d0 poky-src-to-build-yocot-linux/esdc2012-poky-src.tar.bz2

---
We can check the md5sums of the files you download to know if the files are corrupted or not.I can download the files successfully with the correct sizes so looks the web server works fine.Maybe you're using a proxy that causes the trouble? Or what download utility are you using?I tried the wget in Linux and I also tried to use chrome to download the files directly. Both works for me.

Maybe because I always get the download interrupted, I'll try with wget.Cheers!

Inicie sesión para dejar un comentario.