linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Scott Wood" <scottwood@freescale.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 08/10] bootwrapper: Add a firmware-independent "raw" target.
Date: Fri, 21 Sep 2007 11:31:11 -0600	[thread overview]
Message-ID: <fa686aa40709211031t687310fdk9ca703ea8cf759e7@mail.gmail.com> (raw)
In-Reply-To: <20070905192116.GH32113@ld0162-tx32.am.freescale.net>

On 9/5/07, Scott Wood <scottwood@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@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@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@trillian:~/hacking/linux-2.6$

Cheers,
g.

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

  parent reply	other threads:[~2007-09-21 17:31 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 19:20 [PATCH 00/10] Bootwrapper patches Scott Wood
2007-09-05 19:21 ` [PATCH 01/10] bootwrapper: Use fsl_get_immr() in cuboot-pq2.c Scott Wood
2007-09-05 19:21 ` [PATCH 02/10] bootwrapper: Support all-in-one PCI nodes in cuboot-pq2 Scott Wood
2007-09-05 19:21 ` [PATCH 03/10] bootwrapper: flatdevtree fixes Scott Wood
2007-09-07  0:49   ` David Gibson
2007-09-05 19:21 ` [PATCH 04/10] bootwrapper: Add strtoull() Scott Wood
2007-09-05 21:12   ` Josh Boyer
2007-09-07  0:50   ` David Gibson
2007-09-05 19:21 ` [PATCH 05/10] bootwrapper: Add get_path() Scott Wood
2007-09-07  0:52   ` David Gibson
2007-09-05 19:21 ` [PATCH 06/10] bootwrapper: Move strncmp() from flatdevtree_env.h to string.S/string.h Scott Wood
2007-09-07  0:51   ` David Gibson
2007-09-07 14:24     ` Scott Wood
2007-09-05 19:21 ` [PATCH 07/10] bootwrapper: Add PlanetCore firmware support Scott Wood
2007-09-07  1:03   ` David Gibson
2007-09-05 19:21 ` [PATCH 08/10] bootwrapper: Add a firmware-independent "raw" target Scott Wood
2007-09-07  0:58   ` David Gibson
2007-09-09 23:29     ` Milton Miller
2007-09-10 14:25       ` Scott Wood
2007-09-10 14:30         ` Scott Wood
2007-09-10 16:01           ` Milton Miller
2007-09-10 16:09         ` Milton Miller
2007-09-10 21:17       ` Segher Boessenkool
2007-09-21 17:31   ` Grant Likely [this message]
2007-09-21 17:33     ` Scott Wood
2007-10-03 20:29   ` Grant Likely
2007-09-05 19:21 ` [PATCH 09/10] bootwrapper: Only print MAC addresses when the node is actually present Scott Wood
2007-09-07  0:52   ` David Gibson
2007-09-05 19:21 ` [PATCH 10/10] bootwrapper: Add fsl_get_immr() and 8xx/pq2 clock functions Scott Wood
2007-09-07  0:53   ` David Gibson
2007-09-07 14:26     ` Scott Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fa686aa40709211031t687310fdk9ca703ea8cf759e7@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=scottwood@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).