All of lore.kernel.org
 help / color / mirror / Atom feed
* FW: YP Linux Kernel Development Manual
@ 2013-01-22  2:05 Rifenbark, Scott M
  2013-01-22  8:59 ` Christian Ege
  2013-01-22 19:11 ` Darren Hart
  0 siblings, 2 replies; 5+ messages in thread
From: Rifenbark, Scott M @ 2013-01-22  2:05 UTC (permalink / raw)
  To: Yocto discussion list; +Cc: Hart, Darren

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

Hi,

I am reposting this to the discussion list and copying Darren Hart.

Scott

From: Eddy Lai GMail [mailto:eddy.lai.tw@gmail.com]
Sent: Monday, January 21, 2013 3:36 PM
To: Rifenbark, Scott M
Subject: Re: [yocto] YP Linux Kernel Development Manual

hi

hi, I follow the kernel development manual "2.5. Incorporating Out-of-Tree Modules",
copy the "hello-mod_0.1.bb" and "files" folder into my taget layer "meta-intel/meta-jasperforest/recipe-kernel", then add "MACHINE_EXTRA_ RDEPENDS += "kernel-module-hello" in the conf/local.conf
after build and boot, there's no "hello.ko" found in the binary image
also there's no hello.ko in the "tmp/work/..." folder

Eddy

All,



There is a new YP manual under development.  It is a development manual for Linux kernels in the YP.  Darren Hart is the original author of the manual as you probably know.  It is still being worked on but it is in HTML form and now part of the yocto-docs/master branch.  It is published at http://www.yoctoproject.org/docs/1.4/kernel-dev/kernel-dev.html.  Feel free to access it and comment.



Thanks,

Scott



Scott Rifenbark

Intel Corporation

Yocto Project Documentation

503.712.2702

503.341.0418 (cell)





_______________________________________________

yocto mailing list

yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>

https://lists.yoctoproject.org/listinfo/yocto


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

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

* Re: FW: YP Linux Kernel Development Manual
  2013-01-22  2:05 FW: YP Linux Kernel Development Manual Rifenbark, Scott M
@ 2013-01-22  8:59 ` Christian Ege
  2013-01-22 19:14   ` Darren Hart
  2013-01-22 19:11 ` Darren Hart
  1 sibling, 1 reply; 5+ messages in thread
From: Christian Ege @ 2013-01-22  8:59 UTC (permalink / raw)
  To: Rifenbark, Scott M; +Cc: Yocto discussion list, Hart, Darren

 Hi,
 I am not sure if this is the problem you are struggling with.
 I am wondering why class module.bbclass behaves completely different
 than kernel.bbclacc

>  hi, I follow the kernel development manual "2.5. Incorporating
> Out-of-Tree Modules",
>  copy the "hello-mod_0.1.bb" and "files" folder into my taget layer
> "meta-intel/meta-jasperforest/recipe-kernel", then add 
> "MACHINE_EXTRA_
> RDEPENDS += "kernel-module-hello" in the conf/local.conf
>  after build and boot, there's no "hello.ko" found in the binary 
> image
>  also there's no hello.ko in the "tmp/work/..." folder

 If you hello-mod_0.1.bb inherits module class there is no mechanism
 to create the kernel-module package. This only applies to the 
 kernel.bbclass

 http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/module.bbclass
 http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/module-base.bbclass

 Have a look at kernel.bbclass instead shows some pathon code which 
 handles the module package creation:
 http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/kernel.bbclass#n301

 I've fixed this in my layer by stealing the code from kernel.bbclass
 https://github.com/project-magpie/meta-stlinux/blob/master/recipes-bsp/tdt-driver/tdt-driver.inc

 With this you can also use the following extends with your module:
 module_autoload_aotom = "aotom"
 and
 module_conf_stmfb = "options stmfb 
 display0=1280x720-32@50:8m:pal:yuv:yuv"

 If you are only inherting from module this have not worked for me.

 The next part I had to fight against was the fact that in 
 core-image-minimal the package managment information are stripped and 
 thus no pre hooks are executet. So the module is installed in the image 
 but not loaded on boot-up unless you call update-modules by hand.

 ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "

 To prevent this I've defined an image without the stripping:
 https://github.com/project-magpie/meta-stlinux/blob/master/recipes-core/images/core-image-base.bb

 I hope this clarify things a little bit


 regards,
 Christian

>
>  Eddy
>
> All,
>
> There is a new YP manual under development. It is a development 
> manual
> for Linux kernels in the YP. Darren Hart is the original author of 
> the
> manual as you probably know. It is still being worked on but it is in
> HTML form and now part of the yocto-docs/master branch. It is
> published at
> http://www.yoctoproject.org/docs/1.4/kernel-dev/kernel-dev.html [1].
> Feel free to access it and comment.
>
> Thanks,
>
> Scott
>
> Scott Rifenbark
>
> Intel Corporation
>
> Yocto Project Documentation
>
> 503.712.2702
>
> 503.341.0418 (cell)
>
> _______________________________________________
>
> yocto mailing list
>
> yocto@yoctoproject.org [2]
>
> https://lists.yoctoproject.org/listinfo/yocto [3]
>
>
>
> Links:
> ------
> [1] http://www.yoctoproject.org/docs/1.4/kernel-dev/kernel-dev.html
> [2] mailto:yocto@yoctoproject.org
> [3] https://lists.yoctoproject.org/listinfo/yocto
> Hi,
>
> I am reposting this to the discussion list and copying Darren Hart.
>
> Scott
>
> FROM: Eddy Lai GMail [mailto:eddy.lai.tw@gmail.com]
>  SENT: Monday, January 21, 2013 3:36 PM
>  TO: Rifenbark, Scott M
>  SUBJECT: Re: [yocto] YP Linux Kernel Development Manual
>
> hi
>
>  hi, I follow the kernel development manual "2.5. Incorporating
> Out-of-Tree Modules",
>  copy the "hello-mod_0.1.bb" and "files" folder into my taget layer
> "meta-intel/meta-jasperforest/recipe-kernel", then add 
> "MACHINE_EXTRA_
> RDEPENDS += "kernel-module-hello" in the conf/local.conf
>  after build and boot, there's no "hello.ko" found in the binary 
> image
>  also there's no hello.ko in the "tmp/work/..." folder
>
>  Eddy
>
> All,
>
> There is a new YP manual under development. It is a development 
> manual
> for Linux kernels in the YP. Darren Hart is the original author of 
> the
> manual as you probably know. It is still being worked on but it is in
> HTML form and now part of the yocto-docs/master branch. It is
> published at
> http://www.yoctoproject.org/docs/1.4/kernel-dev/kernel-dev.html [1].
> Feel free to access it and comment.
>
> Thanks,
>
> Scott
>
> Scott Rifenbark
>
> Intel Corporation
>
> Yocto Project Documentation
>
> 503.712.2702
>
> 503.341.0418 (cell)
>
> _______________________________________________
>
> yocto mailing list
>
> yocto@yoctoproject.org [2]
>
> https://lists.yoctoproject.org/listinfo/yocto [3]
>
>
>
> Links:
> ------
> [1] http://www.yoctoproject.org/docs/1.4/kernel-dev/kernel-dev.html
> [2] mailto:yocto@yoctoproject.org
> [3] https://lists.yoctoproject.org/listinfo/yocto



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

* Re: FW: YP Linux Kernel Development Manual
  2013-01-22  2:05 FW: YP Linux Kernel Development Manual Rifenbark, Scott M
  2013-01-22  8:59 ` Christian Ege
