All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@linux.intel.com>
To: "Cui, Dexuan" <dexuan.cui@intel.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: Do we have a package that installs the kernel headers and config into the target?
Date: Fri, 06 Apr 2012 09:23:15 -0700	[thread overview]
Message-ID: <4F7F1873.5040607@linux.intel.com> (raw)
In-Reply-To: <A25F549E4D43CD42B4C02DF47A1913230FCFD667@SHSMSX102.ccr.corp.intel.com>



On 04/06/2012 12:48 AM, Cui, Dexuan wrote:
> Darren Hart wrote on 2012-04-06:
>> On 04/05/2012 09:41 PM, Cui, Dexuan wrote:
>>> Darren Hart wrote on 2012-04-06:
>>>> On 04/05/2012 08:20 PM, Cui, Dexuan wrote:
>>>>> In a typical Linux distribution, there is a build link(or directory)
>>>>> that specifies the directory where the kernel headers and kernel config
>>>>> are put.
>>>>>
>>>>> E.g. in my Ubuntu 11.04, a package linux-headers-2.6.38-8-generic
>>>> installs .config, include/ and Kconfig into
>>>> /usr/src/linux-headers-2.6.38-8-generic/ and makes a link
>>>> /lib/modules/2.6.38-8-generic/build to point to the directory.
>>>>>
>>>>> However, looks in Yocto, we don't have such a package? Do we have a
>>>>> plan to add it?
>>>>>
>>>>> I'm asking the question because in the ESDC contest, the students found in
>>>> Yocto they couldn't build the wifi driver's source code that was
>>>> downloaded from realtek.com:
>>>>
>>>> http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=4
>>>>
>> 8&Level=5&Conn=4&ProdID=226&DownTypeID=3&GetDown=false&Downloads
>> =true
>>>>> In Ubuntu, they can build the driver fine.
>>>>
>>>> There is an open bug:
>>>> https://bugzilla.yoctoproject.org/show_bug.cgi?id=1614
>>>
>>> Glad to know this is a know bug.
>>> I personally think it would be pretty nice if we can fix this bug soon
>>> since the students are being frustrated by this...
>>>
>>> And, in the Build Appliance (self-hosted-image) work, we want to
>>> enable the vmware guest's VMware Tools. This also requires the ability
>>> to build kernel module in the target.
>>>
>>
>> While I understand there are valid use cases, I think this is generally
>> contrary to workflow of the project. We build the OS, it runs on the
>> target. This is building a general purpose OS, and then having it build
>> itself out more. It doesn't feel like an embedded workflow.
> I totally agree with you.
> 
> Unluckily we'll have to face an imperfect world:
> E.g., in the ESDC contest, after the students boot the board with
> Yocto Linux, they attach a Realtek wifi device and try to build and
> install the driver.
> 
> What's bad is: the driver's source code is not integrated into the
> upstream linux. The students can only run a makefile of the driver
> tarball to build the driver.  To the students' surprise, there is no
> kernel headers in the running Yocto linux! :-(
> 
> Surely, the "standard" way is: we should write a recipe to
> cross-compile and install the driver. But this is difficult to the
> students:
> 1) They're not familiar with Poky at all, and actually the downloaded
> wifi driver's code here seems indeed complex.
> 
> 2) The students only have limited time so they intend to spend
> most of the time on things that could make them win a prize or
> money. :-)
> So this actually makes Yocto less appealing to them though the
> goal of Yocto is making developing on embedded easy...
> 

It seems to me some work is needed at ESDC to account for proper
development techniques and not reward sloppy development. Writing
maintainable code is an important part of professional software
engineers do every day. Rewarding shortcuts and deliverables by any
means necessary does students and the industry a disservice.


-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel



  parent reply	other threads:[~2012-04-06 16:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06  3:20 Do we have a package that installs the kernel headers and config into the target? Cui, Dexuan
2012-04-06  3:55 ` Darren Hart
2012-04-06  4:41   ` Cui, Dexuan
2012-04-06  6:07     ` Darren Hart
2012-04-06  7:48       ` Cui, Dexuan
2012-04-06 11:12         ` Cui, Dexuan
2012-04-06 16:07           ` Darren Hart
2012-04-06 14:11         ` Steve Sakoman
2012-04-06 16:23         ` Darren Hart [this message]
2012-04-09  6:43           ` Cui, Dexuan
  -- strict thread matches above, loose matches on Subject: below --
2012-04-06 18:03 Daniel Lazzari
2012-04-09  6:48 ` Cui, Dexuan
2012-04-09  9:10   ` Maksym Parkachov

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=4F7F1873.5040607@linux.intel.com \
    --to=dvhart@linux.intel.com \
    --cc=dexuan.cui@intel.com \
    --cc=openembedded-core@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 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.