我试图建立自己的Linux从官方仓库https://github.com/beagleboard/linux大厦罗伯特·尼尔森的Linux内核为Yocto(菊花)为beaglebone黑色
我能够读取和运行menuconfig的,但beaglebone黑当我尝试编译内核我得到错误。
以下是配方文件的内容。
文件名:linux-yocto-chipsee_3.14.bb
路径:/家庭/ ANKUR/yocto_daisy /狭小/元ybdevelop /食谱,例如/ Linux的
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
BRANCH = "3.14"
# Override SRC_URI in a bbappend file to point at a different source # tree if you do not want to build from Linus' tree.
SRC_URI = "git://github.com/beagleboard/linux.git;branch=${BRANCH};nocheckout=1;name=machine"
LINUX_VERSION ?= "3.14"
LINUX_VERSION_EXTENSION ?= "-custom"
# Override SRCREV to point to a different commit in a bbappend file to # build a different release of the Linux kernel.
# tag: v3.4 76e10d158efb6d4516018846f60c2ab5501900bc
SRCREV_machine="76e10d158efb6d4516018846f60c2ab5501900bc"
PR = "r1"
PV = "${LINUX_VERSION}+git${SRCPV}"
# Override COMPATIBLE_MACHINE to include your machine in a bbappend # file. Leaving it empty here ensures an early explicit build failure.
COMPATIBLE_MACHINE = "beaglebone"
文件名:Linux的yocto-chipsee_3.14.bbappend
文件路径:/家庭/ ANKUR/yocto_daisy /狭小/元ybdevelop /食谱,例如/ Linux的
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
SRC_URI_append = " file://defconfig"
defconfig路径:/home/ankur/yocto_daisy/poky/meta-ybdevelop/recipes-example/linux/linux-yocto-chipsee_3.14
有了上面的配置,我能够获取和开放对于menuconfig这牵强的Linux内核,我用命令如下,
# bitbake linux-yocto-chipsee -c menuconfig
但是,当我尝试编译Linux上使用下面的命令提示错误,
# bitbake linux-yocto-chipsee -c compile
与海湾合作委员会收到错误:(
/bin/sh: 1: arm-poky-linux-gnueabi-gcc: not found
| make[4]: *** [scripts/mod/empty.o] Error 127
| make[3]: *** [scripts/mod] Error 2
| make[3]: *** Waiting for unfinished jobs....
| SHIPPED scripts/genksyms/lex.lex.c
| Generating include/generated/mach-types.h
| SHIPPED scripts/genksyms/keywords.hash.c
| SHIPPED scripts/genksyms/parse.tab.h
| SHIPPED scripts/genksyms/parse.tab.c
| HOSTCC scripts/genksyms/lex.lex.o
| CC kernel/bounds.s
| /bin/sh: 1: arm-poky-linux-gnueabi-gcc: not found
当我尝试使用下面的命令,时间还未能建立。
# bitbake linux-yocto-chipsee -c build
ERROR: Multiple .bb files are due to be built which each provide virtual/kernel (/home/ankur/yocto_daisy/poky/meta-ybdevelop/recipes-example/linux/linux-yocto-chipsee_3.14.bb /home/ankur/yocto_daisy/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb).
This usually means one provides something the other doesn't and should.
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile (log file is located at /home/ankur/yocto_daisy/poky/build_fresh/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto-chipsee/3.14+gitAUTOINC+76e10d158e-r1/temp/log.do_compile.30878)
ERROR: Logfile of failure stored in: /home/ankur/yocto_daisy/poky/build_fresh/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto-chipsee/3.14+gitAUTOINC+76e10d158e-r1/temp/log.do_compile.30878
BitBake的层为Linux下面显示输出
仅供参考:
# bitbake-layers show-recipes 'linux*'
Parsing recipes..done.
=== Available recipes matching linux*: ===
linux-dummy:
meta 1.0
linux-firmware:
meta 1:0.0+gitAUTOINC+600caefd83
linux-libc-headers:
meta 3.14
linux-yocto:
meta 3.14.4+gitAUTOINC+183622e809_0143c6ebb4
meta 3.10 (skipped)
meta 3.4 (skipped)
linux-yocto-chipsee:
meta-ybdevelop 3.14+gitAUTOINC+76e10d158e
linux-yocto-dev:
meta unknown (skipped)
linux-yocto-rt:
meta 3.10 (skipped)
meta 3.14 (skipped)
meta 3.4 (skipped)
linux-yocto-tiny:
meta 3.10 (skipped)
meta 3.14 (skipped)
meta 3.4 (skipped)
linuxdoc-tools-native:
meta 0.9.69
linuxptp:
meta-oe 1.4
任何帮助/指针/提示/建议编译这个?
谢谢
问候, ANKUR
您是否启动了setup_environment脚本?你是否正确配置local.conf和bblayers.conf? – LPs
感谢您提供调试提示,确实是我已经执行了setup_env脚本。这就是menuconfig工作的bitbake命令的原因。我在bblayers.conf文件中添加了meta-ydevelop。但我并没有改变local.conf中用于更改内核的任何内容。 local.conf包含MACHINE?=“beaglebone”。 – AnkurTank
您是否尝试编译标准poky配方core-image-base或corre-image-minimal? – LPs