@ 2013-01-22 19:11 ` Darren Hart
  1 sibling, 0 replies; 5+ messages in thread
From: Darren Hart @ 2013-01-22 19:11 UTC (permalink / raw)
  To: Rifenbark, Scott M; +Cc: Yocto discussion list

On 01/21/2013 06:05 PM, Rifenbark, Scott M wrote:
> Hi,
> 
> I am reposting this to the discussion list and copying Darren Hart.
> 
> Scott
> 
> From: Eddy Lai GMail [mailto:eddy.lai.tw@gmail.com]
> Sent: Monday, January 21, 2013 3:36 PM
> To: Rifenbark, Scott M
> Subject: Re: [yocto] YP Linux Kernel Development Manual
> 
> hi
> 
> hi, I follow the kernel development manual "2.5. Incorporating Out-of-Tree Modules",
> copy the "hello-mod_0.1.bb" and "files" folder into my taget layer "meta-intel/meta-jasperforest/recipe-kernel", then add "MACHINE_EXTRA_ RDEPENDS += "kernel-module-hello" in the conf/local.conf
> after build and boot, there's no "hello.ko" found in the binary image
> also there's no hello.ko in the "tmp/work/..." folder

From the description below that would be because you have to place the
entire hello-mod directory into
meta-intel/meta-jasperforest/recipes-kernel in order for the stock
layer.conf BBFILES variables to include in the bitbake search path.

If you do indeed have have a space in "MACHINE_EXTRA_ RDEPENDS" as in
your message below, that will also lead to failure.

Thanks,

--
Darren

> 
> Eddy
> 
> All,
> 
> 
> 
> There is a new YP manual under development.  It is a development manual for Linux kernels in the YP.  Darren Hart is the original author of the manual as you probably know.  It is still being worked on but it is in HTML form and now part of the yocto-docs/master branch.  It is published at http://www.yoctoproject.org/docs/1.4/kernel-dev/kernel-dev.html.  Feel free to access it and comment.
> 
> 
> 
> Thanks,
> 
> Scott
> 
> 
> 
> Scott Rifenbark
> 
> Intel Corporation
> 
> Yocto Project Documentation
> 
> 503.712.2702
> 
> 503.341.0418 (cell)
> 
> 
> 
> 
> 
> _______________________________________________
> 
> yocto mailing list
> 
> yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
> 
> https://lists.yoctoproject.org/listinfo/yocto
> 

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


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

* Re: FW: YP Linux Kernel Development Manual
  2013-01-22  8:59 ` Christian Ege
