<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<BR><BR><FONT size=4>> Date: Sat, 31 May 2008 03:23:07 -0700<BR>> From: alan@nishioka.com<BR>> To: linuxppc-embedded@ozlabs.org<BR>> Subject: Re: FW: Error occured when appended FPGA image in the section of .init.text then bootup<BR>> <BR>> 朱利达 (lida zhu)wrote:<BR>> ><BR>> ><BR>> > The request below give rise to the problem.<BR>> > I have some boards equiped with MPC8247 and FPGA without storage<BR>> > media which used as a PCI interface. So when the linux bootup<BR>> > before initialize the PCI, the code of FPGA will download. I<BR>> > append the FPGA code file in the Kernel section '.init.text'. when<BR>> > linux bootup firstly it check the board type(different board type<BR>> > would download different code), and download fpga code. More board<BR>> > types lead to more FPGA code. I append them all in the section of<BR>> > '.init.text'. when the total size of the code reach out 2M. The<BR>> > error occured. I read the '__log_buf' the kernel access some bad<BR>> > area. As the powerpce603 will map 16M address use two bat, how and<BR>> > why the problem occured, and how to solved it .<BR>> ><BR>> <BR>> Since the error occurs at 2M, I am going to guess it is similar to<BR>> problem I had. The default link/load address for booting is 0x200000.<BR>> <BR>> Here is a link:<BR>> <http://patchwork.ozlabs.org/linuxppc-embedded/patch?id=14717><BR>> <BR>> This fix is for the arch/ppc tree. I don't know if the arch/powerpc tree<BR>> works the same way.<BR>> <BR>> In the future, you should say what kernel version you are using and what<BR>> the error was.<BR>> <BR>> Alan Nishioka<BR>> alan@nishioka.com<BR>> <BR>> _______________________________________________<BR>> Linuxppc-embedded mailing list<BR>> Linuxppc-embedded@ozlabs.org<BR>> </FONT><A href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded"><FONT size=4>https://ozlabs.org/mailman/listinfo/linuxppc-embedded</FONT></A><BR>
<BR>
<FONT size=5>Thanks! Mr.西岡</FONT><BR>
<FONT size=5><BR></FONT><FONT size=4>The u-boot uncompress the Muti-file image.</FONT><BR>
<FONT size=4></FONT> <FONT size=4>when the u-boot show:</FONT><BR>
<FONT size=4>## Booting image at 01000000 ...<BR> Image Name: E300-2.0(8), alpha<BR> Image Type: PowerPC Linux Multi-File Image (gzip compressed)<BR> Data Size: 15246424 Bytes = 14.5 MB<BR> Load Address: 00000000<BR> Entry Point: 00000000<BR> Contents:<BR> Image 0: 1887243 Bytes = 1.8 MB<BR> Image 1: 13359168 Bytes = 12.7 MB<BR> Verifying Checksum ... OK<BR> ... OK<BR> Loading Ramdisk to 0ef08000, end 0fbc5840 ... OK</FONT><BR>
<FONT size=4></FONT> <BR>
<FONT size=4>the image 0 is 1.8MB.It can not bootup. No matter I put the FPGA images in section '.init.data' or '.init.text'.</FONT><BR>
<FONT size=4></FONT> <BR>
<FONT size=4></FONT> <BR>
<FONT size=4>when the u-boot show</FONT><BR>
<FONT size=4>Bytes transferred = 15163187 (e75f33 hex)<BR>## Booting image at 01000000 ...<BR> Image Name: E300-2.0(8), alpha<BR> Image Type: PowerPC Linux Multi-File Image (gzip compressed)<BR> Data Size: 15163123 Bytes = 14.5 MB<BR> Load Address: 00000000<BR> Entry Point: 00000000<BR> Contents:<BR> Image 0: 1803789 Bytes = 1.7 MB<BR> Image 1: 13359319 Bytes = 12.7 MB<BR> Verifying Checksum ... OK<BR> Uncompressing Multi-File Image ... OK<BR> Loading Ramdisk to 0ef08000, end 0fbc58d7 ... OK</FONT><BR>
<FONT size=4></FONT> <BR>
<FONT size=4>I cut one of the FPGA images. The Kernel image is 1.7MB.It can bootup. No matter I put the FPGA images in the section '.init.data' or '.init.text'. And when i fill the FPGA images in the section of '.init.data' the kernel makes mistake when she access the '__setup_start = .;' At the vmlinux.ld.s, I find it just behind the section .init.data. May be i can not describe correctly, because Truly I don't why.</FONT><BR>
<FONT size=4></FONT> <BR>
<BR>
<FONT size=4>My linux version is 2.6.18, using the arch/ppc tree. and the u-boot verison is 1.1.4.</FONT><BR>
<BR>
<BR>
<BR><br /><hr />用 Windows Live Spaces 展示个性自我,与好友分享生活! <a href='http://spaces.live.com/?page=HP' target='_new'>了解更多信息!</a></body>
</html>