From: Bill Pringlemeir <bpringlemeir@nbsps.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] mx25pdk does not boot with 3ff46cc42b9d7
Date: Mon, 05 Jan 2015 17:25:00 -0500 [thread overview]
Message-ID: <87sifo9877.fsf@nbsps.com> (raw)
In-Reply-To: <CAOMZO5BKc07NQyJd2cmWXv_mB29d6jaNq2HZp1uxX-GTrEgivg@mail.gmail.com> (Fabio Estevam's message of "Mon, 5 Jan 2015 20:01:23 -0200")
On 5 Jan 2015, festevam at gmail.com wrote:
> I noticed that mx25pdk (ARM926) does not boot anymore with top of tree
> U-boot.
>
> Doing a git bisect resulted in the following commit as being the
> guilty one:
>
> commit 3ff46cc42b9d73d01c86df904425704410958470
> Author: Georges Savoundararadj <savoundg@gmail.com>
> Date: Tue Oct 28 23:16:11 2014 +0100
>
> arm: relocate the exception vectors
>
> This commit relocates the exception vectors.
> As ARM1176 and ARMv7 have the security extensions, it uses VBAR. For
> the other ARM processors, it copies the relocated exception vectors to
> the correct address: 0x00000000 or 0xFFFF0000.
>
> Signed-off-by: Georges Savoundararadj <savoundg@gmail.com>
> Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
> Cc: Tom Warren <twarren@nvidia.com>
>
> Any ideas?
$ git show 3ff46cc42b9d73d01c86df9044257
/*
* Default/weak exception vectors relocation routine
*
* This routine covers the standard ARM cases: normal (0x00000000),
* high (0xffff0000) and VBAR. SoCs which do not comply with any of
* the standard cases must provide their own, strong, version.
*/
The code looks correct. However, the imx25 has the HAB and some default
vectors set up. Do you assume they overwrite the HAB vectors? For the
imx25, the 'V bit = 0' for the physical HAB ROM location, but it can be
remapped to 0xffff0000. However, there is nothing there (0xffff0000)
initially and this only makes sense with the MMU enabled.
I am not sure what happened before; why it worked. Maybe you could
define an empty relocate_vectors() in the imx25 board file and see if
everything is ok? I don't think that a write to the ROM code will BUS
error? If a write BUS errors, then the empty routine will work/boot.
However, u-boot will not be handling the vectors unless we hook in the
IRAM at 0x7801FFFF, where I guess the ROM code (at address zero)
branches too.
Fwiw,
Bill Pringlemeir.
next prev parent reply other threads:[~2015-01-05 22:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-05 22:01 [U-Boot] mx25pdk does not boot with 3ff46cc42b9d7 Fabio Estevam
2015-01-05 22:25 ` Bill Pringlemeir [this message]
2015-01-05 22:30 ` Fabio Estevam
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=87sifo9877.fsf@nbsps.com \
--to=bpringlemeir@nbsps.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.