From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Ford Date: Sun, 8 Dec 2019 06:50:51 -0600 Subject: i.MX8MM-EVK Boot failure In-Reply-To: <20191207182500.GU9549@bill-the-cat> References: <20191207182500.GU9549@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:25 PM Tom Rini wrote: > > On Sat, Dec 07, 2019 at 08:42:32AM -0600, Adam Ford wrote: > > > I am trying to run the latest master > > > > 4b19b89ca4a866b7baa642533e6dbd67cd832d27 > > with the clock patches applied for 8mm, but I am getting a boot > > failure when I follow the instructions in the README, which are also a > > bit wrong. (the firmware versions don't match, and the ./firmware > > command is missing the trailing '.bin', but it's trivial.) > > > > What comes out of the kit with DEBUG enabled is: > > > > (bunch of stuff deleted) > > > > [PMU Major message = 0x000000fe] > > [PMU Major message = 0x00000007] > > Training PASS > > DDRINFO: ddrphy config done > > DDRINFO:ddrphy calibration done > > DDRINFO: ddrmix config done > > >>SPL: board_init_r() > > using memory lx-lx for malloc() > > spl_init > > Normal Boot > > Trying to boot from MMC1 > > common/dlmalloc.c:792: do_check_inuse_chunk: Assertion `inuse(p)' failed. > > resetting ... > > > > The above sequence repeats again and again. I didn't put all the junk > > into the log because it looked like everything seemed OK until the > > dlmalloc failure at the end. If someone has any suggestions, I'd like > > to try the 8mm-evk with a modern U-Boot. > > I think (per the thread about fixing one of the colibri platforms) this > also needs a CONFIG_FSL_ESDHC -> CONFIG_FSL_ESDHC_IMX fix in the board > file. I am not seeing a reference to either CONFIG_FSL_ESDHC or CONFIG_FSL_ESDHC_IMX in the imx8mm_evk board files, and it appears as if the device tree and DM_SPL stuff is managing the drivers. The defconfig file is enabling CONFIG_FSL_ESDHC_IMX. It seems like a memory issue based on: common/dlmalloc.c:792: do_check_inuse_chunk: Assertion `inuse(p)' failed. adam > > -- > Tom