Chromebook only able to boot ChromeOS recovery

i recently restored the acer chromebook 315 (magma cb315-4h) using a ch341a because i did something i really should not have done without having the ch341a already (testing other coreboot payloads)
but now i tried messing around with it and after that i flashed the stock firmware back but now i get: TPM state v=1 failed tries=0 max_tries=200
even after restoring using chromeos usb and it also says succesfull
and after flashing the mrchromebox coreboot edk2 rom i was able to download it’s still just a black/gray screen without anything happening

WHAT did you flash? your own stock backup? shellball? random downloaded image?

HOW did you flash it? exact command line

what happens when you attempt to boot the device?

1: I flashed one of my stock firmware backups i made with your script (i have made 2 because i like to just start from scratch sometimes)

2: i flashed it with flashprog because flashrom refused to work the command was: sudo flashprog -p ch341a_spi -w stock-firmware-MAGMA-20240823.rom --ifd -i bios

3: black/gray screen so basically nothing the only thing i can do on the chromebook is use chromeos recovery which does say it’s succesfull after restoring but changes nothing after removing the drive when it’s done and also says it’s succesfull and that i should remove the usb

that seems sane to me. And flashing the UEFI firmware doesn’t boot either?

are you sure you only flashed the BIOS region?

i think so. kinda hard to remember what i did then tho

hard to tell you how to recover without knowing the state of the device.

try flashing the entire MrChromebox UEFI ROM and see if that boots - it contains the IFD and ME, unlike the stock backup

it still gives a screen with nothing on it but this time it reminds me of just the light from the display when you turn it on and it does not display the coreboot logo yet
also this time i actually flashed the whole chip with the full uefi ROM (i may have not read the guide correctly before idk)

Update: i still had an rom that i had build from source and changed smbios names on and i also booted it before succesfully and it booted then i erased everything on the emmc just because it felt like a good thing to do right now just in case then i flashed my stock firmware backup to the bios region using flashrom downloaded from the mrchromebox site then i exit developer mode (which kinda failed but it’s probably ok i guess because after the next part it did not pop up anymore) then i restored the stock os with a usb and it booted to chromeos :smile: