Anbernic RG405M SDCard Boot Enabler (Patreon)
Published:
2023-04-13 22:29:51
Imported:
2023-06
Downloads
Content
This application will build the base for most, if not all, future RG405M distributions.
By installing this APK on your RG405M and running it, your device will gain the ability to boot from MicroSD cards by executing a button sequence on cold-boot.
To boot from MicroSD card:
- Make sure your device is turned off
- Hold down the Power button
- Wait 1½ seconds, then hold down the Home/Back combo button as well
- Let go of both buttons when the Anbernic logo appears on screen
For developers:
- The modified bootloader looks for a shell script named init on the first partition of the MicroSD card which it will execute if found
- This shell script should never return to its caller and serves as your distribution's primary operation loop
- If it does return to its caller, it will trigger a clean system shutdown
- The sha-bang of the script should be #!/system/bin/sh
- Most people will want to use this script to set up a rootfs & chroot into it
- The first partition must be FAT32 formatted (16MB should be sufficient)
- The mount-point of the first MicroSD card partition is /boot
- adb & root access are enabled by default to make debugging easier