From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by mx.groups.io with SMTP id smtpd.web11.20438.1611811569528624385 for ; Wed, 27 Jan 2021 21:26:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tXnjdS22; spf=pass (domain: gmail.com, ip: 209.85.216.49, mailfrom: b.hutchman@gmail.com) Received: by mail-pj1-f49.google.com with SMTP id md11so3203981pjb.0 for ; Wed, 27 Jan 2021 21:26:09 -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=b1gxIEr70wQ89v5AsH2jTMH3LEtFDz9nVIN3K+SJYd8=; b=tXnjdS227DuLyuCurYp4LVZifa2oFpJcc5TdKwCbwqXzoRhmQe+xoAow0O94wvpsq8 M96+4bL6jyDXkqpmqy9x4tBQPTeCIkeJL2VmNC4vgfPE6njj0ZlLF3BNXWKnJSijk0oW +VeZcQM2TuCUSqJLpp8qHCwY+cClYW+1lQU6Zm8RlahvxqW1Q7YcZWur3aO6kMF7+moC PdxZLq4jajmfrVjDlzH71RAFVwkvuFvbSGWNLDAxk1EuIxFNlyXRv5geThO8a0JAkHKJ ao8REZtPrbFjkyptORyGZwXiZoNmTw9xSM9KdUtSbaWVyG+UX6LotQ/NIHyEb2VBUxHh pf9w== 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=b1gxIEr70wQ89v5AsH2jTMH3LEtFDz9nVIN3K+SJYd8=; b=ccNbZMtPhnyja2IYrbC/9aXSVqcmUpjvbQCFaRSEmEdyd2FshjCTCeCUlOtla4St8s 21dx8wp08/8PI7befTiwiI3bZYvd1zjuv9k5DECINSRtxmZHLokp5JXy3CmEQmQvObrH qTMaDobTRUlZaDlpOeNlXrlZGtPAuS7xwxREG2+u4k399pQ/AenIPuQlzSeZ+UG1MN+h 4aClVT9ua5cUAOBCcQQ9V9Owwemt071BTeUmqq4d5COcmj/sGufhMaj6U2oKXqUdRhPv JoaKl/3Rv/3ceUyj23M3NLBy6OTvKk4xj+lNuDyyFxsUVHZURZDBmfC3etEVucqKeKCi Qidg== X-Gm-Message-State: AOAM530mb1x05PiKObkwagHxeVZzW3jRYzvTaKjYnn4B4dMz4eC6MSjz maDTk6wFJnBBEXPFVt5otUiyw7WMVjKZ3A//euM= X-Google-Smtp-Source: ABdhPJzlsq/zG+s3/YoXV0SINumQ307Z2Ys8vppJc+Rt16OEYMbEepQluwXkz6ATs19HtM7FWC5JsaJZD0NeFWGaeHA= X-Received: by 2002:a17:90a:5911:: with SMTP id k17mr9433889pji.152.1611811569048; Wed, 27 Jan 2021 21:26:09 -0800 (PST) MIME-Version: 1.0 References: <165E371A7C0B0DCE.12137@lists.yoctoproject.org> <165E4BA6BFE5FFD7.12137@lists.yoctoproject.org> In-Reply-To: <165E4BA6BFE5FFD7.12137@lists.yoctoproject.org> From: "Brian Hutchinson" Date: Thu, 28 Jan 2021 00:25:58 -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="000000000000049f8505b9ef204b" --000000000000049f8505b9ef204b Content-Type: text/plain; charset="UTF-8" On Wed, Jan 27, 2021 at 11:41 PM Brian Hutchinson via lists.yoctoproject.org wrote: > > Ok, stumped now. I created a /etc/fw_env.config file with: > /dev/mmcblk1 0x400000 0x1000 > > Also tried: > /dev/mmcblk1 0x0 0x1000 > > ... mmcblk1 is the sdcard I'm booting. > > Now I'm getting: > > root@imx8mmevk:/etc# fw_printenv > Cannot read environment, using default > Cannot read default environment from file > > This is first time I'm using sdcards or eMMC to store u-boot env, always > did it in NOR before so I'm kinda lost at the moment. > > Anyone know where the u-boot env is on sdcard (or eMMC)? > > > 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 --000000000000049f8505b9ef204b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Wed, Jan 27, 2021 at 11:41 PM Brian Hutchinson via lists.yoctoproject.org <b.hutchman= =3Dgmail.com@lists.yoct= oproject.org> wrote:
=C2=A0
Ok, stumped now.=C2=A0 I created a /etc/fw_env.config file with:
/dev/mmcblk1 =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A00x400000 =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A00x1000

Also tried:
/dev/mmcblk1 0x0 0x1000<= br>

... mmcblk1 is the sdcard I'm= booting.

Now I'm ge= tting:

root@imx8mmevk:/etc# fw_printenv =C2=A0
Cannot read environment= , using default
Cannot read default environment from file
<= span style=3D"font-family:monospace">=
This is first time I'm using sdcards or e= MMC to store u-boot env, always did it in NOR before so I'm kinda lost = at the moment.

A= nyone know where the u-boot env is on sdcard (or eMMC)?
=


=C2=A0
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 st= arted working with my imx8mm-evk board with fw_env.config containing:
=

/dev/mmcblk1=C2=A0 0x400000=C2=A0=C2=A0=C2=A0 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 expla= in why it just started working.=C2=A0 To test, I used fw_setenv to set a va= riable and rebooted and stopped in u-boot and did printenv and sure enough = the variable I set is there.

Regards,

Brian
--000000000000049f8505b9ef204b--