SpaceinvaderOne / Dump_GPU_vBIOS

Script to dump the vbios from any GPU even if primary gpu on an Unraid Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while trying to dump from APU Ryzen 4650g. (line 298: rom: Permission denied)

DrMucki opened this issue · comments

I tried using this script for dumping a VBIOS from my APU AMD Ryzen 5 pro 4650g.
it is the only APU on the System, running Unraid 6.8.3., so there is no additional GPU installed
PCIe ACS override was enabled to get proper IOMMU groups

in the system devices they were separated:

IOMMU group 14: | [1002:1636] 05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev d9)
IOMMU group 15: | [1002:1637] 05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637

As described I used VFIO-PCIConfig to bind the 2 devices to VFIO pci driver and rebooted the system.

The script shows the following error, whether you bind the sound part as well or not.
a 0 Byte file with the correct name is created in mnt/user/isos/vbios/

PS: I added a GPU and successfully dumped the GPU BIOS. But when trying the APU it gives the following error:

Error:

Script location: /tmp/user.scripts/tmpScripts/Dump VBIOS/script
Note that closing this window will abort the execution of this script
You have selected this device to dump the vbios from
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev d9)

This does look like a valid GPU to me. Continuing .........

Checking if location to put vbios file exists
Vbios folder already exists

I will try and dump the vbios without disconnecting and reconnecting the GPU
This normally only works if the GPU is NOT the Primary or the only GPU
I will check the vbios at the end. If it seems wrong I will then retry after disconnecting the GPU

Defining temp vm with gpu attached
Domain dumpvbios defined from /tmp/dumpvbios.xml

Starting the temp vm to allow dump
Domain dumpvbios started

Waiting for a few seconds .....

Stopping the temp vm
Domain dumpvbios destroyed

Removing the temp vm
Domain dumpvbios has been undefined

/tmp/user.scripts/tmpScripts/Dump VBIOS/script: line 298: rom: Permission denied

Okay dumping vbios file named AMD-APU-Ryzen4650G2.rom to the location /mnt/user/isos/vbios/
cat: rom: No such file or directory

Um.... somethings gone wrong and I couldn't dump the vbios for some reason
Sometimes when this happens all we need to do to fix this is 'stub' or 'bind to the vfio' the gpu and reboot the server

This can be done in Unraid 6.8.3 with the use of the vfio config plugin or if you are on Unraid 6.9 or above it can be done
directly from the gui in Tools/System Devices .....So please do this and run the script again

Same error here with 5700G. Guess it's related to all AMD APUs?

Any fix for this issue jet?
Trying to dump an 5600g vBios.

Bump! Same here with my 5600G. Trying to see what I can about permissions in the directory to see if the script needs an adjustment.