All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Riabtsov <ivriabtsov@gmail.com>
To: u-boot@lists.denx.de
Subject: uboot oob size
Date: Thu, 23 Sep 2021 16:00:18 +0300	[thread overview]
Message-ID: <CAKAnv4GdeE7yjj-1LU7U5+2KDbZmbS0hkWqvBSQY2g7wVJnNnA@mail.gmail.com> (raw)

addition to the question:

I have a system on an mx28evk chip, I have two types of nand memory,
one with 64 bytes, the other 128 bytes, I am building a buildroot, I
need a universal firmware for both types of memory, I found how to
patch uboot so that it works with both memory types, but buildroot has
an option for u-boot.nand NAND OOB size, which is not recognized by
the bootloader during boot, but is hardcoded in u-boot.nand,

accordingly, if I set u-boot.nand oob size to 128 bytes, then the
system with 64 memory will not boot and vice versa, tell me, is it
possible to somehow create a universal firmware for both types of nand
memory?

the code in uboot/drivers/mtd/nand/nand_base.c recognizes the OOB size
correctly, but mxsboot cant set up OOB size universally, only one OOB
size can be passed to the mxsboot, respectively, the question is how
you can set the environment variable to uboot from a file
uboot/drivers/mtd/nand/nand_base.c?

                 reply	other threads:[~2021-09-23 13:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAKAnv4GdeE7yjj-1LU7U5+2KDbZmbS0hkWqvBSQY2g7wVJnNnA@mail.gmail.com \
    --to=ivriabtsov@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.