From mboxrd@z Thu Jan 1 00:00:00 1970 From: Offouga Joris Date: Sat, 16 Feb 2019 12:06:43 +0100 Subject: [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM In-Reply-To: <20190215125021.4a4f6340@jawa> References: <1548023912-14308-1-git-send-email-offougajoris@gmail.com> <20190122104701.74934f97@jawa> <9980fc32-0e2b-db5e-72d8-8dcfadc7b767@gmail.com> <20190215125021.4a4f6340@jawa> Message-ID: <3EDF066A-7E4F-4638-80C8-6FAB1D945455@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de > Le 15 févr. 2019 à 12:50, Lukasz Majewski a écrit : > > Hi Fabio, > >> Hi Lukasz, >> >> On Wed, Jan 23, 2019 at 7:01 PM Joris Offouga >> wrote: >> >>> Hi Lukasz, >>> >>>> Please check if malloc pool size (in Kconfig) is large enough to >>>> handle DFU requests. >>> The dfu request is smaller than the size of malloc pool size >>>> >>>> Otherwise, please #define DEBUG in ./drivers/dfu.c and dfu_mmc.c >>>> and share output. >>> >>> This is a log when dfu failed : >>> >>> blk_find_device: if_type=6, devnum=0: usdhc at 30b40000.blk, 6, 2 >>> blk_find_device: if_type=6, devnum=0: usdhc at 30b50000.blk, 6, 1 >>> blk_find_device: if_type=6, devnum=0: usdhc at 30b60000.blk, 6, 0 >>> Request would exceed designated area! > > Please carefully check the eMMC partition size (as defined in > dfu_alt_info) and the size of sent data. Hi Fabio I followed Lukasz's advice and I increased the size of the U-Boot in the dfu_alt_info and there is no more error. However, once the SPL and U-Boot are changed and the board reboots with the jumper in Boot from emmc, the SPL can not load the U-Boot. Best Regards Joris Offouga > This error happens when one wants to write bigger file than the > reported space on the partition. > > Please look at drivers/dfu/dfu_mmc.c Line: 44 > >>> dfu_write_buffer_drain: Write error! >>> #Deferred dfu_flush() failed!reset_config: >>> unbind function 'dfu'/9ef6e678 >>> g_dnl_unbind: calling usb_gadget_disconnect for controller >>> 'ci_udc' >> >> Do you have any idea on this issue, please? >> >> This DFU bug is one of the items that is blocking the DM conversion of >> this board. >> >> Thanks > > > > > Best regards, > > Lukasz Majewski > > -- > > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de