From: Scott Wood <scottwood@freescale.com>
To: skepper@ukf.net
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Early boot problem with MPC8247 and Linux 2.6.26
Date: Fri, 22 Aug 2008 12:06:40 -0500 [thread overview]
Message-ID: <48AEF220.7080506@freescale.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0808221515450.31216@chara.vm.bytemark.co.uk>
Chris Skepper wrote:
> Using code to flash an LED I have traced execution from the entry point
> in head_32.S, through to call_setup_cpu in misc.S, __setup_cpu_603 and
> into setup_common_caches in cpu_setup_6xx.S. It appears to reset when
> enabling the cache on the CPU:
>
> setup_common_caches:
> mfspr r11,SPRN_HID0
> andi. r0,r11,HID0_DCE
> ori r11,r11,HID0_ICE|HID0_DCE
> ori r8,r11,HID0_ICFI
> bne 1f /* don't invalidate the D-cache */
> ori r8,r8,HID0_DCI /* unless it wasn't enabled */
> 1: sync
> /* Chris: Reaches here. */
> mtspr SPRN_HID0,r8 /* enable and invalidate caches */
> sync
> mtspr SPRN_HID0,r11 /* enable caches */
> sync
> isync
> /* Chris: Never gets to here. */
> blr
>
> FWIW, commenting out the lines above causes it to hang when attempting
> to enable the MMU, which is the next step in the process.
How are you determining that it never gets to that point? If it's via
serial I/O or similar, be aware that I/O isn't going to work when caches
are enabled but the MMU is not.
> Also, can anyone confirm that the MPC8247 is supported by a 2.6.26
> kernel with ARCH=powerpc mode? I think it should be, but it would be
> good to know that someone has tried it.
I've booted an MPC8248 (and some other 82xx) on 2.6.26. MPC8247 should
work.
-Scott
next prev parent reply other threads:[~2008-08-22 17:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-22 15:29 Early boot problem with MPC8247 and Linux 2.6.26 Chris Skepper
2008-08-22 17:06 ` Scott Wood [this message]
2008-08-26 12:00 ` Chris Skepper
2008-08-26 14:03 ` Scott Wood
2008-08-26 17:09 ` Chris Skepper
2008-08-26 17:24 ` Scott Wood
2008-08-27 13:30 ` Chris Skepper
2008-08-27 15:01 ` Scott Wood
2008-08-28 17:00 ` Chris Skepper
2008-08-28 17:57 ` Scott Wood
2008-08-27 15:01 ` Scott Wood
[not found] ` <1732780698.20080825104615@epygiarm.am>
2008-08-26 11:17 ` Chris Skepper
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=48AEF220.7080506@freescale.com \
--to=scottwood@freescale.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=skepper@ukf.net \
/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;
as well as URLs for NNTP newsgroup(s).