From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mx.groups.io with SMTP id smtpd.web11.1242.1615325733009342219 for ; Tue, 09 Mar 2021 13:35:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oSIDHJQ9; spf=pass (domain: gmail.com, ip: 209.85.216.43, mailfrom: b.hutchman@gmail.com) Received: by mail-pj1-f43.google.com with SMTP id gb6so4650pjb.0 for ; Tue, 09 Mar 2021 13:35:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/RPDzPhOqiIr6D44svNTcFPtGBJlSHWH42wQSKTUs9Q=; b=oSIDHJQ9J2LD9HN7HmBmbzSL0mV80oTv11CJK8Jgi+IjFyYHSxGWWnYSyzBg2gF4CV NV4wSyeR4zrQ5Uy/9BH02JenY428CZhvpKombVF+pAgcmPZ7pA+1dOTtKzkVqNVoUn2C y4/hp5RGdWJ4uVHgV8tCsQTYCZVDnePsiNrDg6jpYHlwwjm4i130Qlons+IWz9ABy9fL 947Qi5I55LQq6IpovEeAzB0cqDflXWDi+3Xvzq76T01lAdPkEA/hg7I+bFKHHuyORdu9 aV9xKF8m8t294eDwJfLN3VVNfIqxWZHNbwqNhBNhB4OMQ/BgMLWgG8I8aTjccQqf2u2n dFRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/RPDzPhOqiIr6D44svNTcFPtGBJlSHWH42wQSKTUs9Q=; b=KmqQCkEg+QBixUqyNHC5IRqC2NGMHB7Dj7VkLDQV1knDJ2Fd6gCR6CBaobtfBuS0LI p5BDb8V4I/1uiseoTRYdbyMH7VDX+ZSLJX7FVF8t2MO6DAIiva88kU5XlMDwmnuFlSf/ Rq/WqXMbslRxUxIIjfaSWw5RZ25/cNW2Zt9Agcg4OamJRb9773LPw0TPqk01I2ptFP39 CcgBWlQj2Kd/PN4U/2FOMrHXv7Vt3bCaCtVbx4bX7eEX31vw0+Mkwap7YtvAg8/IzBdB hJwbcQy/qtCryiii7/O/rTDr0dk5dPW93BSSb42TPz6WtRPuw0i5tIiMHqdk40K1dF45 cAMQ== X-Gm-Message-State: AOAM533jbN8zmJYGwX8MW3uZYLCOX7rGb8M+XUaUmKjaFK/CjdvxO7vk MJMowxL0PQ+MPzdBzGsicUza0Py9+FI2W4ANGnI= X-Google-Smtp-Source: ABdhPJzoDA8BumbRtBcxwtPhNhkhkyMc1DZyGhWcJ5Q0G4D95VC9k8+Y7EKEvOIEscXQAOoNJH7E8gmpZgzqPlrd3Fk= X-Received: by 2002:a17:90a:bf0a:: with SMTP id c10mr6519957pjs.195.1615325732427; Tue, 09 Mar 2021 13:35:32 -0800 (PST) MIME-Version: 1.0 References: <165E371A7C0B0DCE.12137@lists.yoctoproject.org> <165E4BA6BFE5FFD7.12137@lists.yoctoproject.org> <165E4E153C3FC07E.12137@lists.yoctoproject.org> <165E92F42A8AA8AC.17182@lists.yoctoproject.org> In-Reply-To: From: "Brian Hutchinson" Date: Tue, 9 Mar 2021 16:35:21 -0500 Message-ID: Subject: Re: [meta-freescale] No u-boot-fslc-fw-utils recipe for Dunfell? To: Peter Bergin Cc: Otavio Salvador , meta-freescale@lists.yoctoproject.org Content-Type: multipart/alternative; boundary="0000000000007a5c2205bd2154ac" --0000000000007a5c2205bd2154ac Content-Type: text/plain; charset="UTF-8" On Tue, Mar 9, 2021 at 4:29 PM Peter Bergin wrote: > Hi Brian, > > > Reviving this issue again ... I noticed that I had to make my own > fw_env.config file and copy it to etc. in a read/write rootfs for quick > testing ... there is no fw_env.config sample provided by libubootenv that > is placed in rootfs under /etc. I'm now generating a squashfs can can't do > that hack so need to do it in recipe and looking at the recipes ... not > 100% sure how to go about it. > > But shouldn't libubootenv put a example fw_env.config in /etc? I mean it > won't work like it's supposed to without one. > > Regards, > > Brian > > it is quite useless for libubootenv (in oe-core) to put a general example > in /etc as it is highly dependent of the target system and where u-boot > environment is located. But in the BSP-layer(s) it could be good to have > example files. There are in the meta-freescale-3rdparty for some boards > already: > > meta-freescale-3rdparty$ find . -name fw_env.config > ./recipes-bsp/u-boot/u-boot-boundary/arm/fw_env.config > ./recipes-bsp/u-boot/u-boot-boundary/aarch64/fw_env.config > ./recipes-bsp/u-boot/u-boot-toradex/fw_env.config > ./recipes-bsp/u-boot/u-boot-toradex/colibri-imx7-emmc/fw_env.config > ./recipes-bsp/u-boot/u-boot-toradex/colibri-imx6ull/fw_env.config > ./recipes-bsp/u-boot/u-boot-toradex/mx6/fw_env.config > ./recipes-bsp/u-boot/u-boot-toradex/colibri-imx7/fw_env.config > ./recipes-bsp/u-boot/u-boot-toradex/vf/fw_env.config > ./recipes-bsp/u-boot/u-boot-kontron/fw_env.config > > In u-boot there are around 10 options where to store the environment > (EEPROM, ext4, FAT, flash memory, MMC......) and for some options eMMC for > example there are several other options such as boot partition and address. > This is a proof that it is best practice to create your own fw_env.config > that fits your system and matches the u-boot configuration. > > Still no fw_env.config in meta-freescale for the boards defined there. I > don't know why. Probably it could be feasible with some defaults there. As > there are default configs for u-boot I guess a fw_env.config could be > shipped matching that. But on the other hand there are no example images in > poky or meta-freescale* that includes libubootenv so that can be a reason. > > Best regards, > /Peter > I'm about to scream. I can't figure out what I'm doing wrong. I made a libubootenv_%.bbappend with: 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" ... and fw_env.conf is going to tmp/deploy/images/imx8mmevk instead of inside my squashfs.wic file. Regards, Brian --0000000000007a5c2205bd2154ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Mar 9, 2021 at 4:29 PM Peter = Bergin <peter@berginkonsult.se= > wrote:
=20 =20 =20

