From: Stefano Totaro <tost@essegi.net>
To: linuxppc-embedded@lists.linuxppc.org
Subject: MMU problems on YellowKnife board (PPC750) with SmartFirmware
Date: Wed, 21 Jun 2000 16:52:46 +0200 [thread overview]
Message-ID: <3950D6BE.8E51A444@essegi.net> (raw)
Hi guys,
I am trying to port linux (kernel 2.4.0 and I tried also the 2.2.14 for
ppc7xx from MontaVista) on a Motorola YellowKnife development board
(CHRP like) based on the PPC750 running CodeGen
SmartFirmware (it should be openfirmware compliant but the one I am
using is
an evaluation and so I am not sure of its behavior).
I am experiencing problems in setting up the MMU.
I had to move the kernel from the original running address (0x100000)
because it overwrote the firmware. So I moved it to 0x30100000 and then
after then it relocates in 0.
The problem raises when head.S tries to turn on the MMU exactly after
the rfi
turn_on_mmu:
mfmsr r0
ori r0,r0,MSR_DR|MSR_IR
mtspr SRR1,r0
lis r0,start_here@h
ori r0,r0,start_here@l
mtspr SRR0,r0
SYNC
rfi
I am not able to understand exactly what is going on because I am using
a JTAG debugger but I cannot put breakpoints near the rfi.
It looks like the CPU jumps at the right address but there is INVALID
code only and then it jumps to 0x700 (I have set up the exception prefix
to 0x0000_0).
The DBAT0L, DBAT0U, IBAT0L and IBAT0U seems to be correctly setup to map
the first 256Meg to c0000000 with read and write privilegies and the
code is at the right physical address but something does not work.
I have tried also to turn on the MMU without jumping to 0xC000... as
described in the Motorola Application Note "A Minimal PowerPC Boot
Sequence for Executing Compiled C Programs"
address_translation_on:
mfmsr r5
ori r5,r5,0x0030
mtmsr r5
isync
blr
I did it to avoid to use the rfi, but when I put back r5 to MSR the cpu
jumps to 0x700. Moreover, the MSR IR and DR bit do not look to be setup.
I have no more ideas I am reading all the application but I do not find
an explaination of this behavior.
Can someone of you help me in solving this problem?
Thanks in advance
Best wishes,
Stefano
p.s.
I have noticed many MMU setup problems reported in this mail list but I
didn't find one that exactly matches mine. However, just in case, I
apologise if some of you as yet answered to this question.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2000-06-21 14:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-21 14:52 Stefano Totaro [this message]
2000-06-21 15:22 ` MMU problems on YellowKnife board (PPC750) with SmartFirmware Jerry Van Baren
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=3950D6BE.8E51A444@essegi.net \
--to=tost@essegi.net \
--cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).