public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Eric Nelson <eric.nelson@boundarydevices.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] i.mx6 board booting
Date: Thu, 06 Feb 2014 06:46:32 -0700	[thread overview]
Message-ID: <52F39238.7020509@boundarydevices.com> (raw)
In-Reply-To: <CAE0zQkvFHdxDgdA-Nyaeg0ns=6aCwU8r4rw7i8+w036kq5N60g@mail.gmail.com>

Hello Jyoti,

I think you're confused about the use of un-partitioned space
for booting (which is common on many other boards) and the use
of the filesystem as a path to SPI-NOR used by our boards.

On 02/05/2014 11:59 PM, JYOTI DUBEY wrote:
> I followed the following commands to achieve a successful booting of i.mx6
> board using SD card
> dd if=u-boot.imx of=/dev/sdb bs=1k seek=1

In English, this copies u-boot.imx to offset 0x400 of the SD card,
over-writing whatever might be there.

This is a block-level operation, and your card partitioning must
ensure that this is un-formatted space.

> The above command burnt the u-boot.imx image on the SD card though nothing
> was seen on SD card.

That's because you're not using the right glasses...
You'll need to use dd to read things back:

	~/$ sudo dd bs=1k skip=1 count=1 if=/dev/sdb | hexdump

And for comparison:
	~/$ sudo dd if=u-boot.imx bs=1k count=1 | hexdump

> Next the gtkterm configurations were set and after the board was started
> serial console output was interrupted(by pressing a key).
 >
> U-Boot>> sf probe (to probe the flash memory)
> U-Boot>> sf erase 0 0x80000 (to erase the flash)
 >
> U-Boot>>fatload mmc 1 12000000 u-boot.imx
> The above command throws an error -"Unable to read file u-boot.imx"
>
You haven't written the "file" u-boot.imx, you wrote the content
of u-boot.imx to un-named blocks on the SD card.

> SO what can be the problem behind it and how can we overcome it?
>
A. Partition your SD card with one partition
B. Format the partition as FAT32, ext2/3/4
C. Use "cp" to copy u-boot.imx to the filesystem
D. Use fatload or ext2load to load the file, or
    better yet, copy 6x_upgrade to the SD card and
    use the 'upgradeu' command:
	U-Boot > run upgradeu

See the README and 6x_upgrade.txt files in board/boundary/nitrogen6x
for details.

      reply	other threads:[~2014-02-06 13:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06  6:59 [U-Boot] i.mx6 board booting JYOTI DUBEY
2014-02-06 13:46 ` Eric Nelson [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=52F39238.7020509@boundarydevices.com \
    --to=eric.nelson@boundarydevices.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