From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joris Offouga Date: Sat, 16 Feb 2019 14:02:34 +0100 Subject: [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM In-Reply-To: References: <1548023912-14308-1-git-send-email-offougajoris@gmail.com> <20190122104701.74934f97@jawa> <9980fc32-0e2b-db5e-72d8-8dcfadc7b767@gmail.com> <20190215125021.4a4f6340@jawa> <3EDF066A-7E4F-4638-80C8-6FAB1D945455@gmail.com> <797f282f-11f8-a5e1-3ffe-385dc3cede08@gmail.com> Message-ID: <2ca63ebd-98db-5152-1063-c9cf9681687e@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 16/02/2019 à 13:46, Fabio Estevam a écrit : > On Sat, Feb 16, 2019 at 10:34 AM Joris Offouga wrote: >> >> Le 16/02/2019 à 13:17, Fabio Estevam a écrit : >>> Hi Joris, >>> >>> On Sat, Feb 16, 2019 at 9:06 AM Offouga Joris wrote: >>> >>>> 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. >>> What is the U-Boot size you used in the dfu_alt_info? >> "u-boot raw 0x8a 0x1000" > The original setting was correct: > u-boot-dtb.img needs to be flashed at the position 69kB of the eMMC. > > Originally we had: > > u-boot raw 0x8a 0x400; > > which means: 0x8a = 138 * 0x400 = 138 * 1024 = 138 sectors. Each > sector is 512 bytes, so 138*0.5k = 69kB > > Could you also try: > > u-boot raw 0x45 0x800 > > Does it make any difference? Yes , download with dfu it's okay but after rebooting the SPL does not load. For u-boot, dm-spl, this does not work only if the SPL is converted to DM too, because the add-on in the uscdh3 node did not change the problem of loading the U-Boot