linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 2/3] powerpc: Add support for creating FIT uImages
@ 2009-11-25 10:11 Stefano Babic
  2009-11-25 16:21 ` Peter Tyser
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Babic @ 2009-11-25 10:11 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kbuild

Peter Tyser <ptyser wrote:

> +# Create a default, fully populated DTS file
> +DATA="/ {
> +	description = \"Linux kernel ${VERSION}\";
> +	#address-cells = <1>;
> +
> +	images {
> +		kernel <at> 1 {

Is the <at> probably generated by your anti-spam mailer ? dtc seems not
to like it as replacement for the usual '@' ;)

Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH 2/3] powerpc: Add support for creating FIT uImages
@ 2009-11-24 10:32 Stefano Babic
  2009-11-24 16:48 ` Peter Tyser
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Babic @ 2009-11-24 10:32 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kbuild

Peter Tyser <ptyser wrote:
> +uboot.fit)
> +    rm -f "$ofile"
> +    ${MKITS} -A ppc -C gzip -a $membase -e $membase -v $version \
> +	-d "$srctree/$dtb" -k "$srctree/$vmz" -o "$object/uImage.its"
> +    ${MKIMAGE} -f "$object/uImage.its" "$ofile"

Hi,

I have tested your patches against last mkimage utility provided with
u-boot. The utility requires to pass the type of the image (flat_dt),
even if this is not mentioned in the help output. Without the image type
parameter, no image is generated, and no error is reported.
It should be:

    ${MKIMAGE} -f "$object/uImage.its" - T flat_dt "$ofile"

I have tried to get an image for the lite5200b board, because I have the
possibility to test the result on the target. However, dtc fails to
compile the its generated by your script (Version: DTC 1.2.0-g0ef21055,
cloned from jdt).

DTC: dts->dtb  on file "arch/powerpc/boot/uImage.its"
Error: arch/powerpc/boot/uImage.its 1:0 syntax error

Do you test in different conditions ?

Regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/3] powerpc: Add support for FIT uImages
@ 2009-11-18 20:57 Peter Tyser
  2009-11-18 20:57 ` [PATCH 2/3] powerpc: Add support for creating " Peter Tyser
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Tyser @ 2009-11-18 20:57 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: linux-kbuild, Peter Tyser

These patches add support for creating the "new" FIT uImage type
that U-Boot can use.  Additional info about FIT images can be
found in the doc/uImage.FIT/ directory of the U-Boot source.
Here's a link to a howto which gives an overview of the format:
http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blob;f=doc/uImage.FIT/howto.txt;h=8065e9e1d8d4d65a9b5fe0fce08d3709183d0ee4;hb=HEAD

I've only added support for PowerPC, but the arm, avr32, blackfin,
and sh arches could use the same framework in theory.  The change
is especially useful on PowerPC since it creates 1 FIT uImage that
combines the functionality of an "old" uImage format, a device
tree blob, and possibly a ramdisk.

Peter Tyser (3):
  powerpc: Use scripts/mkuboot.sh instead of 'mkimage'
  powerpc: Add support for creating FIT uImages
  powerpc: Add support for ram filesystems in FIT uImages

 arch/powerpc/Makefile        |    4 +-
 arch/powerpc/boot/.gitignore |    1 +
 arch/powerpc/boot/Makefile   |    8 ++-
 arch/powerpc/boot/wrapper    |   39 ++++++++++--
 scripts/mkits.sh             |  144 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 189 insertions(+), 7 deletions(-)
 create mode 100755 scripts/mkits.sh


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-25 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-25 10:11 [PATCH 2/3] powerpc: Add support for creating FIT uImages Stefano Babic
2009-11-25 16:21 ` Peter Tyser
  -- strict thread matches above, loose matches on Subject: below --
2009-11-24 10:32 Stefano Babic
2009-11-24 16:48 ` Peter Tyser
2009-11-18 20:57 [PATCH 0/3] powerpc: Add support for " Peter Tyser
2009-11-18 20:57 ` [PATCH 2/3] powerpc: Add support for creating " Peter Tyser

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).