[yocto] Install Kernel Modules in rootfs

Bruce Ashfield bruce.ashfield at windriver.com
Thu Oct 3 07:22:12 PDT 2013


On 13-10-03 10:09 AM, Raul Rosetto Munoz wrote:
> Look all the time the modules of kernel 3.8 come.
>
> My /lib/modules is like this:

That's where ? In your booted target ? What BSP are you using, how did
you install the image ?

Answering that question, will likely get you your answer. If you previously
generated a rootfs and installed it. You'd need to do the same thing
and do it with a clean install with the new kernel to remove all
remnants of the old package.

(That's assuming you aren't using package management on the target,
or package feeds. I don't, so manually look after this sort of thing).

Cheers,

Bruce

>
> /lib/modules$ ll
> total 16
> drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ./
> drwxr-xr-x 7 raul raul 4096 Oct  3 10:09 ../
> drwxr-xr-x 2 raul raul 4096 Oct  3 10:09 2.6.35.3-1.1.0+yocto+g914558e/
> drwxr-xr-x 3 raul raul 4096 Oct  1 15:45 3.8.13-fslc+g7205340/
>
>
> /lib/modules$ ll 2.6.35.3-1.1.0+yocto+g914558e/
> total 36
> drwxr-xr-x 2 raul raul 4096 Oct  3 10:09 ./
> drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ../
> -rw-r--r-- 1 raul raul   45 Oct  3 10:09 modules.alias
> -rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.alias.bin
> -rw-r--r-- 1 raul raul    0 Oct  3 10:09 modules.builtin.bin
> -rw-r--r-- 1 raul raul    0 Oct  3 10:09 modules.dep
> -rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.dep.bin
> -rw-r--r-- 1 raul raul   52 Oct  3 10:09 modules.devname
> -rw-r--r-- 1 raul raul  131 Oct  3 10:09 modules.softdep
> -rw-r--r-- 1 raul raul   49 Oct  3 10:09 modules.symbols
> -rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.symbols.bin
>
> /lib/modules$ ll 3.8.13-fslc+g7205340/
> total 24
> drwxr-xr-x 3 raul raul 4096 Oct  1 15:45 ./
> drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ../
> drwxr-xr-x 6 raul raul 4096 Oct  1 15:45 kernel/
> -rw-r--r-- 1 raul raul 5153 Oct  1 15:45 modules.builtin
> -rw-r--r-- 1 raul raul  391 Oct  1 15:45 modules.order
>
> I have no idea how to remove the remains of the kernel 3.8.
>
> I dont want to delete all the /tmp
>
> =/
>
> Take so much time.
>
>
>
>
>
>
>
>
> On Thu, Oct 3, 2013 at 10:58 AM, Bruce Ashfield
> <bruce.ashfield at windriver.com <mailto:bruce.ashfield at windriver.com>> wrote:
>
>     On 13-10-03 09 <tel:13-10-03%2009>:32 AM, Raul Rosetto Munoz wrote:
>
>         I think that I found my problem,
>
>         I tryed to use the kernel 3.8 before in this build system, but I
>         decided
>         to go back to the 2.6.35.3.
>
>         But now I did bitbake -c cleanall virtual/kernel, I tryed to delete
>         every thing about kernel 3.8 but the modules that are instaled in my
>         /lib/modules/ still be the modules of kernel 3.8.
>
>         How I clean the modules and force to use no 2.6.35.3 again.
>
>         Which package or command do that?
>
>
>     If you reconstruct your image, the old module package shouldn't be
>     re-used, since you would now have a dependency on the 2.6.35.x kernel.
>
>     How exactly are they installed in /lib/modules ? Did you do anything
>     in particular ?
>
>     Bruce
>
>
>         Thanks for all Help.
>
>
>         On Thu, Oct 3, 2013 at 9:38 AM, Bruce Ashfield
>         <bruce.ashfield at windriver.com
>         <mailto:bruce.ashfield at windriver.com>
>         <mailto:bruce.ashfield at __windriver.com
>         <mailto:bruce.ashfield at windriver.com>>> wrote:
>
>
>              On 13-10-03 08 <tel:13-10-03%2008> <tel:13-10-03%2008>:34
>         AM, Raul Rosetto Munoz wrote:
>
>                  Hello All,
>
>                  I'm Trying to install the kernel modules inside my
>         rootfs but I
>                  couldn't
>                  find an especific information that help me to do that!
>
>                  I have in my /tmp/images/ the tgz with all the modules
>         that I need.
>
>                  modules--2.6.35.3-r32.23-____imx28evk-20131002210958.tgz
>
>
>                  I just want that this tzg was extracted inside my rootfs
>                  /lib/modules.
>
>                  Please some one can help me with this?
>
>
>              Does your image type have a RDEPENDS on "kernel-modules",
>         or do you
>              have IMAGE_INSTALL_append = " kernel-modules", in your
>         local.conf ?
>
>              If you do either of the above, the entire set of built
>         modules will
>              be installed.
>
>              You can also install / require individual modules via
>              kernel-module-<module name>.
>
>              The Yocto docs should have details on this as well.
>
>              Cheers,
>
>              Bruce
>
>
>                  Thanks so much.
>
>                  --
>                  *Raul Rosetto Muñoz*
>
>
>                  ___________________________________________________
>                  yocto mailing list
>         yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>
>         <mailto:yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>__>
>         https://lists.yoctoproject.____org/listinfo/yocto
>
>                  <https://lists.yoctoproject.__org/listinfo/yocto
>         <https://lists.yoctoproject.org/listinfo/yocto>>
>
>
>
>
>
>         --
>         *Raul Rosetto Muñoz*
>
>
>
>
>
> --
> *Raul Rosetto Muñoz*




More information about the yocto mailing list