public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Clayton Casciato <majortomtosourcecontrol@gmail.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>,
	OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] probably a simple question regarding running "fw_printenv" on SD card partition
Date: Sat, 7 Feb 2026 08:13:03 -0700	[thread overview]
Message-ID: <c5abc604-1758-484e-ac1f-e6c956bf37f3@gmail.com> (raw)
In-Reply-To: <0b4b896b-3101-ab92-1911-21c3622f9a7a@crashcourse.ca>

>   i've tried various combinations in that config file, including stuff
> like:
>@
>   # MTD device name   Device offset   Env. size   Flash sector size
>   /dev/mmcblk0p7      0x7e000         0x2000      0x200
>@
Hi, Robert

You specify the device offset, so the block device [1] should not also
specify a partition.

The flash sector size should not be specified.

Double check CONFIG_ENV_IS_IN_MMC [2], CONFIG_ENV_OFFSET [3], and 
CONFIG_ENV_SIZE [4].

With CONFIG_ENV_IS_IN_MMC [5]:
"[ENV_OFFSET and ENV_SIZE] are in units of bytes, but must be aligned to
an MMC sector boundary."

[1] https://github.com/u-boot/u-boot/blob/v2025.01/tools/env/fw_env.config#L25
[2] https://github.com/u-boot/u-boot/blob/v2025.01/env/Kconfig#L193
[3] https://github.com/u-boot/u-boot/blob/v2025.01/env/Kconfig#L564
[4] https://github.com/u-boot/u-boot/blob/v2025.01/env/Kconfig#L601
[5] https://github.com/u-boot/u-boot/blob/v2025.01/env/Kconfig#L229-L230

Clayton Casciato


      reply	other threads:[~2026-02-07 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-06 18:19 probably a simple question regarding running "fw_printenv" on SD card partition Robert P. J. Day
2026-02-07 15:13 ` Clayton Casciato [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c5abc604-1758-484e-ac1f-e6c956bf37f3@gmail.com \
    --to=majortomtosourcecontrol@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=rpjday@crashcourse.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox