[PATCH 2/7] scripts: new kwbimage manipulation tool for Marvell SoC boot images

Sascha Hauer s.hauer at pengutronix.de
Mon May 6 15:16:15 EDT 2013


On Fri, May 03, 2013 at 06:51:06PM +0200, Thomas Petazzoni wrote:
> The Marvell EBU SoCs (Kirkwood, Armada 370, Armada XP) have a BootROM
> that understand a specific image format, composed of a main header,
> several extension headers and a paylod. This image can be booted from
> NAND, SPI, SATA, UART, NOR, etc.
> 
> This patch adds a tool that allows to extract the components and
> configuration of existing images, and to create new images.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
>  scripts/.gitignore |    1 +
>  scripts/Makefile   |    3 +-
>  scripts/kwbimage.c | 1224 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 1227 insertions(+), 1 deletion(-)
>  create mode 100644 scripts/kwbimage.c
> 
> diff --git a/scripts/.gitignore b/scripts/.gitignore
> index 1ca6603..414de7f 100644
> --- a/scripts/.gitignore
> +++ b/scripts/.gitignore
> @@ -2,6 +2,7 @@ bareboxenv
>  bin2c
>  gen_netx_image
>  kallsyms
> +kwbimage
>  mk-am35xx-spi-image
>  mkimage
>  mkublheader
> diff --git a/scripts/Makefile b/scripts/Makefile
> index 08b325c..22ec4b6 100644
> --- a/scripts/Makefile
> +++ b/scripts/Makefile
> @@ -8,6 +8,7 @@ hostprogs-$(CONFIG_KALLSYMS)     += kallsyms
>  hostprogs-y                      += bin2c
>  hostprogs-y                      += mkimage
>  hostprogs-y                      += bareboxenv
> +hostprogs-$(CONFIG_ARCH_MVEBU)   += kwbimage
>  hostprogs-$(CONFIG_ARCH_NETX)    += gen_netx_image
>  hostprogs-$(CONFIG_ARCH_OMAP)    += omap_signGP mk-am35xx-spi-image
>  hostprogs-$(CONFIG_ARCH_S5PCxx)  += s5p_cksum
> @@ -27,7 +28,7 @@ subdir-$(CONFIG_X86)             += setupmbr
>  subdir-	+= basic kconfig setupmbr
>  
>  quiet_cmd_csingle	= CC      $@
> -      cmd_csingle	= $(CC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<
> +      cmd_csingle	= $(CC)  -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<

This is a whitespace change only, right? Please drop this.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list