Bitbake not installing files from recipe to rootfs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bitbake not installing files from recipe to rootfs

ソリューションへジャンプ
8,070件の閲覧回数
neuro
Contributor III

Hello!

I'm currently using yocto to build the system imx6sxsabresd (IMX6 Solo X). I have successfully built the image however I want to add some a script to init.d to turn on a led. I'm appending to the linux-imx recipes.

This is my linux-imx.bbappend file:

FILESEXTRAPATHS_prepend := "${THISDIR}/linux-imx:"

SRC_URI += "file://0001-added-pad-for-heartbeat-led.patch \
        file://heartbeat.sh \
        file://heartbeat "

PACKAGECONFIG_append = " heartbeat"

inherit update-rc.d
INITSCRIPT_PACKAGES = "${PN}"
INITSCRIPT_PARAMS = "start"
INITSCRIPT_NAME = "heartbeat.sh"

do_install_append() {
  install -d ${D}${sysconfdir}/init.d
  install -m 0755 ${WORKDIR}/heartbeat.sh ${D}${sysconfdir}/init.d/heartbeat.sh

  install -d ${D}/home/root
  install -m 0755 ${WORKDIR}/heartbeat ${D}/home/root/heartbeat
}

FILES_${PN} += "${sysconfdir}/init.d/heartbeat.sh /home/root/heartbeat"
PACKAGES = "${PN}"

I'm able to create the sdcard image succesfully with the patch I've included in this bbappend file, however, the files heartbeat.sh and heartbeat are not copying to the final rootfs added to the output sdcard file. This is very odd because I'm able to see these files in their paths copied to ../tmp/work/imx6sxsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/image/

ラベル(4)
1 解決策
7,208件の閲覧回数
karangajjar
Senior Contributor II

Hi Jon Clay,

Please add following line to your <build_dir>conf/local.conf file:

IMAGE_INSTALL_append = " <recipe_name>"   

Let us know in case of any concern.

Regards,

Karan Gajjar

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
7,209件の閲覧回数
karangajjar
Senior Contributor II

Hi Jon Clay,

Please add following line to your <build_dir>conf/local.conf file:

IMAGE_INSTALL_append = " <recipe_name>"   

Let us know in case of any concern.

Regards,

Karan Gajjar

0 件の賞賛
返信
7,208件の閲覧回数
neuro
Contributor III

Hi, I tried this and it works.

Sorry for the delay in response.

Thank you!!

7,208件の閲覧回数
karangajjar
Senior Contributor II

Hi Jon Clay,

We are glad you have fixed the issue. Let us know in case of any more concerns.

Regards,

Karan Gajjar

0 件の賞賛
返信
7,208件の閲覧回数
gusarambula
NXP TechSupport
NXP TechSupport

Hello Jon Clay,


Is the problem still present? The procedure you followed looks correct. However, have you checked the priority of the layer in which your append is located? It could be that it's been overwritten by some other instruction or append if the priority is not high enough.

Regards,

0 件の賞賛
返信