* How NOT to include kernel image to the rootfs?
@ 2013-06-23 23:08 Insop Song
2013-06-24 3:29 ` Bruce Ashfield
0 siblings, 1 reply; 7+ messages in thread
From: Insop Song @ 2013-06-23 23:08 UTC (permalink / raw)
To: Yocto Project Discussion; +Cc: Darren Hart, zhenhua.luo
[-- Attachment #1: Type: text/plain, Size: 513 bytes --]
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?
Thank you,
Insop
[-- Attachment #2: Type: text/html, Size: 829 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How NOT to include kernel image to the rootfs?
2013-06-23 23:08 How NOT to include kernel image to the rootfs? Insop Song
@ 2013-06-24 3:29 ` Bruce Ashfield
2013-06-24 8:54 ` Insop Song
2013-06-24 8:55 ` Nicolas Dechesne
0 siblings, 2 replies; 7+ messages in thread
From: Bruce Ashfield @ 2013-06-24 3:29 UTC (permalink / raw)
To: Insop Song; +Cc: Yocto Project Discussion, zhenhua.luo, Darren Hart
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How NOT to include kernel image to the rootfs?
2013-06-24 3:29 ` Bruce Ashfield
@ 2013-06-24 8:54 ` Insop Song
2013-06-24 9:04 ` Anders Darander
2013-06-24 8:55 ` Nicolas Dechesne
1 sibling, 1 reply; 7+ messages in thread
From: Insop Song @ 2013-06-24 8:54 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: Yocto Project Discussion, zhenhua.luo, Darren Hart
[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]
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.ashfield@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
>>
>
>
[-- Attachment #2: Type: text/html, Size: 4333 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How NOT to include kernel image to the rootfs?
2013-06-24 8:54 ` Insop Song
@ 2013-06-24 9:04 ` Anders Darander
2013-06-24 9:12 ` Luo Zhenhua-B19537
0 siblings, 1 reply; 7+ messages in thread
From: Anders Darander @ 2013-06-24 9:04 UTC (permalink / raw)
To: yocto
* Insop Song <insop.song@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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How NOT to include kernel image to the rootfs?
2013-06-24 9:04 ` Anders Darander
@ 2013-06-24 9:12 ` Luo Zhenhua-B19537
2013-06-24 12:05 ` Insop Song
0 siblings, 1 reply; 7+ messages in thread
From: Luo Zhenhua-B19537 @ 2013-06-24 9:12 UTC (permalink / raw)
To: insop.song@gmail.com; +Cc: yocto@yoctoproject.org
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-bounces@yoctoproject.org [mailto:yocto-
> bounces@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.song@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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How NOT to include kernel image to the rootfs?
2013-06-24 9:12 ` Luo Zhenhua-B19537
@ 2013-06-24 12:05 ` Insop Song
0 siblings, 0 replies; 7+ messages in thread
From: Insop Song @ 2013-06-24 12:05 UTC (permalink / raw)
To: Luo Zhenhua-B19537; +Cc: yocto@yoctoproject.org
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
<B19537@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-bounces@yoctoproject.org [mailto:yocto-
>> bounces@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.song@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
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How NOT to include kernel image to the rootfs?
2013-06-24 3:29 ` Bruce Ashfield
2013-06-24 8:54 ` Insop Song
@ 2013-06-24 8:55 ` Nicolas Dechesne
1 sibling, 0 replies; 7+ messages in thread
From: Nicolas Dechesne @ 2013-06-24 8:55 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: Yocto Project Discussion, Darren Hart, zhenhua.luo
[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]
On Mon, Jun 24, 2013 at 5:29 AM, Bruce Ashfield <
bruce.ashfield@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/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>
[-- Attachment #2: Type: text/html, Size: 3279 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-06-24 12:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-23 23:08 How NOT to include kernel image to the rootfs? Insop Song
2013-06-24 3:29 ` Bruce Ashfield
2013-06-24 8:54 ` Insop Song
2013-06-24 9:04 ` Anders Darander
2013-06-24 9:12 ` Luo Zhenhua-B19537
2013-06-24 12:05 ` Insop Song
2013-06-24 8:55 ` Nicolas Dechesne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.