[yocto] include all kernel modules in image
Trevor Woerner
twoerner at gmail.com
Mon Jul 27 05:17:22 PDT 2015
On 07/27/15 08:04, Nicolas Dechesne wrote:
> On Mon, Jul 27, 2015 at 1:03 PM, Trevor Woerner <twoerner at gmail.com> wrote:
>
>
> well, something's definitely wrong here.. are you doing a minimal
> OE-core build? can you try to reproduce / narrow down? Are you running
> recent master? I have no idea what the error means here.. but clearly,
> it works for me, so that could be something from your environment..
I agree.
The error appears to be some sort of "file not found". The command it is
running when it fails is:
depmodwrapper
/z/layerindex/firefly/tmp/work/firefly_emmc_mainline-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs
4.0.0-rc1
Since the directory (/z/layerindex/firefly...) exists, it must be
failing because something is wrong with the version (?)
My kernel recipe's name is "firefly-mainline-kernel_4.0.bb" and it looks
like:
# Copyright (C) 2015 Trevor Woerner <twoerner at gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)
inherit kernel
DESCRIPTION = "Mainline Rockchip Linux kernel for Firefly"
HOMEPAGE =
"http://wiki.t-firefly.com/index.php/Firefly-RK3288/Mainline_Kernel/en"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
SECTION = "kernel"
DEPENDS = "rk2918-tools-native"
SRC_URI =
"git://github.com/TeeFirefly/linux-rockchip.git;branch=firefly;rev=cbbae6741c60c9e09f87521e3a79810abd6a2fda"
LINUX_VERSION ?= "4.0.0-rc1"
PV = "4.0.0-rc1+git${SRCPV}"
S = "${WORKDIR}/git"
B = "${S}"
COMPATIBLE_MACHINE = "firefly-emmc-mainline"
KERNEL_CONFIG_COMMAND = "cd ${S}; make rk3288_firefly_defconfig"
KERNEL_IMAGETYPE = "zImage"
do_compile_append () {
make rk3288-firefly.dtb
}
do_install_append () {
if [ ! -r arch/arm/boot/zImage ]; then
echo "can't find 'arch/arm/boot/zImage'"
exit 1
fi
if [ ! -r arch/arm/boot/dts/rk3288-firefly.dtb ]; then
echo "can't find 'arch/arm/boot/dts/rk3288-firefly.dtb'"
exit 1
fi
cat ${S}/arch/arm/boot/zImage
${S}/arch/arm/boot/dts/rk3288-firefly.dtb > ${S}/zImage-dtb
rk2918_mkkrnlimg -a ${S}/zImage-dtb ${S}/kernel.img
}
inherit deploy
do_deploy_append () {
install -d ${DEPLOYDIR}
cp ${S}/kernel.img ${DEPLOYDIR}
}
addtask deploy before do_build after do_compile
More information about the yocto
mailing list