@ 2013-01-22 19:14   ` Darren Hart
  2013-01-22 21:26     ` Christian Ege
  0 siblings, 1 reply; 5+ messages in thread
From: Darren Hart @ 2013-01-22 19:14 UTC (permalink / raw)
  To: Christian Ege; +Cc: Yocto discussion list

On 01/22/2013 12:59 AM, Christian Ege wrote:
>  Hi,
>  I am not sure if this is the problem you are struggling with.
>  I am wondering why class module.bbclass behaves completely different
>  than kernel.bbclacc
> 
>>  hi, I follow the kernel development manual "2.5. Incorporating
>> Out-of-Tree Modules",
>>  copy the "hello-mod_0.1.bb" and "files" folder into my taget layer
>> "meta-intel/meta-jasperforest/recipe-kernel", then add 
>> "MACHINE_EXTRA_
>> RDEPENDS += "kernel-module-hello" in the conf/local.conf
>>  after build and boot, there's no "hello.ko" found in the binary 
>> image
>>  also there's no hello.ko in the "tmp/work/..." folder
> 
>  If you hello-mod_0.1.bb inherits module class there is no mechanism
>  to create the kernel-module package. This only applies to the 
>  kernel.bbclass
> 
>  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/module.bbclass
>  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/module-base.bbclass
> 
>  Have a look at kernel.bbclass instead shows some pathon code which 
>  handles the module package creation:
>  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/kernel.bbclass#n301
> 
>  I've fixed this in my layer by stealing the code from kernel.bbclass
>  https://github.com/project-magpie/meta-stlinux/blob/master/recipes-bsp/tdt-driver/tdt-driver.inc
> 
>  With this you can also use the following extends with your module:
>  module_autoload_aotom = "aotom"
>  and
>  module_conf_stmfb = "options stmfb 
>  display0=1280x720-32@50:8m:pal:yuv:yuv"

Christian, this is a really good point I hadn't considered. Would you
care to take a stab at adding this to module.bbclass and sending the
patch to the oe-core list for review? CC'ing myself?

Thanks,

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


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

* Re: FW: YP Linux Kernel Development Manual
  2013-01-22 19:14   ` Darren Hart
@ 2013-01-22 21:26     ` Christian Ege
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Ege @ 2013-01-22 21:26 UTC (permalink / raw)
  To: Yocto discussion list

 Am Dienstag, den 22.01.2013, 11:14 +0100 schrieb Darren Hart 
 <darren.hart@intel.com>:
> On 01/22/2013 12:59 AM, Christian Ege wrote:
>>  Hi,
>>  I am not sure if this is the problem you are struggling with.
>>  I am wondering why class module.bbclass behaves completely 
>> different
>>  than kernel.bbclacc
>>
>>>  hi, I follow the kernel development manual "2.5. Incorporating
>>> Out-of-Tree Modules",
>>>  copy the "hello-mod_0.1.bb" and "files" folder into my taget layer
>>> "meta-intel/meta-jasperforest/recipe-kernel", then add
>>> "MACHINE_EXTRA_
>>> RDEPENDS += "kernel-module-hello" in the conf/local.conf
>>>  after build and boot, there's no "hello.ko" found in the binary
>>> image
>>>  also there's no hello.ko in the "tmp/work/..." folder
>>
>>  If you hello-mod_0.1.bb inherits module class there is no mechanism
>>  to create the kernel-module package. This only applies to the
>>  kernel.bbclass
>>
>>  
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/module.bbclass
>>  
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/module-base.bbclass
>>
>>  Have a look at kernel.bbclass instead shows some pathon code which
>>  handles the module package creation:
>>  
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/kernel.bbclass#n301
>>
>>  I've fixed this in my layer by stealing the code from 
>> kernel.bbclass
>>  
>> https://github.com/project-magpie/meta-stlinux/blob/master/recipes-bsp/tdt-driver/tdt-driver.inc
>>
>>  With this you can also use the following extends with your module:
>>  module_autoload_aotom = "aotom"
>>  and
>>  module_conf_stmfb = "options stmfb
>>  display0=1280x720-32@50:8m:pal:yuv:yuv"
>
> Christian, this is a really good point I hadn't considered. Would you
> care to take a stab at adding this to module.bbclass and sending the
> patch to the oe-core list for review? CC'ing myself?

 I'll try to write a patch. Maybe tomorrow or by end of the week. I'll 
 send it to oe-core and
 to you in CC.

 regrads,

 Christian

>
> Thanks,



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

end of thread, other threads:[~2013-01-22 21:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22  2:05 FW: YP Linux Kernel Development Manual Rifenbark, Scott M
2013-01-22  8:59 ` Christian Ege
2013-01-22 19:14   ` Darren Hart
2013-01-22 21:26     ` Christian Ege
2013-01-22 19:11 ` Darren Hart

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.