From: Sascha Hauer <s.hauer@pengutronix.de>
To: Rostislav Lisovy <lisovy@gmail.com>
Cc: barebox@lists.infradead.org, pisa@cmp.felk.cvut.cz
Subject: Re: [PATCH 0/3 v2] Support for Voipac X53-DMM-668 module and Voipac Baseboard
Date: Wed, 13 Nov 2013 07:10:55 +0100 [thread overview]
Message-ID: <20131113061055.GQ24559@pengutronix.de> (raw)
In-Reply-To: <1384297864.18882.19.camel@lolumad>
On Wed, Nov 13, 2013 at 12:11:04AM +0100, Rostislav Lisovy wrote:
> One small issue I am facing:
> The board has a jumper to switch between 'internal boot' and 'serial
> boot'. If I set it to 'serial boot' and then use imx-usb-loader to load
> barebox to RAM, everything works just fine. When I then try to flash it
> (flash controller support is missing in this patch-set), flashing is
> successful, however I am not able to boot it later when switched to
> 'internal boot' mode. If I try to flash some old version of the barebox
> (from my version running in RAM -- thus the problem is probably not in
> the flash support), it not only flashes successfully, this older version
> is even able to boot in the 'internal boot' mode.
>
> I also noticed that when I am using CONFIG_IMX_MULTI_BOARDS the whole
> set of CONFIG_ARCH_IMX_INTERNAL_BOOT_* disappears.
>
> Commands I am using to flash barebox:
> erase /dev/nand0
> addpart /dev/nand0 512k(barebox)ro,512k(bareboxenv),4M(kernel),-(rootfs)
> nand -a /dev/nand0.*
> erase /dev/nand0.barebox.bb
> tftp /vmx53/barebox.bin /dev/nand0.barebox.bb
You should use the barebox_update infrastructure. See
imx53_bbu_internal_nand_register_handler(). With this you would exeute
on the commandline:
barebox_update /path/to/barebox.bin
As a bonus this command also creates a bad block table the imx53 ROM is
able to read.
Sascha
--
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
prev parent reply other threads:[~2013-11-13 6:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-12 22:46 Rostislav Lisovy
2013-11-12 22:46 ` [PATCH 1/3] ARM: dts: i.mx53: Internal keyboard controller + i2c pinmux Rostislav Lisovy
2013-11-12 22:46 ` [PATCH 2/3] ARM: i.mx53: Parse Reset GPIO pin in FEC driver from Devicetree Rostislav Lisovy
2013-11-13 10:35 ` Sascha Hauer
2013-11-12 22:46 ` [PATCH 3/3] ARM: i.mx53: Support for Voipac board with X53-DMM-668 module Rostislav Lisovy
2013-11-13 10:36 ` Sascha Hauer
2013-11-12 23:11 ` [PATCH 0/3 v2] Support for Voipac X53-DMM-668 module and Voipac Baseboard Rostislav Lisovy
2013-11-13 6:10 ` Sascha Hauer [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=20131113061055.GQ24559@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=lisovy@gmail.com \
--cc=pisa@cmp.felk.cvut.cz \
/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