[linux-yocto] Build Preempt-RT version of Linux for iMX6 sabre lite

Yuchen Zhou yuchen.zhou at gm.com
Wed Feb 15 11:59:38 PST 2017


I am following instructions in https://community.nxp.com/docs/DOC-95045 and https://boundarydevices.com/dizzy-release-yocto/ for compiling yocto build for iMX6. I would like to configure it for Preempt-RT linux kernel instead of the standard boundary linux kernel. I found that I could just bitbake linux-imx-rt first. However, there are few errors (as attached below) which I don't understand how to fix. Any comments?


------------------------------Command line history is shown below----------------------------------

~/yocto$ MACHINE=nitrogen6x . setup-environment build

Welcome to Freescale Community BSP

The Yocto Project has extensive documentation about OE including a
reference manual which can be found at:

For more information about OpenEmbedded see their website:

You can now run 'bitbake <target>'

Common targets are:

Your configuration files at build have not been touched.
~/yocto/build$ bitbake linux-imx-rt
Parsing recipes: 100% |#########################################| Time: 00:01:49
Parsing of 1531 .bb files complete (0 cached, 1531 parsed). 1987 targets, 123 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.24.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "nitrogen6x"
DISTRO            = "poky"
DISTRO_VERSION    = "1.7.3"
TUNE_FEATURES     = "arm armv7a vfp neon callconvention-hard cortexa9"
TARGET_FPU        = "vfp-neon"
meta-yocto        = "(nobranch):fb8bf6a75e9ac04d5c6213d3e2f097302f83405f"
meta-multimedia   = "(nobranch):70beecb2716bca1b9dfbc7d6a264233e1f05e82b"
meta-fsl-arm      = "(nobranch):8f2651c0a38674d41ba7d30fa444762ef64f26b9"
meta-fsl-arm-extra = "(nobranch):794e46e0b0a3e7e270a2f3c217d8fe5751a6b2c6"
meta-fsl-demos    = "(nobranch):1238a5709cb0940dd6437f3199de46879b6c2c51"

NOTE: Preparing runqueue
ERROR: Multiple .bb files are due to be built which each provide virtual/kernel (
 This usually means one provides something the other doesn't and should.
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_install (log file is located at /----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/temp/log.do_install.23059)
ERROR: Logfile of failure stored in: /----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/temp/log.do_install.23059
Log data follows:
| DEBUG: Executing python function package_get_auto_pr
| DEBUG: Python function package_get_auto_pr finished
| DEBUG: Executing shell function do_install
| NOTE: make -j 2 DEPMOD=echo INSTALL_MOD_PATH=/----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/image modules_install
|   INSTALL crypto/tcrypt.ko
|   INSTALL drivers/i2c/algos/i2c-algo-pca.ko
|   INSTALL drivers/i2c/algos/i2c-algo-pcf.ko
|   INSTALL drivers/input/evbug.ko
|   INSTALL drivers/input/mouse/psmouse.ko
|   INSTALL drivers/input/serio/serport.ko
|   INSTALL drivers/media/platform/mxc/capture/adv7180_tvin.ko
|   INSTALL drivers/media/platform/mxc/capture/csi_v4l2_capture.ko
|   INSTALL drivers/media/platform/mxc/capture/fsl_csi.ko
|   INSTALL drivers/media/platform/mxc/capture/ipu_bg_overlay_sdc.ko
|   INSTALL drivers/media/platform/mxc/capture/ipu_csi_enc.ko
|   INSTALL drivers/media/platform/mxc/capture/ipu_fg_overlay_sdc.ko
|   INSTALL drivers/media/platform/mxc/capture/ipu_still.ko
|   INSTALL drivers/media/platform/mxc/capture/ipu_prp_enc.ko
|   INSTALL drivers/media/platform/mxc/capture/ov5640_camera.ko
|   INSTALL drivers/media/platform/mxc/capture/mxc_v4l2_capture.ko
|   INSTALL drivers/media/platform/mxc/capture/ov5640_camera_mipi.ko
|   INSTALL drivers/media/platform/mxc/capture/ov5642_camera.ko
|   INSTALL drivers/media/usb/gspca/gspca_main.ko
|   INSTALL drivers/media/usb/uvc/uvcvideo.ko
|   INSTALL drivers/media/v4l2-core/videobuf2-vmalloc.ko
|   INSTALL drivers/mxc/mlb/mxc_mlb150.ko
|   INSTALL drivers/net/wireless/ath/ath6kl/ath6kl_core.ko
|   INSTALL drivers/usb/gadget/g_ether.ko
|   INSTALL drivers/net/wireless/ath/ath6kl/ath6kl_sdio.ko
|   INSTALL drivers/usb/gadget/g_mass_storage.ko
|   INSTALL drivers/usb/gadget/g_serial.ko
|   INSTALL drivers/usb/gadget/g_zero.ko
|   INSTALL drivers/usb/gadget/libcomposite.ko
|   INSTALL drivers/usb/gadget/u_serial.ko
|   INSTALL drivers/usb/gadget/usb_f_acm.ko
|   INSTALL drivers/usb/gadget/usb_f_obex.ko
|   INSTALL drivers/usb/gadget/usb_f_serial.ko
|   INSTALL drivers/usb/gadget/usb_f_ss_lb.ko
|   INSTALL fs/binfmt_misc.ko
|   INSTALL fs/configfs/configfs.ko
|   INSTALL fs/fat/msdos.ko
|   INSTALL fs/isofs/isofs.ko
|   INSTALL fs/nls/nls_iso8859-15.ko
|   INSTALL fs/udf/udf.ko
|   INSTALL lib/crc-ccitt.ko
|   INSTALL lib/crc-itu-t.ko
|   INSTALL lib/crc7.ko
|   INSTALL lib/libcrc32c.ko
|   INSTALL sound/core/snd-hwdep.ko
|   INSTALL sound/core/snd-rawmidi.ko
|   INSTALL sound/usb/snd-usb-audio.ko
|   INSTALL sound/usb/snd-usbmidi-lib.ko
|   DEPMOD  3.10.17-rt12-1.0.2_ga+g33597e3
| 0 blocks
| NOTE: make -j 2 -C /----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/image/usr/src/kernel CC=arm-poky-linux-gnueabi-gcc  -mno-thumb-interwork -marm LD=arm-poky-linux-gnueabi-ld.bfd   clean _mrproper_scripts
| make: Entering directory `/----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/image/usr/src/kernel'
|   HOSTCC  scripts/basic/fixdep
|   HOSTCC  scripts/kconfig/conf.o
|   HOSTCC  scripts/kconfig/zconf.tab.o
|   HOSTLD  scripts/kconfig/conf
| scripts/kconfig/conf --silentoldconfig Kconfig
| make: Leaving directory `/----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/image/usr/src/kernel'
| make: Entering directory `/----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/image/usr/src/kernel'
|   CLEAN   .
|   CLEAN   arch/arm/kernel
|   CLEAN   firmware
|   CLEAN   kernel
|   CLEAN   lib
|   CLEAN   usr
|   CLEAN   arch/arm/boot/compressed
|   CLEAN   arch/arm/boot/dts
|   CLEAN   arch/arm/boot
|   CLEAN   scripts/basic
|   CLEAN   scripts/dtc
|   CLEAN   scripts/genksyms
|   CLEAN   scripts/kconfig
|   CLEAN   scripts/mod
|   CLEAN   scripts
|   CLEAN   drivers/tty/vt
|   CLEAN   drivers/video/logo
| make: Leaving directory `/----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/image/usr/src/kernel'
| NOTE: make -j 2 imx6q-sabrelite.dtb
|   CC      scripts/mod/devicetable-offsets.s
|   GEN     scripts/mod/devicetable-offsets.h
|   HOSTCC  scripts/mod/file2alias.o
|   HOSTLD  scripts/mod/modpost
| make[1]: `arch/arm/boot/dts/imx6q-sabrelite.dtb' is up to date.
| NOTE: make -j 2 imx6q-nitrogen6_max.dtb
|   CC      scripts/mod/devicetable-offsets.s
|   GEN     scripts/mod/devicetable-offsets.h
|   HOSTCC  scripts/mod/file2alias.o
|   HOSTLD  scripts/mod/modpost
| make[1]: *** No rule to make target `arch/arm/boot/dts/imx6q-nitrogen6_max.dtb'.  Stop.
| make: *** [imx6q-nitrogen6_max.dtb] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /----/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-imx-rt/3.10.17-r0/temp/log.do_install.23059)
ERROR: Task 2 (/----/yocto/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-rt_3.10.17.bb<http://linux-imx-rt_3.10.17.bb>, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 421 tasks of which 420 didn't need to be rerun and 1 failed.
No currently running tasks (383 of 429)

Summary: 1 task failed:
  /----/yocto/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-rt_3.10.17.bb<http://linux-imx-rt_3.10.17.bb>, do_install
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Yuchen Zhou
GM - Global Research & Development - ECS Architectures
yuchen.zhou at gm.com<mailto:yuchen.zhou at gm.com>
T 1 5869223540 | C 1 5869223540
[cid:image002.jpg at 01D28799.5BB04370]

Nothing in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.

Confidentiality Note: This message is intended only for the person or entity to which it is addressed. It may contain confidential and/or privileged material. Any review, transmission, dissemination or other use, or taking of any action in reliance upon this message by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this message in error, please contact the sender and delete it from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/linux-yocto/attachments/20170215/98569fae/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 4905 bytes
Desc: image002.jpg
URL: <http://lists.yoctoproject.org/pipermail/linux-yocto/attachments/20170215/98569fae/attachment-0001.jpg>

More information about the linux-yocto mailing list