[U-Boot] [U-boot] not support parsing Android's boot.img format ?

TigerLiu at viatech.com.cn TigerLiu at viatech.com.cn
Mon Nov 11 06:12:04 CET 2013


Hi, experts:

It seems current uboot does not support parse boot.img which saved in
NAND chip.

Boot.img contains : kernel.img and ramdisk.img

It contains a header struct:

struct boot_img_hdr

{

    unsigned char magic[BOOT_MAGIC_SIZE];

 

    unsigned kernel_size;  /* size in bytes */

    unsigned kernel_addr;  /* physical load addr */

 

    unsigned ramdisk_size; /* size in bytes */

    unsigned ramdisk_addr; /* physical load addr */

 

    unsigned second_size;  /* size in bytes */

    unsigned second_addr;  /* physical load addr */

 

    unsigned tags_addr;    /* physical addr for kernel tags */

    unsigned page_size;    /* flash page size we assume */

    unsigned unused[2];    /* future expansion: should be 0 */

 

    unsigned char name[BOOT_NAME_SIZE]; /* asciiz product name */

    

    unsigned char cmdline[BOOT_ARGS_SIZE];

 

    unsigned id[8]; /* timestamp / checksum / sha1 / etc */

};

 

Nand boot cmd usually should retrieve kernel.img from boot.img.

 

Best wishes,



More information about the U-Boot mailing list