Hi Brian,



Reviving this issue again ... I noticed that I had to make my own fw_env.config file and copy it to etc. in a read/write rootfs for quick testing ... there is no fw_env.config sample provided by libubootenv that is placed in rootfs under /etc.=C2=A0 I'm now generating a squashfs c= an can't do that hack so need to do it in recipe and looking a= t the recipes ... not 100% sure how to go about it. =C2=A0

But shouldn't libubootenv put a example fw_env.config in /etc?=C2=A0 I mean it won't work like it's supposed to = without one.

Regards,

Brian

it is quite useless for libubootenv (in oe-core) to put a general example in /etc as it is highly dependent of the target system and where u-boot environment is located. But in the BSP-layer(s) it could be good to have example files. There are in the meta-freescale-3rdparty for some boards already:

=C2=A0=C2=A0=C2=A0 meta-freescale-3rdparty$ find . -name fw_env.conf= ig
=C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-boundary/arm/fw_env.co= nfig
=C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-boundary/aarch64/fw_en= v.config
=C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-toradex/fw_env.config<= br> =C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-toradex/colibri-imx7-emmc/fw_env.config =C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-toradex/colibri-imx6ull/fw_env.config
=C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-toradex/mx6/fw_env.con= fig
=C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-toradex/colibri-imx7/f= w_env.config
=C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-toradex/vf/fw_env.conf= ig
=C2=A0=C2=A0=C2=A0 ./recipes-bsp/u-boot/u-boot-kontron/fw_env.config<= br>

In u-boot there are around 10 options where to store the environment (EEPROM, ext4, FAT, flash memory, MMC......) and for some options eMMC for example there are several other options such as boot partition and address. This is a proof that it is best practice to create your own fw_env.config that fits your system and matches the u-boot configuration.

Still no fw_env.config in meta-freescale for the boards defined there. I don't know why. Probably it could be feasible with some defaults there. As there are default configs for u-boot I guess a fw_env.config could be shipped matching that. But on the other hand there are no example images in poky or meta-freescale* that includes libubootenv so that can be a reason.

Best regards,
/Peter


I'm about to= scream.=C2=A0 I can't figure out what I'm doing wrong.
<= br>
I made a libubootenv_%.bbappend with:
FILESEXTRAPATHS_prepend :=3D "${THISDIR}/${PN}/:&qu= ot;

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"

... and fw_env.= conf is going to tmp/deploy/images/imx8mmevk instead of inside my squashfs.= wic file.

Regards,

Brian

--0000000000007a5c2205bd2154ac--