From: Alexander Dahl <ada@thorsis.com>
To: linux-mtd@lists.infradead.org
Cc: Jupiter <jupiter.hce@gmail.com>
Subject: Re: Any UBIFS volume image installation command with selective ECC (DTB) in Linux?
Date: Wed, 20 May 2020 13:22:59 +0200 [thread overview]
Message-ID: <1861744.E9oVbb6G30@ada> (raw)
In-Reply-To: <CAA=hcWT-Noe3hk-YYs2K+WYA9b2dLtT6A5boYyf3x-3YOKr-Dg@mail.gmail.com>
Hei hei,
Am Freitag, 15. Mai 2020, 08:59:53 CEST schrieb Jupiter:
> I am baffled when ubiformat flashed ubi.img to NAND, who wrote the ECC
> to the flash?, Does ubiformat write ECC to NAND? If so, how can select
> the ECC for ubiformat to write correct ECC to NAND?
IIRC those are set in DT for Linux. You can find some information on that in
Documentation/devicetree/bindings/mtd/nand-controller.yaml – look out for
"nand-ecc", e.g.:
nand-ecc-strength = <8>;
Those settings should match the settings from your bootloader. In U-Boot those
are not necessarily set through DT however. I just checked with U-Boot 2019.10
for a sama5d2 based board, and there I find in the kconfig something like
this:
CONFIG_PMECC_CAP=8
However I do not remember, how I came up with the actual values for that
board, but I do remember I had to make sure these settings should match.
HTH & Greets
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
prev parent reply other threads:[~2020-05-20 11:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 11:37 Any UBIFS volume image installation command with selective ECC (DTB) in Linux? Jupiter
2020-05-15 1:16 ` Jupiter
2020-05-15 6:59 ` Jupiter
2020-05-20 11:22 ` Alexander Dahl [this message]
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=1861744.E9oVbb6G30@ada \
--to=ada@thorsis.com \
--cc=jupiter.hce@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/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.