Le ven. 28 févr. 2025 à 22:56, Ryan Lovelett via lists.yoctoproject.org
<ryan.a.lovelett=saic....@lists.yoctoproject.org> a écrit :

> I'm having trouble getting the linux-intel-rt kernel to compile the
> TUN/TAP device driver support directly into the kernel.
>
> What I've tried...
>
>    1. Ran bitbake -c kernel_configme -f virtual/kernel to generate the
>    base config.
>    2. Manually enabled the Universal TUN/TAP device driver support:bitbake
>    -c menuconfig virtual/kernel
>       - -> Device Drivers
>          - -> Network device support (NETDEVICES [=y])
>             - -> Network core driver support (NET_CORE [=y])
>                - -> Universal TUN/TAP device driver support (TUN [=y])
>             3. Ran bitbake -c diffconfig virtual/kernel, which generated
>    fragment.cfg containing: CONFIG_TUN=y
>    4. Copied this into enable-tap-tun.cfg and added it to
>    linux-intel-rt_%.bbappend:
>
>    FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
>
>    SRC_URI:prepend = " \
>      file://enable-can.cfg \
>      file://enable-tap-tun.cfg \
>    "
>
>
>
> After building when I try to do modprobe tun the module is not found. I
> believe my config fragments are being processed because it seems
> enable-can.cfg is being applied correctly. Is there some kind of
> conflict, precedence issue, or override preventing my TUN/TAP configuration
> from being applied?
>

With CONFIG_TUN=*y*, TUN should be a built-in driver, not a module you can
modprobe (you would have to use CONFIG_TUN=m for that).

Can you check that the TUN driver is not already running? Do you have a
/dev/net/tun device by any chance?


>  Would appreciate any insight.
>
> 
>
>

-- 
Yoann Congal
Smile ECS - Tech expert
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64899): https://lists.yoctoproject.org/g/yocto/message/64899
Mute This Topic: https://lists.yoctoproject.org/mt/111443099/21656
Mute #linux:https://lists.yoctoproject.org/g/yocto/mutehashtag/linux
Mute #kernel:https://lists.yoctoproject.org/g/yocto/mutehashtag/kernel
Mute 
#kernelmodule:https://lists.yoctoproject.org/g/yocto/mutehashtag/kernelmodule
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to