<div dir="ltr"><div>The thing is I don&#39;t know how to pick specific kernel modules and add it to the system.  Me and my coworker were able to add missing TUN/TAP kernel modules using the same process I described (i.e. pulling up the GUI, saving a .config file for TUN/TAP device driver support, and copying the .config file&#39;s content into the kernel configuration file).  And that worked and the TUN module was added.  So I was just trying the same thing as that but for KVM.  I assumed that picking the right option in the GUI and using the right .config file from there would build the right specific kernel modules into the kernel.<br></div><div><br></div><div>I mean is there another way to specify specific kernel modules I want built into the system?  What do you mean by the generic meta package &quot;kernel-modules&quot;.  Just so you know, my coworker was the one who did most of the work building the Yocto kernel.  But he&#39;s left the company so now I&#39;m picking up the pieces.</div><div><br></div><div>-Thanks!, Wayne Li<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 6, 2019 at 10:40 AM Bruce Ashfield &lt;<a href="mailto:bruce.ashfield@gmail.com">bruce.ashfield@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Nov 6, 2019 at 11:30 AM Wayne Li &lt;<a href="mailto:waynli329@gmail.com" target="_blank">waynli329@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Dear Yocto Developers,<br>
&gt;<br>
&gt; I&#39;m trying to get KVM added and working on a Yocto kernel I built up for a T4240 RDB (has a PowerPC CPU).  KVM isn&#39;t working and the reason why it isn&#39;t working seems to be I&#39;m missing the necessary kernel modules.  More specifically, I don&#39;t seem to have a kvm.ko file that I can load.  Here&#39;s how I attempted to add KVM to the kernel.<br>
&gt;<br>
&gt; I went to the SDK install folder and ran &quot;. fsl-setup-env -m t4240rdb-64b&quot; and then &quot;bitbake virtual/kernel -c menuconfig&quot;.  After the GUI comes up, I went to Virtualization -&gt; KVM support for PowerPC E500MC/E5500/E6500 processors and hit &quot;Save&quot; to save the configuration.  I then went and copied the content of the .config file created by this into the kernel configuration file specified by the following path; &quot;build_t4240rdb-64b/virt1.config&quot;.  This path was specified by the variable KERNEL_DEFCONFIG in sources/meta_freescale/conf/machine/t4240rdb-64b.conf.  Here&#39;s what I currently have in the kernel configuration file (i.e. the virt1.config file I mentioned above):<br>
&gt;<br>
&gt; <a href="https://gist.github.com/WayneZhenLi/4172cd4a819b71a11b85fc5aaa57ebd1" rel="noreferrer" target="_blank">https://gist.github.com/WayneZhenLi/4172cd4a819b71a11b85fc5aaa57ebd1</a><br>
&gt;<br>
&gt; After this, I built the kernel by running &quot;bitbake -c compile -f virtual/kernel&quot; and rebuilt the full linux image.  I re-added everything to the SD card and booted up the T4240 RDB with the newly modified Yocto kernel.  At this point if I run lsmod, only the following two kernel modules show up:<br>
&gt;<br>
&gt; Module                  Size  Used by<br>
&gt; nfsd                  100940  11<br>
&gt; exportfs                6723  1 nfsd<br>
&gt;<br>
&gt; But if I do a &quot;find . -name &quot;kvm&quot;&quot; I get the following:<br>
&gt;<br>
&gt; ./usr/src/kernel/Documentation/virtual/kvm<br>
&gt; ./usr/src/kernel/arch/arm/kvm<br>
&gt; ./usr/src/kernel/arch/arm64/kvm<br>
&gt; ./usr/src/kernel/arch/mips/kvm<br>
&gt; ./usr/src/kernel/arch/powerpc/kvm<br>
&gt; ./usr/src/kernel/arch/s390/kvm<br>
&gt; ./usr/src/kernel/arch/tile/kvm<br>
&gt; ./usr/src/kernel/arch/x86/kvm<br>
&gt; ./usr/src/kernel/drivers/s390/kvm<br>
&gt; ./usr/src/kernel/include/config/kvm<br>
&gt; ./usr/src/kernel/include/config/have/kvm<br>
&gt; ./usr/src/kernel/include/kvm<br>
&gt; ./usr/src/kernel/virt/kvm<br>
&gt; ./dev/kvm<br>
&gt; ./sys/devices/virtual/misc/kvm<br>
&gt; ./sys/class/misc/kvm<br>
&gt; ./sys/kernel/debug/kvm<br>
&gt; ./sys/module/kvm<br>
&gt;<br>
&gt; So it does look like kvm-related files were added to the Yocto kernel because of the changes I made to the kernel configuration file.  But there is no kvm.ko (or any .ko file related to kvm) anywhere in the file system.<br>
<br>
Is the image you are building installing the specific kernel modules<br>
you need, or the generic meta package &quot;kernel-modules&quot; ? Without<br>
something like that, you can build the support, but the modules won&#39;t<br>
be present on the image.<br>
<br>
Bruce<br>
<br>
&gt;<br>
&gt; Is there something I&#39;m doing wrong here?  Am I missing important lines in my kernel configuration file?  Let me know your thoughts.<br>
&gt;<br>
&gt; -Thanks!, Wayne Li<br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; yocto mailing list<br>
&gt; <a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
&gt; <a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
<br>
<br>
<br>
-- <br>
- Thou shalt not follow the NULL pointer, for chaos and madness await<br>
thee at its end<br>
- &quot;Use the force Harry&quot; - Gandalf, Star Trek II<br>
</blockquote></div>