pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
PATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
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.
---
Changes in v2:
- fix typo
board/technexion/pico-imx6ul/README | 9 ++++++++- board/technexion/pico-imx7d/README | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-)
board/technexion/pico-imx6ul/README +8 -1
@@ -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, run the DFU agent so we can flash the new images using dfu-util +tool: => dfu 0 mmc 0
board/technexion/pico-imx7d/README +8 -1
@@ -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, run the DFU agent so we can flash the new images using dfu-util +tool: => dfu 0 mmc 0
Signature · 1 line
2.21.0
Fabio Estevam
reviewerPATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
Quoted 5 lines · Otavio Salvador
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 partconfcommand.
Quoted 8 lines
This patch updates the README instructions to avoid users to follow misleading instructions.
Signed-off-by Otavio Salvador <[email protected]>---
Changes in v2:
- fix typo
No, please re-read my last response. I think you misunderstood.
If I follow the steps indicated in this patch the eMMC flashing does not work.
I tried it and U-Boot did not update.
Here is the correct procedure that works for me:
=> dfu 0 mmc 0
Flash SPL
=> dfu 0 mmc 0
Flash U-Boot proper
=> mmc partconf 0 0 0 0
=> saveenv
So you need to fix the README in two points:
1. The command "=> dfu 0 mmc 0" must be issued twice: one for the SPL and one for u-boot-dtb.img - This error was there prior to your change
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.
PATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
Hello Fabio,
Adding Marek as he is one of USB gods.
Quoted 5 lines · Fabio Estevam
On Fri, Mar 22, 2019 at 2:53 PM Otavio Salvador <[email protected]> wrote:
So you need to fix the README in two points:1. The command "=> dfu 0 mmc 0" must be issued twice: one for the SPL and one for u-boot-dtb.img - This error was there prior to your change
I fail to see why this would be need. Also the 'mmc partconf' does not affect where the DFU writes the blog (this is changed depending on the dfu_alt_info line).
Quoted 2 lines
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?
Signature · 3 lines
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
Fabio Estevam
reviewerPATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
Quoted 9 lines · Otavio Salvador
Hello Fabio,
Adding Marek as he is one of USB gods.
Quoted 3 lines · Fabio Estevam
On Fri, Mar 22, 2019 at 2:53 PM Otavio Salvador <[email protected]> wrote:
So you need to fix the README in two points:
Quoted 6 lines
Quoted 2 lines
1. The command "=> dfu 0 mmc 0" must be issued twice: one for the SPL and one for u-boot-dtb.img - This error was there prior to your change
I fail to see why this would be need. Also the 'mmc partconf' does not affect where the DFU writes the blog (this is changed depending on the
dfu_alt_infoline).
Ok, your are right. 'dfu 0 mmc 0' only needs to be issue once.
Quoted 7 lines
Quoted 2 lines
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.
PATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
Quoted 5 lines · Fabio Estevam
Quoted 3 lines · Otavio Salvador
Quoted 2 lines
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.
Quoted 8 lines
Quoted 4 lines
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.
Signature · 3 lines
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
PATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
Quoted 15 lines · Otavio Salvador
Quoted 5 lines · Fabio Estevam
Quoted 3 lines · Otavio Salvador
Quoted 2 lines
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.
Quoted 8 lines
Quoted 4 lines
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.
Quoted 8 lines
This is a mystery to me; here we did update it several times without it failing.
Please try:
mmc partconf 0 0 0 0
resetafter 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.
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
In reply to Otavio SalvadorStefano,
Quoted 8 lines · Otavio Salvador
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 partconfcommand.This patch updates the README instructions to avoid users to follow misleading instructions.
Signed-off-by Otavio Salvador <[email protected]>
Could this to be applied?
Signature · 3 lines
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
Fabio Estevam
reviewerPATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
Hi Otavio,
Quoted 8 lines · Otavio Salvador
Stefano,
Quoted 4 lines · Otavio Salvador
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 partconfcommand.
Quoted 6 lines
Quoted 4 lines
This patch updates the README instructions to avoid users to follow misleading instructions.
Signed-off-by Otavio Salvador <[email protected]>Could this to be applied?
The instructions on this patch did not work for me.
It only worked if I called 'mmc partconf 0 0 0 0' after the DFU command.
PATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
Hi Otavio, Fabio,
Quoted 19 lines · Fabio Estevam
Hi Otavio,
Quoted 14 lines · Otavio Salvador
Stefano,
Quoted 8 lines · Otavio Salvador
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 partconfcommand.This patch updates the README instructions to avoid users to follow misleading instructions.
Signed-off-by Otavio Salvador <[email protected]>Could this to be applied?
I have seen the patch but I have not picked it up.
Fabio is reporting that these instructions are not working for him - IMHO it is better to have no instructions else not working instructions. I am really relying on your both judge, I have not the board and no way to test myself.
Quoted 4 lines
The instructions on this patch did not work for me.
It only worked if I called 'mmc partconf 0 0 0 0' after the DFU command.
Indeed.
Best regards,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk 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 =====================================================================
PATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
In reply to Fabio EstevamQuoted 10 lines · Fabio Estevam
Quoted 8 lines · Otavio Salvador
Quoted 7 lines · Otavio Salvador
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 partconfcommand.This patch updates the README instructions to avoid users to follow misleading instructions.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Otavio Salvador <[email protected]>Could this to be applied?
The instructions on this patch did not work for me.
It only worked if I called 'mmc partconf 0 0 0 0' after the DFU command.
It is really weird and it always work for us here. Vanessa and Richard, could you give it a try?
Signature · 3 lines
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
Fabio Estevam
reviewerPATCH v2 1/1 pico-imx6ul, pico-imx7d: Explain how to use eMMC user partition
Hi Otavio,
Quoted 2 lines · Otavio Salvador
It is really weird and it always work for us here. Vanessa and Richard, could you give it a try?
Once the board is "unlocked" your instructions work fine.
Try "locking" it first and then try your instructions again.