- change the OpenCore and add the CAIL lines or just add the boot-args as described in the very same M5100 post
- enable the OpenCore boot picker (if disabled)
- revert root patches for you old GPU!!!
- power down the system
- replace the GPU, leave SSD/HDD disconnected
- power up and flash the AMD card using the GRML Linux utility, you can use ssh from a iPad/iPhone/PC whatever to access the iMac (the card will not enable an internal or external display before you flashed it). So you need this remote access solution!
- reconnect the SSD and install the LCD panel, fix it with one screw
- cross all fingers, do not press alt/option, it will not work with AMD cards. Just wait until system starts
- download OCLP latest and run to generate a new OpenCore config and write it to disk
- reboot and test
- power down (and pull the wall plug!!) and fix all screws and the glas
Pull the wall plug before opening and simply to not touch the power supply! And pull the wall plug, and pull it again! Put the cable into another room so you cannot connect it accidentally.
Do not make us the service organization of your seller, if the GPU is dead or malfunctioning discuss it please with the guy who got your money.
P.S. You could have got the same plan just by reading the docs in the first post. I cannot understand why this is so difficult?
P.P.S: The M5100 will
likely break sleep/wake but will
not cause NVRAM corruption. The M4000 has no such limitations and may be the cheapest option as long as you get a card with a BIOS chip.