TheGammaSqueeze / GammaOS

LineageOS based firmware for Anbernic Unisoc T618 devices
Apache License 2.0
347 stars 12 forks source link

Anbernic RG405M / RG405V / RG505

GammaOS + GammaOS Lite Custom Firmware - v1.5.1

WARNING: NEW UNITS MAY HE AFFECTED BY A HARDWARE CHANGE.

If you have no wifi after installing GammaOS, follow this thread: https://github.com/TheGammaSqueeze/GammaOS/issues/155

Download and instructions

Instructions:

Information

GammaOS is based on LineageOS 19.1 (Android 12). It provides a debloated and performance optimized experience for users who are looking to get the best out of their Anbernic T618 devices.

Features:

Other Information:

What's missing:

Instructions - Brand new install (Flashing from Stock Anbernic Firmware. Bootloader never unlocked before, flashing via fastbootd)

Skip this section if you have either 1) Already installed GammaOS 2) Unlocked your bootloader but are still on stock firmware. - Go to instructions for Upgrading to v1.5 from GammaOS / Stock OS with unlocked bootloader

Video guides here for a brand new install from stock firmware:

The same instructions apply to both RG405 and RG505. GammaOS is here for the RG405V! Setup Guide!

Prerequisites:

On Windows, ensure you install the Universal ADB Driver also, and then reboot your computer: https://github.com/K3V1991/ADB-and-FastbootPlusPlus

Install Unisoc Drivers (included in the release zip in the UnisocDrivers folder) Then run the DPInst64.exe program in your relevant OS folder. (Win10 drivers will also work on Win11. Also available here: https://github.com/TheGammaSqueeze/GammaOS/releases/download/GammaOS_v1_RG405M/UnisocDrivers.zip)

Remove/rename any existing fastboot.exe application that exists on your PC to prevent issues with flashing such as the flashing stalling at vbmeta_a. Open a command prompt, type in the following command: where.exe fastboot.exe. This will show you where your fastboot.exe is being called from. Anything that is not in the C:\Program Files (x86)\ADB and Fastboot++\fastboot.exe location should be renamed to something else. Rename to something like oldfastboot.exe

On MacOS: Install homebrew: https://brew.sh/

Via homebrew on MacOS:

The process on Linux differs from distro to distro.

On Arch, you can use the android-sdk-platform-tools from AUR.

On Garuda, simply run sudo pacman -Syu android-sdk-platform-tools since it has Chaotic-AUR preinstalled.

On the Anbernic device itself:

Unlocking bootloader (Chrome method):

Unlocking bootloader (alternative method using Python):

Flashing the custom firmware:

Instructions - Upgrading to v1.5 from GammaOS / Stock OS with unlocked bootloader

Video guide here for upgrading your firmware from GammaOS / Modified Stock OS: https://www.youtube.com/watch?v=UR0D6NzatxY

Upgrading GammaOS to v1.5 - Anbernic RG405M Custom Firmware CFW

Prerequisites:

Flashing the custom firmware:

Help! My device is no longer booting! Or I want to go back to Stock OS!

In some cases, some RG405/RG505 devices have a different eMMC parition configuration or different firmware configuration. When flashing this firmware on those specific devices, this can cause the device to fail to boot. In this case, you will need to use the RG405/RG505 unbricking tool to return to stock firmware but with the desired partition configuration. Once this is done, you can then flash the GammaOS safely, or stay on StockOS.

Video guide here to restore to stock firmware: https://www.youtube.com/watch?v=XKKzShK7JAY

Anbernic RG405M Flash back to stock / unbricking guide

Prerequisites:

Flashing the Stock OS:

Flashing the custom firmware (optional if you want GammaOS), please follow instructions closely for those on Stock OS: Follow the instructions for Upgrading to v1.5 from GammaOS / Stock OS with unlocked bootloader

Changelog

Credits

TheGammaSqueeze - Author - https://github.com/TheGammaSqueeze/

TacoPizza#4158 - Testing and Support

Andy Yan - Providing GSI builds: https://sourceforge.net/projects/andyyan-gsi/files/lineage-19.x/