From mboxrd@z Thu Jan 1 00:00:00 1970 From: Otavio Salvador Date: Fri, 22 Mar 2019 14:59:01 -0300 Subject: [U-Boot] [PATCH] pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition In-Reply-To: References: <20190322122835.5699-1-otavio@ossystems.com.br> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Mar 22, 2019 at 2:40 PM Fabio Estevam wrote: > On Fri, Mar 22, 2019 at 9:28 AM Otavio Salvador wrote: > > 2. Flashing U-Boot into the eMMC > > > > -Run the DFU agent so we can flash the new images using dfu-util tool: > > +The default U-Boot environment expects the use of eMMC user > > +partition. To ensure we are using the proper eMMC partition for boot, > > +please run: > > + > > +=> mmc partconf 0 0 0 0 > > + > > +Next, un the DFU agent so we can flash the new images using dfu-util > > Typo: it should be "run" instead of "un" > > I tested the instructions and it did not work for me. After I ran > these steps I still got the old U-Boot on the eMMC. > > The procedure that worked here is: > > => dfu 0 mmc 0 > Flash SPL > => dfu 0 mmc 0 > Flash U-Boot proper > > => mmc partconf 0 0 0 0 > => saveenv I sent a v2. The order is: Use the default environment variables: => env default -f -a => saveenv To ensure we are using the proper eMMC partition for boot, please run: => mmc partconf 0 0 0 0 Next, run the DFU agent so we can flash the new images using dfu-util tool: => dfu 0 mmc 0 Flash SPL and u-boot-dtb.img into the eMMC running the following commands on a PC: $ sudo dfu-util -D SPL -a spl $ sudo dfu-util -D u-boot-dtb.img -a u-boot The environment setup but be run using the current U-Boot as it has the dfu_alt_info which needs to be used. Please try this sequence and see if it works for you. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750