SteeMan Posted February 25, 2023 Posted February 25, 2023 These instructions are for Amlogic CPUs for TV Boxes. Note: If you have previously run other distributions on the box such as coreelec the below installation will not work. You will need to restore the original android firmware before attempting the install. coreelec changes the boot environment in ways that are incompatible with these Armbian builds. Download links: Weekly Community Rolling Builds: https://www.armbian.com/amlogic-s9xx-tv-box/ or build your own image using the Armbian build framework Once you download your chosen build, you need to burn the image to an SD card. Generally balenaEtcher is recommended as it does a verification of the burn. Also be sure to use high quality SD cards. Once you have the SD card with your chosen build, then you need to edit the boot configuration file on the SD card. In the BOOT partition of the SD card there will be a file /boot/extlinux/extlinux.conf, that you need to edit. There will also be a extlinux.conf.template file to use as a reference. You will need to add a line into the extlinux.conf file for the Device Tree (dtb) file you will be using for your box. Place this line before the APPEND line as shown in the .template file. Basically you need to have the correct dtb for your box. You may need to attempt to use different dtb files until you find the one that works the best for your box's hardware (there are a bunch of dtb files in /boot/dtb/amlogic/... to try depending on your cpu architecture and hardware). It is unlikely that there will be a matching dtb file for your TV box. The idea is to find the one that works best for your box. This may mean that you try booting with different dtb files until you fine one that works good enough for your needs. By searching the forums you will find information about what dtbs other users have found work best for different boxes. Because you are booting from an SD card, you can easily try different dtb files. The dtd files are named by cpu family. So for example dtb files for the s905x2 cpu are named meson-g12a-*. Below there is a table that shows the identifiers for each familiy (g12a for s905x2 in this case). Next you need to copy the correct uboot for your box. This is needed for how these builds boot on amlogic boxes. There are four different u-boot files located in the /boot directory: u-boot-s905, u-boot-s905x-s912, u-boot-s905x2-s922, u-boot-s905x3 You need to copy (note copy not move) the u-boot file that matches your cpu to a new file named u-boot.ext in the /boot directory So for example with a TX3 mini box that has an s905w cpu you would copy u-boot-s905x-s912 to u-boot.ext: cp u-boot-s905x-s912 u-boot.ext (See table below for more details on which u-boot to use for which cpu) Once you have your SD card prepared you need to enable multiboot on the box. There are different ways documented to do this, but the most common is the "toothpick" method. The "toothpick" method means to hold the reset button while applying power to the box. The reset button is often hidden and located at the back of the audio/video jack connector. By pressing that button with a toothpick or other such pointed device you can enable multiboot. What you need to do is have the box unplugged, have your prepared sd card inserted, then press and hold the button while inserting the power connector. Then after a bit of time you can release the button. (I don't know exactly how long you need to hold the button after power is applied, but if it doesn't work the first time try again holding for longer or shorter times). You should now be booting into armbian/linux. Note that the first boot takes longer as it is enlarging the root filesystem to utilize the entire SD card. After you are satisfied that your box is working correctly for your needs you can optionally copy the installation from the SD card to internal emmc storage (assuming your box has emmc). (Note: Installing to emmc has some risks of bricking your box. Don't do this unless you feel you understand how to reinstall your box's android firmware) You install armbian to emmc by running the shell script in the /root directory: install-aml.sh. Note: It is not possible to install into emmc on boxes with the s905 cpu (s905x, s905w, s905x2, etc however should all be supported). It is recommended that you make a backup of emmc first. Also be prepared if anything goes horribly wrong with your emmc install to reinstall the android firmware using the Amlogic USB Burning Tool to unbrick your device. If you have or can find an original android firmware on the internet and you can generally (but not always) recover a bricked box using the Amlogic tool and the original firmware file. Mapping from CPU to uboot and dtb: u-boot-s905 s905 - gxbb u-boot-s905x2-s912 S905X - gxl S905W - gxl S905D - gxl S905L - gxl S805X - gxl S912 - gxm A311D - gxm u-boot-s905x2-s922 S905X2 - g12a S922 - g12b u-boot-s905x3 S905X3 - sm1 Not supported or not tested S805 - S905W2 - S905X4 - S805X2 - s4 A113D - axg A113X - axg Note: Followup posts in this thread should be limited to comments to improve or better understand these instructions. Other issues should be posted as new questions in the Amlogic CPU Boxes sub-forum. 10 Quote
SteeMan Posted February 4 Author Posted February 4 @CODER2127 in the same directory /boot. I have updated the instructions to clarify 1 Quote
Victorhtf Posted February 4 Posted February 4 How can I backup my eMMC to restore if necessaire? Is there any instructions about it? 0 Quote
SteeMan Posted February 4 Author Posted February 4 Anyway you are comfortable with. Armbian comes with a utility called ddbr to create a backup. 0 Quote
Victorhtf Posted February 11 Posted February 11 I could not find the install_aml.sh in my root directory. Is that script always in this folder or it could be in another? 0 Quote
SteeMan Posted February 11 Author Posted February 11 @Victorhtf yes it is always located there. What build are you using? 0 Quote
sapta Posted March 5 Posted March 5 Can you help me with the steps to install armbian on my tx 3 mini with AMLOGIC S905W to use it as a PC? 0 Quote
KanexMarcus Posted March 24 Posted March 24 Here is my A95X F3 Air, I have installed the slimbox tv firmware that works fine, and now I'm trying to install armbian, with an sdcard and utilizing the meson-sm1-a95xf3-air.dtb file and the uboot u-boot-s905x3 I'm able to get an image, but it keeps in this infinite bootloop, nothing seems wrong, but why isn't booting? 0 Quote
Antonio Ramos Posted April 11 Posted April 11 (edited) This tutorial refers the /boot folder but the /boot folder does not exist. Do you mean / instead of /boot ?? Also if i place the sdcard in the sdcard slot it reboots when i press the reset pin but does not show Tanix TX3 , just a blank screen each time it boots. but if i put the sdcard in the usb3 port it reboot and show Tanix T3 each time it reboots. Either way it does not start armbian linux. It always boots to the android. any help ? Edited April 11 by Antonio Ramos 0 Quote
SteeMan Posted April 11 Author Posted April 11 It means the /boot folder. There should be two partitions on the SD card, one formated as a fat filesystem and the other as an ext2 filesystem. 0 Quote
kuber gld Posted May 2 Posted May 2 any one help me to amlogic s805 latest ver plz.. plz...... 0 Quote
Mauro59 Posted June 4 Posted June 4 Good morning to all of you. I followed the installation guide but when starting it doesn't recognize the USB ports and enters a loop writing "usb-port1 :connect,-debonce failed". Does anyone know how to solve the problem? Thanks and regards 0 Quote
Mauro59 Posted June 4 Posted June 4 Solved I had not configured the boot/extlinux/extlinux.conf file correctly. Sorry, enough to read carefully 0 Quote
remlei Posted November 6 Posted November 6 On 2/26/2023 at 6:14 AM, SteeMan said: Also be prepared if anything goes horribly wrong with your emmc install to reinstall the android firmware using the Amlogic USB Burning Tool to unbrick your device. If you have or can find an original android firmware on the internet and you can generally (but not always) recover a bricked box using the Amlogic tool and the original firmware file. well you also need to know how to put the board in maskrom mode, with eMCP boards, this can be very challenging to do. I learned this in a hard way. Board bricked due to for some odd reason, it kernel panicked during emmc install process. and that managed to brick the bootloader as well. luckily I easily found that out by shorting a capacitor near the eMCP module, that basically put the board in maskrom mode. rockchip based tv boxes usually have these maskrom test pad placed somewhere in the board but amlogic tv boards is just bad. for people who wants to run armbian on tvbox board, just use the SD card/USB, the emmc install is just too risky. 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.