* [U-Boot] [PATCH] pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
@ 2019-03-22 12:28 Otavio Salvador
2019-03-22 17:39 ` Fabio Estevam
0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2019-03-22 12:28 UTC (permalink / raw)
To: u-boot
The default U-Boot environment expects the use of eMMC user
partition. To ensure we are using the proper eMMC partition for boot
we need to run the `mmc partconf` command.
This patch updates the README instructions to avoid users to follow
misleading instructions.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
board/technexion/pico-imx6ul/README | 9 ++++++++-
board/technexion/pico-imx7d/README | 9 ++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/board/technexion/pico-imx6ul/README b/board/technexion/pico-imx6ul/README
index bb8ee3f463..31f13d1b1d 100644
--- a/board/technexion/pico-imx6ul/README
+++ b/board/technexion/pico-imx6ul/README
@@ -50,7 +50,14 @@ Use the default environment variables:
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
+tool:
=> dfu 0 mmc 0
diff --git a/board/technexion/pico-imx7d/README b/board/technexion/pico-imx7d/README
index 24eb97e82c..525b0a6aec 100644
--- a/board/technexion/pico-imx7d/README
+++ b/board/technexion/pico-imx7d/README
@@ -47,7 +47,14 @@ Use the default environment variables:
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
+tool:
=> dfu 0 mmc 0
--
2.21.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
2019-03-22 12:28 [U-Boot] [PATCH] pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition Otavio Salvador
@ 2019-03-22 17:39 ` Fabio Estevam
2019-03-22 17:59 ` Otavio Salvador
0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2019-03-22 17:39 UTC (permalink / raw)
To: u-boot
Hi Otavio,
On Fri, Mar 22, 2019 at 9:28 AM Otavio Salvador <otavio@ossystems.com.br> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
2019-03-22 17:39 ` Fabio Estevam
@ 2019-03-22 17:59 ` Otavio Salvador
0 siblings, 0 replies; 3+ messages in thread
From: Otavio Salvador @ 2019-03-22 17:59 UTC (permalink / raw)
To: u-boot
On Fri, Mar 22, 2019 at 2:40 PM Fabio Estevam <festevam@gmail.com> wrote:
> On Fri, Mar 22, 2019 at 9:28 AM Otavio Salvador <otavio@ossystems.com.br> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-22 17:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-22 12:28 [U-Boot] [PATCH] pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition Otavio Salvador
2019-03-22 17:39 ` Fabio Estevam
2019-03-22 17:59 ` Otavio Salvador
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.