Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DrMucki opened this issue Jan 4, 2021 · 4 comments

Comments

@DrMucki
Copy link

DrMucki commented Jan 4, 2021

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

@q3bing
Copy link

q3bing commented Aug 19, 2021

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

@hitme666
Copy link

hitme666 commented Oct 5, 2021

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

@everydaycombat
Copy link

everydaycombat commented Jan 30, 2023

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.

@csuno
Copy link

csuno commented Oct 11, 2024

still not fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants