Re: [U-Boot-Users] Cache issue on MPC8xx

On 8/24/06, Wolfgang Denk wd@denx.de wrote:
In message <b4ebaa9d0608240832i212b01aey4fe1362002756833@mail.gmail.com> you wrote:
I did so, but still couldn't get D-Cache enabled.
Then you did something wrong.
I have been trapped in this problem for a long time. Could you tell me some more details. Thanks.
What I did is: - set msr to 0. - disable D-cache - enable D-cache <-- and it crashes here.
What is the correct way?
Qichen
------=_Part_166562_33295880.1156433560418 Content-Type: text/html; charset=ISO-8859-1
DO NOT POST HTML ON THIS LIST!!!
Sorry, I didn't realize that.
Wolfgang Denk
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Our way is peace. -- Septimus, the Son Worshiper, "Bread and Circuses", stardate 4040.7.

Qichen Huang wrote:
On 8/24/06, Wolfgang Denk wd@denx.de wrote:
In message <b4ebaa9d0608240832i212b01aey4fe1362002756833@mail.gmail.com> you wrote:
I did so, but still couldn't get D-Cache enabled.
Then you did something wrong.
I have been trapped in this problem for a long time. Could you tell me some more details. Thanks.
What I did is:
- set msr to 0.
- disable D-cache
- enable D-cache <-- and it crashes here.
This is impossibly vague. There are many reasons for "it crashes here." including that it quite likely doesn't crash there.
* Are you running with instruction cache enabled? If so, your memory controller is probably configured OK. If not, it is very possible that your memory controller isn't handling bursts properly.
* How do you know it crashes there? When you turn on data cache, all of your peripherals, including blinkin' LEDs and your UART, get cached so you won't see anything unless you have set up BAT registers or the MMU to control the data cache such that your peripherals are NOT cached.
* If you have set up the BAT and/or the MMU, did you do it correctly?
* Did you FOLLOW THE INSTRUCTIONS in the user's guide on the proper sequence when messing with the MSR register? Really weird things happen if you don't (or so they tell me ;-).
What is the correct way?
That is the nutshell correct way. There are a lot of details that have to be done right before it works, however. There is a devil hiding in each and every detail.
Qichen
HTH, gvb

On 8/24/06, Jerry Van Baren gerald.vanbaren@smiths-aerospace.com wrote:
Qichen Huang wrote:
On 8/24/06, Wolfgang Denk wd@denx.de wrote:
In message <b4ebaa9d0608240832i212b01aey4fe1362002756833@mail.gmail.com> you wrote:
I did so, but still couldn't get D-Cache enabled.
Then you did something wrong.
I have been trapped in this problem for a long time. Could you tell me some more details. Thanks.
What I did is:
- set msr to 0.
- disable D-cache
- enable D-cache <-- and it crashes here.
This is impossibly vague. There are many reasons for "it crashes here." including that it quite likely doesn't crash there.
- Are you running with instruction cache enabled? If so, your memory
controller is probably configured OK. If not, it is very possible that your memory controller isn't handling bursts properly.
I-Cache is enabled.
- How do you know it crashes there? When you turn on data cache, all of
your peripherals, including blinkin' LEDs and your UART, get cached so you won't see anything unless you have set up BAT registers or the MMU to control the data cache such that your peripherals are NOT cached.
The IBAT and DBAT registers are not supported by MPC860. So, I have to set up MMU first? It seems really complicated. :-(
- If you have set up the BAT and/or the MMU, did you do it correctly?
no...
- Did you FOLLOW THE INSTRUCTIONS in the user's guide on the proper
sequence when messing with the MSR register? Really weird things happen if you don't (or so they tell me ;-).
What is the correct way?
That is the nutshell correct way. There are a lot of details that have to be done right before it works, however. There is a devil hiding in each and every detail.
Qichen
HTH, gvb
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
participants (2)
-
Jerry Van Baren
-
Qichen Huang