From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mx.groups.io with SMTP id smtpd.web09.863.1615331067027813897 for ; Tue, 09 Mar 2021 15:04:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RJ4HnPFE; spf=pass (domain: gmail.com, ip: 209.85.210.180, mailfrom: b.hutchman@gmail.com) Received: by mail-pf1-f180.google.com with SMTP id 18so10633200pfo.6 for ; Tue, 09 Mar 2021 15:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GAUgSY5pxuufLi22r0Ez523p0ihMNoAuCck7v7tZLiA=; b=RJ4HnPFE0GJ7Q8qPzjOp+9mWRnRI6qwEnQE2FsGRJyilI3mtQZ3D9AS/K5RjTgWrUf L9ENWUjhv2lZy16iZrdhp3zCCrL9f/n4v65rTVZnXza0ZAqvlLpM1Wx/l7RrUzsACJ96 8f6XKkb/A44X0zD/S2TxWsNXaoB5ga6XYT3eM1C9hGCfqBuZ3Ycb4TnNDJImpA3mf8eR 97VV5qhllSXV6FTOdI9/hcSTrhKlOdwzdU+gon1ZTthl0fjG8iz/cmsSz/zSJ4615a6c xXbR9Zim9xjydwT14dfzSI9r6sCdvzSaiY+gdkaao3gqMTbOxmmzJPkIwtQMeU2oDyFN ET+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GAUgSY5pxuufLi22r0Ez523p0ihMNoAuCck7v7tZLiA=; b=qZztcAqwpMfMt32YFKoI1x2NRCwpGEJZ2MH6Z/Xf/1QBF3sykOK1bheDqyyaTZHpXa TL+AqBY2su3Jjuf4/n9gQeouDqDhnKUBIBZ8OCQFvT2oXB7DOxRAwAEvxUUSPLDqSdHL N/6s9BolYAf8iGpE+E2F+QEwpyHpLhExgQZTymU4iOmpUMZzRH7egb+6jJC3BcorWcbc HWzg4UoxjUwLPYCEVGPGEgJrIJ1aizOAfJQsd1l/qQ2XXaxtgIaPTX3LTDL6UJrMTsXM eLK6CkFzpB/vz2hFOHzY7HJcDOiXaZhj77oeIgR2inFoO8KoA+dlzBo0wv7alzW7CyJS bWFg== X-Gm-Message-State: AOAM530NaywaDKc+5M54C2EkB8apUF9OmIHDIB71OnLtteIo/nLkImhs SfmouUdaqcH8Zs4jhewUXGNz545nAreWXoRx4HxKk63jT+E= X-Google-Smtp-Source: ABdhPJybS+JgQnpAQTnRtT3TDeytgXrmYsTmpZtSy/0UcgJWGx8OpFpF5LzMoJ1LeVjROCHE9LCOfOpPuOriazByei8= X-Received: by 2002:a63:5645:: with SMTP id g5mr81451pgm.387.1615331065841; Tue, 09 Mar 2021 15:04:25 -0800 (PST) MIME-Version: 1.0 From: "Brian Hutchinson" Date: Tue, 9 Mar 2021 18:04:14 -0500 Message-ID: Subject: bitbake of core-image-minimal is sending my fw_env.config file to PC filesystem instead of my squashfs for target To: meta-freescale@lists.yoctoproject.org Content-Type: multipart/alternative; boundary="0000000000005fca1205bd22925e" --0000000000005fca1205bd22925e Content-Type: text/plain; charset="UTF-8" Hi, I should have done this from the start and started a new topic so please forgive me if you've already seen this on "No u-boot-fslc-fw-utils recipe for Dunfell?" thread. I added libubootenv to my image because I'm using RAUC for updates etc.. Anyway, I'm building a read-only rootfs with squashfs (already working from my NOR flash) but needed to update that image with libubootenv and needed a fw_env.config file in /etc. So first attempt was to make a libubootenv_0.3.1.bbappend like: FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/:" SRC_URI_append += " file://fw_env.config" do_install_append() { install -d ${D}${sysconfdir} install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config } FILES_${PN} += "${sysconfdir}/fw_env.config" When I would bitbake core-image-minimal, it updated my squashfs file but looking at the resulting tar of the rootfs showed it didn't contain /etc/fw_env.config. Turns out it's in the directory by itself under tmp/deploy/images/imx8mmevk! I checked out the examples in meta-freescale-3rdparty/recipes-bsp that some of the toradex boards are using and did some other reading online and can't quite figure out what I'm doing wrong and how to get fw_env.config into my squashfs image. I'm using Dunfell with this effort and core-image-minimal to keep size down since this is a small NOR I'm working on. Listing so you can see what I'm talking about: -rw-r--r-- 2 hutch hutch 1895 Mar 9 15:31 core-image-minimal-imx8mmevk-20210309203126.rootfs.manifest -rw-r--r-- 2 hutch hutch 9613312 Mar 9 15:32 core-image-minimal-imx8mmevk-20210309203126.rootfs.squashfs -rw-r--r-- 2 hutch hutch 9201440 Mar 9 15:32 core-image-minimal-imx8mmevk-20210309203126.rootfs.tar.bz2 -rw-r--r-- 2 hutch hutch 532719 Mar 9 15:31 core-image-minimal-imx8mmevk-20210309203126.testdata.json lrwxrwxrwx 2 hutch hutch 59 Mar 9 15:31 core-image-minimal-imx8mmevk.manifest -> core-image-minimal-imx8mmevk-20210309203126.rootfs.manifest lrwxrwxrwx 2 hutch hutch 59 Mar 9 15:32 core-image-minimal-imx8mmevk.squashfs -> core-image-minimal-imx8mmevk-20210309203126.rootfs.squashfs -rw-r--r-- 1 hutch hutch 9605120 Mar 8 09:36 core-image-minimal-imx8mmevk.squashfs_keep lrwxrwxrwx 2 hutch hutch 58 Mar 9 15:32 core-image-minimal-imx8mmevk.tar.bz2 -> core-image-minimal-imx8mmevk-20210309203126.rootfs.tar.bz2 lrwxrwxrwx 2 hutch hutch 57 Mar 9 15:31 core-image-minimal-imx8mmevk.testdata.json -> core-image-minimal-imx8mmevk-20210309203126.testdata.json lrwxrwxrwx 2 hutch hutch 34 Mar 9 16:48 fw_env.config -> fw_env.config-imx8mmevk-2020.04-r0 lrwxrwxrwx 2 hutch hutch 34 Mar 9 16:48 fw_env.config-imx8mmevk -> fw_env.config-imx8mmevk-2020.04-r0 -rw-r--r-- 2 hutch hutch 2858 Mar 9 16:48 fw_env.config-imx8mmevk-2020.04-r0 Regards, Brian --0000000000005fca1205bd22925e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I should have done this = from the start and started a new topic so please forgive me if you've a= lready seen this on "No u-boot-fslc-fw-utils recipe for Dunfell?" thread.<= /div>

