Re: [yocto] How NOT to include kernel image to the rootfs?

2013-06-24 Thread Insop Song
Hi,

Thank you for the answer.

I've tried
- by commenting RDEPENDS_kernel-base ?= kernel-image from kernel.bbclass
- and/or adding RDEPENDS_kernel-base =  in my image definition

But neither worked.

For confirmation, this bitbake -e outptut and it doesn't have the
kernel-base

insop@neon /opt/build-fsl-yocto-1.3.2 $ time bitbake -e fsl-image-min-net2
| grep kernel-base

real 0m10.691s
user 0m6.476s
sys 0m0.844s
insop@neon /opt/bui


Also, though it was not concluded, I found this mail thread also said that
it didn't work
http://comments.gmane.org/gmane.linux.embedded.yocto.general/12694

Any other thought?

Thank you,

Insop





On Sun, Jun 23, 2013 at 8:29 PM, Bruce Ashfield 
bruce.ashfi...@windriver.com wrote:

 On 13-06-23 7:08 PM, Insop Song wrote:

 Hi,

 - Question
 How NOT to include kernel image to the rootfs?

 - Background
 In our application, we use u-boot to load kernel and rootfs from nand
 flash separately.

 I don't want to include kernel image inside /boot as I don't need it
 over there.
 I could untar the rootfs, remove, and tar it up again, but I would like
 to find a way within the yocto framework.

 I was not able to find a way by looking up the recipies and googling on
 this topic.

 Could any one help me?


 Have you tried clearing RDEPENDS_kernel-base ?

 From kernel.bbclass:

 # Allow machines to override this dependency if kernel image files are
 # not wanted in images as standard
 RDEPENDS_kernel-base ?= kernel-image

 Cheers,

 Bruce





 Thank you,

 Insop



___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How NOT to include kernel image to the rootfs?

2013-06-24 Thread Nicolas Dechesne
On Mon, Jun 24, 2013 at 5:29 AM, Bruce Ashfield 
bruce.ashfi...@windriver.com wrote:

 On 13-06-23 7:08 PM, Insop Song wrote:

 Hi,

 - Question
 How NOT to include kernel image to the rootfs?

 - Background
 In our application, we use u-boot to load kernel and rootfs from nand
 flash separately.

 I don't want to include kernel image inside /boot as I don't need it
 over there.
 I could untar the rootfs, remove, and tar it up again, but I would like
 to find a way within the yocto framework.

 I was not able to find a way by looking up the recipies and googling on
 this topic.

 Could any one help me?


 Have you tried clearing RDEPENDS_kernel-base ?

 From kernel.bbclass:

 # Allow machines to override this dependency if kernel image files are
 # not wanted in images as standard
 RDEPENDS_kernel-base ?= kernel-image



please look at this machine configuration file that we use at Linaro:

https://git.linaro.org/gitweb?p=openembedded/meta-linaro.git;a=blob;f=meta-linaro/conf/machine/genericarmv7a.conf;h=d2577f69868d599f114063a7c6a3d8d0a93c532b;hb=c383e63617469dce76411249dba384aad21a3d9c

we use such 'generic' machines to build our 'generic' ARM rootfs. the trick
is indeed:


# Don't include kernels in standard images
RDEPENDS_kernel-base = 





 Cheers,

 Bruce





 Thank you,

 Insop


 __**_
 yocto mailing list
 yocto@yoctoproject.org
 https://lists.yoctoproject.**org/listinfo/yoctohttps://lists.yoctoproject.org/listinfo/yocto

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How NOT to include kernel image to the rootfs?

2013-06-24 Thread Anders Darander
* Insop Song insop.s...@gmail.com [130624 10:56]:
 I've tried 
 - by commenting RDEPENDS_kernel-base ?= kernel-image from kernel.bbclass
 - and/or adding RDEPENDS_kernel-base =  in my image definition

You should add this line in either your local.conf, or in a .bbappend
for the kernel recipe in question.

 But neither worked.

That should make it work.


Cheers,
Anders


-- 
Anders Darander
ChargeStorm AB / eStorm AB
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How NOT to include kernel image to the rootfs?

2013-06-24 Thread Luo Zhenhua-B19537
Insop, 

You can check the actual dependency in the output file of bitbake -g 
fsl-image-min-net2. 


Best Regards,

Zhenhua

 -Original Message-
 From: yocto-boun...@yoctoproject.org [mailto:yocto-
 boun...@yoctoproject.org] On Behalf Of Anders Darander
 Sent: Monday, June 24, 2013 5:05 PM
 To: yocto@yoctoproject.org
 Subject: Re: [yocto] How NOT to include kernel image to the rootfs?
 
 * Insop Song insop.s...@gmail.com [130624 10:56]:
  I've tried
  - by commenting RDEPENDS_kernel-base ?= kernel-image from
  kernel.bbclass
  - and/or adding RDEPENDS_kernel-base =  in my image definition
 
 You should add this line in either your local.conf, or in a .bbappend for
 the kernel recipe in question.
 
  But neither worked.
 
 That should make it work.
 
 
 Cheers,
 Anders
 
 
 --
 Anders Darander
 ChargeStorm AB / eStorm AB
 ___
 yocto mailing list
 yocto@yoctoproject.org
 https://lists.yoctoproject.org/listinfo/yocto


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How NOT to include kernel image to the rootfs?

2013-06-24 Thread Insop Song
Thank you all for the help.

I've added RDEPENDS_kernel-base =  at conf/local.conf
Also I had to take out oprofile in my image, as oprofile needs
kernel-vmlinux ...

Then it worked.

Thank you all.

Regards,

Insop


On Mon, Jun 24, 2013 at 2:12 AM, Luo Zhenhua-B19537
b19...@freescale.com wrote:
 Insop,

 You can check the actual dependency in the output file of bitbake -g 
 fsl-image-min-net2.


 Best Regards,

 Zhenhua

 -Original Message-
 From: yocto-boun...@yoctoproject.org [mailto:yocto-
 boun...@yoctoproject.org] On Behalf Of Anders Darander
 Sent: Monday, June 24, 2013 5:05 PM
 To: yocto@yoctoproject.org
 Subject: Re: [yocto] How NOT to include kernel image to the rootfs?

 * Insop Song insop.s...@gmail.com [130624 10:56]:
  I've tried
  - by commenting RDEPENDS_kernel-base ?= kernel-image from
  kernel.bbclass
  - and/or adding RDEPENDS_kernel-base =  in my image definition

 You should add this line in either your local.conf, or in a .bbappend for
 the kernel recipe in question.

  But neither worked.

 That should make it work.


 Cheers,
 Anders


 --
 Anders Darander
 ChargeStorm AB / eStorm AB
 ___
 yocto mailing list
 yocto@yoctoproject.org
 https://lists.yoctoproject.org/listinfo/yocto


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How NOT to include kernel image to the rootfs?

2013-06-23 Thread Bruce Ashfield

On 13-06-23 7:08 PM, Insop Song wrote:

Hi,

- Question
How NOT to include kernel image to the rootfs?

- Background
In our application, we use u-boot to load kernel and rootfs from nand
flash separately.

I don't want to include kernel image inside /boot as I don't need it
over there.
I could untar the rootfs, remove, and tar it up again, but I would like
to find a way within the yocto framework.

I was not able to find a way by looking up the recipies and googling on
this topic.

Could any one help me?


Have you tried clearing RDEPENDS_kernel-base ?

From kernel.bbclass:

# Allow machines to override this dependency if kernel image files are
# not wanted in images as standard
RDEPENDS_kernel-base ?= kernel-image

Cheers,

Bruce






Thank you,

Insop


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto