All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Ford <aford173@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Nand boot on imx6q board is broken
Date: Thu, 31 Jan 2019 07:22:55 -0800	[thread overview]
Message-ID: <CAHCN7x+ZufjOnLODeFkSzw3oZWjanO=jSxnKvYARyVZrmn-1xw@mail.gmail.com> (raw)
In-Reply-To: <CA+drQ_MRtxpSPxcur9-fY8ByKETqxn6VikskOSLBpk2d2SSTJQ@mail.gmail.com>

On Wed, Jan 30, 2019 at 11:40 PM Shyam Saini <shyam@amarulasolutions.com> wrote:
>
> Hi Everyone,
>
> I'm trying to boot imx6q board from nand but it seems like mainline
> u-boot nand boot support for imx6q board is broken.

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.

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/

Configure ECC from SPL here:
http://patchwork.ozlabs.org/patch/1020160/

Remove hard-coded ECC parameters since the patch above can autoset them.
http://patchwork.ozlabs.org/patch/1026638/

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.

adam
>
> It is working till v2017.05 with this fix [1].
>
> I'm using this as my stub:
> https://github.com/openedev/u-boot-amarula/tree/icore-nand
>
>
>
> 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 <jagan@amarulasolutions.com>
> Date:   Sun May 7 02:43:05 2017 +0530
>
>     icorem6: Make SPL to pick suitable fdt
>
>     SPL FIT is able to pick the suitable fdt file for u-boot,
>     so add that function through board_fit_config_name_match.
>
>     Cc: Stefano Babic <sbabic@denx.de>
>     Cc: Matteo Lisi <matteo.lisi@engicam.com>
>     Cc: Michael Trimarchi <michael@amarulasolutions.com>
>     Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> -----
> And It is fixed with this [2].
>
> 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.
>
> logs:
> [3] nand boot working
> [4] Nand boot not working
>
> Has anyone else faced or fixed the same issue on imx6 board.
> Please let me know.
>
>
> [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/
>
>
> Thanks a lot,
> Shyam
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot

  reply	other threads:[~2019-01-31 15:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-31  7:38 [U-Boot] Nand boot on imx6q board is broken Shyam Saini
2019-01-31 15:22 ` Adam Ford [this message]
2019-01-31 15:26   ` Jagan Teki
2019-01-31 15:57   ` Shyam Saini
2019-01-31 17:25     ` Adam Ford
2019-01-31 19:32       ` Michael Nazzareno Trimarchi
2019-02-02 13:16   ` Jörg Krause
2019-02-02 13:27     ` Adam Ford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHCN7x+ZufjOnLODeFkSzw3oZWjanO=jSxnKvYARyVZrmn-1xw@mail.gmail.com' \
    --to=aford173@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.