How to read the kernel details ( size, start and end location) from flash
I am new to Linux and have a problem. I would appreciate any help or leads.
I have a linux system which has a NAND flash. The compressed kernel is flashed into the NAND flash. On boot up, the kernel is uncompressed, copied to RAM and runs from RAM.
Is it possible for me to read the kernel information from NAND flash such as size, start and end location and version?
I have been looking for this in the net, but did not find any answers so far...
I have tried the following:
The compressed kernel lies in the 4MB partition of the flash. So I tried:
dd if=/dev/mtdblock1 of=zImage
But this copies the complete 4MB partition. I need to copy only the zImage. So I need to know its size.
Last edited by sant_dcg; 11-09-2010 at 06:54 AM.
Reason: What have I tried till now..