diff options
author | Manish Pandey <manish.pandey2@arm.com> | 2019-07-18 14:22:56 +0100 |
---|---|---|
committer | sudipto paul <sudipto.paul@arm.com> | 2019-07-22 12:31:40 +0100 |
commit | 7baa147f09d1f4db5690e3c3034a816bf1b1f939 (patch) | |
tree | d006c5d5a0edbbecc1a1429d00a585af71adb5fd | |
parent | 2faa4409da4703946f52cd4fc1e3351e5ba5dce9 (diff) |
n1sdp: load and initialize vfio node for CCIX testing.N1SDP-ALPHA2-CCIX-19.07
Ubuntu 18.04 does not loads vfio kernel module which is required for
testing of CCIX module, this patch adds changes to first boot init
script required for loading vfio kernel module.
Change-Id: If2298aaa13260bb02cf7e585060890be8b9a6095
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
-rw-r--r-- | platforms/n1sdp/ubuntu/init | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/platforms/n1sdp/ubuntu/init b/platforms/n1sdp/ubuntu/init index 96ca8a5..022d92e 100644 --- a/platforms/n1sdp/ubuntu/init +++ b/platforms/n1sdp/ubuntu/init @@ -22,7 +22,7 @@ mkdir /boot/efi mount /boot/efi grub-install [ -e /linux-image-n1sdp.deb ] && dpkg -i /linux-image-n1sdp.deb -sed -ie 's/^GRUB_TIMEOUT_STYLE=.*$/GRUB_TIMEOUT_STYLE=menu/; s/^GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=2/; s/GRUB_CMDLINE_LINUX_DEFAULT=.*$/GRUB_CMDLINE_LINUX_DEFAULT="earlycon"/' /etc/default/grub +sed -ie 's/^GRUB_TIMEOUT_STYLE=.*$/GRUB_TIMEOUT_STYLE=menu/; s/^GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=2/; s/GRUB_CMDLINE_LINUX_DEFAULT=.*$/GRUB_CMDLINE_LINUX_DEFAULT="earlycon vfio-pci.ids=10ee:9038"/' /etc/default/grub update-grub sync # change root password @@ -31,5 +31,19 @@ echo "root:root" | chpasswd adduser ubuntu --gecos "ubuntu" --disabled-password echo "ubuntu:ubuntu" | chpasswd usermod -aG sudo ubuntu +cat <<EOF >/etc/modprobe.d/vfio.conf +# cat /etc/modprobe.d/vfio.conf +options vfio-pci ids=10ee:9038 +softdep radeon pre: vfio-pci +softdep amdgpu pre: vfio-pci +softdep nouveau pre: vfio-pci +softdep drm pre: vfio-pci +options kvm_amd avic=1 +EOF +update-initramfs -u +cat <<EOF >/etc/modules-load.d/vfio-pci.conf +# cat /etc/modules-load.d/vfio-pci.conf +vfio-pci +EOF sync bash |