<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div class="post-text" itemprop="text">
<p>Hi there,</p>
<p><br>
</p>
<p>I'm using Yocto (morty) to build a custom linux image for a Zedboard. I need  the image to run openVPN, which requires access to the TUN/TAP virtual network interface. I successfully incorporated openVPN and all its dependencies into my image using the meta-networking
 layer, but it appears that the necessary TUN/TAP kernel drivers are not present in the image.</p>
<p><br>
</p>
<p><strong>How can I ensure that the TUN/TAP kernel drivers are included in my image?</strong></p>
<p><strong><br>
</strong></p>
<p>I have the following two lines in my conf/local.conf file: <br>
</p>
<p><code>IMAGE_INSTALL_append = " kernel-modules" <br>
</code></p>
<p><code>CORE_IMAGE_EXTRA_INSTALL += "openssl openvpn docker tunctl <br>
</code></p>
<p><code><br>
</code></p>
<p>I don't know how I could include them in my image. I tried adding <code>kernel-module-tun</code> to my
<code>IMAGE_INSTALL_append</code> as mentioned here (<a href="https://lists.yoctoproject.org/pipermail/yocto/2014-September/021698.html" class="OWAAutoLink" id="LPlnk927257" previewremoved="true">https://lists.yoctoproject.org/pipermail/yocto/2014-September/021698.html</a>)<a href="https://lists.yoctoproject.org/pipermail/yocto/2014-September/021698.html" rel="nofollow noreferrer"></a>,
 but it does not appear this is a valid package provided by any of my layers. Maybe I am doing this part incorrectly?</p>
<p><br>
</p>
<p>I also tried using bitbake -c menuconfig virtual/kernel to manual include the modules in the image, however after doing this and rerunning
<span style="font-family: "Courier New",monospace;">bitbake core-image-minimal</span> I still did not see tun.ko appear in either of the two locations below that I would expect them to be installed to:<code><br>
</code></p>
<p><code>${BUILDDIR}/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/lib/modules/4.6.0-xilinx-v2016.3/kernel/net/
</code></p>
<p>or</p>
<code>${BUILDDIR}/tmp/work/zedboard_zynq7-poky-linux-gnueabi/linux-xlnx/4.6-xilinx-v2016.3+gitAUTOINC+0e4e407149-r0/image/lib/modules/4.6.0-xilinx-v2016.3/kernel/net<br>
<br>
</code>I should note that I'm using the meta-xilinx and meta-xilinx-tools layers in addition to a few custom layers of my own. None of these should affect this problem, AFAIK.<br>
<br>
Any help appreciated, thanks!<code></code> </div>
- Brett<br>
<p></p>
</div>
</body>
</html>