# How I got DietPi running on my S905X and S912 Android TV Boxes

**URL:** <https://dietpi.com/forum/t/how-i-got-dietpi-running-on-my-s905x-and-s912-android-tv-boxes/3002>\
**Category:** Community Tutorials\
**Created:** [2 March 2019 21:14 UTC](https://dietpi.com/forum/t/how-i-got-dietpi-running-on-my-s905x-and-s912-android-tv-boxes/3002 "2019-03-02T21:14:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyfly555](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/958977/32.png) [@skyfly555](https://dietpi.com/forum/u/skyfly555)\
**Post date:** [2 March 2019 21:14 UTC](https://dietpi.com/forum/t/how-i-got-dietpi-running-on-my-s905x-and-s912-android-tv-boxes/3002/1 "2019-03-02T21:14:54Z")

</div>

Hello,  
As you may know I love DietPi and I install it everywhere (RPi1, RPi2, Odroid C2, BIOS old netbooks, an EFI64 Intel Atom miniPC…).  
Now I have installed it on my Android TV Box M16, based on Amlogic S905X, a 2GB-16 GB model (very similar to Odroid C2, but cheaper, 100 Mbps ethernet, and with wifi/bluetooth and an eMMC module built-in).

I have followed these steps (from [https://forum.armbian.com/topic/2419-armbian-for-amlogic-s905-and-s905x-ver-544/](https://forum.armbian.com/topic/2419-armbian-for-amlogic-s905-and-s905x-ver-544/)):

1. Download the image for your device
2. Unpack
3. Burn the image on the medium (micro SD card)
4. boot into Android (and connect the microSD card.)
5. open the app “Update&Backup”
6. click on “Select” local update and chose the file on the removable media (aml\_update.zip) aml\_autoscript.zip
7. start “Update”
8. System will reboot twice and start running the system from external media.

The image I have used is here: [https://yadi.sk/d/pHxaRAs-tZiei/5.76/S905/5.0](https://yadi.sk/d/pHxaRAs-tZiei/5.76/S905/5.0), and it’s: Armbian\_5.76\_Aml-s905\_Debian\_stretch\_default\_5.0.0-rc7-gb5aa11ceb-dirty\_20190227.img  
More details about this version and how to copy it into the eMMC and so on: [https://forum.armbian.com/topic/7930-armbian-for-amlogic-s9xxx-kernel-41x-ver-555/](https://forum.armbian.com/topic/7930-armbian-for-amlogic-s9xxx-kernel-41x-ver-555/)  
When you first start the system, the root user password is 1234; the minimum media size is 4 GB.

Once you have this done, and you have your armbian/debian installed, it’s time to Dietpize it 😃

Here what you have to do (PREP\_SYSTEM\_FOR\_DIETPI.sh): [https://github.com/MichaIng/DietPi/issues/1285](https://github.com/MichaIng/DietPi/issues/1285)  
In brief, copy and paste all into terminal:

```nohighlight
wget https://raw.githubusercontent.com/Fourdee/DietPi/master/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
#wget https://raw.githubusercontent.com/Fourdee/DietPi/beta/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
#wget https://raw.githubusercontent.com/Fourdee/DietPi/dev/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
chmod +x PREP_SYSTEM_FOR_DIETPI.sh
./PREP_SYSTEM_FOR_DIETPI.sh

```

DietPi runs as good as this android TV box was an Odroid C2! Now, I’m running it from microSD. If you disconnect it, you have Android, too. But you can (theorically) install it to the eMMC, so you can have much better disk benchmarks (and cheaper than buying a C2 with a eMMC module).  
Note: I haven’t checked wifi or bluetooth, neither installed any desktop, because I simply use it as a wordpress/deluge server.

The only issue I have is that now, with DietPi, I cannot read the CPU temperature, although I could read it with Balbes150’s Armbian/Debian.

```nohighlight
─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture | aarch64
 Temperature | N/A
 Governor | ondemand
 Throttle up | 50% CPU usage

                 Current Freq Min Freq Max Freq
 CPU0 | 1200 MHz 100 MHz 1200 MHz
 CPU1 | 1200 MHz 100 MHz 1200 MHz
 CPU2 | 1200 MHz 100 MHz 1200 MHz
 CPU3 | 1200 MHz 100 MHz 1200 MHz

```

EDIT (6th March 2019): What about S912 Android TV Box? I’ve bought one of them (3G-32GB, 40€, amazon.es), it’s nice because it has 1000 Mbps Ethernet; some models even have an USB 3.0 port, although they are more expensive than the base model; and it’s more powerful than the S905X (DietPi benchmarks: S905X, 17 seconds, like the Odroid C2; S912, 12 seconds, as the Odroid XU4).  
I have just used another image: [https://yadi.sk/d/pHxaRAs-tZiei/5.76/S912/5.0](https://yadi.sk/d/pHxaRAs-tZiei/5.76/S912/5.0), Armbian\_5.76\_Aml-s912\_Debian\_stretch\_default\_5.0.0-rc8-g8201cd167-dirty\_20190304.img.xz

And DietPi reads the 8 CPU temperatures correctly.

```nohighlight
root@DietPi:~# cpu
[OK] DietPi-CPU_info | Root access verified.

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture | aarch64
 Temperature | 42'c : 107'f | Optimal temperature.
 Governor | ondemand
 Throttle up | 50% CPU usage

                 Current Freq Min Freq Max Freq
 CPU0 | 1512 MHz 100 MHz 1512 MHz
 CPU1 | 1512 MHz 100 MHz 1512 MHz
 CPU2 | 1512 MHz 100 MHz 1512 MHz
 CPU3 | 1512 MHz 100 MHz 1512 MHz
 CPU4 | 1000 MHz 100 MHz 1000 MHz
 CPU5 | 1000 MHz 100 MHz 1000 MHz
 CPU6 | 1000 MHz 100 MHz 1000 MHz
 CPU7 | 1000 MHz 100 MHz 1000 MHz

[INFO] DietPi-CPU_info | CPU current frequency, may be affected by this script, due to the processing required to run it.

```

---

<div class="post-metadata">

**Author:** ![johnvick](https://dietpi.com/forum/user_avatar/dietpi.com/johnvick/32/16_2.png) [@johnvick](https://dietpi.com/forum/u/johnvick)\
**Post date:** [5 March 2019 07:00 UTC](https://dietpi.com/forum/t/how-i-got-dietpi-running-on-my-s905x-and-s912-android-tv-boxes/3002/2 "2019-03-05T07:00:47Z")

</div>

Nice guide thanks - if I didn’t already have too many SBCs I’d buy one and give it a try.

John

---

<div class="post-metadata">

**Author:** ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)\
**Post date:** [5 March 2019 11:23 UTC](https://dietpi.com/forum/t/how-i-got-dietpi-running-on-my-s905x-and-s912-android-tv-boxes/3002/3 "2019-03-05T11:23:55Z")

</div>

This unit [here](https://www.aliexpress.com/item/New-T95X-Amlogic-S905X-Android-6-0-TV-BOX-1GB-8GB-Quad-Core-100LAN-WiFi-H/32702827053.html)

---

<div class="post-metadata">

**Author:** ![skyfly555](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/958977/32.png) [@skyfly555](https://dietpi.com/forum/u/skyfly555)\
**Post date:** [5 March 2019 15:19 UTC](https://dietpi.com/forum/t/how-i-got-dietpi-running-on-my-s905x-and-s912-android-tv-boxes/3002/4 "2019-03-05T15:19:57Z")

</div>

Hello, WarHawk this unit seems to be expensive to me, looking at the specs. I don’t know in Russia, but in Spain you can get an S905X 2GB-16GB for less than 40 euros.

---

<div class="post-metadata">

**Author:** ![morpheus302](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/51bf81/32.png) [@morpheus302](https://dietpi.com/forum/u/morpheus302)\
**Post date:** [28 September 2019 10:19 UTC](https://dietpi.com/forum/t/how-i-got-dietpi-running-on-my-s905x-and-s912-android-tv-boxes/3002/5 "2019-09-28T10:19:08Z")

</div>

This is very interesting. Can you explain how to move sstem files to emmc?

---

<div class="post-metadata">

**Author:** ![amntony](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/ebca7d/32.png) [@amntony](https://dietpi.com/forum/u/amntony)\
**Post date:** [21 February 2022 17:45 UTC](https://dietpi.com/forum/t/how-i-got-dietpi-running-on-my-s905x-and-s912-android-tv-boxes/3002/6 "2022-02-21T17:45:25Z")

</div>

Hi everyone and thank you to skyfly555 to advices!  
I’ve successfully installed last DietPi on Z11pto tvBox:

```nohighlight
______________________________________________________
CPU Amlogic S905X Quad Core ARM Cortex-A53 up to 2.0GHZ
GPU 5-Core ARM Mali-450 to 750MHz+
RAM 2GB DDR3
ROM 16GB EMMC
______________________________________________________
 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture | aarch64
 Temperature | 45 °C / 113 °F : Optimal temperature
 Governor | schedutil

                 Current Freq Min Freq Max Freq
 CPU0 | 1512 MHz 100 MHz 1512 MHz
 CPU1 | 1200 MHz 100 MHz 1512 MHz
 CPU2 | 1200 MHz 100 MHz 1512 MHz
 CPU3 | 1200 MHz 100 MHz 1512 MHz

Benchmarks completed:                                                                                       
 │ - CPU performance : Duration = 12.24 seconds (lower is faster)    
 │ - CPU temps : Idle = 46 °C | Full load = 56 °C                    
 │ - RootFS I/O : Write = 8 MiB/s | Read = 21 MiB/s         
 │ - RAM I/O : Write = 444 MiB/s | Read = 832 MiB/s
_____________________________________________________________________________

```

only two problems, WI Fi device not recognized and 16GB emmc not available (to boot from it).  
Has anyone fix one of this problems?
