[U-Boot] i.MX6Q SPL won't boot U-Boot from NAND

Adam Ford aford173 at gmail.com
Wed Jul 25 10:40:08 UTC 2018


On Wed, Jul 25, 2018 at 5:23 AM Marek Vasut <marex at denx.de> wrote:
>
> On 07/24/2018 09:25 PM, Adam Ford wrote:
> > I am trying to boot an i.MX6Q via SPL to U-Boot and eventually, use
> > Falcon mode to start the kernel.  I can boot via SPL over USB.  I have
> > enabled the NAND and SPL NAND, and i can confirm that mxs_nand_spl.c
> > is being built in.  The board is imx6q_logic
> >
> > Unfortunately, I have run into two issues.
> >
> > 1.  Imxs_nand_init from mxs_nand_spl.c is trying to run
> > nand_chip.scan_bbt(mtd), but nand_chip.scan_bbt hasn't been defined
> > from what i can tell.
> >
> > There is a function called nand_default_bb which looks like it should
> > be setup as the default for this, but I am not sure.  As-is, the
> > system crashes when it attempts to run because it's a broken/NULL
> > function pointer.  Is there something that should initialize this
> > pointer and/or what should it reference?
> >
> > 2.  With the #1 commented out,  I get some error messages, but I am
> > mostly concerned about the BCH read timeout.  I am asking if there is
> > something missing.
> >
> > #define CONFIG_SYS_NAND_U_BOOT_OFFS    0x200000
>
> +CC Stefano.
>
> btw I think you need kobs-ng to write the SPL in the special NXP format.

I did that.  It wouldn't have booted at all without it.
>
> --
> Best regards,
> Marek Vasut


More information about the U-Boot mailing list