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

* [U-Boot] [U-boot] not support parsing Android's boot.img format ?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Albert ARIBAUD @ 2013-11-11  9:00 UTC (permalink / raw)
  To: u-boot

Hi TigerLiu at viatech.com.cn,

On Mon, 11 Nov 2013 13:12:04 +0800, <TigerLiu@viatech.com.cn> wrote:

> 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
> 
> [...]
>
> Nand boot cmd usually should retrieve kernel.img from boot.img.

Not sure what the purpose of your message is.

Are you asking if U-Boot is able to parse android's img forat, as your
message's subject implies? But in the body you seem to know it does
not.

Are you asking for someone to provide a patch? There is no indication
of such a request in your message, and besides, I don't think this
U-Boot tehcnical list would be the place to make such requests for
volunteer work.

Are you considering whether this change is valuable or not, in order to
determine if you should submit a patch? If so, the I suggest that you
don't ask questions first, since anyway you'll have to post the patch
eventually, so just post it directly, and list any explanations,
questions, etc below the '---' line.

> Best wishes,

Amicalement,
-- 
Albert.

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

* [U-Boot] [U-boot] not support parsing Android's boot.img format ?
  2013-11-11  9:00 ` Albert ARIBAUD
@ 2013-11-11  9:08   ` TigerLiu at viatech.com.cn
  0 siblings, 0 replies; 3+ messages in thread
From: TigerLiu at viatech.com.cn @ 2013-11-11  9:08 UTC (permalink / raw)
  To: u-boot

Hi, Albert:
Sorry for making trouble for you!
I just wants to make sure uboot not support this feature now.

Maybe i will submit a patch in the future.

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.