Openembedded Devel Discussions
 help / color / mirror / Atom feed
* u-boot ready initrds
@ 2010-03-03 13:18 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
  0 siblings, 2 replies; 12+ messages in thread
From: Steffen Sledz @ 2010-03-03 13:18 UTC (permalink / raw)
  To: openembedded-devel

Initrds need to be prepared with mkimage to be usable from u-boot.
The following patch introduces an additional IMAGE_FSTYPE .cpio.gz.u-boot
for this (at the moment just for hipox machine).

Is this the way it should be done?

Should this better become part of conf/bitbake.conf?

Steffen




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

* [PATCH] hipox: introducing IMAGE_FSTYPES cpio.gz.u-boot for hipox machine
  2010-03-03 13:18 u-boot ready initrds Steffen Sledz
@ 2010-03-03 13:20 ` Steffen Sledz
  2010-03-08  7:43 ` u-boot ready initrds Steffen Sledz
  1 sibling, 0 replies; 12+ messages in thread
From: Steffen Sledz @ 2010-03-03 13:20 UTC (permalink / raw)
  To: openembedded-devel

* initrd images need to be prepared with mkimage to be usable from u-boot

Signed-off-by: Steffen Sledz <sledz@dresearch.de>
---
 conf/machine/hipox.conf |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/conf/machine/hipox.conf b/conf/machine/hipox.conf
index 7a2ac6f..3da7213 100644
--- a/conf/machine/hipox.conf
+++ b/conf/machine/hipox.conf
@@ -17,4 +17,7 @@ UBOOT_LOADADDRESS = "0x48008000"
 UBOOT_ENTRYPOINT = "0x48008000"
 UBOOT_ARCH = "arm"
 
+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 arm -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_DEPENDS_cpio.gz.u-boot = "u-boot-mkimage-native"
+
 require conf/machine/include/tune-arm926ejs.inc
-- 
1.6.4.2




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

* Re: u-boot ready initrds
  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 ` Steffen Sledz
  2010-03-08 18:05   ` Tom Rini
  1 sibling, 1 reply; 12+ messages in thread
From: Steffen Sledz @ 2010-03-08  7:43 UTC (permalink / raw)
  To: openembedded-devel

Steffen Sledz wrote:
> Initrds need to be prepared with mkimage to be usable from u-boot.
> The following patch introduces an additional IMAGE_FSTYPE .cpio.gz.u-boot
> for this (at the moment just for hipox machine).
> 
> Is this the way it should be done?
> 
> Should this better become part of conf/bitbake.conf?

Ping




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

* Re: u-boot ready initrds
  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 16:09     ` u-boot ready initrds Martyn Welch
  0 siblings, 2 replies; 12+ messages in thread
From: Tom Rini @ 2010-03-08 18:05 UTC (permalink / raw)
  To: openembedded-devel

On Mon, 2010-03-08 at 08:43 +0100, Steffen Sledz wrote:
> Steffen Sledz wrote:
> > Initrds need to be prepared with mkimage to be usable from u-boot.
> > The following patch introduces an additional IMAGE_FSTYPE .cpio.gz.u-boot
> > for this (at the moment just for hipox machine).
> > 
> > Is this the way it should be done?
> > 
> > Should this better become part of conf/bitbake.conf?
> 
> Ping

I don't know why patchwork didn't see this.  That said, mkimage -A arm
is bad.  UBOOT_ARCH is right, and comes from kernel-arch.bbclass.  So, I
think a full patch would need to add in changes to image.bbclass to
inherit kernel-arch so that UBOOT_ARCH will be evaluated.

And yes, this I think should be in bitbake.conf with the rest of the
image magics

-- 
Tom Rini <tom_rini@mentor.com>
Mentor Graphics Corporation



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

* Re: u-boot ready initrds
  2010-03-08 18:05   ` Tom Rini
@ 2010-03-09 14:41     ` Steffen Sledz
  2010-03-09 17:47       ` Tom Rini
  2010-03-09 16:09     ` u-boot ready initrds Martyn Welch
  1 sibling, 1 reply; 12+ messages in thread
From: Steffen Sledz @ 2010-03-09 14:41 UTC (permalink / raw)
  To: openembedded-devel

Tom Rini wrote:
>> Initrds need to be prepared with mkimage to be usable from u-boot.
>> The following patch introduces an additional IMAGE_FSTYPE .cpio.gz.u-boot
>> for this (at the moment just for hipox machine).
>>
>> Is this the way it should be done?
>>
>> Should this better become part of conf/bitbake.conf?
> 
> I don't know why patchwork didn't see this.

That's really crazy. None of my patches occurs in the patch queue.
I started an extra thread for this [1]. It would be really
great if somebody can fix this problem (or tell me what i'm
doing wrong).

> That said, mkimage -A arm is bad.  UBOOT_ARCH is right,

Good point. Total agreement.

> and comes from kernel-arch.bbclass.  So, I
> think a full patch would need to add in changes to image.bbclass to
> inherit kernel-arch so that UBOOT_ARCH will be evaluated.
>
> And yes, this I think should be in bitbake.conf with the rest of the
> image magics

I've too much respect and to little knowledge to make changes
inside these core components.

Can someone take me by the hand and guide me. ;-)

Steffen

PS: And another little question: is '.u-boot' a good extension for
this? Or is the shorter '.u' better?

[1] http://thread.gmane.org/gmane.comp.handhelds.openembedded/30693




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

* Re: u-boot ready initrds
  2010-03-08 18:05   ` Tom Rini
  2010-03-09 14:41     ` Steffen Sledz
@ 2010-03-09 16:09     ` Martyn Welch
  1 sibling, 0 replies; 12+ messages in thread
