I am trying to compile uboot so it looks for env vars on the sd card. I can get it to compile and load on a le potato SBC but if I place a filesystem on the card afterward, it breaks uboot. If I put it on before uboot, uboot breaks it. I have already tried shifting the beginning of the first partition later on the sd card but it just keeps happening. GPT vs MBR doesn’t seem to matter either.

What am I doing wrong? I can’t seem to find this last piece of the puzzle anywhere. They seem like they are at least partially overwriting eachother but I haven’t been able to stop that from happening.