linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Help ! 2.6.14 kernel can't bring up
@ 2005-11-18  2:02 zjznliang
  2005-11-18 18:44 ` Clemens Koller
  2005-11-18 23:14 ` David H. Lynch Jr.
  0 siblings, 2 replies; 6+ messages in thread
From: zjznliang @ 2005-11-18  2:02 UTC (permalink / raw)
  To: linuxppc-embedded

SGkgbGludXhwcGMtZW1iZWRkZWSjoQ0KDQoJSGkgLCBIb3cgdG8gY29uZmlnIHRoZSAiZWFybHkg
cHJpbnRrIiBpbiAyLjYuMTQgbGludXggY29uZmlncmF0aW9uPz8/DQoNCg0KIAkJCQkNCg0KoaGh
oXpqem5saWFuZw0KoaGhoaGhoaF6anpubGlhbmdfcG9wb0AxNjMuY29tDQqhoaGhoaGhoaGhoaEy
MDA1LTExLTE4DQo=

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Help ! 2.6.14 kernel can't bring up
@ 2005-11-23 15:54 David H. Lynch Jr
  0 siblings, 0 replies; 6+ messages in thread
From: David H. Lynch Jr @ 2005-11-23 15:54 UTC (permalink / raw)
  To: zjznliang; +Cc: linuxppc-embedded

 I was stuck at exactly this point for over a week. Basically, at this
point lots of things happen all at once:
Prior to this the MMU has had a small collection of TLB's setup.
The 6 lines of code you listed:
change from whatever Machine Status you powered up in to the proper
Machine status for running the kernel with memory translation and
exception handling enabled.
and switch from executing using physical addresses to executing using
virtual addresses.
and "jump" via the "rfi" from real mode to virtual mode at virtual
address start_here.

If you are using a LED IO port for debugging, then you MUST setup a TLB
entry for that LED or after the rfi you will not be able to write to it.
There should be a setup tlb block inside a CONFIG_SERIAL_TEXT_DEBUG
block copy it, change the address to match your LED port and set a new
index and your LED debug port should be good to go.

In my instance, my problem turned out to be with Machine Check
exceptions - The moment that rfi executes not only is virtual memory
enabled - but all exception handling is turned on.
I was able to find this my "testing" things one bit in the MSR at a
time, until I figured out which ones could be turned on and which could not.


zjznliang wrote:
> Hello David H. Lynch Jr.,!
>
> 	Now ,I am tracing the code in Linux 2.6.14 in head_8xx.S .
> 	I used led to trace the procedure,and I found the block in it .
> 	
> 644	/* Now turn on the MMU for real! */
> 645		li	r4,MSR_KERNEL
> 646		lis	r3,start_kernel@h
> 647		ori	r3,r3,start_kernel@l
> 648		mtspr	SPRN_SRR0,r3
> 649		mtspr	SPRN_SRR1,r4
> 650		rfi			/* enable MMU and jump to start_kernel */
>
> I set the led between the 649 and 650 ,and the led was light ,
> but when I set the led in the function start_kernel the led is not
> light .
>
> I thought the function start_kernel was not jumped to .
>
> what do you think ?
>   

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Help ! 2.6.14 kernel can't bring up
@ 2005-11-17  7:50 zjznliang
  2005-11-17 11:02 ` Clemens Koller
  0 siblings, 1 reply; 6+ messages in thread
From: zjznliang @ 2005-11-17  7:50 UTC (permalink / raw)
  To: linuxppc-embedded

SGkgbGludXhwcGMtZW1iZWRkZWSjoQ0KDQoJICAgICAgICAgSSAgaGF2ZSBkb3dubG9hZGVkIHRo
ZSBMaW51eCAyLjYuMTQgZnJvbSB3d3cuZGVueC5kZS5JIGFkZGVkIGFuZCBtb2RpZmllZCB0aGUg
ZmlsZSBhbmQgY29tcGlsZSBpdCBhcyB3aGF0IEkgZGlkIG9uIExpbnV4IDIuNC4yNSB3aGljaCB3
YXMgYWxzbyBkb3dubG9hZGVkIG9uIHd3dy5kZW54LmRlLiBNeSBib2FyZCBpcyBiYXNlIG9uIE1Q
QyA4NTcgLGFuZCBpdCBnb2VzIHdlbGwgaW4gTGludXggMi40LjI1IC4gTXkgYm9vdGxvYWRlciBp
cyBVLUJvb3QgMS4xLjMgd2hpY2ggZ29lcyB3ZWxsIHRvby4gQnV0IHdoZW4gSSBicmluZyB1cCB0
aGUgTGludXggMi42LjE0ICxJIG9ubHkgZ290IHRoZSBpbmZvcm1hdGlvbiBhcyBmb2xsb3cgOg0K
DQojIyBCb290aW5nIGltYWdlIGF0IGZmYzQwMDAwIC4uLg0KICAgSW1hZ2U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BteSBib2Fy
ZCA/Pw0KDQogDQogICBBbnkgaGVscCBvbiB0aGlzIHdvdWxkIGJlIGdyZWF0bHkgYXBwcmVjaWF0
ZWQuIFRoYW5rcyBmb3IgeW91ciBwYXRpZW5jZS4gDQoNCiAJCQkJDQoNCqGhoaF6anpubGlhbmcN
CqGhoaGhoaGhemp6bmxpYW5nX3BvcG9AMTYzLmNvbQ0KoaGhoaGhoaGhoaGhMjAwNS0xMS0xNw0K

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

end of thread, other threads:[~2005-11-23 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18  2:02 Help ! 2.6.14 kernel can't bring up zjznliang
2005-11-18 18:44 ` Clemens Koller
2005-11-18 23:14 ` David H. Lynch Jr.
  -- strict thread matches above, loose matches on Subject: below --
2005-11-23 15:54 David H. Lynch Jr
2005-11-17  7:50 zjznliang
2005-11-17 11:02 ` Clemens Koller

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