linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* When I use ichache_enable or dcache_enable in uboot,it crash
@ 2006-12-07  9:52 陈希
  2006-12-07 12:20 ` enorm
  0 siblings, 1 reply; 6+ messages in thread
From: 陈希 @ 2006-12-07  9:52 UTC (permalink / raw)
  To: linuxppc-embedded, linuxppc-embedded-request

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 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: When I use ichache_enable or dcache_enable in uboot,it crash
  2006-12-07  9:52 陈希
@ 2006-12-07 12:20 ` enorm
  2006-12-08  1:33   ` 陈希
  0 siblings, 1 reply; 6+ messages in thread
From: enorm @ 2006-12-07 12:20 UTC (permalink / raw)
  To: 陈希, linuxppc-embedded, linuxppc-embedded-request

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: "陈希" <xchen@sunrisetelecom.com.cn>
To: <linuxppc-embedded@ozlabs.org>; <linuxppc-embedded-request@ozlabs.org>
Sent: Thursday, December 07, 2006 5:52 PM
Subject: 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
>
>


--------------------------------------------------------------------------------


> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: When I use ichache_enable or dcache_enable in uboot,it crash
  2006-12-07 12:20 ` enorm
@ 2006-12-08  1:33   ` 陈希
  0 siblings, 0 replies; 6+ messages in thread
From: 陈希 @ 2006-12-08  1:33 UTC (permalink / raw)
  To: 'enorm', linuxppc-embedded, linuxppc-embedded-request
  Cc: 'Elvis Ma'

 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:enorm@126.com]=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; linuxppc-embedded@ozlabs.org;
linuxppc-embedded-request@ozlabs.org
=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" <xchen@sunrisetelecom.com.cn>
To: <linuxppc-embedded@ozlabs.org>; =
<linuxppc-embedded-request@ozlabs.org>
Sent: Thursday, December 07, 2006 5:52 PM
Subject: 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=20
> 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
>
>


-------------------------------------------------------------------------=
---
----


> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded=20

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: When I use ichache_enable or dcache_enable in uboot,it crash
       [not found] <4578C0DC.0D5B9A.00597>
@ 2006-12-08  1:55 ` enorm
  2006-12-08  2:43   ` 陈希
  0 siblings, 1 reply; 6+ messages in thread
From: enorm @ 2006-12-08  1:55 UTC (permalink / raw)
  To: 陈希, linuxppc-embedded, linuxppc-embedded-request
  Cc: 'Elvis Ma'

At the end of the "board_init_f()" function all data and code will be 
relocated to SDRAM. So, If you enable icache & dcache it will cause 
inconsistence between cache and Memory, so your program will crash




----- Original Message ----- 
From: "陈希" <xchen@sunrisetelecom.com.cn>
To: "'enorm'" <enorm@126.com>; <linuxppc-embedded@ozlabs.org>; 
<linuxppc-embedded-request@ozlabs.org>
Cc: "'Elvis Ma'" <npma@sunrisetelecom.com.cn>
Sent: Friday, December 08, 2006 9:33 AM
Subject: Re: When I use ichache_enable or dcache_enable in uboot,it crash


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: When I use ichache_enable or dcache_enable in uboot,it crash
  2006-12-08  1:55 ` When I use ichache_enable or dcache_enable in uboot,it crash enorm
