[U-Boot] dfu_get_buf: Could not memalign 0x2000000 bytes

Fabio Estevam festevam at gmail.com
Fri Feb 27 16:20:53 CET 2015


Hi,

I am trying to run DFU in order to flash u-boot.imx into the SD card
on a mx6qsabresd.

The changes in config file are:

--- a/include/configs/mx6sabre_common.h
+++ b/include/configs/mx6sabre_common.h
@@ -295,4 +295,10 @@
 #define CONFIG_G_DNL_PRODUCT_NUM       0xa4a5
 #define CONFIG_G_DNL_MANUFACTURER      "FSL"

+#define CONFIG_CMD_DFU
+#define CONFIG_DFU_FUNCTION
+#define CONFIG_DFU_MMC
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
+#define DFU_DEFAULT_POLL_TIMEOUT 300
+
 #endif

=> mmc dev 1

=> setenv dfu_alt_info 'boot raw 0x2 0x400'
=> save

=> dfu 0 mmc 1

Then on the host PC:

$ sudo dfu-util -D u-boot.imx -a boot
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util at lists.gnumonks.org

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 0525:a4a5
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Device returned transfer size 4096
Copying data from PC to DFU device
Download    [                         ]   0%            0 bytes failed!
state(10) = dfuERROR, status(14) = Something went wrong, but the
device does not know what it was

and the following error is seen in U-boot:

dfu_get_buf: Could not memalign 0x2000000 bytes

Does anyone have any suggestions about this?

Thanks,

Fabio Estevam


More information about the U-Boot mailing list