* [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support
@ 2016-06-15 15:48 Vanessa Maegima
2016-06-15 15:48 ` [U-Boot] [PATCH 2/2] pico-imx6ul: Add a README file Vanessa Maegima
2016-06-15 17:02 ` [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support Fabio Estevam
0 siblings, 2 replies; 5+ messages in thread
From: Vanessa Maegima @ 2016-06-15 15:48 UTC (permalink / raw)
To: u-boot
DFU is a convenient way to program U-boot binary into the eMMC.
Add support for it.
Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
---
configs/pico-imx6ul_defconfig | 8 ++++++++
include/configs/pico-imx6ul.h | 8 +++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/configs/pico-imx6ul_defconfig b/configs/pico-imx6ul_defconfig
index d46cd3b..da530c0 100644
--- a/configs/pico-imx6ul_defconfig
+++ b/configs/pico-imx6ul_defconfig
@@ -9,6 +9,7 @@ CONFIG_CMD_MEMTEST=y
# CONFIG_CMD_FLASH is not set
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
+CONFIG_CMD_DFU=y
CONFIG_CMD_USB_MASS_STORAGE=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_DHCP=y
@@ -20,4 +21,11 @@ CONFIG_CMD_EXT4=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FS_GENERIC=y
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
+CONFIG_CI_UDC=y
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
CONFIG_OF_LIBFDT=y
diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h
index d848ead..ee7e058 100644
--- a/include/configs/pico-imx6ul.h
+++ b/include/configs/pico-imx6ul.h
@@ -18,7 +18,7 @@
#define CONFIG_DISPLAY_BOARDINFO
/* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN (16 * SZ_1M)
+#define CONFIG_SYS_MALLOC_LEN (35 * SZ_1M) /* Increase due to DFU */
#define CONFIG_BOARD_EARLY_INIT_F
@@ -53,6 +53,11 @@
#define CONFIG_USB_GADGET_DOWNLOAD
#define CONFIG_USB_GADGET_VBUS_DRAW 2
+#define CONFIG_USB_FUNCTION_DFU
+#define CONFIG_DFU_MMC
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M
+#define DFU_DEFAULT_POLL_TIMEOUT 300
+
#define CONFIG_G_DNL_VENDOR_NUM 0x0525
#define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
#define CONFIG_G_DNL_MANUFACTURER "FSL"
@@ -76,6 +81,7 @@
"mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
"mmcautodetect=yes\0" \
+ "dfu_alt_info=boot raw 0x2 0x400 mmcpart 1\0" \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
"root=${mmcroot}\0" \
"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 2/2] pico-imx6ul: Add a README file
2016-06-15 15:48 [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support Vanessa Maegima
@ 2016-06-15 15:48 ` Vanessa Maegima
2016-06-15 17:03 ` Fabio Estevam
2016-06-15 17:02 ` [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support Fabio Estevam
1 sibling, 1 reply; 5+ messages in thread
From: Vanessa Maegima @ 2016-06-15 15:48 UTC (permalink / raw)
To: u-boot
Add a README file to help users to install U-boot binary into the eMMC.
Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
---
board/technexion/pico-imx6ul/README | 57 +++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 board/technexion/pico-imx6ul/README
diff --git a/board/technexion/pico-imx6ul/README b/board/technexion/pico-imx6ul/README
new file mode 100644
index 0000000..fe739f6
--- /dev/null
+++ b/board/technexion/pico-imx6ul/README
@@ -0,0 +1,57 @@
+How to Update U-Boot on Pico-imx6ul board
+-----------------------------------------
+
+Required software on the host PC:
+
+- imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader
+
+- dfu-util: http://dfu-util.sourceforge.net/releases/
+
+Build U-Boot for Pico:
+
+$ make mrproper
+$ make pico-imx6ul_defconfig
+$ make
+
+This will generate the U-Boot binary called u-boot.imx.
+
+Put pico board in USB download mode (refer to the document
+http://www.wandboard.org/images/hobbit/hobbitboard-imx6ul-reva1.pdf page 15)
+
+Connect a USB to serial adapter between the host PC and pico
+
+Connect a USB cable between the OTG pico port and the host PC
+
+Open a terminal program such as minicom
+
+Copy u-boot.imx to the imx_usb_loader folder.
+
+Load u-boot.imx via USB:
+
+$ sudo ./imx_usb u-boot.imx
+
+Then U-Boot should start and its messages will appear in the console program.
+
+Use the default environment variables:
+
+=> env default -f -a
+=> saveenv
+
+Run the DFU command:
+=> dfu 0 mmc 0
+
+Transfer u-boot.imx that will be flashed into the eMMC:
+
+$ sudo dfu-util -D u-boot.imx -a boot
+
+Then on the U-Boot prompt the following message should be seen after a
+successful upgrade:
+
+#DOWNLOAD ... OK
+Ctrl+C to exit ...
+
+Remove power from the pico board.
+
+Put pico board into normal boot mode
+
+Power up the board and the new updated U-Boot should boot from eMMC.
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support
2016-06-15 15:48 [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support Vanessa Maegima
2016-06-15 15:48 ` [U-Boot] [PATCH 2/2] pico-imx6ul: Add a README file Vanessa Maegima
@ 2016-06-15 17:02 ` Fabio Estevam
2016-06-18 8:56 ` Stefano Babic
1 sibling, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2016-06-15 17:02 UTC (permalink / raw)
To: u-boot
On Wed, Jun 15, 2016 at 12:48 PM, Vanessa Maegima
<vanessa.maegima@nxp.com> wrote:
> DFU is a convenient way to program U-boot binary into the eMMC.
>
> Add support for it.
>
> Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 2/2] pico-imx6ul: Add a README file
2016-06-15 15:48 ` [U-Boot] [PATCH 2/2] pico-imx6ul: Add a README file Vanessa Maegima
@ 2016-06-15 17:03 ` Fabio Estevam
0 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2016-06-15 17:03 UTC (permalink / raw)
To: u-boot
On Wed, Jun 15, 2016 at 12:48 PM, Vanessa Maegima
<vanessa.maegima@nxp.com> wrote:
> Add a README file to help users to install U-boot binary into the eMMC.
>
> Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support
2016-06-15 17:02 ` [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support Fabio Estevam
@ 2016-06-18 8:56 ` Stefano Babic
0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2016-06-18 8:56 UTC (permalink / raw)
To: u-boot
On 15/06/2016 19:02, Fabio Estevam wrote:
> On Wed, Jun 15, 2016 at 12:48 PM, Vanessa Maegima
> <vanessa.maegima@nxp.com> wrote:
>> DFU is a convenient way to program U-boot binary into the eMMC.
>>
>> Add support for it.
>>
>> Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
>
> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
>
Applied to -next, thanks !
Best regards,
Stefano Babic
--
=====================================================================
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
=====================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-18 8:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-15 15:48 [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support Vanessa Maegima
2016-06-15 15:48 ` [U-Boot] [PATCH 2/2] pico-imx6ul: Add a README file Vanessa Maegima
2016-06-15 17:03 ` Fabio Estevam
2016-06-15 17:02 ` [U-Boot] [PATCH 1/2] pico-imx6ul: Add DFU support Fabio Estevam
2016-06-18 8:56 ` Stefano Babic
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.