* a question about mpc8xx linux
@ 2007-07-27 13:11 poorbeyond
2007-07-27 17:53 ` Scott Wood
2007-08-01 14:48 ` Barisa kisku
0 siblings, 2 replies; 4+ messages in thread
From: poorbeyond @ 2007-07-27 13:11 UTC (permalink / raw)
To: Linux-ppc mail list
[-- Attachment #1: Type: text/plain, Size: 863 bytes --]
my cpu is MPC860, use u-boot-1.1.4, linux-2.6.20.14
i use the "tftp 300000 uImage" command download kernel image,
then use the "bootm 300000" command boot the image.
i found the bootm cmd entered the /arch/ppc/kernel/head_8xx.s, stop at the instruction "rfi".
is it right? after the instruction, where does the code go normally ? what should i do now?
thanks
.globl __start
__start:
mr r31,r3 /* save parameters */
mr r30,r4
mr r29,r5
mr r28,r6
mr r27,r7
/* We have to turn on the MMU right away so we get cache modes
* set correctly.
*/
bl initial_mmu
/* We now have the lower 8 Meg mapped into TLB entries, and the caches
* ready to work.
*/
turn_on_mmu:
mfmsr r0
ori r0,r0,MSR_DR|MSR_IR
mtspr SPRN_SRR1,r0
lis r0,start_here@h
ori r0,r0,start_here@l
mtspr SPRN_SRR0,r0
SYNC
rfi /* enables MMU */
poorbeyond
2007-07-27
[-- Attachment #2: Type: text/html, Size: 2368 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: a question about mpc8xx linux
2007-07-27 13:11 a question about mpc8xx linux poorbeyond
@ 2007-07-27 17:53 ` Scott Wood
2007-07-27 17:56 ` Scott Wood
2007-08-01 14:48 ` Barisa kisku
1 sibling, 1 reply; 4+ messages in thread
From: Scott Wood @ 2007-07-27 17:53 UTC (permalink / raw)
To: poorbeyond; +Cc: Linux-ppc mail list
poorbeyond wrote:
> my cpu is MPC860, use u-boot-1.1.4, linux-2.6.20.14
>
> i use the "tftp 300000 uImage" command download kernel image,
>
> then use the "bootm 300000" command boot the image.
You'll need either a device-tree-aware u-boot or 8xx cuImage support;
you can get the latter from the patchset I posted recently.
> i found the bootm cmd entered the /arch/ppc/kernel/head_8xx.s, stop at the instruction "rfi".
> is it right? after the instruction, where does the code go normally ? what should i do now?
The rfi transfers control to start_here:
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: a question about mpc8xx linux
2007-07-27 17:53 ` Scott Wood
@ 2007-07-27 17:56 ` Scott Wood
0 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2007-07-27 17:56 UTC (permalink / raw)
To: Scott Wood; +Cc: poorbeyond, Linux-ppc mail list
Scott Wood wrote:
> poorbeyond wrote:
>
>>my cpu is MPC860, use u-boot-1.1.4, linux-2.6.20.14
>>
>>i use the "tftp 300000 uImage" command download kernel image,
>>
>>then use the "bootm 300000" command boot the image.
>
>
> You'll need either a device-tree-aware u-boot or 8xx cuImage support;
> you can get the latter from the patchset I posted recently.
Sorry, I missed that you're using arch/ppc rather than arch/powerpc.
arch/ppc doesn't require a device tree, though it would be good to
switch to arch/powerpc once my 8xx fixes go in -- arch/ppc is deprecated.
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: a question about mpc8xx linux
2007-07-27 13:11 a question about mpc8xx linux poorbeyond
2007-07-27 17:53 ` Scott Wood
@ 2007-08-01 14:48 ` Barisa kisku
1 sibling, 0 replies; 4+ messages in thread
From: Barisa kisku @ 2007-08-01 14:48 UTC (permalink / raw)
To: Linux-ppc mail list
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
how do you know execution stop at "rfi" instruction.i think it seems it stop at "rfi" instruction when debugging through debugger, but it does n't . you check it by putting break point in the later functions e.g start_here, machine_init etc.
---------------------------------
5, 50, 500, 5000. Store N number of mails in your inbox. Click here.
[-- Attachment #2: Type: text/html, Size: 479 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-01 14:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 13:11 a question about mpc8xx linux poorbeyond
2007-07-27 17:53 ` Scott Wood
2007-07-27 17:56 ` Scott Wood
2007-08-01 14:48 ` Barisa kisku
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).