Hi
After setting up my Proxmox server I was trying now to install the driver for a PCIe DVB-S2 card (TBS6909 to be more precise).
The idea is to use this card in a VM using PCI passthrough but from what I saw I need to install the driver in the Proxmox Host machine first, right?
This was already tried with similar HW as you can check here: https://www.tbsdtv.com/forum/viewtopic.php?f=176&t=25087
Some info about my system:
The installation process of the TBS6909 driver is described here: https://github.com/tbsdtv/linux_media/wiki and is composed by the following steps:
But when I do the 'make -j4' I get the error "You are building kernel with non-retpoline compiler, please update your compiler":
As far as I understand "retpoline" is a security measure against "branch target injection" (due to Spectre security vulnerability) implemented in newer kernels and to avoid this error I need to use a more recent gcc compiler, since the one that comes with pve is just version 6:
How can I install gcc version 7 or even 8 in pve?
Have you any other alternative to install the driver?
Regards
PS - A workaround that I tried without success was to disable the "retpoline" security measures editing the following line in the /etc/default/grub file:
But after a reboot the security measure seems to be always active:
After setting up my Proxmox server I was trying now to install the driver for a PCIe DVB-S2 card (TBS6909 to be more precise).
The idea is to use this card in a VM using PCI passthrough but from what I saw I need to install the driver in the Proxmox Host machine first, right?
This was already tried with similar HW as you can check here: https://www.tbsdtv.com/forum/viewtopic.php?f=176&t=25087
Some info about my system:
Code:
CPU: Ryzen 7 1700
Motherboard: GIGABYTE AX370-GAMING K7
proxmox-ve: 5.4-1 (running kernel: 4.15.18-14-pve)
The installation process of the TBS6909 driver is described here: https://github.com/tbsdtv/linux_media/wiki and is composed by the following steps:
Code:
git clone https://github.com/tbsdtv/media_build.git
git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
cd media_build
make dir DIR=../media
make allyesconfig
make -j4
sudo make install
sudo reboot
But when I do the 'make -j4' I get the error "You are building kernel with non-retpoline compiler, please update your compiler":
Code:
root@pve:~/media_build# make -j4
make -C /root/media_build/v4l
make[1]: Entering directory '/root/media_build/v4l'
make -C firmware prep
creating symbolic links...
make[2]: Entering directory '/root/media_build/v4l/firmware'
make[2]: Nothing to be done for 'prep'.
make[2]: Leaving directory '/root/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory '/root/media_build/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/root/media_build/v4l/firmware'
Kernel build directory is /lib/modules/4.15.18-14-pve/build
make -C ../linux apply_patches
make[2]: Entering directory '/root/media_build/linux'
Syncing with dir ../../media
Patches for 4.15.18-14-pve already applied.
make[2]: Leaving directory '/root/media_build/linux'
make -C /lib/modules/4.15.18-14-pve/build SUBDIRS=/root/media_build/v4l modules
make[2]: Entering directory '/usr/src/linux-headers-4.15.18-14-pve'
arch/x86/Makefile:245: *** You are building kernel with non-retpoline compiler, please update your compiler.. Stop.
make[2]: Leaving directory '/usr/src/linux-headers-4.15.18-14-pve'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/root/media_build/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
As far as I understand "retpoline" is a security measure against "branch target injection" (due to Spectre security vulnerability) implemented in newer kernels and to avoid this error I need to use a more recent gcc compiler, since the one that comes with pve is just version 6:
Code:
root@pve:~/media_build# gcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
How can I install gcc version 7 or even 8 in pve?
Have you any other alternative to install the driver?
Regards
PS - A workaround that I tried without success was to disable the "retpoline" security measures editing the following line in the /etc/default/grub file:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet spectre_v2=off"
Code:
root@pve:~/media_build# dmesg | grep 'retpoline'
[ 0.047118] Spectre V2 : Mitigation: Full AMD retpoline
Last edited: