From: Mark Hatle <mark.hatle@windriver.com>
To: "Bystricky, Juro" <juro.bystricky@intel.com>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>,
"jurobystricky@hotmail.com" <jurobystricky@hotmail.com>
Cc: "Purdie, Richard" <richard.purdie@intel.com>
Subject: Re: [PATCH 0/2] Support for VirtualBox guest additions
Date: Tue, 4 Aug 2015 14:22:02 -0500 [thread overview]
Message-ID: <55C110DA.6050404@windriver.com> (raw)
In-Reply-To: <6E51916E4A1F32428260031F4C7CD2B6101D471A@ORSMSX109.amr.corp.intel.com>
On 8/4/15 2:10 PM, Bystricky, Juro wrote:
> I am pretty sure initially I tried to use kernel-devsrc to install VirtualBox guest additions.
> It did not work out of the box for me, there were either files missing or they were not in expected locations.
> It is possible it could be made to work with some modified installation, but the size is an issue
> as well: kernel-devsrc packs over 500MB (uncompressed).
This can be dealt with. If necessary splitting into two packages, the minimal
components and 'everything else', but should still be generated from the
kernel-devsrc recipe.
But really is 500MB a problem when using the build-appliance? (You wouldn't use
any of these on a memory constrained target anyway -- you'd pre-build any
modules elsewhere.. so that shouldn't be a consideration.)
> The source code is only needed when you want to reconfigure/rebuild the kernel.
> Out-of-tree modules generally don't need any additional source code, typically only header files.
Some out of tree modules want to get access to more then just the header files.
--Mark
> Juro
>
>
>> -----Original Message-----
>> From: Mark Hatle [mailto:mark.hatle@windriver.com]
>> Sent: Tuesday, August 4, 2015 10:32 AM
>> To: Bystricky, Juro; openembedded-core@lists.openembedded.org;
>> jurobystricky@hotmail.com
>> Cc: Purdie, Richard
>> Subject: Re: [OE-core] [PATCH 0/2] Support for VirtualBox guest additions
>>
>> On 8/4/15 12:25 PM, Bystricky, Juro wrote:
>>> I agree, the name "kernel-headers" may not be the most fortunate, "linux-
>> headers"
>>> is probably more fitting. The recipe installs the files in a similar
>>> fashion that is done by
>>>
>>> apt-get install linux-headers-$(uname -r)
>>>
>>> Typical contents can be viewed for example here:
>>> https://www.archlinux.org/packages/core/i686/linux-headers/
>>>
>>> These files are needed to allow building of kernel drivers against
>>> the running Linux kernel. In a way, it is a subset of kernel-devsrc,
>>> but including ".config" file used for the actual running kernel.
>>
>> Again this is part of the purpose of the existing kernel-devsrc package. So
>> what is missing preventing this from working. It likely needs to be added to
>> the kernel-devsrc package instead (or a sub package that is created by the
>> kernel-devsrc recipe.)
>>
>>> Having these files installed, it is possible to compile additional
>>> kernel drivers that are not part of the kernel-devsrc .
>>> VirtualBox compiles some of their own drivers this way, others as well.
>>> There are many other scenarios where you may want to add a new kernel
>>> driver to an already installed Linux kernel.
>>
>> Yes, this was part of the design behind the kernel-devsrc, make sure the
>> sources and components used to build the running kernel were made
>> available to the target so that out-of-tree/external kernel modules could be
>> built to match the running system -- as well as the ability to reconfigure and
>> rebuild the kernel itself.
>>
>> Bruce is on vacation this week and may not be around to respond, but adding
>> yet another package is not the right answer here. Lets fix what may be
>> broken in what we have.
>>
>> --Mark
>>
>>> Juro
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: Mark Hatle [mailto:mark.hatle@windriver.com]
>>>> Sent: Tuesday, August 4, 2015 9:20 AM
>>>> To: Bystricky, Juro; openembedded-core@lists.openembedded.org;
>>>> jurobystricky@hotmail.com
>>>> Cc: Purdie, Richard
>>>> Subject: Re: [OE-core] [PATCH 0/2] Support for VirtualBox guest
>>>> additions
>>>>
>>>> On 8/3/15 3:35 PM, Juro Bystricky wrote:
>>>>> In order to support VirtualBox guest additions, kernel headers need
>>>>> to be present in the VM. I am aware we already have two
>>>>> packages/recipes that are somewhat similar (kernel-devsrc.bb,
>>>>> linux-libc-headers), but none
>>>> of them is suitable for this purpose.
>>>>> Besides the kernel headers, some additional files (scripts,
>>>>> Makefiles, .config, etc) are also required.
>>>>
>>>> linux-libc-headers is only for building applications. kernel-devsrc
>>>> is for building modules on the target.
>>>>
>>>> What do these specific modules need that are not present in kernel-
>> devsrc?
>>>> (I really don't want 'yet another' confusing package added to the
>>>> system.)
>>>>
>>>>> The new recipe "kernel-headers.bb" can in principle be used by other
>>>> images as well.
>>>>> It is not limited to the Build Appliance and hence is not a part of
>>>>> the Build Appliance recipe.
>>>>
>>>> I think kernel-headers is a bad name for a package. It could be confusing.
>>>>
>>>> --Mark
>>>>
>>>>> Juro Bystricky (2):
>>>>> kernel-headers: linux kernel headers
>>>>> build-appliance-image: support for VirtualBox guest addtions
>>>>>
>>>>> .../README_vbox_guest_additions.txt | 78
>>>> ++++++++++++++++++++++
>>>>> .../images/build-appliance-image_12.0.1.bb | 4 +-
>>>>> meta/recipes-kernel/linux/kernel-headers.bb | 66
>>>> ++++++++++++++++++
>>>>> 3 files changed, 147 insertions(+), 1 deletion(-) create mode
>>>>> 100644
>>>>> meta/recipes-core/images/build-appliance-
>>>> image/README_vbox_guest_addit
>>>>> ions.txt create mode 100644
>>>>> meta/recipes-kernel/linux/kernel-headers.bb
>>>>>
>>>
>
next prev parent reply other threads:[~2015-08-04 19:22 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 20:35 [PATCH 0/2] Support for VirtualBox guest additions Juro Bystricky
2015-08-03 20:35 ` [PATCH 1/2] kernel-headers: linux kernel headers Juro Bystricky
2015-08-04 4:37 ` Christopher Larson
2015-08-04 16:06 ` Bystricky, Juro
2015-08-05 2:20 ` Bruce Ashfield
2015-08-26 17:55 ` Josh Cartwright
2015-08-26 17:57 ` Bruce Ashfield
2015-08-26 18:11 ` Josh Cartwright
2015-08-03 20:35 ` [PATCH 2/2] build-appliance-image: support for VirtualBox guest addtions Juro Bystricky
2015-08-04 4:37 ` Christopher Larson
2015-08-04 16:08 ` Bystricky, Juro
2015-08-04 16:20 ` [PATCH 0/2] Support for VirtualBox guest additions Mark Hatle
2015-08-04 17:25 ` Bystricky, Juro
2015-08-04 17:32 ` Mark Hatle
2015-08-04 19:10 ` Bystricky, Juro
2015-08-04 19:22 ` Mark Hatle [this message]
2015-08-04 21:27 ` Bystricky, Juro
2015-08-04 21:31 ` Otavio Salvador
2015-08-05 2:24 ` Bruce Ashfield
2015-08-05 2:24 ` Bruce Ashfield
2015-08-05 2:43 ` Bruce Ashfield
2015-08-05 2:48 ` Bruce Ashfield
2015-08-05 22:02 ` Bystricky, Juro
2015-08-06 2:09 ` Bruce Ashfield
2015-08-06 2:20 ` Khem Raj
2015-08-07 22:13 ` Bystricky, Juro
2015-08-08 1:09 ` Bruce Ashfield
2015-08-08 17:36 ` Bystricky, Juro
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=55C110DA.6050404@windriver.com \
--to=mark.hatle@windriver.com \
--cc=juro.bystricky@intel.com \
--cc=jurobystricky@hotmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@intel.com \
/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