Hope this helps:
<a href="http://www.kernelport.org/kernelport/defines.html">http://www.kernelport.org/kernelport/defines.html</a> <div><br></div><div>Cheers... :)</div><div><br><br><div class="gmail_quote">On Tue, Apr 17, 2012 at 7:10 PM, KARTHIK SEKURU <span dir="ltr"><<a href="mailto:karthik.sekuru@gmail.com">karthik.sekuru@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p class="MsoNormal">Hi,<br>
I'm doing kernel porting to arm926 based FPGA board,very minimal setup (uart +
timer only) <br>
<br>
Below are the details<br>
<br>
#define PLAT_PHYS_OFFSET 0x80000000 (with 128 MB SDRAM)<br>
#define CONFIG_PAGE_OFFSET 0xc0000000<br>
<br>
<br>
Physical memory : 128MB (0x80000000 to 88000000)<br>
<br>
ZRELADDR = 0x80008000<br>
PARAMS_PHYS = 0x80000100<br>
INITRD_PHYS = 0x80800000<br>
<br>
Kernel cmd line : mem=32M console=ttySAC0,115200 root=/dev/ram0
rootfstype=cramfs init=/linuxrc initrd=0x80800000,8M user_debug=31</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am not using u-boot and doing all the required
initializations through trace32 cmm script.</p>
<p class="MsoNormal">Through trace32 I am loading the zImage at 0x80008000.After
this I am getting the following error..</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"> </span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222">Uncompressing Linux...</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"></span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"> </span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"></span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222">uncompression error</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"></span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"> </span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"></span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"> -- System halted</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#222222"> </span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">My doubt is …</p>
<p class="MsoNormal">ZRELADDR in “Makefile.boot” is set to 0x80008000,i.e the start
address of the “decompressed zImage”..</p>
<p class="MsoNormal">And through cmm script I am also loading the “compressed
zImage” at the same location 0x80008000.</p>
<p class="MsoNormal">Am I mentioning the source address and destination address
as same.i.e the compressed zImage and decompressed zImage address are same? Is
that OK?</p><p class="MsoNormal"><br></p><p class="MsoNormal"></p><p class="MsoNormal">ZTEXTADDR:</p><p class="MsoNormal"> Start address of decompressor. Is it the address where i should load "compressed zImage". ??</p>
<p></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The “compressed zImage” is decompressed via the function
decompress_kernel();</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Void decompress_kernel()</p>
<p class="MsoNormal">{</p>
<p class="MsoNormal">…</p>
<p class="MsoNormal">…</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">putstr("Uncompressing Linux...");</p>
<p class="MsoNormal"> ret =
do_decompress(input_data, input_data_end - input_data,</p>
<p class="MsoNormal">
output_data, error);<br>
…</p>
<p class="MsoNormal">…</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal">I understand that the arguments going to the function
do_decompress() ., input_data,input_data_end and output_data are related to
zImage address.</p>
<p class="MsoNormal">Please help me in getting clear understanding about these
arguments ?? What does they mean exactly ??</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Kindly help me in resolving this uncompression error.</p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Karthik.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</font></span><br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div>