All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: "Mårten Wikman" <marten.wikman@novia.fi>
Cc: "meta-freescale@yoctoproject.org"
	<meta-freescale@yoctoproject.org>,
	Otavio Salvador <otavio@ossystems.com.br>
Subject: Re: MX28 Put u-boot on SPI NOR
Date: Sun, 4 Aug 2013 13:14:33 +0200	[thread overview]
Message-ID: <201308041314.33297.marex@denx.de> (raw)
In-Reply-To: <CAC0tyxPnARfcDJ-wvBO_SaPQqyxTiQhoOaSAkxariyYT4hU+YQ@mail.gmail.com>

Dear Mårten Wikman,

> I did write it with u-boots sf write command, I have also tried to use
> mtd-utils in linux. Are there any special parameters I need to add to use
> 32-byte aligned?

IIRC the SF block should handle the alignment already. Otherwise, just align the 
amount of data you write by hand ( think of rounding it up to closes multiple of 
32 ).

Btw one more thing that might have gone awry. Did you erase the SPI flash before 
writing? These should do the job. Load the u-boot.sb to 0x42000000, then do:

sf erase 0x0 0x80000
sf write 0x42000000 0 0x80000

The 0x80000 size should be enough for every possible u-boot.sb containing only 
the u-boot . If that works, we can look for further cause of this problem. If 
this doesn't work, then there might even be a hardware problem.

What device are you working with in any case? Is that a custom board or some 
EVK?

> 
> 2013/8/4 Marek Vasut <marex@denx.de>
> 
> > Dear Otavio Salvador,
> > 
> > > On Sat, Aug 3, 2013 at 4:21 PM, Marek Vasut <marex@denx.de> wrote:
> > > > Dear Mårten Wikman,
> > > > 
> > > >> But then it's just u-boot without any bootstream? Is it really
> > 
> > possible
> > 
> > > >> that mx28 will boot without it? I can't find much information about
> > 
> > how
> > 
> > > >> to boot from spi nor on the internet. SD CARD boot and NAND boot are
> > > >> well documented in  u-boot source code.
> > > > 
> > > > Write u-boot.sb directly to the SPI NOR to offset 0x0 .
> > > 
> > > He did this already, as said in his first e-mail. It seems he is
> > > getting H0x80501003.
> > > 
> > > I don't have the MX28 error code list here (just MX23) do you know the
> > > meaning of this error code offhand?
> > 
> > #define ERROR_ROM_LDR_SIGNATURE (ERROR_ROM_GROUP | ERROR_ROM_LOADER_GROUP
> > 
> > | 0x3)
> > 
> > 0x80501003 The file signature or file version is incorrect.
> > 
> > The file in the NOR flash is corrupted. How do you write the file into
> > the NOR
> > flash ? I think the filesize might beed to be 32-byte aligned when
> > writing.
> > 
> > Best regards,
> > Marek Vasut

Best regards,
Marek Vasut


  reply	other threads:[~2013-08-04 11:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02 14:45 MX28 Put u-boot on SPI NOR Mårten Wikman
2013-08-02 16:34 ` Otavio Salvador
2013-08-02 16:57   ` Mårten Wikman
2013-08-03 19:21     ` Marek Vasut
2013-08-03 19:34       ` Otavio Salvador
2013-08-03 22:33         ` Marek Vasut
2013-08-04  9:49           ` Mårten Wikman
2013-08-04 11:14             ` Marek Vasut [this message]
2013-08-04 13:08               ` Mårten Wikman
2013-08-04 13:15                 ` Marek Vasut
2013-08-05 18:32                   ` Mårten Wikman
2013-08-05 18:40                     ` Fabio Estevam
2013-08-05 19:46                       ` Mårten Wikman

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=201308041314.33297.marex@denx.de \
    --to=marex@denx.de \
    --cc=marten.wikman@novia.fi \
    --cc=meta-freescale@yoctoproject.org \
    --cc=otavio@ossystems.com.br \
    /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.