From: Marek Vasut Date: Fri, 22 Mar 2019 22:06:42 +0100 Subject: [U-Boot] [PATCH v2] pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition In-Reply-To: References: <20190322175330.11128-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 3/22/19 7:42 PM, Otavio Salvador wrote: > On Fri, Mar 22, 2019 at 3:17 PM Fabio Estevam wrote: >> On Fri, Mar 22, 2019 at 3:09 PM Otavio Salvador >> wrote: >>>> 2. The '=> mmc partconf 0 0 0 0' command needs to be issued after the >>>> last dfu command, not before like you did in this patch. >>> >>> Read above. >>> >>> I wonder why it works here and fails for you. Are you booting from USB >>> or eMMC when running the DFU? What version are you using? >> >> The mmc partconf order does make a difference here though. >> >> I could only flash it when I ran it after the dfu command. > > This is a mystery to me; here we did update it several times without it failing. > > Please try: > > mmc partconf 0 0 0 0 > reset > > after boot just program it and see if it helps. Maybe because mmc partconf does permanent configuration change to the eMMC and selects some partitioning setup (I forgot which one, I'd have to check), The keyword here is it is a non-volatile change, it survives reset and power cycle. -- Best regards, Marek Vasut