Skip to contentSkip to conversation

How to install the in-tree modules into the rootfs.

DISCUSSION Biao 2 participants 3 messages Mar 25, 2013

lore
Share & tools
lore

Biao

author
#0 lore raw

Hi all,

step 1. Configure the kernel with some modules as "M".
step 2. Build the kernel.
step 3. After the building, there is a modules-*.tgz in the deploy/images directory.
My question is how to install it to the target rootfs. I assume it is "bitbake -f -c populate_sysroot core-image-minimal-dev', but i was wrong.

Thanks,
Biao

#1 lore raw
Quoted 6 lines · On Monday 25 March 2013 18:40:04 Biao wrote:

step 1. Configure the kernel with some modules as "M".
step 2. Build the kernel.
step 3. After the building, there is a modules-*.tgz in the deploy/images directory. My question is how to install it to the target rootfs. I assume it is "bitbake -f -c populate_sysroot core-image-minimal-dev', but i was wrong.

Each module ends up as a separate package (kernel-module-modulename); there is also a kernel-modules package which installs all of them. In either case you need to add those packages to the image. For information on how to do that, see:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#usingpoky-extend-customimage

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
author
#2 lore raw
Quoted 8 lines · At 2013-03-25 18:47:54,"Paul Eggleton" <[email protected]> wrote:
Quoted 6 lines · On Monday 25 March 2013 18:40:04 Biao wrote:

step 1. Configure the kernel with some modules as "M".
step 2. Build the kernel.
step 3. After the building, there is a modules-*.tgz in the deploy/images directory. My question is how to install it to the target rootfs. I assume it is "bitbake -f -c populate_sysroot core-image-minimal-dev', but i was wrong.

Quoted 6 lines

Each module ends up as a separate package (kernel-module-modulename); there is also a kernel-modules package which installs all of them. In either case you need to add those packages to the image. For information on how to do that, see:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#usingpoky-extend-customimage

Paul,
Thanks a lot for your help.

Quoted 8 lines

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre