Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Martyn Welch <martyn.welch@ge.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] bitbake.conf: introducing new image fstype	.cpio.gz.u-boot
Date: Wed, 10 Mar 2010 13:29:27 +0000	[thread overview]
Message-ID: <4B979EB7.4000004@ge.com> (raw)
In-Reply-To: <1268213424-16360-1-git-send-email-sledz@dresearch.de>

Steffen Sledz wrote:
> * initrd images need to be prepared with mkimage to be usable from u-boot
>
> Signed-off-by: Steffen Sledz <sledz@dresearch.de>
>   

Works for me on a PowerPC board:

Acked-by: Martyn Welch <martyn.welch@gefanuc.com>


> ---
>  classes/image.bbclass |    1 +
>  conf/bitbake.conf     |    2 ++
>  2 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/classes/image.bbclass b/classes/image.bbclass
> index 9dce609..8e202f0 100644
> --- a/classes/image.bbclass
> +++ b/classes/image.bbclass
> @@ -1,4 +1,5 @@
>  inherit rootfs_${IMAGE_PKGTYPE}
> +inherit kernel-arch
>  
>  LICENSE = "MIT"
>  PACKAGES = ""
> diff --git a/conf/bitbake.conf b/conf/bitbake.conf
> index 3a68959..c020efe 100644
> --- a/conf/bitbake.conf
> +++ b/conf/bitbake.conf
> @@ -374,6 +374,7 @@ IMAGE_CMD_tar.gz = "cd ${IMAGE_ROOTFS} && tar -zcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_
>  IMAGE_CMD_tar.bz2 = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ."
>  IMAGE_CMD_cpio = "cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio) ${EXTRA_IMAGECMD}"
>  IMAGE_CMD_cpio.gz = "cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz) ${EXTRA_IMAGECMD}"
> +IMAGE_CMD_cpio.gz.u-boot = "cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz) ${EXTRA_IMAGECMD}; mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C gzip -n ${IMAGE_NAME} -d ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz.u-boot"
>  IMAGE_CMD_cpio.lzma = "cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | lzma -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.lzma) ${EXTRA_IMAGECMD}"
>  IMAGE_CMD_ubi = "echo \[ubifs\] > ubinize.cfg ; echo mode=ubi >> ubinize.cfg ; echo image=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs >> ubinize.cfg ; echo vol_id=0 >> ubinize.cfg ; echo vol_type=dynamic >> ubinize.cfg ; echo vol_name=${UBI_VOLNAME} >> ubinize.cfg ; echo vol_flags=autoresize >> ubinize.cfg;mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS} && ubinize -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${UBINIZE_ARGS} ubinize.cfg"
>  IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img ${MKUBIFS_ARGS}"
> @@ -397,6 +398,7 @@ IMAGE_DEPENDS_ext2 = "genext2fs-native"
>  IMAGE_DEPENDS_ext2.gz = "genext2fs-native"
>  IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native"
>  IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native"
> +IMAGE_DEPENDS_cpio.gz.u-boot = "u-boot-mkimage-native"
>  IMAGE_DEPENDS_cpio.lzma = "lzma-native"
>  IMAGE_DEPENDS_squashfs = "squashfs-tools-native"
>  IMAGE_DEPENDS_squashfs-lzma = "squashfs-tools-native"
>   


-- 
Martyn Welch (Principal Software Engineer)   |   Registered in England and
GE Intelligent Platforms                     |   Wales (3828642) at 100
T +44(0)127322748                            |   Barbirolli Square, Manchester,
E martyn.welch@ge.com                        |   M2 3AB  VAT:GB 927559189




  parent reply	other threads:[~2010-03-10 14:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-03 13:18 u-boot ready initrds Steffen Sledz
2010-03-03 13:20 ` [PATCH] hipox: introducing IMAGE_FSTYPES cpio.gz.u-boot for hipox machine Steffen Sledz
2010-03-08  7:43 ` u-boot ready initrds Steffen Sledz
2010-03-08 18:05   ` Tom Rini
2010-03-09 14:41     ` Steffen Sledz
2010-03-09 17:47       ` Tom Rini
2010-03-10  9:30         ` [PATCH] bitbake.conf: introducing new image fstype .cpio.gz.u-boot Steffen Sledz
2010-03-10 13:20           ` Steffen Sledz
2010-03-10 13:29           ` Martyn Welch [this message]
2010-03-10 15:09           ` Tom Rini
2010-03-10 15:59             ` Steffen Sledz
2010-03-09 16:09     ` u-boot ready initrds Martyn Welch

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=4B979EB7.4000004@ge.com \
    --to=martyn.welch@ge.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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