All of lore.kernel.org
 help / color / mirror / Atom feed
From: Przemyslaw Marczak <p.marczak@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] dfu_get_buf: Could not memalign 0x2000000 bytes
Date: Fri, 27 Feb 2015 16:35:31 +0100	[thread overview]
Message-ID: <54F08EC3.9090707@samsung.com> (raw)
In-Reply-To: <CAOMZO5BhJ1hvrF-vb4M6c_zd5qKOFmMsyeQd0s2u-0HVHdwZUA@mail.gmail.com>

Hello Fabio,

On 02/27/2015 04:20 PM, Fabio Estevam wrote:
> 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
>

Yes, please update line 33 in your config file, at least with this

  #define CONFIG_SYS_MALLOC_LEN           (10 * SZ_1M) + 
CONFIG_SYS_DFU_DATA_BUF_SIZE

You don't have enough malloc memory reserved.

Best regards,
-- 
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com

  reply	other threads:[~2015-02-27 15:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 15:20 [U-Boot] dfu_get_buf: Could not memalign 0x2000000 bytes Fabio Estevam
2015-02-27 15:35 ` Przemyslaw Marczak [this message]
2015-02-27 15:43   ` Fabio Estevam
2015-02-27 15:45     ` Przemyslaw Marczak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54F08EC3.9090707@samsung.com \
    --to=p.marczak@samsung.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.