This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: Init sequence for enabling MMU at mpc5xx fails
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Anthony Tonizzo <atonizzo at gmail dot com>
- Cc: eCos Disuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 22 Jul 2008 10:06:12 -0600
- Subject: Re: [ECOS] Re: Init sequence for enabling MMU at mpc5xx fails
- References: <b437ec690807220853w3ed1ffd5he26f728a4472029c@mail.gmail.com>
Anthony Tonizzo wrote:
Andrey:
The MMU uses burst access to DRAM. It might very well be that
your burst patterns in the UPM memory are not quite correct.
You can check this by setting the BIH bit in the ORx register
for your DRAM. This will inhibit the use of UPM burst patterns and
use single beat patterns instead. If your board now works after
you enable the MMU, then you know where where to look.
Correct, but bursts only happen when doing cache operations.
On this hardware, the cache is not enabled until later - after
the point where Andrey's code is failing.
More likely is that the MMU setup does not include the ROM/FLASH
or RAM (stack) or even the CPU registers. All of these must be
mapped (one-to-one, but mapped nonetheless) before the MMU can be
enabled.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss