<div class="MsoNormal"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US"> I am Linux software engineer. These days I was debugging a MPC8313 system. In the debugging process, some source code in the kernel makes me puzzled. So I have find your email address in the source code. I think you can give me some advises to solve the problem.<o:p></o:p></span></font></div> <div class="MsoNormal"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US"><o:p> </o:p></span></font></div> <div class="MsoNormal"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US"> My version is linux-<st1:chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">2.6.23</st1:chsdate>.9 and I use the device tree(dtb) to booting the kernel. In my bootloader I use the following code to jump to the
kernel.<o:p></o:p></span></font></div> <div class="MsoNormal" style="margin-left: 21pt; text-indent: 21pt;"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US">(*image)((bd_t *)dtb_entry, (unsigned int)image, 0, 0, 0); <o:p></o:p></span></font></div> <div class="MsoNormal"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US"><o:p> </o:p></span></font></div> <div class="MsoNormal"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US">The dtb_entry is the address of dtb file which in the SDRAM, the image is the kernel entry point. I flashed some LEDs in my board. So I can make sure the program run to the machine_init() which is defined in the /arch/powerpc/kernel/setup_32.c</span></font></div><div class="MsoNormal"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US">In order to trace the problem I search the
source code. I can find that these information is printed by the start function which is defined in the /arch/powerpc/boot/main.c. <o:p></o:p></span></font></div> <div class="MsoNormal"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US">Fourth more I have found that the kernel call the platform_init which is defined in the /arch/powerpc/boot/cuboot-83xx.c. looking the file head I have known you are the author for this file.<o:p></o:p></span></font></div> <div class="MsoNormal"><font face="Arial" size="3"><span style="font-size: 12pt; font-family: Arial;" lang="EN-US">Could you told me how the kernel call the platform_init function and I hope you can show me the booting process of the MPC83xx linux or you could give me some document about it.<o:p></o:p></span></font></div><p> 
<hr size=1><a href="http://cn.mail.yahoo.com/"> ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡</a>