From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mx.groups.io with SMTP id smtpd.web11.4111.1611887293805469556 for ; Thu, 28 Jan 2021 18:28:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a9iBvJw6; spf=pass (domain: gmail.com, ip: 209.85.215.182, mailfrom: b.hutchman@gmail.com) Received: by mail-pg1-f182.google.com with SMTP id o7so5640016pgl.1 for ; Thu, 28 Jan 2021 18:28:13 -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=tfCvd/epS9GWw+zIsGSu297Uig5fAwO4MrJw66lByJ0=; b=a9iBvJw6/b9Zk5n2/ce5bAMBPYji6+IGEKfe7GLacfhzcaTHDO13nP/YowqVtek3Fk GfzwI+WXd/RdCDGi+aPMImE7WGwTdkQ9mBVHkLV1UIVlkgKNH+VWGE6flrSAOL1/IzvS 7c5dBHKr+95YDimMn4zQSUhuRRwbF8NmZwJgc9yjwPby5czwF/T2Q8tRkR3uXt+aSzB0 RSMKqiCbhPo6HUS5V8gOJqvb324MJMg+YCUBhQTDATlhUqdi+7oqs8ew+XPLAEpp4jWF ZOa9ar3ob7GoUbndSZXyEqCNxEyu1PRp8vukxAco9gPlnirdJ031U0C2in5m5m+mouGJ FIMQ== 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=tfCvd/epS9GWw+zIsGSu297Uig5fAwO4MrJw66lByJ0=; b=pN65u3oJVCavhKmQYv4cbEbLxG7LiU+orhct1i5FcYFFT/9ThnLxz48bJRYKUNrPqc W/jjJHsyYhzFoahayF7mm5eyWSptJS3+azEAb7zXawgA4TWPK7C7pwUDVCKJ0wg5nJyA qNdl3/QcoFe6i/wNHPNiXyIIBbtMSrpJT7/NMvMgdVXHCZC0uSYH+0c9iNECYZWqZUKF OlEEeEm7QhGf8kAmCtmCs0cUyLH71U4g0VCl+eLipq5Tslqs8swB+pN1VamGruCYsO5F ZyYNkF6TY3nVvaIlmZhmmAydR2/RTSfKSSLtaY1+D2rjyxK8jjj05hdR9PsY4vEzH/1F IZDQ== X-Gm-Message-State: AOAM532jwgz7l8ZhwCgbNapgaZYiCxrUmaUXefF+W86/lYIZDm+bBQsN a8wGEndPwSbpI5cU/rCvxh35mDv2ndnQNMECrSg= X-Google-Smtp-Source: ABdhPJxPueO0O2IQKQ1LeW2s9IFWT/XPAzsYCpR/kF1BbbbBHEeSzBSUCZWmIKaAJ3sB/Z3X0WwGeF+5lLx4th9tFpA= X-Received: by 2002:a63:cf43:: with SMTP id b3mr2211999pgj.387.1611887293326; Thu, 28 Jan 2021 18:28:13 -0800 (PST) MIME-Version: 1.0 References: <165E371A7C0B0DCE.12137@lists.yoctoproject.org> <165E4BA6BFE5FFD7.12137@lists.yoctoproject.org> <165E4E153C3FC07E.12137@lists.yoctoproject.org> In-Reply-To: <165E4E153C3FC07E.12137@lists.yoctoproject.org> From: "Brian Hutchinson" Date: Thu, 28 Jan 2021 21:28:02 -0500 Message-ID: Subject: Re: [meta-freescale] No u-boot-fslc-fw-utils recipe for Dunfell? To: "b.hutchman" Cc: Otavio Salvador , meta-freescale@lists.yoctoproject.org Content-Type: multipart/alternative; boundary="0000000000008969e505ba00c1c3" --0000000000008969e505ba00c1c3 Content-Type: text/plain; charset="UTF-8" > > > Update ... feeling like I'm losing my mind now. > > fw_env.config must be sensitive to spaces or tabs or something. > > I messed around with it some more and it magically started working with my > imx8mm-evk board with fw_env.config containing: > > /dev/mmcblk1 0x400000 0x1000 > > I don't know why that didn't work before ... I tried all kinds of things > to get this to work and really can't explain why it just started working. > To test, I used fw_setenv to set a variable and rebooted and stopped in > u-boot and did printenv and sure enough the variable I set is there. > > Regards, > > Brian > So I think I figured out what was going on. I flashed sdcard with fresh Yocto build. Apparently the default u-boot environment is in ram and not in the eMMC until you stop in u-boot and do a saveenv ... then when you boot into Linux fw_printenv works. Prior to doing that, fw_printenv will return the error I previously mentioned. Hopefully this will help the next person thinking they are losing their mind messing with creating a fw_env.config file. Regards, Brian --0000000000008969e505ba00c1c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Upd= ate ... feeling like I'm losing my mind now.

f= w_env.config must be sensitive to spaces or tabs or something.
I messed around with it some more and it magically started wor= king with my imx8mm-evk board with fw_env.config containing:

=
/dev/mmcblk1=C2=A0 0x400000=C2=A0=C2=A0=C2=A0 0x1000
<= br>
I don't know why that didn't work before ... I tried = all kinds of things to get this to work and really can't explain why it= just started working.=C2=A0 To test, I used fw_setenv to set a variable an= d rebooted and stopped in u-boot and did printenv and sure enough the varia= ble I set is there.

Regards,

Brian

So I th= ink I figured out what was going on.=C2=A0 I flashed sdcard with fresh Yoct= o build.=C2=A0 Apparently the default u-boot environment is in ram and not = in the eMMC until you stop in u-boot and do a saveenv ... then when you boo= t into Linux fw_printenv works.=C2=A0 Prior to doing that, fw_printenv will= return the error I previously mentioned.

Hopefull= y this will help the next person thinking they are losing their mind messin= g with creating a fw_env.config file.

Regards,

Brian



--0000000000008969e505ba00c1c3--