A friend of mine accidentally used dd to flash the latest firmware files, which did not fit, when we tried again with flashcp it said they were too big. When we use flashcp to flash the firmware for 2023-02 and try to boot the 2023-02 image it does not boot. It does not boot with the switches in the default configuration or the SDIO configuration. However, sdcard.img still boots, so we can still potentially recover.
Did we accidentally overwrite something important and wreck the board by using dd? Did it overwrite part of /dev/mtd2 aka data? Is there any way we can recover from this? Where can we find the bits that are supposed to be in /dev/mtd2?
I shamelessly stole these instructions from @Michael.Zhu changed is the sdcard.img (from VF2_v2.5.0) to be the very latest revision (at the time of writing VF2_v2.11.5) and added a little bit more detail:
flash the very latest sdcard.img (~800MB) into tf card;
In my mind you should be able to do the above using a Debian image, but for various reasons you can not. Maybe it will be fixed in some future release. Oh and instead of needing to download/transfer the first two bootloaders from the internet, when there is a perfectly valid local copy sitting on the SD card (the first 2 partitions), maybe they could just be copied from the working SD card (you did just boot using them), have their checksums/hashes validated, and written to the onboard flash.