[PATCH 08/10] bootwrapper: Add a firmware-independent "raw" target.

Grant Likely grant.likely at secretlab.ca
Sat Sep 22 03:31:11 EST 2007


On 9/5/07, Scott Wood <scottwood at freescale.com> wrote:
> This target produces a flat binary rather than an ELF file,
> fixes the entry point at the beginning of the image, and takes
> a complete device tree with no fixups needed.
>
> The device tree must have labels on /#address-cells, the timebase
> frequency, and the memory size.
>
> Signed-off-by: Scott Wood <scottwood at freescale.com>
> ---
> diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
> index 02f0fe0..2a6a4c6 100644
> --- a/arch/powerpc/boot/Makefile
> +++ b/arch/powerpc/boot/Makefile
> @@ -48,7 +48,8 @@ src-wlib := string.S crt0.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \
>                 cpm-serial.c stdlib.c planetcore.c
>  src-plat := of.c cuboot-83xx.c cuboot-85xx.c holly.c \
>                 cuboot-ebony.c treeboot-ebony.c prpmc2800.c \
> -               ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c cuboot-8xx.c cuboot-pq2.c
> +               ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c \
> +               cuboot-8xx.c cuboot-pq2.c fixed-head.S raw-platform.c
>  src-boot := $(src-wlib) $(src-plat) empty.c
>
>  src-boot := $(addprefix $(obj)/, $(src-boot))
> @@ -146,6 +147,7 @@ image-$(CONFIG_PPC_83xx)            += cuImage.83xx
>  image-$(CONFIG_PPC_85xx)               += cuImage.85xx
>  image-$(CONFIG_EBONY)                  += treeImage.ebony cuImage.ebony
>  image-$(CONFIG_BAMBOO)                 += treeImage.bamboo
> +image-$(CONFIG_BUILD_RAW_IMAGE)                += zImage.raw
>  endif
>
>  # For 32-bit powermacs, build the COFF and miboot images

Are these makefile changes complete?  When I attempt to compile with
this patch I get the following error:

grant at trillian:~/hacking/linux-2.6$ ppc4xx make
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
make[1]: *** No rule to make target `arch/powerpc/boot/zImage.raw',
needed by `arch/powerpc/boot/zImage'.  Stop.
make: *** [zImage] Error 2
grant at trillian:~/hacking/linux-2.6$

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195



More information about the Linuxppc-dev mailing list