mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Thomas Mayer <thomas.mayer@telemotive.de>
Cc: barebox@lists.infradead.org
Subject: Re: Install barebox on target
Date: Thu, 24 Feb 2011 17:04:40 +0100	[thread overview]
Message-ID: <20110224160440.GQ7381@pengutronix.de> (raw)
In-Reply-To: <4D665867.4010404@telemotive.de>

Hi Thomas,

On Thu, Feb 24, 2011 at 02:08:55PM +0100, Thomas Mayer wrote:
> Hi,
> 
> i'm working on a project with a Freescale i.MX35 3-Stack board and try
> to use barebox as bootloader.
> My problem is that i don't know how to install barebox to NAND memory or
> better directly to a sd-card.
> Is there any documentation about this really basic stuff?

According to the schematics the i.MX35 3-stack is without modifying it
only able to boot in external boot mode, that is nand or nor flash.
First step should be starting barebox as a second stage loader from the
existing bootloader. For this the defconfig for the 3stack should
be suitable. If you are using redboot you can use the following (replace
0x100000 with some valid sdram address):

load -r -b 0x100000 barebox.bin
run 0x100000

The same for u-Boot:

tftp 0x80100000 barebox.bin
go 0x80100000

If this works you should check if networking works:

dhcp; tftp barebox.bin /dev/ram0

or, if you use the smc9117 on the debug board:

ethact eth1; dhcp; tftp barebox.bin /dev/ram0

you can then flash barebox to either nand or nor flash:

erase /dev/nor0.barebox; tftp barebox.bin /dev/nor0.barebox

or:

erase /dev/nand0.barebox.bb; tftp barebox.bin /dev/nand0.barebox.bb

I suggest that you first try to flash barebox to the flash that does
not contain your original bootloader (if you haven't got jtag)

For getting a barebox suitable for starting from NAND you should enable
CONFIG_NAND_IMX_BOOT in your config.

The 3stack should be able to work in internal boot mode if TP41/42 on
the personality board are adjusted.

You also might want to apply the boot mode cleanup patch I just posted
which makes it a bit clearer what boot modes are actually supported by
barebox.

Hope that helps,

 Sascha

> 
> regards
> Thomas

> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2011-02-24 16:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 13:08 Thomas Mayer
2011-02-24 16:04 ` Sascha Hauer [this message]
2011-02-25  9:15   ` Thomas Mayer
2011-02-25 15:06     ` Sascha Hauer
2011-02-25 16:08       ` Thomas Mayer
2011-02-28  7:40         ` Sascha Hauer
2011-02-28  8:09           ` Baruch Siach
2011-02-28  8:19             ` Baruch Siach
2011-03-02 10:17               ` Thomas Mayer
2011-03-02 10:39                 ` Baruch Siach

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=20110224160440.GQ7381@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=thomas.mayer@telemotive.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