public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: u-boot@lists.denx.de
Subject: How to fix: partition (SPL) size alignment incorrect
Date: Fri, 12 Jun 2020 09:13:42 +0200	[thread overview]
Message-ID: <20200612091342.7adda8b2@xps13> (raw)
In-Reply-To: <CAHCN7xKzP=Tm3cJBJHKvE4t62cxHQ1ZBd2wtiZmh8ALZHhpspQ@mail.gmail.com>

Hi Adam,

Adam Ford <aford173@gmail.com> wrote on Thu, 11 Jun 2020 21:49:12 -0500:

> I am doing some spot checks on the da850evm which boots from SPI.  It
> seems OK, however, when I run the mtdparts, I expect to see the
> partition map of the SPI flash.
> 
> Unfortunately, I get the following error:
>      nor0: partition (SPL) size alignment incorrect
> 
> Currently, it's setup as follows:
> CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:32k(SPL),480k(u-boot),64k(u-boot-env),7552k(kernel-spare),64k(MAC-Address)"

It's not very clear to me what the error might be but did you consider
the fact that the block size could be 64k instead of 32k?

> This used to work, but I was hoping someone might have an idea on what
> I can do to address it.  I haven't had a chance to bisect yet.

If you're still testing with the same board, the above proposal is
unlikely to fix your issue.

Also, it might be worth adding traces in cmd/mtdparts.c to see whether
it is the start (unlikely, would mean there is a serious issue here),
or the end of the partition which is the culprit.

Cheers,
Miqu?l

      reply	other threads:[~2020-06-12  7:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-12  2:49 How to fix: partition (SPL) size alignment incorrect Adam Ford
2020-06-12  7:13 ` Miquel Raynal [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=20200612091342.7adda8b2@xps13 \
    --to=miquel.raynal@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox