mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Mihaita Ivascu <mihaita_ivascu@trimble.com>
Cc: barebox@lists.infradead.org
Subject: Re: ECC nand 74 code error in barebox 2018.04.10
Date: Mon, 8 Apr 2019 08:29:00 +0200	[thread overview]
Message-ID: <20190408062900.h4mo4k75aagtlgml@pengutronix.de> (raw)
In-Reply-To: <CAEp+FuD8vFFPTDibkxS=wJ6uT0OrV2E1s6JjiyZn-ThLR-j09w@mail.gmail.com>

On Fri, Apr 05, 2019 at 06:23:07PM +0200, Mihaita Ivascu wrote:
> Hello,
> 
>     Yes both linux and barebox drivers use bbt. In fact the message
> above related to ECC error in BBT I see them as well in dmesg when
> loading kernel:
> 
> >nand_bbt: ECC error in BBT at 0x00001ffe0005
> >nand_bbt: ECC error in BBT at 0x00001ffc0005
> 
> 
>   I have disabled hardware ECC and enabled Software BCH ECC in barebox
> menuconfig with the intention to have the same ECC as in kernel where
> I have only software ECC option and now I have the following situation
> in barebox:

You *always* want to use hardware ECC on i.MX. I don't know why you
think that you only have software ECC in the kernel, I am pretty sure
you can do hardware ECC in the FSL Kernel aswell.

> 
> Board: Phytec phyCORE-i.MX6 Ultra Lite SOM
> detected i.MX6 UltraLite revision 1.2
> mdio_bus: miibus0: probed
> eth0: got preset MAC address: 50:2d:f4:14:96:09
> nand: ONFI flash detected
> nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron
> MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64
> nand: Invalid NAND_ECC_MODE 2
> BUG: failure at
> ~/Projects/barebox/2018.04.0-phy1-r7.0/git/drivers/mtd/nand/nand_base.c:3699/nand_scan_tail()!
> BUG!
> [<9fd71451>] (unwind_backtrace+0x1/0x58) from [<9fd00d9d>] (panic+0x1d/0x34)
> [<9fd00d9d>] (panic+0x1d/0x34) from [<9fd1272d>] (nand_scan_tail+0x99/0x3dc)
> [<9fd1272d>] (nand_scan_tail+0x99/0x3dc) from [<9fd15cf9>]
> (mxs_nand_probe+0x40d/0x43c)
> [<9fd15cf9>] (mxs_nand_probe+0x40d/0x43c) from [<9fd0c595>]
> (device_probe+0x21/0x68)
> [<9fd0c595>] (device_probe+0x21/0x68) from [<9fd0c601>] (match.part.0+0x25/0x2c)
> [<9fd0c601>] (match.part.0+0x25/0x2c) from [<9fd0c7df>]
> (register_driver+0x5b/0x78)
> [<9fd0c7df>] (register_driver+0x5b/0x78) from [<9fd00acb>]
> (start_barebox+0x1b/0x98)
> [<9fd00acb>] (start_barebox+0x1b/0x98) from [<9fd6faa1>]
> (barebox_non_pbl_start+0xd5/0xf8)
> [<9fd6faa1>] (barebox_non_pbl_start+0xd5/0xf8) from [<9fd00005>]
> (__bare_init_start+0x1/0xc)
> ### ERROR ### Please RESET the board ###
> 
>    I cannot recover it now.

You mean you have flashed this version and can't update anymore because
you don't get to the prompt?

To make your life easier you always start a new barebox image from the
flashed one rather than flashing it directly.

You can refer to the PhyCORE documentation how to enable alternative
boot sources. Most convenient should be USB boot in which case you can
use the imx-usb-loader tool to upload a new barebox image.

Once you got that I suggest that you erase your whole NAND as the next
step.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2019-04-08  6:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-03 15:31 Mihaita Ivascu
2019-04-04 19:51 ` Sascha Hauer
2019-04-05 16:23   ` Mihaita Ivascu
2019-04-08  6:29     ` Sascha Hauer [this message]
2019-04-08  6:51       ` Mihaita Ivascu

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=20190408062900.h4mo4k75aagtlgml@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=mihaita_ivascu@trimble.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox