FYI, when you change the “
Image” file you are at high risk of failure. If the
Image was not compiled with the correct options, then you can expect failure. If the “
Image” is compiled without a correct “
CONFIG_LOCALVERSION”, then even if everything else was a match, 100% of kernel modules will fail to load (the kernel won’t be able to find them). It is a very bad idea to change the device tree at the same time as changing your kernel
Image, as any incorrect argument can cause parts of the hardware to not be found.
If you need to save your work, then you could clone, edit to fix the changes in the clone, and then flash again using the clone instead of a newly generated rootfs. Otherwise you are probably going to have to flash the system from scratch. If you don’t need to preserve what is on the current rootfs, then just flash again from scratch.
If you need safer ways of updating a kernel, device tree, so on, then just ask. There are ways of setting this up such that you can test and simply switch back to the original content using serial console, but you have to do that prior to installing your other changes.