From: Martyn Welch @ 2010-03-09 16:09 UTC (permalink / raw)
  To: openembedded-devel

Tom Rini wrote:
> On Mon, 2010-03-08 at 08:43 +0100, Steffen Sledz wrote:
>   
>> Steffen Sledz wrote:
>>     
>>> Initrds need to be prepared with mkimage to be usable from u-boot.
>>> The following patch introduces an additional IMAGE_FSTYPE .cpio.gz.u-boot
>>> for this (at the moment just for hipox machine).
>>>
>>> Is this the way it should be done?
>>>
>>> Should this better become part of conf/bitbake.conf?
>>>       
>> Ping
>>     
>
> I don't know why patchwork didn't see this.  That said, mkimage -A arm
> is bad.  UBOOT_ARCH is right, and comes from kernel-arch.bbclass.  So, I
> think a full patch would need to add in changes to image.bbclass to
> inherit kernel-arch so that UBOOT_ARCH will be evaluated.
>
> And yes, this I think should be in bitbake.conf with the rest of the
> image magics
>   

We'd like to see this as well. We have a class which we inherit to do
the same thing that I have been meaning to try and push, but this is a
much better way of doing it.

Martyn

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




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

* Re: u-boot ready initrds
  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
  0 siblings, 1 reply; 12+ messages in thread
From: Tom Rini @ 2010-03-09 17:47 UTC (permalink / raw)
  To: openembedded-devel

On Tue, 2010-03-09 at 15:41 +0100, Steffen Sledz wrote:
> Tom Rini wrote:
[snip]
> > That said, mkimage -A arm is bad.  UBOOT_ARCH is right,
> 
> Good point. Total agreement.
> 
> > and comes from kernel-arch.bbclass.  So, I
> > think a full patch would need to add in changes to image.bbclass to
> > inherit kernel-arch so that UBOOT_ARCH will be evaluated.
> >
> > And yes, this I think should be in bitbake.conf with the rest of the
> > image magics
> 
> I've too much respect and to little knowledge to make changes
> inside these core components.
> 
> Can someone take me by the hand and guide me. ;-)

It's easy.  Just add 'inherit kernel-arch' to image.bbclass, up near the
top, test your changes a bit and post :)

> PS: And another little question: is '.u-boot' a good extension for
> this? Or is the shorter '.u' better?

Since the recipe is u-boot (and u-boot-blah-native), .u-boot is fine
over .uboot.  .u is I think too short / nondescript.

-- 
Tom Rini <tom_rini@mentor.com>
Mentor Graphics Corporation



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

* [PATCH] bitbake.conf: introducing new image fstype .cpio.gz.u-boot
  2010-03-09 17:47       ` Tom Rini
@ 2010-03-10  9:30         ` Steffen Sledz
  2010-03-10 13:20           ` Steffen Sledz
                             ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Steffen Sledz @ 2010-03-10  9:30 UTC (permalink / raw)
  To: openembedded-devel

* initrd images need to be prepared with mkimage to be usable from u-boot

Signed-off-by: Steffen Sledz <sledz@dresearch.de>
---
 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"
-- 
1.6.4.2




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

* Re: [PATCH] bitbake.conf: introducing new image fstype .cpio.gz.u-boot
  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
  2010-03-10 15:09           ` Tom Rini
  2 siblings, 0 replies; 12+ messages in thread
From: Steffen Sledz @ 2010-03-10 13:20 UTC (permalink / raw)
  To: openembedded-devel

OK, here's my try.

Any chance to get the necessary ACKs?  :)




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

* Re: [PATCH] bitbake.conf: introducing new image fstype .cpio.gz.u-boot
  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
  2010-03-10 15:09           ` Tom Rini
  2 siblings, 0 replies; 12+ messages in thread
From: Martyn Welch @ 2010-03-10 13:29 UTC (permalink / raw)
  To: openembedded-devel

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




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

* Re: [PATCH] bitbake.conf: introducing new image fstype .cpio.gz.u-boot
  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
@ 2010-03-10 15:09           ` Tom Rini
  2010-03-10 15:59             ` Steffen Sledz
  2 siblings, 1 reply; 12+ messages in thread
From: Tom Rini @ 2010-03-10 15:09 UTC (permalink / raw)
  To: openembedded-devel

On Wed, 2010-03-10 at 10:30 +0100, 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>

Acked-by: Tom Rini <tom_rini@mentor.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"


-- 
Tom Rini <tom_rini@mentor.com>
Mentor Graphics Corporation



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

* Re: [PATCH] bitbake.conf: introducing new image fstype .cpio.gz.u-boot
  2010-03-10 15:09           ` Tom Rini
@ 2010-03-10 15:59             ` Steffen Sledz
  0 siblings, 0 replies; 12+ messages in thread
From: Steffen Sledz @ 2010-03-10 15:59 UTC (permalink / raw)
  To: openembedded-devel

Tom Rini wrote:
> On Wed, 2010-03-10 at 10:30 +0100, 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>
> 
> Acked-by: Tom Rini <tom_rini@mentor.com>

OK, thx.

As soon as git.openembedded.org is online again, i'll push the patch.

Steffen




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

end of thread, other threads:[~2010-03-10 16:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox