From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=F6rg?= Krause Date: Sat, 02 Feb 2019 14:16:53 +0100 Subject: [U-Boot] Nand boot on imx6q board is broken In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi, On Thu, 2019-01-31 at 07:22 -0800, Adam Ford wrote: > On Wed, Jan 30, 2019 at 11:40 PM Shyam Saini = wrote: > > Hi Everyone, > >=20 > > I'm trying to boot imx6q board from nand but it seems like mainline > > u-boot nand boot support for imx6q board is broken. >=20 > I spent some time trying to make the imx6q_logic board boot from SPL > from NAND, but I needed to patch a few things. Some of them have yet > to be approved, but if they work for you, maybe it will help get them > approved. >=20 > There was a broken function pointer here that was fixed and applied > the imx-master, but pending merge with master > http://patchwork.ozlabs.org/patch/1019440/ >=20 > Configure ECC from SPL here: > http://patchwork.ozlabs.org/patch/1020160/ >=20 > Remove hard-coded ECC parameters since the patch above can autoset them. > http://patchwork.ozlabs.org/patch/1026638/ >=20 > With those 3 patches and some minor changes to my individual board > file and config file, I was able to boot 2019.01 via SPL from NAND. > Since it was working for you before, I am guessing the board file > stuff and config file stuff is probably already for you. >=20 > adam I can confirm that applying these three patches fixes booting from NAND on a custom i.MX6ULL board with Micron NAND flash. J=C3=B6rg > > It is working till v2017.05 with this fix [1]. > >=20 > > I'm using this as my stub: > > https://github.com/openedev/u-boot-amarula/tree/icore-nand > >=20 > >=20 > >=20 > > When I git bisect between v2017.05 and v2017.07, found this commit > > which is further breaking the nand boot support: > > ------ > > ommit bc1fe9006dfaacc5103b5c7057a62215844957b7 > > Author: Jagan Teki > > Date: Sun May 7 02:43:05 2017 +0530 > >=20 > > icorem6: Make SPL to pick suitable fdt > >=20 > > SPL FIT is able to pick the suitable fdt file for u-boot, > > so add that function through board_fit_config_name_match. > >=20 > > Cc: Stefano Babic > > Cc: Matteo Lisi > > Cc: Michael Trimarchi > > Signed-off-by: Jagan Teki > > ----- > > And It is fixed with this [2]. > >=20 > > In mainline u-boot we already have fix [1] and [2] available but nand > > boot is still broken. It seems like problem is some where else, fix > > [1] and [2] are just making the bug appear less frequently. > >=20 > > logs: > > [3] nand boot working > > [4] Nand boot not working > >=20 > > Has anyone else faced or fixed the same issue on imx6 board. > > Please let me know. > >=20 > >=20 > > [1] https://paste.ubuntu.com/p/nKq7SNWDrn/ > > [2] https://paste.ubuntu.com/p/tXqbx5dVPJ/ > > [3] https://paste.ubuntu.com/p/DcBQ4gcSCM/ > > [4] https://paste.ubuntu.com/p/WVtrqfdVQT/ > >=20 > >=20 > > Thanks a lot, > > Shyam > > _______________________________________________ > > U-Boot mailing list > > U-Boot at lists.denx.de > > https://lists.denx.de/listinfo/u-boot > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > https://lists.denx.de/listinfo/u-boot