All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [U-boot] not support parsing Android's boot.img format ?
@ 2013-11-11  5:12 TigerLiu at viatech.com.cn
  2013-11-11  9:00 ` Albert ARIBAUD
  0 siblings, 1 reply; 3+ messages in thread
From: TigerLiu at viatech.com.cn @ 2013-11-11  5:12 UTC (permalink / raw)
  To: u-boot

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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-11  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-11  5:12 [U-Boot] [U-boot] not support parsing Android's boot.img format ? TigerLiu at viatech.com.cn
2013-11-11  9:00 ` Albert ARIBAUD
2013-11-11  9:08   ` TigerLiu at viatech.com.cn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.