Re: [U-Boot] [RFC PATCH 1/2] mkimage: add atmelimage

2014-04-23 Thread Andreas Bießmann
Hi Bo, On 24.04.14 05:09, Bo Shen wrote: > Hi Andreas, > > On 04/23/2014 10:29 PM, Andreas Bießmann wrote: >> +static void atmel_set_header(void *ptr, struct stat *sbuf, int ifd, >> +struct image_tool_params *params) >> +{ >> +/* just save the image size into 6'th interrupt ve

Re: [U-Boot] [RFC PATCH 1/2] mkimage: add atmelimage

2014-04-23 Thread Bo Shen
Hi Andreas, On 04/23/2014 10:29 PM, Andreas Bießmann wrote: +static void atmel_set_header(void *ptr, struct stat *sbuf, int ifd, + struct image_tool_params *params) +{ + /* just save the image size into 6'th interrupt vector */ + uint32_t *ints = (uint32

[U-Boot] [RFC PATCH 1/2] mkimage: add atmelimage

2014-04-23 Thread Andreas Bießmann
The new atmelimage converts a machine code BLOB to bootable ROM image. Atmel ROM has no sophisticated image format, it only checks the first 7 ARM vectors. The vectors can contain valid B or LDR opcodes, the 6'th vector contains the image size to load. The image size must not exceed 64 KiB. Signed