LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to read the kernel details ( size, start and end location) from flash (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-read-the-kernel-details-size-start-and-end-location-from-flash-843021/)

sant_dcg 11-08-2010 09:03 AM

How to read the kernel details ( size, start and end location) from flash
 
Hello All,

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.

sant_dcg 11-09-2010 06:02 AM

Somebody please help :(


All times are GMT -5. The time now is 04:46 AM.