Yocto Project FAQ


The obp-utils do_install task fails

When building a distribution including the meta-atmel layer, I have an error which state that the obp-utils recipe fails with this kind of log:

ERROR: Function failed: do_install (log file is located at /somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/temp/log.do_install.9242)
ERROR: Logfile of failure stored in: /somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/temp/log.do_install.9242
Log data follows:

[..]

| pandoc -s -t man \
|    -V title="MXT-APP" \
|    -V section="1" \
|    -V description="\"mxt-app 1.17-6-g6c0b-mod\"" \
|    /somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/git/README.md -o man1/mxt-app.1
| /bin/bash: pandoc: command not found
| make: [man1/mxt-app.1] Error 127 (ignored)
| echo '1.17-6-g6c0b-mod' | cmp -s - git-version || echo '1.17-6-g6c0b-mod' > git-version

[..]

|  /usr/bin/install -c -m 644 /somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/git/man1/mxt-app.1 '/somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/image/usr/share/man/man1'
| /usr/bin/install: cannot stat '/somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/git/man1/mxt-app.1': No such file or directory
| make[1]: *** [install-man1] Error 1
| make[1]: *** Waiting for unfinished jobs....
|   ./arm-poky-linux-gnueabi-libtool   --mode=install /usr/bin/install -c mxt-app '/somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/image/usr/bin'
| arm-poky-linux-gnueabi-libtool: install: /usr/bin/install -c mxt-app /somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/image/usr/bin/mxt-app
| make: *** [install-am] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /somedir/tmp/work/cortexa5hf-vfp-neon-poky-linux-gnueabi/obp-utils/git-r0/temp/log.do_install.9242)
ERROR: Task 622 (/somedir/poky/meta-atmel/recipes-utils/obp-utils/obp-utils_git.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2782 tasks of which 1608 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /somedir/poky/meta-atmel/recipes-utils/obp-utils/obp-utils_git.bb, do_install
Summary: There were 5 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

A: the pandoc package seems not installed on your host system. Use your distributions' package manager. For example on Ubuntu, you can use:

sudo apt-get install pandoc

The board doesn't boot

When building an image using the Jethro branch, the Linux kernel panics at the end of the boot:

Freeing unused kernel memory: 132K (c05a5000 - c05c6000)
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

A: Due to an update in binutils, prelinking ARM binaries is not working properly. A workaround is to avoid prelinking. In your conf/local.conf, remove image-prelink from USER_CLASSES .

For this version at least keep it as it is indicated in the meta-atmel README file:
https://github.com/linux4sam/meta-atmel/blob/jethro/README#L110