diff --git a/README.md b/README.md index 24cb810..856bdcd 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ wget -o virtio-win.iso "https://fedorapeople.org/groups/virt/virtio-win/direct-d 1. Boot the host into Windows. 2. [Download and install GPU-Z](https://www.techpowerup.com/gpuz/). 3. [Download and install a HEX editor](https://github.com/bwrsandman/Bless). - 3. Open GPU-Z and backup the GPU BIOS. Right next to the `Bios Version`; in my case `80.04.C3.00.0F`, there is an icon for backup. A file named `GK104.rom` will be created. [There is also a way of doing it in Linux]() but it did not work for me. + 3. [Open GPU-Z and backup the GPU BIOS](/Screenshots/vBIOS.png). Right next to the `Bios Version`; in my case `80.04.C3.00.0F`, there is an icon for backup. A file named `GK104.rom` will be created. [There is also a way of doing it in Linux]() but it did not work for me. 4. Open the ROM (`GK104.rom`) in the HEX editor. 5. After a bunch of `00` there is a `55` or `U` in HEX, delete everything before the `55`, and save. I strongly recommend not to overwrite the original ROM. diff --git a/Screenshots/vBIOS.png b/Screenshots/vBIOS.png new file mode 100755 index 0000000..d70dcad Binary files /dev/null and b/Screenshots/vBIOS.png differ diff --git a/scripts/iommu.sh b/scripts/iommu.sh new file mode 100644 index 0000000..828288c --- /dev/null +++ b/scripts/iommu.sh @@ -0,0 +1,10 @@ +#!/bin/bash +## Outputs the IOMMU groups and the devices inside them +## Source [https://wiki.installgentoo.com/index.php/PCI_passthrough#Step_2:_Find_out_your_IOMMU_groups] +for iommu_group in \ + $(find /sys/kernel/iommu_groups/ -maxdepth 1 -mindepth 1 -type d); do \ + echo "IOMMU group $(basename "$iommu_group")"; \ + for device in $(ls -1 "$iommu_group"/devices/); do \ + echo -n $'\t'; lspci -nns "$device"; \ + done; \ +done