mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	mx7dsabresd: enable DFU support
On the target board:
  => dfu 0 mmc 0
On the host PC:
  $ dfu-util -l
    Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=0, name="image"
    Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=1, name="u-boot"
    Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=2, name="bootimg"
    Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=3, name="rootfs"
  Update with a full SD image
  $ dfu-util -a image -D core-image-minimal-imx7dsabresd.sdcard
  Update u-boot only
  $ dfu-util -a u-boot -D u-boot.imx
Signed-off-by: Tzu-Jung Lee <roylee17@currantlabs.com>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
			
			
This commit is contained in:
		
							parent
							
								
									5f5620ab26
								
							
						
					
					
						commit
						73f1b80c77
					
				@ -69,8 +69,15 @@
 | 
			
		||||
	"initrd_high=0xffffffff\0" \
 | 
			
		||||
	"bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \
 | 
			
		||||
 | 
			
		||||
#define CONFIG_DFU_ENV_SETTINGS \
 | 
			
		||||
	"dfu_alt_info=image raw 0 0x800000;"\
 | 
			
		||||
		"u-boot raw 0 0x4000;"\
 | 
			
		||||
		"bootimg part 0 1;"\
 | 
			
		||||
		"rootfs part 0 2\0" \
 | 
			
		||||
 | 
			
		||||
#define CONFIG_EXTRA_ENV_SETTINGS \
 | 
			
		||||
	CONFIG_MFG_ENV_SETTINGS \
 | 
			
		||||
	CONFIG_DFU_ENV_SETTINGS \
 | 
			
		||||
	"script=boot.scr\0" \
 | 
			
		||||
	"image=zImage\0" \
 | 
			
		||||
	"console=ttymxc0\0" \
 | 
			
		||||
@ -192,4 +199,24 @@
 | 
			
		||||
 | 
			
		||||
#define CONFIG_IMX_THERMAL
 | 
			
		||||
 | 
			
		||||
#define CONFIG_CI_UDC
 | 
			
		||||
#define CONFIG_USBD_HS
 | 
			
		||||
#define CONFIG_USB_GADGET_DUALSPEED
 | 
			
		||||
 | 
			
		||||
#define CONFIG_USB_GADGET
 | 
			
		||||
#define CONFIG_CMD_USB_MASS_STORAGE
 | 
			
		||||
#define CONFIG_USB_FUNCTION_MASS_STORAGE
 | 
			
		||||
#define CONFIG_USB_GADGET_DOWNLOAD
 | 
			
		||||
#define CONFIG_USB_GADGET_VBUS_DRAW	2
 | 
			
		||||
 | 
			
		||||
#define CONFIG_G_DNL_VENDOR_NUM		0x0525
 | 
			
		||||
#define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
 | 
			
		||||
#define CONFIG_G_DNL_MANUFACTURER	"FSL"
 | 
			
		||||
 | 
			
		||||
/* USB Device Firmware Update support */
 | 
			
		||||
#define CONFIG_CMD_DFU
 | 
			
		||||
#define CONFIG_USB_FUNCTION_DFU
 | 
			
		||||
#define CONFIG_DFU_MMC
 | 
			
		||||
#define CONFIG_DFU_RAM
 | 
			
		||||
 | 
			
		||||
#endif	/* __CONFIG_H */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user