All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: Ivan Riabtsov <ivriabtsov@gmail.com>, buildroot@busybox.net
Subject: Re: [Buildroot] buildroot u-boot.nand oob size
Date: Thu, 23 Sep 2021 21:31:04 +0200	[thread overview]
Message-ID: <b7942247-9f9e-8517-257d-538e96cc6e32@mind.be> (raw)
In-Reply-To: <CAKAnv4E=JmqtbHR_EM8hL9QTjrSbjNKsBjvA5Ogiv1BYqGDVEQ@mail.gmail.com>

  Hi Ivan,

On 23/09/2021 13:55, Ivan Riabtsov wrote:
> 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?

  If you use BR2_TARGET_UBOOT_FORMAT_NAND, then Buildroot will run the mxsboot 
tool to create u-boot.nand from u-boot.sb.

  I think there are two options for you.

1. Select BR2_TARGET_UBOOT_FORMAT_SB instead of _NAND and use a post-build 
script to generate the u-boot.nand.

2. Use BR2_TARGET_UBOOT_FORMAT_CUSTOM and fill in the name of the image that is 
generated by U-Boot itself (which could be u-boot.nand). In this case, you must 
make sure yourself that U-Boot's "make all" target builds this image.


> 
> ps i cant write message to buildroot@lists.buildroot.orgб i get a
> message "Undelivered Mail Returned to Sender"

  lists.buildroot.org is only the website. The mail address is 
buildroot@buildroot.org (or .net, or buildroot@busybox.net, they all end up at 
the same place).

  Regards,
  Arnout

_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-09-23 19:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 11:55 [Buildroot] buildroot u-boot.nand oob size Ivan Riabtsov
2021-09-23 19:31 ` Arnout Vandecappelle [this message]
2021-09-24  7:04   ` Thomas Petazzoni
2021-09-24  7:56     ` Peter Korsgaard
2021-09-24  8:06       ` Thomas Petazzoni

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=b7942247-9f9e-8517-257d-538e96cc6e32@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    --cc=ivriabtsov@gmail.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 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.