Bootloader barebox
Installation
Always check if and of paths are correct. Use lsblk to verify.
Setup SD card
sudo dd if=pocket-reform-system-rk3588.img of=/dev/mmcblk0 bs=1M oflag=direct status=progress
sudo dd if=barebox-mnt-pocket-reform-rk3588.img of=/dev/mmcblk0 seek=64 oflag=direct status=progress
Test bootloader from SD card
- Boot from SD card
- Make backup of MMC bootloader:
sudo dd if=/dev/mmcblk0 bs=1M count=10 of=emmc-backup.bin - Erase MMC bootloader first stage to force boot form SD card bootloader:
sudo dd if=/dev/zero bs=512 seek=64 of=/dev/mmcblk0 count=2 oflag=direct - Turn off and on again.
-
Press
mto get barebox boot menu -
Press
2Detect bootsources and test if you can boot your normal OS.
From main OS install new bootloader to MMC
sudo dd if=/dev/mmcblk1 of=/dev/mmcblk0 bs=1M count=10 oflag=direct
- Turn it off.
- Take out SD card.
- Boot again - it should boot your normal OS using barebox.