isc30 / ryzen-7000-series-proxmox

Get the Ryzen 7000 series processors with AMD Radeon 680M/780M integrated graphics or RDNA2/RDNA3 GPUs running with Proxmox, GPU passthrough and UEFI included.
220 stars 28 forks source link

cannot create vbios binary files #44

Closed supernova4420 closed 3 weeks ago

supernova4420 commented 1 month ago

cpu: AMD Ryzen 5 5700G

I have successfully confirmed using 'lspci -nnk' that the 'Kernel driver in Use' for my GPU is 'vfio-pci'.

But cannot create vbios binary files. When I run 'gcc vbios.c -o vbios' (after pasting the correct contents in the vbios.c file), the contents of the output vbios file is:

^?ELF^B^A^A^@^@^@^@^@^@^@^@^@^C^@>^@^A^@^@^@�^P^@^@^@^@^@^@@^@^@^@^@^@^@^@x8^@^@^@^@^@^@^@^@^@^@@^@8^@ ^@@^@^^@^^^@^F^@^@^@^D^@^@^@@^@^@^@^@^@^@^@@^@^@^@^@^@^@^@@^@^@^@^@^@^@^@�^B^@^@^@^@^@^@�^B^@^@^@^@^@^@^H^@^@^@^@^@^@^@^C^@^@^@^D^@^@^@^X^C^@^@^@^@^@^@^X^C^@^@>^@^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@c^@^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@M^@^@^@"^@^@^@^@^@^@^>^@^@^@^@^@^@^@^@^@^@^@8@^@^@^@^@^@^@^G^@^@^@^K^@^@^@^@^@^@^@^@^@^@^@@@^@^@^@^@^@^@^G^@^@^@^L^@^@^@^@^@^@^@^@^@^@^@H@^@^@^@^@^@^@^G^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@>/^@^@f�^@^@^@^@^@^@^@^@1�I��^H��H���PTE1�1�H�=�^@^@^@�^U�.^@^@�f.^O^�^@^@^@^@^@^O^@^@H�=I/^@^@H�^EB/^@^@H9�t^UH�^E�.^@^@H��t ��^O^�^@^@^@^@�^O^�^@^@^@^@H�=>� ^@^@H��H�Ǹ^@^@^@^@�����������2^B^@^@H�E؋@4�E�H�E؋@^D�EԋU�H�E�H��H�������H�E�H�}�^@u^\H������H�^@H��������������^A^@^@�E�H�X��E�H�P�H�E�H�xLH�E�H���^A^@^@^@�^T��>^ ^@^@H��H�Ǹ^@^@^@^@�'����������^A^@^@H�E�H��������b^A^@^@�U�H�E�H^A�H�E�H�E�H�E�H�E��@^X��^O�K^A^@^@H�E�^O�@^N^O��H�E�^O�@^L^O��H������A�ȉ�H�^U�^L^@^@�^@^D^@^@H�>^@^@^@^@^@^@^@^@%s: failed to read VFCT body! ^@vbios%x%x.bin^@wb^@^@^@^@^@^@^@%s: failed to dump vbios %x:%x ^@dump vbios %x:%x to %s ^@^A^[^C;,^@^@^@^D^@^@^@X���x^@^@^@^H����^@^@^@^X���H^@^@^@^A����^@^@^@^@^@^@^@^T^@^@^@^@^@^@^@^AzR^@^Ax^P^A^[^L^G^H�^A^G^P^T^@^@^@^\^@^@^@����"^@^@^@^@^@^@^@^@>^FH�^C^C ^C^L^G^H^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@>^@^@^@^@^@^@^@�^T^@^@^@^@^@^@^Y^@^@^@^@^@^@^@�=^@^@^@^@^@^@^[^@^@^@^@^@^@^@^H^@^@^@^@^@^@^@^Z^@^@^@^@^@^@^@�=^@^@^@^@^@^@^\^@^@^@^@^@^@^@^H^@^@^@^@^@^@^@���o^@^>^@^@^@^@^@^@^@�^@^@^@^@^@^@^@^K^@^@^@^@^@^@^@^X^@^@^@^@^@^@^@^U^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@�?^@^@^@^@^@^@^B^@^@^@^@^@^@^@�^@^@^@^@^@^@^@^T^@^@>^B^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^]^B^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@0^B^@^@^Q^B^Y^@`@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<^B^@^@ ^@^@^@^@^@^@^>

Can see a 'failed to read VFCT body' and 'failed to dump vbios' errors.

Any help would be appreciated.

mntyfrsh commented 1 month ago

You have to run the vbios file that is created after compiling the binary to extact the vbios. The command to run the binary is: ./vbios

Why not use the 5700U vbios that is in the repo? The 5700U is a low power version of the 5700G.

supernova4420 commented 3 weeks ago

That worked! However I was not aware that the AMD reset but existed on linux too. Does the fix linked in the readme work for linux as well as windows?

mntyfrsh commented 3 weeks ago

That worked! However I was not aware that the AMD reset but existed on linux too. Does the fix linked in the readme work for linux as well as windows?

Supposedly fixed by Linux kernel v5.9. Otherwise use https://github.com/gnif/vendor-reset.

Admin - Please close this issue as the discussed content is going off the rails and has nothing to do with the topic the issue was opened regarding.