I’ve recompiled the kernel on ubuntu (20.04,installed following this tutorial :
of my Jetson nano because I wanted to enable kvm. I’ve found this tutorial and I’ve completed until the end :
and I’ve enabled kvm with kernel 4.9.201-tegra,but when I try to virtualize something,like freebsd using virt-manager I get the following error :
Can’t complete installation ‘internal error: process exited while connecting to monitor: qemu-system-aarch64: Initialization of device arm_gic failed: KVM with user space irqchip only works when the host kernel supports KVM_CAP_ARM_USER_IRQ’
how to fix it ?
I’m using qemu version 4.2.1. Should I upgrade it ?
thanks. I did that on the past just right here. I’d forgot how,but now I have remembered. It’s something like this :
git clone https://github.com/OE4T/linux-tegra-4.9.git
cd linux-tegra-4.9
git checkout oe4t-patches-l4t-r32.5
cp /proc/config.gz .
gunzip config.gz
mv config .config
make menuconfig —> (enable kvm)
make -j4
make -j4 modules_install
make -j4 Image
mv /boot/Image Image-kvm-old
cp arch/arm64/boot/Image /boot/Image
reboot
the dtb file to use is called : tegra210-p3448-0000-p3449-0000-a02.dtb and the extlinux.conf is something like this :
TIMEOUT 30
DEFAULT primary
MENU TITLE L4T boot options
LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image-kvm
INITRD /boot/initrd
FDT /boot/tegra210-p3448-0000-p3449-0000-a02.dtb
APPEND ${cbootargs} quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0