Skip to contentSkip to conversation

How do I get the kernel modules into rootfs?

DISCUSSION Sebastian Süsens 3 participants 4 messages May 28, 2013 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

I have build the system with MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" at the machine configuration.
When I look into the rootfs.tar archive I see no modules installed in /lib/modules. I get only a modules.tar archive at the deploy folder.

How do I get the modules into the rootfs?

Signature · 14 lines
------------------------------------------------------------------------
   Sebastian Süsens               Tel.   +49 4321 559 56-27
   mycable GmbH                   Fax    +49 4321 559 56-10
   Gartenstrasse 10
   24534 Neumuenster, Germany     Email  [email protected]
------------------------------------------------------------------------
   mycable GmbH, Managing Director: Michael Carstens-Behrens
   USt-IdNr: DE 214 231 199, Amtsgericht Kiel, HRB 1797 NM
------------------------------------------------------------------------
   This e-mail and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity to whom
   they are addressed. If you have received this e-mail in error,
   please notify the sender and delete all copies from your system.
------------------------------------------------------------------------ 
#1 lore raw
Quoted 6 lines · On Tuesday 28 May 2013 14:18:53 Sebastian Süsens wrote:

I have build the system with MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" at the machine configuration.
When I look into the rootfs.tar archive I see no modules installed in /lib/modules. I get only a modules.tar archive at the deploy folder.

How do I get the modules into the rootfs?

This will only work if your image includes packagegroup-base, as noted in the glossary entry for this variable:

http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-MACHINE_EXTRA_RRECOMMENDS

Presumably the image you are building does not include packagegroup-base (or more specifically, packagegroup-machine-base)?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Hi Sebastian,
if you read this
https://www.yoctoproject.org/sites/yoctoproject.org/files/elc2013-kernel-lab.pdf
you might find a solution for your problem. Check lab 3.

Thanks,
Katu

2013/5/28 Paul Eggleton <[email protected]>

Quoted 29 lines · On Tuesday 28 May 2013 14:18:53 Sebastian Süsens wrote:
Quoted 6 lines

I have build the system with MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" at the machine configuration.
When I look into the rootfs.tar archive I see no modules installed in /lib/modules. I get only a modules.tar archive at the deploy folder.

How do I get the modules into the rootfs?

This will only work if your image includes packagegroup-base, as noted in the glossary entry for this variable:

http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-MACHINE_EXTRA_RRECOMMENDS

Presumably the image you are building does not include packagegroup-base (or more specifically, packagegroup-machine-base)?

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#4 lore raw
In reply to a message not in the archive
Quoted 12 lines · On Tuesday 28 May 2013 15:57:50 Sebastian Süsens wrote:
Quoted 11 lines · Paul Eggleton
Quoted 6 lines · On Tuesday 28 May 2013 14:18:53 Sebastian Süsens wrote:

I have build the system with MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" at the machine configuration.
When I look into the rootfs.tar archive I see no modules installed in /lib/modules. I get only a modules.tar archive at the deploy folder.

How do I get the modules into the rootfs?

This will only work if your image includes packagegroup-base, as noted in the glossary entry for this variable:

Quoted 8 lines
Quoted 5 lines

http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-MA
CHINE_EXTRA_RRECOMMENDS

Presumably the image you are building does not include packagegroup-base (or more specifically, packagegroup-machine-base)?

now I build the system with packagegroup-base and it works.
Can I build the rootfs which include modules without the packagegroup-base?

kernel-modules is just a package, so you can include it in IMAGE_INSTALL just like any other package name (although this may not be the most appropriate solution).

Alternatively, if you have a list of kernel modules that are required for booting you can have them installed in any image that uses packagegroup-core- boot by adding them to MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS.

Cheers,
Paul

PS please keep replies CC'd to the mailing list, thanks.

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre