Case_, on Aug 1 2010, 02:19, said:
The kernel is in zImage format (which contains an unpacker and a gzipped kernel).
The reason unpack-bootimg.pl works is that it does not follow the spec, it just looks for some magic bytes and splits the file there. This is unreliable, but will in most cases extract the ramdisk properly, even if the file does not follow the bootimg.h structure.
--- split_bootimg.pl 2008-12-03 21:59:25.000000000 +0100 +++ split_bootimg_modified.pl 2010-08-01 12:21:53.000000000 +0200 @@ -72,7 +72,7 @@ my $m = int(($RAMDISK_SIZE + $PAGE_SIZE - 1) / $PAGE_SIZE); my $o = int(($SECOND_SIZE + $PAGE_SIZE - 1) / $PAGE_SIZE); -my $k_offset = $PAGE_SIZE; +my $k_offset = 2*$PAGE_SIZE; my $r_offset = $k_offset + ($n * $PAGE_SIZE); my $s_offset = $r_offset + ($m * $PAGE_SIZE);I am still trying to figure out why the superboot image (as well as Pauls Amon Ra recovery image) does not follow the bootimg.h spec...
Edited by mohrun, 01 August 2010 - 07:26 PM.







Sign In
Create Account
Back to top











