[yocto] Install Kernel Modules in rootfs

Raul Rosetto Munoz munoz0raul at gmail.com
Thu Oct 3 08:37:05 PDT 2013


Bruce, I don't know if i did the correct thing but works.

I found in my tmp some thing about kernel 3.8 fslc and I deleted it.



/tmp$ find . -name "*3.8*" | grep fslc
./stamps/imx28evk-poky-linux-gnueabi/linux-fslc/3.8+gitAUTOINC+72053409242244eaa59497e665945ddeea69c397-r5.do_cleansstate.sigdata.fff4fea9e1722790f7eb22d5d464b82a
./stamps/imx28evk-poky-linux-gnueabi/linux-fslc/3.8+gitAUTOINC+72053409242244eaa59497e665945ddeea69c397-r5.do_cleansstate.fff4fea9e1722790f7eb22d5d464b82a
./work/imx28evk-poky-linux-gnueabi/linux-fslc/3.8+gitAUTOINC+72053409242244eaa59497e665945ddeea69c397-r5
./work/imx28evk-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/lib/modules/3.8.13-fslc+g7205340
./work/imx28evk-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/boot/uImage-3.8.13-fslc+g7205340
./work/imx28evk-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/rpm-postinsts/kernel-image-3.8.13-fslc+g7205340
./buildstats/virtual/kernel-imx28evk/201310011528/linux-fslc-3.8+gitAUTOINC+72053409242244eaa59497e665945ddeea69c397-r5


After that I returned my prefered kernel version for 3.8, and did a bitbake
cleanall virtual/kernel.

And change again my kernel version for default 2.6.35 and works perfect.

Thanks For all help, did you help me a lot!



On Thu, Oct 3, 2013 at 11:22 AM, Bruce Ashfield <
bruce.ashfield at windriver.com> wrote:

> 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@**windriver.com<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@**windriver.com<bruce.ashfield at windriver.com>
>> >
>>         <mailto:bruce.ashfield at __windr**iver.com <http://windriver.com>
>>         <mailto:bruce.ashfield@**windriver.com<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<https://lists.yoctoproject.org/listinfo/yocto>
>> >>
>>
>>
>>
>>
>>
>>         --
>>         *Raul Rosetto Muñoz*
>>
>>
>>
>>
>>
>> --
>> *Raul Rosetto Muñoz*
>>
>
>


-- 
*Raul Rosetto Muñoz*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131003/065ce923/attachment.html>


More information about the yocto mailing list