From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Swiching u-boot image in SPI-NOR
Date: Fri, 14 Mar 2014 10:13:33 +0100 [thread overview]
Message-ID: <5322C83D.6030901@denx.de> (raw)
In-Reply-To: <CAE0zQkuaek52RPtRoMM=LGVHA5OCsaMywX+FBag8sedC3YNJew@mail.gmail.com>
Hi Jvoty,
On 14/03/2014 08:17, JYOTI DUBEY wrote:
> Hello
> I am trying to bring in u-boot.imx (uboot image of u-boot 2013) onto
> SPI-NOR of nitrogen 6x board.I used following commands:
>>> sf probe 1
>>> sf erase 0 0x40000
>>> fatload mmc 0:1 12000000 u-boot.imx
> reading u-boot.imx
> 343040 bytes read in 54 ms (6.1 MiB/s)
>>> sf write 0x12000000 0x0 343040
> ERROR: attempting write past flash size (0x200000)
>
Please read *carefully* the i.MX manual. The SOC expects to read the
i.MX header at a specific address, depending on the selected media. On
most media (SD, SPI,..) this is 0x400. It is wrong to copy u-boot.imx at
the beginning of the flash.
And, as already remarked by Wolfgang, U-Boot uses hexadecimal values,
not decimal.
You are not erasing enough flash. Check the size, for a nitrogen quad I get:
-rw-rw-r-- 1 stefano stefano 363520 mar 14 10:03 u-boot.imx
You are erasing only 256KB, this is not enough.
Try:
sf erase 0 60000
sf write 0x12000000 400 ${filesize}
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2014-03-14 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 7:17 [U-Boot] Swiching u-boot image in SPI-NOR JYOTI DUBEY
2014-03-14 8:45 ` Wolfgang Denk
2014-03-14 9:13 ` Stefano Babic [this message]
2014-03-14 9:52 ` JYOTI DUBEY
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=5322C83D.6030901@denx.de \
--to=sbabic@denx.de \
--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.