Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build system for cubieboard at yocto #17

Closed
abehterev opened this issue Dec 22, 2013 · 9 comments
Closed

Cannot build system for cubieboard at yocto #17

abehterev opened this issue Dec 22, 2013 · 9 comments

Comments

@abehterev
Copy link

I tried build the system for cubieboard in yocto system. But I did not succeed.
I described my troubles in google groups: https://groups.google.com/forum/#!category-topic/cubieboard/other/EI5sV6_gaj0
Steps for reproduce.

  1. Downolad yocto
bai@lin-o-book:/_DATA/_embedded/yocto$ pwd
/_DATA/_embedded/yocto
bai@lin-o-book:/_DATA/_embedded/yocto$ git clone git://git.yoctoproject.org/poky
Cloning into 'poky'...
remote: Counting objects: 216222, done.
remote: Compressing objects: 100% (54509/54509), done.
remote: Total 216222 (delta 157393), reused 215669 (delta 156845)
Receiving objects: 100% (216222/216222), 98.24 MiB | 87.00 KiB/s, done.
Resolving deltas: 100% (157393/157393), done.
Checking connectivity... done
bai@lin-o-book:/_DATA/_embedded/yocto$
  1. Download meta-sunxi
bai@lin-o-book:/_DATA/_embedded/yocto/poky$ git clone https://github.com/linux-sunxi/meta-sunxi.git
Cloning into 'meta-sunxi'...
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory
remote: Counting objects: 739, done.
remote: Compressing objects: 100% (414/414), done.
remote: Total 739 (delta 249), reused 690 (delta 218)
Receiving objects: 100% (739/739), 347.56 KiB | 192.00 KiB/s, done.
Resolving deltas: 100% (249/249), done.
Checking connectivity... done
bai@lin-o-book:/_DATA/_embedded/yocto/poky$
  1. Source create
bai@lin-o-book:/_DATA/_embedded/yocto/poky$ source oe-init-build-env cubieboard
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to use a 
different MACHINE (target hardware) or enable parallel build options to take 
advantage of multiple cores for example. See the file for more information as 
common configuration options are commented.

The Yocto Project has extensive documentation about OE including a reference manual
which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/

You had no conf/bblayers.conf file. The configuration file has been created for
you with some default values. To add additional metadata layers into your
configuration please add entries to this file.

The Yocto Project has extensive documentation about OE including a reference manual
which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/



### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    adt-installer
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
bai@lin-o-book:/_DATA/_embedded/yocto/poky/cubieboard$
  1. Edit conf/local.conf
BB_NUMBER_THREADS ?= "4"
PARALLEL_MAKE ?= "-j 4"
MACHINE ?= "cubieboard"
  1. Edit conf/bblayers.conf
BBLAYERS ?= " \
  /_DATA/_embedded/yocto/poky/meta \
  /_DATA/_embedded/yocto/poky/meta-yocto \
  /_DATA/_embedded/yocto/poky/meta-yocto-bsp \
  /_DATA/_embedded/yocto/poky/meta-sunxi \
  "
BBLAYERS_NON_REMOVABLE ?= " \
  /_DATA/_embedded/yocto/poky/meta \
  /_DATA/_embedded/yocto/poky/meta-yocto \
  /_DATA/_embedded/yocto/poky/meta-sunxi \
  "
  1. Run bitbake (Becouse Tested with core-image-base. I tried in this case.)
bai@lin-o-book:/_DATA/_embedded/yocto/poky/cubieboard$ bitbake core-image-base
Parsing recipes: 100% |#########################################################################################################################################################| Time: 00:00:59
Parsing of 862 .bb files complete (0 cached, 862 parsed). 1215 targets, 55 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 3.4.61 of linux-libc-headers not available (for item linux-libc-headers)
NOTE: versions of linux-libc-headers available: 3.10
NOTE: preferred version 3.4.61 of linux-libc-headers not available (for item linux-libc-headers-dev)
NOTE: versions of linux-libc-headers available: 3.10

Build Configuration:
BB_VERSION        = "1.21.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.10"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "cubieboard"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20131222"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        
meta-yocto-bsp    = "master:85ac39431a549e0e6a94aa8cba6e8428a8a8758d"
meta-sunxi        = "master:92d1408c46c50563246a642f8d7b0b4edba77e64"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
  1. Error?
WARNING: Failed to fetch URL ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-utils-0.6.14.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://pkg-shadow.alioth.debian.org/releases/shadow-4.1.4.3.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-2.11.src.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_1.17.4.tar.xz, attempting MIRRORS if available
WARNING: QA Issue: sqlite3-native: configure was passed unrecognised options: --enable-tempstore
WARNING: QA Issue: python-native: configure was passed unrecognised options: --without-cxx --with-cyclic-gc
WARNING: QA Issue: dpkg-native: configure was passed unrecognised options: --with-bz2lib --with-start-stop-daemon --without-dselect --without-static-progs --without-sgml-doc
WARNING: QA Issue: libtool-cross: configure was passed unrecognised options: --with-sysroot
WARNING: QA Issue: alsa-lib: configure was passed unrecognised options: --with-cards --with-oss
WARNING: QA Issue: python: configure was passed unrecognised options: --without-cxx --with-cyclic-gc
WARNING: QA Issue: flac: configure was passed unrecognised options: --disable-id3libtest --without-id3lib
WARNING: QA Issue: bluez-hcidump: configure was passed unrecognised options: --with-bluez-includes --with-bluez-libs
ERROR: QA Issue: linux: Files/directories were installed but not shipped
  /usr/src/debug
  /usr/src/debug/linux
  /usr/src/debug/linux/3.4.67-14
  /usr/src/debug/linux/3.4.67-14/git
  /usr/src/debug/linux/3.4.67-14/git/include
  /usr/src/debug/linux/3.4.67-14/git/arch                                                                                                                                                       
  /usr/src/debug/linux/3.4.67-14/git/include/linux                                                                                                                                              
  /usr/src/debug/linux/3.4.67-14/git/include/asm-generic                                                                                                                                        
  /usr/src/debug/linux/3.4.67-14/git/include/linux/printk.h                                                                                                                                     
  /usr/src/debug/linux/3.4.67-14/git/include/linux/kernel.h                                                                                                                                     
  /usr/src/debug/linux/3.4.67-14/git/include/linux/power                                                                                                                                        
  /usr/src/debug/linux/3.4.67-14/git/include/linux/power/aw_pm.h                                                                                                                                
  /usr/src/debug/linux/3.4.67-14/git/include/asm-generic/int-ll64.h                                                                                                                             
  /usr/src/debug/linux/3.4.67-14/git/arch/arm                                                                                                                                                   
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/mach-sun4i                                                                                                                                        
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/include                                                                                                                                           
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi                                                                                                                                        
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/mach-sun4i/include                                                                                                                                
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/mach-sun4i/include/mach                                                                                                                           
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/mach-sun4i/include/mach/ccmu_regs.h                                                                                                               
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/include/asm                                                                                                                                       
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/include/asm/hwcap.h                                                                                                                               
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm                                                                                                                                     
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/include                                                                                                                                
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_ir.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_power.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_ir.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/dram_init.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_usb.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_tmr.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/dram.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_twi.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_int.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/common.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_clock.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_clock.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_power.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_key.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_int.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_usb.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_tmr.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_delay.S
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_i.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_key.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/stack.S
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/standby_twi.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/common.c
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/pm/standby/dram_i.h
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/include/plat
  /usr/src/debug/linux/3.4.67-14/git/arch/arm/plat-sunxi/include/plat/dram.h
