mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Thomas Mayer <thomas.mayer@telemotive.de>
To: barebox@lists.infradead.org
Subject: Re: Install barebox on target
Date: Fri, 25 Feb 2011 10:15:01 +0100	[thread overview]
Message-ID: <4D677315.5090600@telemotive.de> (raw)
In-Reply-To: <20110224160440.GQ7381@pengutronix.de>

Hi Sascha,

That's not quite correct. When you use the debug + personality board you
can boot directly from a mmc-card which contains bootloader, kernel and
rootfs without modifications. Only if you use the single personality
board, you have to modify die board a little bit.
Thanks for your short introduction. I tried to run the barebox image
with u-boot and it seems to work. But after I get the following output
barebox stops and do nothing.


MX35 U-Boot > go 0x80100000
## Starting application at 0x80100000 ...
h�

barebox 2011.02.0 (Feb 25 2011 - 09:49:05)

Board: Freescale MX35 3Stack
cfi_probe: cfi_flash base: 0xa0000000 size: 0x04000000
mc13892-i2c@mc13892-i2c0: PMIC ID: 0x000045d0 [Rev: 2.0a]
register_device: already registered eth0


Have you any idea what the problem is?


regards
Thomas


Am 24.02.2011 17:04, schrieb Sascha Hauer:
> 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
>>     
>
>   


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

  reply	other threads:[~2011-02-25  9:15 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
2011-02-25  9:15   ` Thomas Mayer [this message]
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=4D677315.5090600@telemotive.de \
    --to=thomas.mayer@telemotive.de \
    --cc=barebox@lists.infradead.org \
    /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