rom1nux / mtkimg

Unpack/Repack boot.img, recovery.img and logo.bin for Mediatek CPU based devices
GNU General Public License v3.0
63 stars 27 forks source link

Kernel header magic is not valid #1

Closed zz64 closed 8 years ago

zz64 commented 8 years ago

Hi, tested with MT6753 boot.img but not work.

Reading image header (596 bytes)...

Image header :

 Signature                      : ANDROID!

 Kernel size                    : 6073742 bytes
 Kernel load address            : 0x40008000

 Ramdisk size                   : 668615 bytes
 Ramdisk load address           : 0x44000000

 Second stage size              : 0 bytes
 Second stage load address      : 0x40F00000

 Tags address                   : 0x4E000000
 Page size                      : 2048 bytes
 Product name                   : 'R01'
 Command line                   : 'bootopt=64S3,32N2,32N2'
 ID                             : 3085318B142507317BB7CF5F72E880F368694BA2

Image layout :

 Bloc           Offset      Pages    Size (bytes)
 ------------------------------------------------
 Header     0x00000000          1            2048
 Kernel     0x00000800       2966         6074368
 Ramdisk    0x005CB800        327          669696
 Free       0x0066F000          0               0
 ------------------------------------------------
 Total                       3294         6746112
 ------------------------------------------------

Seeking to start of kernel (0x00000800)...
Reading MTK header (512 bytes)...

 Magic                          : 0x00 0x00 0xA0 0xE1
 Size (bytes)                   : -509607936
 Type                           : 

ERROR : Kernel header magic is not valid !

Thanks.

zz64 commented 8 years ago

here: boot.img file.

zz64 commented 8 years ago

sorry i think is work with -m Thanks.