Re: Query regarding ZRELADDR, ZTEXTADDR and zImage.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hope this helps:  http://www.kernelport.org/kernelport/defines.html 

Cheers... :)


On Tue, Apr 17, 2012 at 7:10 PM, KARTHIK SEKURU <karthik.sekuru@xxxxxxxxx> wrote:

Hi,
I'm doing kernel porting to arm926 based FPGA board,very minimal setup (uart + timer only) 

Below are the details

#define PLAT_PHYS_OFFSET       0x80000000 (with 128 MB SDRAM)
#define CONFIG_PAGE_OFFSET  0xc0000000


Physical memory : 128MB (0x80000000 to 88000000)

ZRELADDR = 0x80008000
PARAMS_PHYS = 0x80000100
INITRD_PHYS = 0x80800000

Kernel cmd line : mem=32M console=ttySAC0,115200 root=/dev/ram0 rootfstype=cramfs init=/linuxrc initrd=0x80800000,8M user_debug=31

 

 

I am not using u-boot and doing all the required initializations through trace32 cmm script.

Through trace32 I am loading the zImage at 0x80008000.After this I am getting the following error..

 

 

Uncompressing Linux...

 

uncompression error

 

 -- System halted

 

 

My doubt is …

ZRELADDR in “Makefile.boot” is set to 0x80008000,i.e the start address of the “decompressed zImage”..

And through cmm script I am also loading the “compressed zImage” at the same location 0x80008000.

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?


ZTEXTADDR:

        Start address of decompressor. Is it the address where i should load "compressed zImage". ??

 

The “compressed zImage” is decompressed via the function decompress_kernel();

 

Void decompress_kernel()

{

 

putstr("Uncompressing Linux...");

        ret = do_decompress(input_data, input_data_end - input_data,

                            output_data, error);

}

I understand that the arguments going to the function do_decompress() ., input_data,input_data_end and output_data are related to zImage address.

Please help me in getting clear understanding about these arguments ?? What does they mean exactly ??

 

 

Kindly help me in resolving this uncompression error.

 

Karthik.

 

 

 

 


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux