[U-Boot] can u-boot tools fw_{printenv, setenv} work with eMMC HW partition?
Stefano Babic
sbabic at denx.de
Fri Aug 23 14:46:49 CEST 2013
Hi Robert,
On 23/08/2013 14:25, Robert P. J. Day wrote:
>
> i'm sure there's a simple answer to this
There is
>-- i built u-boot for my
> beaglebone black using the "am335x_boneblack" config, which supports
> saving env info to the eMMC HW partition boot1. but now that it's
> there, is there a way i can manipulate that info with fw_printenv and
> fw_setenv?
Check in code - fw_printenv / fw_setenv are supposed to work with a MTD
device, and the MMC is not. There are some additional checks and
handling of NOR and NAND devices is done differently. But there is no
code for MMC.
However, managing MMC is easier: no need of erasing flash, simply write
into the device computing the CRC. You could add the required functions
to rwad / write a buffer from MMC to fw_printenv (and posting here the
patch, thanks !).
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list