So, here’s the story. The photo shows the old 4GB eMMC chip, which had worn out.
What I did:
I used Claude the whole way through (I have a Pro subscription), and it explained a lot of things to me along the way.
With its help, I backed up the old 4GB chip over UART. I booted into some kind of recovery shell (I don’t remember which one anymore, but it wasn't uart uboot shell), and from there I managed to dump the memory. Only partition p6 was damaged, and that one just held user data, so nothing really important(from at least what i knew, but remember to back as much as possible) I saved the backup to a USB stick I had plugged in, then desoldered the old chip.
I also booted an OpenWrt build (the one made by wulfy23) from the USB stick and used the router on that for a while.
After I soldered in the new chip, U-Boot wouldn’t get any further. It hung at some point, and I couldn’t even break in with Ctrl+C. It turned out the new chip had seated crooked, so I had to desolder it, reball it, and solder it back on. After that, it booted past that point.
From OpenWrt, over SSH, I flashed the memory backup onto the new chip and rebooted the router. I still had to do a factory reset, though. After that, the router booted up and worked.
The chip I soldered in is a Micron 8GB. Even though it’s bigger, it works fine now. I didn’t resize the partitions and left everything as it was.