I added= libubootenv to my image because I'm using RAUC for updates etc..

=
Anyway, I'm building a read-only rootfs with squashfs (already workin= g from my NOR flash) but needed to update that image with libubootenv and n= eeded a fw_env.config file in /etc.

So first attempt was to make a l= ibubootenv_0.3.1.bbappend like:
=
FILESEXTRAPATHS_prepend :=3D "${THISDIR}/${PN}/:= "

SRC_URI_append +=3D " file://fw_env.config"

do_install_append() {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0install -d ${D}${sysconfdir}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0install -m 0644 ${WORKDIR}/f= w_env.config ${D}${sysconfdir}/fw_env.config
}

FILES_${PN} +=3D "${sysconfdir}/fw_env.config"
<= /span>

=
Whe= n I would bitbake core-image-minimal, it updated my squashfs file but looki= ng at the resulting tar of the rootfs showed it didn't contain /e= tc/fw_env.config.=C2=A0 Turns out it's in the directory by itself under= tmp/deploy/images/imx8mmevk!

I checked out the examples in meta-freescale-3rdparty/recipes-b= sp that some of the toradex boards are using and did some other reading onl= ine and can't quite figure out what I'm doing wrong and how to get = fw_env.config into my squashfs image.
I'm using Dunfell with this effort and= core-image-minimal to keep size down since this is a small NOR I'm wor= king on.

L= isting so you can see what I'm talking about:

<= span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">-rw-r--r-= - 2 hutch hutch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A01895 Mar =C2=A09 15:31 core-i= mage-minimal-imx8mmevk-20210309203126.rootfs.manifest
-rw-r--r-- 2 hutch hutch =C2=A0=C2=A09613312 Mar =C2=A09 15:32 c= ore-image-minimal-imx8mmevk-20210309203126.rootfs.squashfs
-rw-r--r-- 2 hutch hutch =C2=A0=C2=A09201440 Mar =C2=A09 15:32 core-image-minimal-imx8mmevk-20210309203126.rootfs.tar.bz2

-rw-r--r-- 2 hutch hutch =C2=A0=C2=A0=C2=A0532719 Mar =C2=A09 15= :31 core-image-minimal-imx8mmevk-20210309203126.testdata.json
lrwxrwxrwx 2 hutch hutch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A059 M= ar =C2=A09 15:31 core-image-minimal-imx8mmevk.manifest= -> c= ore-image-minimal-imx8mmevk-20210309203126.rootfs.manifest
lrwxrwxrwx 2 hutch hutch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A059 Mar =C2=A09 15:32 core-image-minimal-imx8mmevk.squashfs= = -> core-image-minimal-imx8mmevk-20210309203126.rootfs.squashfs
-rw-r--r-- 1 hutch hutch =C2=A0=C2=A09605120 Mar =C2=A08 09:36 c= ore-image-minimal-imx8mmevk.squashfs_keep
lrwxrwxrwx 2 hutch hutch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A058 M= ar =C2=A09 15:32 core-image-minimal-imx8mmevk.tar.bz2<= span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"> -> core-image-minimal-imx8mmevk-20210309203126.rootfs.tar.bz= 2
lrwxrwxrwx 2 hutch hutch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A057 Mar =C2=A09 15:31 core-image-minimal-imx8mmevk.testdata= .json -> core-image-minimal-imx8mmevk-20210309203126.testdata.json
lrwxrwxrwx 2 hutch hutch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A034 Mar =C2=A09 16:48 fw_env.config -> fw_env.config-imx8= mmevk-2020.04-r0
lrwxrwxrwx 2 hutch hutch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A034 Mar =C2=A09 16:48 fw_env.config-imx8mmevk -> fw_env.c= onfig-imx8mmevk-2020.04-r0
-rw-r--r-- 2 hutch hutch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A02858 Mar = =C2=A09 16:48 fw_env.config-imx8mmevk-2020.04-r0

Regards,

Brian
--0000000000005fca1205bd22925e--