From: Christian Kapeller <christian.kapeller@cmotion.eu>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org, g@pengutronix.de,
Peter Wippich <pewi@gw-instruments.de>
Subject: Re: TX53: Not Bootable from next tree
Date: Mon, 12 Nov 2012 14:02:01 +0100 [thread overview]
Message-ID: <50A0F349.6070008@cmotion.eu> (raw)
In-Reply-To: <20121112083339.GQ10369@pengutronix.de>
Hi,
> In the meantime, could you try removing the call to
> imx53_init_lowlevel() and try booting 2nd stage (from U-Boot or
> redboot)?
2nd stage booting TX83-8030 from redboot works with and without call to
imx53_init_lowlevel (boards/karo-tx53/lowlevel.c)
I've also looked at the DCD sequence at the beginning of the redboot and
bb (CONFIG_PBL=y) binaries and saw, that what set's them appart is:
flash_header.entry RB: 0x8FFC0000
flash_header.entry BB: 0x71000000
flash_header.boot_data_size = 0x1fd87;
flash_header.boot_data_size = 0x40000;
Barebox has an additional DCD Item compared to redboot:
arch/arm/boards/karo-tx53/dcd-data-xx30.h line 15:
DCD_NAME_XX30[] = {
DCD_WR_CMD(0x21c),
DCD_ITEM(0x53fd4068, 0xffcc0fff),
DCD_ITEM(0x53fd406c, 0x000fffc3),
The DCD_WR_CMD(0x21c) duplicates the the last entries of the
flash_header_section structure:
arch/arm/boards/karo-tx53/flash_header.h line 68:
.dcd.command.tag = DCD_COMMAND_WRITE_TAG,
#ifdef CONFIG_TX53_REV_1011
.dcd.command.length = cpu_to_be16(sizeof(struct imx_dcd_command) +
sizeof(dcd_entry)),
#elif defined(CONFIG_TX53_REV_XX30)
.dcd.command.length = cpu_to_be16(0x21c),
So the DCD_WR_CMD(0x21c) seems to be superfluous.
I've adjusted entry address, the boot_data_size, and removed the
DCD_WR_CMD entry, to match the flash header to that of redboot, and
flashed that. That didn't show any improvement.
Also here the situation is the same with and without imx53_init_lowlevel.
Cheers,
Christian
--
Christian Kapeller
cmotion GmbH
Kriehubergasse 16
1050 Wien / Austria
http://www.cmotion.eu
christian.kapeller@cmotion.eu
Phone: +43 1 789 1096 38
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-11-12 13:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-06 13:49 Peter Wippich
2012-11-07 8:04 ` Sascha Hauer
2012-11-12 8:33 ` Sascha Hauer
2012-11-12 11:22 ` Peter Wippich
2012-11-15 9:57 ` [TX53: boot fixes 0/2] Make TX53 bootable again Christian Kapeller
2012-11-15 11:46 ` Sascha Hauer
2012-11-15 12:00 ` Christian Kapeller
2012-11-15 9:57 ` [TX53: boot fixes 1/2] tx53: Fix unbootable TX53-8030 Christian Kapeller
2012-11-15 9:57 ` [TX53: boot fixes 2/2] tx53: remove reset() when not doing lowlevel init Christian Kapeller
2012-11-12 13:02 ` Christian Kapeller [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-05 11:08 TX53: Not Bootable from next tree Christian Kapeller
2012-11-05 12:52 ` Sascha Hauer
2012-11-05 13:27 ` Christian Kapeller
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=50A0F349.6070008@cmotion.eu \
--to=christian.kapeller@cmotion.eu \
--cc=barebox@lists.infradead.org \
--cc=g@pengutronix.de \
--cc=pewi@gw-instruments.de \
--cc=s.hauer@pengutronix.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