ERROR: QA Issue: No GNU_HASH in the elf binary: '/_DATA/_embedded/yocto/poky/cubieboard/tmp/work/cubieboard-poky-linux-gnueabi/linux/3.4.67-14/packages-split/kernel-dev/usr/src/kernel/modules/wifi/bcm40181/apps/epi_ttcp'
ERROR: QA Issue: No GNU_HASH in the elf binary: '/_DATA/_embedded/yocto/poky/cubieboard/tmp/work/cubieboard-poky-linux-gnueabi/linux/3.4.67-14/packages-split/kernel-dev/usr/src/kernel/modules/wifi/usi-bcm4329/v4.218.248.15/apps/epi_ttcp'
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /_DATA/_embedded/yocto/poky/cubieboard/tmp/work/cubieboard-poky-linux-gnueabi/linux/3.4.67-14/temp/log.do_package.32402
ERROR: Task 82 (/_DATA/_embedded/yocto/poky/meta-sunxi/recipes-kernel/linux/linux_3.4.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2333 tasks of which 1367 didn't need to be rerun and 1 failed.
No currently running tasks (2333 of 2345)

Summary: 1 task failed:
  /_DATA/_embedded/yocto/poky/meta-sunxi/recipes-kernel/linux/linux_3.4.bb, do_package
Summary: There were 5 WARNING messages shown.
Summary: There were 5 ERROR messages shown, returning a non-zero exit code.
bai@lin-o-book:/_DATA/_embedded/yocto/poky/cubieboard$ 
  1. What can i do?
@ebutera
Copy link

ebutera commented Dec 23, 2013

It seems that some warnings are now treated as errors ( ERROR: QA Issue: linux: Files/directories were installed but not shipped ), i can't remember a quick fix right now, try to use a stable yocto branch ("dora" for example).

@KristofRobot
Copy link

@abehterev: looking at insane.bbclass [1], it seems that the treatment of such QA issues (either as warnings or errors) is controlled through WARN_QA and ERROR_QA.

It seems that in your setup, some configuration file somewhere overrides the default ones of insane.bbclass.

I see two solutions:
(1) You can try to setting those in your local.conf file.

(2) Alternatively, you can edit recipes-kernel/linux/linux_3.4.bb as follows (see #14 ):

INSANE_SKIP_kernel-dev = "debug-files debug-deps arch ldflags"
FILES_kernel-dev += "/usr/src/debug"

[1] http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/classes/insane.bbclass?h=master

@KristofRobot
Copy link

@abehterev : a solution for issue #14 was just merged, which I believe will solve this issue as well.

Could you try again with the latest version, and report back in this thread?

@abehterev
Copy link
Author

Sorry for long answer: in Russia was long holidays and i have been too much work at home =) Yes of course i'll try tomorrow (now... already today =)) test this update and report back in the thread.

@abehterev
Copy link
Author

I think that's all ok.

bai@lin-o-book:/_DATA/_embedded/yocto/poky/cubieboard$ bitbake core-image-base
Loading cache: 100% |###########################################################################################################################################################| ETA:  00:00:00
Loaded 64 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################################################| Time: 00:00:27
Parsing of 849 .bb files complete (53 cached, 796 parsed). 1197 targets, 55 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 3.4.61 of linux-libc-headers not available (for item linux-libc-headers)
NOTE: versions of linux-libc-headers available: 3.10
NOTE: preferred version 3.4.61 of linux-libc-headers not available (for item linux-libc-headers-dev)
NOTE: versions of linux-libc-headers available: 3.10

Build Configuration:
BB_VERSION        = "1.21.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.10"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "cubieboard"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20140110"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        
meta-yocto-bsp    = "master:1b636173ca88e5ccca1992f9a12367a1189fa674"
meta-sunxi        = "master:1101a2da808c9bcfa2096c30b689aafc6c3253e7"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: QA Issue: libtool-cross: configure was passed unrecognised options: --with-sysroot
NOTE: Tasks Summary: Attempted 2351 tasks of which 1057 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

Not tested image, but exist:

bai@lin-o-book:/_DATA/_embedded/yocto/poky/cubieboard$ ls -la tmp/deploy/images/cubieboard/
total 287312
drwxr-xr-x 2 bai bai      4096 Jan 11 03:51 .
drwxr-xr-x 3 bai bai      4096 Dec 22 14:25 ..
-rw-r--r-- 1 bai bai 121634816 Jan 11 03:51 core-image-base-cubieboard-20140110224316.rootfs.ext3
-rw-r--r-- 1 bai bai      5359 Jan 11 03:51 core-image-base-cubieboard-20140110224316.rootfs.manifest
-rw-r--r-- 1 bai bai 146800640 Jan 11 03:51 core-image-base-cubieboard-20140110224316.rootfs.sunxi-sdimg
-rw-r--r-- 1 bai bai  37777818 Jan 11 03:51 core-image-base-cubieboard-20140110224316.rootfs.tar.gz
lrwxrwxrwx 1 bai bai        53 Jan 11 03:51 core-image-base-cubieboard.ext3 -> core-image-base-cubieboard-20140110224316.rootfs.ext3
lrwxrwxrwx 1 bai bai        57 Jan 11 03:51 core-image-base-cubieboard.manifest -> core-image-base-cubieboard-20140110224316.rootfs.manifest
lrwxrwxrwx 1 bai bai        60 Jan 11 03:51 core-image-base-cubieboard.sunxi-sdimg -> core-image-base-cubieboard-20140110224316.rootfs.sunxi-sdimg
lrwxrwxrwx 1 bai bai        55 Jan 11 03:51 core-image-base-cubieboard.tar.gz -> core-image-base-cubieboard-20140110224316.rootfs.tar.gz
lrwxrwxrwx 1 bai bai        25 Jan 11 03:49 fex.bin -> fex-cubieboard-1.0-r5.bin
-rw-r--r-- 2 bai bai     43724 Jan 11 03:49 fex-cubieboard-1.0-r5.bin
lrwxrwxrwx 1 bai bai        25 Jan 11 03:49 fex-cubieboard.bin -> fex-cubieboard-1.0-r5.bin
-rw-r--r-- 2 bai bai  12133531 Jan 11 03:46 modules--3.4.67-15-cubieboard-20140110224316.tgz
lrwxrwxrwx 1 bai bai        48 Jan 11 03:46 modules-cubieboard.tgz -> modules--3.4.67-15-cubieboard-20140110224316.tgz
-rw-r--r-- 2 bai bai       294 Jan 11 03:50 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
lrwxrwxrwx 1 bai bai        28 Jan 11 03:49 u-boot.bin -> u-boot-cubieboard-git-r9.bin
lrwxrwxrwx 1 bai bai        28 Jan 11 03:49 u-boot-cubieboard.bin -> u-boot-cubieboard-git-r9.bin
-rwxr-xr-x 2 bai bai    224008 Jan 11 03:49 u-boot-cubieboard-git-r9.bin
lrwxrwxrwx 1 bai bai        43 Jan 11 03:49 u-boot-sunxi-with-spl.bin -> u-boot-sunxi-with-spl.bin-cubieboard-git-r9
lrwxrwxrwx 1 bai bai        43 Jan 11 03:49 u-boot-sunxi-with-spl.bin-cubieboard -> u-boot-sunxi-with-spl.bin-cubieboard-git-r9
-rwxr-xr-x 2 bai bai    256840 Jan 11 03:49 u-boot-sunxi-with-spl.bin-cubieboard-git-r9
lrwxrwxrwx 1 bai bai        47 Jan 11 03:46 uImage -> uImage--3.4.67-15-cubieboard-20140110224316.bin
-rw-r--r-- 2 bai bai   4178840 Jan 11 03:46 uImage--3.4.67-15-cubieboard-20140110224316.bin
lrwxrwxrwx 1 bai bai        47 Jan 11 03:46 uImage-cubieboard.bin -> uImage--3.4.67-15-cubieboard-20140110224316.bin

@KristofRobot
Copy link

@abehterev I dont like the QA Warning:

WARNING: QA Issue: libtool-cross: configure was passed unrecognised options: --with-sysroot

However, if things run correctly, this can probably be ignored.

Please close this issue if you feel it is resolved.

Thanks!

@ebutera
Copy link

ebutera commented Jan 11, 2014

that warning could be any of the (2351-1057) packages built, i am more worried about:

NOTE: preferred version 3.4.61 of linux-libc-headers not available (for item linux-libc-headers)
NOTE: versions of linux-libc-headers available: 3.10

i'm not sure it's ok to build an older kernel with a newer linux-libc-headers, i think only the opposite is ok (newer kernel with older headers).

edit: not build an older kernel, but run.

@KristofRobot
Copy link

@ebutera - I've been wondering about this as well.

However, I found a yocto thread [1] discussing this exact issue, and there they stated that this should be fine:

> Hi. We are using a 3.6 based kernel in our builds using a custom
> kernel recipe. However, I can see that the linux-libc-headers built
> but based on a 3.8 kernel?
> Is this really how it should be? Are we supposed to also make a custom
> recipe for the linux-libc-headers? The image seems to be executing
> fine but I am a bit worried about the version mismatch :(

You shouldn't need to do this. We use a single libc-headers version
for all of a given linux-yocto kernels in a release. The userspace /
libc ABI is stable, and backwards compatible (generally speaking of
course). New interfaces typically have a fallback if the kernel
interface is missing, and we don't currently have any issues either.

Of course older headers with newer kernels is even safer, since
typically at most you are missing out on being able to use new APIs
versus potential for missing APIs.

Summary: you can match them if you want, but we are testing across
several kernel versions and haven't found any issues (yet).

[1] https://lists.yoctoproject.org/pipermail/yocto/2013-June/014653.html

@ebutera
Copy link

ebutera commented Jan 11, 2014

Ok, then i'm closing the issue.

@abehterev you can reopen it if you need to.

@ebutera ebutera closed this as completed Jan 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants