[yocto] No '/lib/modules' directory in image, modprobe fails
Hello, We're trying to load and unload modules using modprobe but are having problems. The command fails with "modprobe: can't change directory to '/lib/modules': no such file or directory". There is actually no /lib/modules directory on the image at all. We tried to install the linux-libc-headers package but it failed and I think the reason is we are using the 3.14 kernel and the package is 3.19. Any help would be appreciated! Thanks, Todd -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] No '/lib/modules' directory in image, modprobe fails
> On Aug 11, 2015, at 5:53 PM, Todd Efflam wrote: > > Hello, > We're trying to load and unload modules using modprobe but are having > problems. The command fails with "modprobe: can't change directory to > '/lib/modules': no such file or directory". There is actually no > /lib/modules directory on the image at all. We tried to install the > linux-libc-headers package but it failed and I think the reason is we are > using the 3.14 kernel and the package is 3.19. Any help would be appreciated! linux-libc-headers is kernel APIs for userland. The modules are generated as individual packages during kernel build. You can choose which modules you want to package default it none. if you want all default modules to be included in image you can add MACHINE_EXTRA_RRECOMMENDS = " kernel-modules” to you machine.conf Otherwise if you know which ones your system needs then you can add it to IMAGE_INSTALL individually. IMAGE_INSTALL += "kernel-module-” signature.asc Description: Message signed with OpenPGP using GPGMail -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] No '/lib/modules' directory in image, modprobe fails
On Tue, Aug 11, 2015 at 6:36 PM, Khem Raj wrote: > > > On Aug 11, 2015, at 5:53 PM, Todd Efflam wrote: > > > > Hello, > > We're trying to load and unload modules using modprobe but are having > problems. The command fails with "modprobe: can't change directory to > '/lib/modules': no such file or directory". There is actually no > /lib/modules directory on the image at all. We tried to install the > linux-libc-headers package but it failed and I think the reason is we are > using the 3.14 kernel and the package is 3.19. Any help would be > appreciated! > > linux-libc-headers is kernel APIs for userland. The modules are generated > as individual packages during kernel build. You can choose which modules > you want to package > default it none. if you want all default modules to be included in image > you can add > > MACHINE_EXTRA_RRECOMMENDS = " kernel-modules” > > to you machine.conf > > Otherwise if you know which ones your system needs then you can add it to > IMAGE_INSTALL individually. > > IMAGE_INSTALL += "kernel-module-” > > > > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > > Thank you this fixed the problem! -Todd -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto