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

Bo Shen voice.shen at atmel.com
Thu Apr 24 05:09:12 CEST 2014


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_t *)ptr;
> +
> +	/* The size must not exceed 64 Kbytes */
> +	if (sbuf->st_size < 64 * 1024)
> +		ints[5] = sbuf->st_size;
> +}

Here, just a reminder.

As only sama5d3xek support SPL, so it won't hurt. However, if plan to 
add other Atmel boards with SPL support, we need check it more strictly 
(e.g: sam9x5 only support up to 24k bytes).

Best Regards,
Bo Shen



More information about the U-Boot mailing list