@ 2006-12-08  2:43   ` 陈希
  0 siblings, 0 replies; 6+ messages in thread
From: 陈希 @ 2006-12-08  2:43 UTC (permalink / raw)
  To: 'enorm', linuxppc-embedded, linuxppc-embedded-request
  Cc: 'Elvis Ma'


Myabe my presentation is not clear.  The uboot has NEVER disable icache.
The icache is enable at all times.   Disable icaceh is added by me. In =
other
words, someone else use uboot won't disable icache. So it is the point =
that
the icache effect my code run in ram. I wish can find the reason. The =
ORx
BRx init has error or UPM table is wrong or any other reason?  BTW, if I
give up cache, uboot is OK, no other bugs are found.


-----=D3=CA=BC=FE=D4=AD=BC=FE-----
=B7=A2=BC=FE=C8=CB: enorm [mailto:enorm@126.com]=20
=B7=A2=CB=CD=CA=B1=BC=E4: 2006=C4=EA12=D4=C28=C8=D5 9:55
=CA=D5=BC=FE=C8=CB: =B3=C2=CF=A3; linuxppc-embedded@ozlabs.org;
linuxppc-embedded-request@ozlabs.org
=B3=AD=CB=CD: 'Elvis Ma'
=D6=F7=CC=E2: (Rising Spam Alert)Re: When I use ichache_enable or =
dcache_enable in
uboot,it crash

At the end of the "board_init_f()" function all data and code will be
relocated to SDRAM. So, If you enable icache & dcache it will cause
inconsistence between cache and Memory, so your program will crash




----- Original Message -----
From: "=B3=C2=CF=A3" <xchen@sunrisetelecom.com.cn>
To: "'enorm'" <enorm@126.com>; <linuxppc-embedded@ozlabs.org>;
<linuxppc-embedded-request@ozlabs.org>
Cc: "'Elvis Ma'" <npma@sunrisetelecom.com.cn>
Sent: Friday, December 08, 2006 9:33 AM
Subject: Re: When I use ichache_enable or dcache_enable in uboot,it =
crash


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: When I use ichache_enable or dcache_enable in uboot,it crash
       [not found] <20061208024333.C5FCB67B6F@ozlabs.org>
@ 2006-12-08  7:48 ` 陈希
  0 siblings, 0 replies; 6+ messages in thread
From: 陈希 @ 2006-12-08  7:48 UTC (permalink / raw)
  To: 'enorm', linuxppc-embedded, linuxppc-embedded-request


Myabe my presentation is not clear.  The uboot has NEVER disable icache.
The icache is enable at all times.   Disable icaceh is added by me. In =
other
words, someone else use uboot won't disable icache. So it is the point =
that
the icache effect my code run in ram. I wish can find the reason. The =
ORx
BRx init has error or UPM table is wrong or any other reason?  BTW, if I
give up cache, uboot is OK, no other bugs are found.


-----=D3=CA=BC=FE=D4=AD=BC=FE-----
=B7=A2=BC=FE=C8=CB: enorm [mailto:enorm@126.com]
=B7=A2=CB=CD=CA=B1=BC=E4: 2006=C4=EA12=D4=C28=C8=D5 9:55
=CA=D5=BC=FE=C8=CB: =B3=C2=CF=A3; linuxppc-embedded@ozlabs.org;
linuxppc-embedded-request@ozlabs.org
=B3=AD=CB=CD: 'Elvis Ma'
=D6=F7=CC=E2: (Rising Spam Alert)Re: When I use ichache_enable or =
dcache_enable in
uboot,it crash

At the end of the "board_init_f()" function all data and code will be
relocated to SDRAM. So, If you enable icache & dcache it will cause
inconsistence between cache and Memory, so your program will crash




----- Original Message -----
From: "=B3=C2=CF=A3" <xchen@sunrisetelecom.com.cn>
To: "'enorm'" <enorm@126.com>; <linuxppc-embedded@ozlabs.org>;
<linuxppc-embedded-request@ozlabs.org>
Cc: "'Elvis Ma'" <npma@sunrisetelecom.com.cn>
Sent: Friday, December 08, 2006 9:33 AM
Subject: Re: When I use ichache_enable or dcache_enable in uboot,it =
crash


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-12-08  7:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4578C0DC.0D5B9A.00597>
2006-12-08  1:55 ` When I use ichache_enable or dcache_enable in uboot,it crash enorm
2006-12-08  2:43   ` 陈希
     [not found] <20061208024333.C5FCB67B6F@ozlabs.org>
2006-12-08  7:48 ` 陈希
2006-12-07  9:52 陈希
2006-12-07 12:20 ` enorm
2006-12-08  1:33   ` 陈希

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).