This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Enabling DCACHE on GRG question. (RedBoot)
- From: "Shmuel Vagner" <Shmuel dot Vagner at celeno dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 13 Feb 2006 02:39:14 +0200
- Subject: [ECOS] Enabling DCACHE on GRG question. (RedBoot)
HI,
I am running RedBoot on a GRG platform.
I was able to compile and run both ROM and RAM versions.
Next I tried to debug the RAM version from startup using a JTAG debugger
(Vison ICE II).
It took some effort but finally I am able to debug the entire boot
sequence.
There is only one thing that I could not get to work:
In ixp425_misc.c hal_hardware_init() the line: HAL_DCACHE_ENABLE()
crashes so I had to comment it out.
I browsed through the Archives and found out that the problem is that
the MMU is not initialized in the RAM version (It assumes that the ROM
already did it).
Now, the code that is responsible for MMU initializations is in
hal_platform_setup.h _platform_setup1. The problem is that it includes a
lot more then MMU initialization and when I invoke it on startup the
system crashes (Probably because it includes SDRAM initialization that
was already done by the JTAG debugger).
My question is what part from _platform_setup1 should I keep in the RAM
version in order to be able to work with data caches.
Thanks
Shmuel
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss