From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Fri, 23 Aug 2013 14:46:49 +0200 Subject: [U-Boot] can u-boot tools fw_{printenv, setenv} work with eMMC HW partition? In-Reply-To: References: Message-ID: <521759B9.10107@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 =====================================================================