All of lore.kernel.org
 help / color / mirror / Atom feed
* Do we have a package that installs the kernel headers and config into the target?
@ 2012-04-06  3:20 Cui, Dexuan
  2012-04-06  3:55 ` Darren Hart
  0 siblings, 1 reply; 13+ messages in thread
From: Cui, Dexuan @ 2012-04-06  3:20 UTC (permalink / raw)
  To: openembedded-core

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=48&Level=5&Conn=4&ProdID=226&DownTypeID=3&GetDown=false&Downloads=true
In Ubuntu, they can build the driver fine.


Thanks,
-- Dexuan





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

* Re: Do we have a package that installs the kernel headers and config into the target?
  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
  0 siblings, 1 reply; 13+ messages in thread
From: Darren Hart @ 2012-04-06  3:55 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer



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=48&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


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



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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-06  3:55 ` Darren Hart
@ 2012-04-06  4:41   ` Cui, Dexuan
  2012-04-06  6:07     ` Darren Hart
  0 siblings, 1 reply; 13+ messages in thread
From: Cui, Dexuan @ 2012-04-06  4:41 UTC (permalink / raw)
  To: Darren Hart, Patches and discussions about the oe-core layer

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.

Thanks,
-- Dexuan





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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-06  4:41   ` Cui, Dexuan
@ 2012-04-06  6:07     ` Darren Hart
  2012-04-06  7:48       ` Cui, Dexuan
  0 siblings, 1 reply; 13+ messages in thread
From: Darren Hart @ 2012-04-06  6:07 UTC (permalink / raw)
  To: Cui, Dexuan; +Cc: Patches and discussions about the oe-core layer



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.

That said, there are valid use cases, but I don't consider this a
particularly high priority at the moment. I'm happy to hear other
thoughts on why this should be bumped in prio though.

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



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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-06  6:07     ` Darren Hart
@ 2012-04-06  7:48       ` Cui, Dexuan
  2012-04-06 11:12         ` Cui, Dexuan
                           ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Cui, Dexuan @ 2012-04-06  7:48 UTC (permalink / raw)
  To: Darren Hart; +Cc: Patches and discussions about the oe-core layer

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

> That said, there are valid use cases, but I don't consider this a
> particularly high priority at the moment. I'm happy to hear other
> thoughts on why this should be bumped in prio though.
Currently I have suggested them that they should manually copy
The kernel headers and .config into the target.
Hope this can work around the issue for them.

Thanks,
-- Dexuan





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

* Re: Do we have a package that installs the kernel headers and config into the target?
  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
  2 siblings, 1 reply; 13+ messages in thread
From: Cui, Dexuan @ 2012-04-06 11:12 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer, Darren Hart

Cui, Dexuan wrote on 2012-04-06:
> Darren Hart wrote on 2012-04-06:
>> On 04/05/2012 09:41 PM, Cui, Dexuan wrote:
>> 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.
BTW, my question might be simplified as:
If we strictly follow the rule the target OS shouldn't build itself out
more, why do we supply a recipe core-image-sato-sdk.bb that can
create an image with tools-sdk that includes development tools
like gcc? :-)

Or, while we recommend the common embedded workflow, we
also somewhat support (or tolerate) the way "the target builds
itself out more"?

Thanks,
-- Dexuan




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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-06  7:48       ` Cui, Dexuan
  2012-04-06 11:12         ` Cui, Dexuan
@ 2012-04-06 14:11         ` Steve Sakoman
  2012-04-06 16:23         ` Darren Hart
  2 siblings, 0 replies; 13+ messages in thread
From: Steve Sakoman @ 2012-04-06 14:11 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Darren Hart

On Fri, Apr 6, 2012 at 12:48 AM, Cui, Dexuan <dexuan.cui@intel.com> wrote:
> Darren Hart wrote on 2012-04-06:

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

FWIW, I get this same complaint from clients quite often.

The reason is usually quite similar to that described above -- they
are adding new hardware to their product and have been given driver
source code and a make file from the vendor.  They want to do a quick
evaluation and don't want to deal with the hassle of fighting with
vendor code that often isn't cross compile friendly.

I've always been able to help them through the issue, either by doing
a recipe for them or teaching them how to get the appropriate
headers/config onto their hardware for a native build.  But it would
be nice to just say "use zypper to install package xyz" to enable a
native module build.

Steve



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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-06 11:12         ` Cui, Dexuan
@ 2012-04-06 16:07           ` Darren Hart
  0 siblings, 0 replies; 13+ messages in thread
From: Darren Hart @ 2012-04-06 16:07 UTC (permalink / raw)
  To: Cui, Dexuan; +Cc: Patches and discussions about the oe-core layer



On 04/06/2012 04:12 AM, Cui, Dexuan wrote:
> Cui, Dexuan wrote on 2012-04-06:
>> Darren Hart wrote on 2012-04-06:
>>> On 04/05/2012 09:41 PM, Cui, Dexuan wrote:
>>> 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.
> BTW, my question might be simplified as:
> If we strictly follow the rule the target OS shouldn't build itself out
> more, why do we supply a recipe core-image-sato-sdk.bb that can
> create an image with tools-sdk that includes development tools
> like gcc? :-)
> 
> Or, while we recommend the common embedded workflow, we
> also somewhat support (or tolerate) the way "the target builds
> itself out more"?
> 

Yup, agree.


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



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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-06  7:48       ` Cui, Dexuan
  2012-04-06 11:12         ` Cui, Dexuan
  2012-04-06 14:11         ` Steve Sakoman
@ 2012-04-06 16:23         ` Darren Hart
  2012-04-09  6:43           ` Cui, Dexuan
  2 siblings, 1 reply; 13+ messages in thread
From: Darren Hart @ 2012-04-06 16:23 UTC (permalink / raw)
  To: Cui, Dexuan; +Cc: Patches and discussions about the oe-core layer



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



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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-06 16:23         ` Darren Hart
@ 2012-04-09  6:43           ` Cui, Dexuan
  0 siblings, 0 replies; 13+ messages in thread
From: Cui, Dexuan @ 2012-04-09  6:43 UTC (permalink / raw)
  To: Darren Hart; +Cc: Patches and discussions about the oe-core layer

Darren Hart wrote on 2012-04-07:
> On 04/06/2012 12:48 AM, Cui, Dexuan wrote:
> 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.
I agree.

Actually we delivered a 5-hour Yocto training (consisting of 4 sessions)
to the sophomore and junior students, but the feedbacks show many
students think, with the limited time, they only want to focus on
developing things that could make them win a prize, and they feel
Yocto isn't so easy as they expected -- they actually don't care
Yocto's powerful capability of customization and they only want a
distribution that has integrated every possible library or tool they
need...

Thanks,
-- Dexuan





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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-09  6:48 ` Cui, Dexuan
@ 2012-04-09  9:10   ` Maksym Parkachov
  0 siblings, 0 replies; 13+ messages in thread
From: Maksym Parkachov @ 2012-04-09  9:10 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 739 bytes --]

Hi Dexuan,

> Any chance the students could cross compile the wifi module using
> > an external toolchain?
> We could try this.
> But even I didn't try this before, so this needs efforts to find it out.
>
>
I wanted to achieve exactly the same, namely, compiling modules with
external toolchain. I spend some time last week to get in running for
beagleboard xm and angstrom. I documented everything with a blog post
Comfortable
kernel workflow on Beagleboard XM with
nfsroot<http://veter-project.blogspot.de/2012/03/comfortable-kernel-workflow-on.html>
.

In the end of exercise, I compiled sample module with external toolchain
and loaded it on beagleboard.

Hope some tips from the post will help.
Regards,
Maksym.

[-- Attachment #2: Type: text/html, Size: 1077 bytes --]

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

* Re: Do we have a package that installs the kernel headers and config into the target?
  2012-04-06 18:03 Daniel Lazzari
@ 2012-04-09  6:48 ` Cui, Dexuan
  2012-04-09  9:10   ` Maksym Parkachov
  0 siblings, 1 reply; 13+ messages in thread
From: Cui, Dexuan @ 2012-04-09  6:48 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Daniel Lazzari wrote on 2012-04-07:
>>> On 04/05/2012 09:41 PM, Cui, Dexuan wrote:
>> 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...
>> 
>>> That said, there are valid use cases, but I don't consider this a
>>> particularly high priority at the moment. I'm happy to hear other
>>> thoughts on why this should be bumped in prio though.
>> Currently I have suggested them that they should manually copy
>> The kernel headers and .config into the target.
>> Hope this can work around the issue for them.
> 
> Any chance the students could cross compile the wifi module using
> an external toolchain?
We could try this.
But even I didn't try this before, so this needs efforts to find it out.

Thanks,
-- Dexuan





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

* Re: Do we have a package that installs the kernel headers and config into the target?
@ 2012-04-06 18:03 Daniel Lazzari
  2012-04-09  6:48 ` Cui, Dexuan
  0 siblings, 1 reply; 13+ messages in thread
From: Daniel Lazzari @ 2012-04-06 18:03 UTC (permalink / raw)
  To: openembedded-core

>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&PFi
>d=4
>>>>
>>
>8&Level=5&Conn=4&ProdID=226&DownTypeID=3&GetDown=false&Downloa
>ds
>> =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...
>
>> That said, there are valid use cases, but I don't consider this a
>> particularly high priority at the moment. I'm happy to hear other
>> thoughts on why this should be bumped in prio though.
>Currently I have suggested them that they should manually copy
>The kernel headers and .config into the target.
>Hope this can work around the issue for them.
>
>Thanks,
>-- Dexuan
>

Any chance the students could cross compile the wifi module using an external toolchain?



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

end of thread, other threads:[~2012-04-09  9:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2012-04-09  6:43           ` Cui, Dexuan
2012-04-06 18:03 Daniel Lazzari
2012-04-09  6:48 ` Cui, Dexuan
2012-04-09  9:10   ` Maksym Parkachov

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.