Hello, Sorry for my bad English… I have been trying to boot my Radxa Zero 4gb device from emmc for 2 days. I even thought that the emmc of the device was broken, but by moving away from the official wiki and trying different ways, I finally managed to boot the official Radxa OS. I will tell you how to do it, but I don’t know if it works for everyone. If it doesn’t work, let me know. First of all, all operations must be done from the terminal with root permission. This guide consists of 3 steps and is quite simple.
1 => Set up Python environment variable and pyamlboot
python -m venv myenv
source myenv/bin/activate
pip install pyamlboot #Move the radxa-zero-erase-emmc.bin file to /myenv/bin/.
2 => Press the boot button and connect the device to the PC.
python boot-g12 radxa-zero-erase-emmc.bin #erases emmc and shows it as “sda” disk on the PC.
3 => Repair boot from a new terminal.
DEVICE=/dev/sdaX #Sets the device (Do not use x as it is. Check the root number of emmc with the “lsblk” command.)
dd if=u-boot.bin.sd.bin of=$DEVICE bs=1 count=444 #Writes the first 444 bytes of emmc in 1-byte blocks.
dd if=u-boot.bin.sd.bin of=$DEVICE bs=512 skip=1 seek=1 #Writes the first 512 bytes of emmc without reading.
dd if=OS.img of=$DEVICE bs=1M status=progres #Flash the operating system (I installed the official radxa debian os).
sync # End the process.