安装Run ArchLinux on Amlogic S905x S912 S905w Android TV Box
This might be a roundabout way of getting ArchLinux up and running on Amlogic based TV boxes, but it worked for me. It builds upon the great work done by the Armbian development team. Arch provides a generic ARMv8 root filesystem download on their site. In this tutorial, we will be flashing Armbian to a SD card and then replacing the Debian filesystem with the downloaded ArchLinux root FS. The tutorial uses the dd command, which does not hold your hand or offer any warnings or confirmations. TAKE YOUR TIME AND PROCEED AT YOUR OWN RISK
Things You Will Need
Downloads and Flashing to MicroSD
Configure MicroSD Card for ArchLinux
Safely eject the microSD
Insert microSD card to Android TV box
Booting to ArchLinux for the First Time
Plug the power adapter into the Android TV box
If the device has never booted from external storage before the stock Android OS will load
In Android, navigate to the application drawer > Run Update & Backup
Select Local > Navigate to the microSD card > aml_autoscript.zip
Select Update
The system will reboot twice and should then begin booting ArchLinux from the microSD card
You should see the ArchLinux terminal running startup scripts
When prompted, login with username: root password: root
NOTE: the default user level account is username: alarm password: alarm
Run the following commands to install sudo and create a new sudo user
# change the root password passwd # delete the default alarm user userdel -r alarm # initialize pacman keyring pacman-key --init pacman-key --populate archlinuxarm # update software repositories pacman -Syu # install sudo pacman -S sudo # create a new user account # change i12bretro in all the commands below to the new username useradd --create-home i12bretro # set the new user's password passwd i12bretro # add the user to the wheel group usermod -aG wheel i12bretro # add the user to the sudoers file nano /etc/sudoers # uncomment the following line by removing the # symbol %wheel ALL=(ALL) ALL
Press CTRL+O, Enter, CTRL+X to write the changes to sudoers
Exit out of the root session and login with the newly created user account
Verify that sudo is working by running the following command
sudo pacman -Syu
Welcome to ArchLinux running on your Amlogic Android TV box
Special thanks to the developers and forum members over at Armbian.com and ArchLinuxARM.org for making this possible