When I use ichache_enable or dcache_enable in uboot,it crash
Hi,
In the very begin of the uboot, the dcache is disable and the icache
is enable. The code runs in flash nomarlly. Then the uboot should jump to ram and if I don't disable icache the uboot will crash. I can't enable the dcache too. The more serious problem is that when I boot the linux kernel ,it will stop at init_mmu. I think it is the same reason. Please help me.
Thanks & Br,
Andy
disable icache& dcache at the beginning is essential or else your program will crash. Only when you do the proper initiation, can you enable them. For details you can refer to you reference manual.
----- Original Message ----- From: "陈希" <[email protected]>
To: <[email protected]>; <[email protected]>
Sent: Thursday, December 07, 2006 5:52 PM
Subject: When I use ichache_enable or dcache_enable in uboot,it crash
Quoted 12 lines
Hi,
In the very begin of the uboot, the dcache is disable and the icache is enable. The code runs in flash nomarlly. Then the uboot should jump to ram and if I don't disable icache the uboot will crash. I can't enable the dcache too. The more serious problem is that when I boot the linux kernel ,it will stop at
init_mmu. I think it is the same reason. Please help me.Thanks & Br,
Andy
--------------------------------------------------------------------------------
Quoted 4 lines
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Hi enorm
Thank you for your reply. In fact, the uboot has never disable
icache. The icache is enable at all times.And the code run in flash = normally
when the icache is enable. I have to add disable_icache() in the board_init_f() so that the code can run in ram normally. BTW, I just = use
the function supported by uboot to enable icache&dcache, I'm sure the = steps
of cache init have no problem. I just can't understand why the icache = can
effect the code run in ram.
Thanks &Br,
Andy
-----=D3=CA=BC=FE=D4=AD=BC=FE-----
=B7=A2=BC=FE=C8=CB: enorm [mailto:[email protected]]=20 =B7=A2=CB=CD=CA=B1=BC=E4: 2006=C4=EA12=D4=C27=C8=D5 20:21 =CA=D5=BC=FE=C8=CB: =B3=C2=CF=A3; [email protected]; [email protected]
=D6=F7=CC=E2: (Rising Spam Alert)Re: When I use ichache_enable or = dcache_enable in
uboot,it crash
disable icache& dcache at the beginning is essential or else your = program
will crash. Only when you do the proper initiation, can you enable them. = For
details you can refer to you reference manual.
----- Original Message -----
From: "=B3=C2=CF=A3" <[email protected]>
To: <[email protected]>; = <[email protected]>
Sent: Thursday, December 07, 2006 5:52 PM
Subject: When I use ichache_enable or dcache_enable in uboot,it crash
Quoted 4 lines
Hi,
In the very begin of the uboot, the dcache is disable and the icache is enable. The code runs in flash nomarlly. Then the uboot should jump =
to
Quoted 1 line
ram and if I don't disable icache the uboot will crash. I can't =
enable=20
Quoted 2 lines
the
dcache too. The more serious problem is that when I boot the linux =
kernel
Quoted 1 line
,it will stop at
init_mmu. I think it is the same reason. Please help =
me.
Quoted 5 lines
Thanks & Br,
Andy
-------------------------------------------------------------------------=
---
----
Quoted 4 lines
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded=20