[U-Boot] [PATCH] Add support for booting of INTEGRITY operating system uImages

Kumar Gala galak at kernel.crashing.org
Wed Aug 13 23:10:19 CEST 2008


On Aug 13, 2008, at 3:31 PM, Peter Tyser wrote:

> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
> ---
> README             |    5 +++--
> common/cmd_bootm.c |   39 +++++++++++++++++++++++++++++++++++++++
> common/image.c     |    3 +++
> include/image.h    |    1 +
> 4 files changed, 46 insertions(+), 2 deletions(-)

> +#ifdef CONFIG_INTEGRITY
> +static void do_bootm_integrity (cmd_tbl_t *cmdtp, int flag,
> +				int argc, char *argv[],
> +				bootm_headers_t *images)
> +{
> +	image_header_t *hdr = &images->legacy_hdr_os_copy;
> +	void (*entry_point)(void);
> +
> +#if defined(CONFIG_FIT)
> +	if (!images->legacy_hdr_valid) {
> +		fit_unsupported_reset ("INTEGRITY");
> +		do_reset (cmdtp, flag, argc, argv);
> +	}
> +#endif
> +
> +	entry_point = (void (*)(void))image_get_ep (hdr);
> +
> +	printf ("## Transferring control to INTEGRITY (at address  
> %08lx) ...\n",
> +		(ulong)entry_point);
> +
> +	show_boot_progress (15);
> +
> +	/*
> +	 * INTEGRITY Parameters:
> +	 *   None
> +	 */
> +	(*entry_point)();
> +}

Any reason we can't just use go?

- k



More information about the U-Boot mailing list