20 januari 2021

LibreElec op je S905/S905X/S912 android box…

5 min read

Kodi wordt door veel gebruikt op een Raspberry Pi maar het wordt steeds aantrekkelijker om te kiezen voor een Android box met een S905/S905X/S912 chipset want hierop kijk je zonder problemen naar ondermeer HIVC, 4K en HDR content. Wanneer je over zo’n Android box beschikt is het te adviseren om gebruik te maken van de mogelijkheid te booten vanaf SD zodat je Android zelf achter wegen laat.

De kodi installatie’s op Android zelf zijn vaak verouderd en mijn eigen ervaring is ook dat het daar een stuk minder soepel op draait dan wanneer je kiest voor het rechtstreeks booten vanaf een SD kaart in LibreElec. Om je Android box rechtstreeks te laten booten van SD moet je wel een aantal stappen doorlopen die al met al niet zo heel ingewikkeld zijn. Hieronder vind je de stappen die zijn gemaakt door kszag van het forum op LibreElec voor je Android box met een S905/S905x/S912 chipset:

1. Before you install – choose a device tree


Important: You cannot use device tree from Android firmware as in 99% cases it won’t work.

Download hier je Device Tree welke je nodig hebt voor jouw Chipset….

  • S905: First look for device tree with your box name in it. In case there is no such image, download generic one.
    • example: for a box with 2GB of RAM and 100Mbit Ethernet, you should download gxbb_p200_2G_100M.dtb
    • example: for boxes with Gigabit Ethernet download gxbb_p200_1Gbit.dtb
    • for boxes with Realtek WiFi download device tree with RealtekWiFi in name
  • S905X: You can leave a tree that is already present on SD card (fresh install only) or choose one according to your RAM amount. If internal memory of your box is not visible when trying to install to internal memory, try a device tree with _nand suffix.
  • S912: You need to choose device tree according to your Ethernet port speed and RAM amount.

2. Prepare SD card/USB drive


Note: only 1 USB port is able to boot the box. You have to try them all. Some boxes are unable to boot from USB drive.

  • Kijk hier en vind de file die je nodig hebt. Download de file met de img.gz extensie.
  • Burn the downloaded file to SD card or USB drive using Rufus. Alternatively you can use LE tool but remember that you have to download the image manually: Installation – LibreELEC
  • After this you will see that drive capacity is 512MB. This is OK as there is a second (hidden) partition on the drive for LE user data!
  • Download a device tree as instructed above and rename it to dtb.img. Copy the renamed file to main folder of SD card/USB drive – replace the one that’s already there.
  • To boot the system for the first time you have to use one from the following – sometimes only one way of doing this works!
    • Terminal Emulator: boot to Android, insert SD card/USB drive with LE, install Terminal Emulator app (either from Google Play or APKMirror), run it and type reboot update. Your box should reboot to LE.
    • toothpick method: disconnect the power supply, insert card/drive, push reset button and connect the power while holding the button. Wait until LibreELEC logo appears and release the button.
    • menu button method (works with very few devices): disconnect the power supply, insert card/drive, push menu button on your remote control and connect the power while holding the button. Wait until LibreELEC logo appears and release the button.
    • recovery method: boot into Android, insert card/thumb drive and choose Reboot to recovery. Your box should boot into LibreELEC.
    • recovery method (2nd variant): if you have “Update” app pre-installed open it, insert SD card with LE/connect USB drive, and choose anyZIP file in the app for update. Your box should reboot to LE.
    • recovery method (3rd variant): enable ADB (Google it) and issue adb reboot update command

Updating


Update process looks the same for SD, USB drive and internal memory installs:
Using Samba shares
or
Using command line (SSH)

Important: You should also download a new device tree, and put in Update folder with an update file. You should have both files in Update folder before rebooting. You do not need to rename device tree file before updating.

Installing to internal memory (not recommended, risky)


Run from SD card/USB drive first. If it runs fine, connect to your box over SSH, execute installtointernal command and follow on-screen instructions. This command wipes SYSTEM and DATA partition!

CAUTION: If your box has a non-standard partition layout, you will see an error when trying to boot from internal memory for the first time. To solve it, you need to boot one more time from SD card and run installtointernal again.

Back to Android?


If you installed LE to SD card or USB drive, simply turn off your box, disconnect media with LE and turn on the box.

If you installed LE to internal memory, you have to find firmware dedicated for your box and follow installation notes.

To boot into recovery after installing LE to internal memory use this procedure:

  • prepare a clean, FAT32-formatted SD card or USB drive
  • copy recovery.img and dtb.img from your Android firmware to SD card (don’t use dtb.img for LE!)
  • use “toothpick” method to boot from SD card/USB drive or execute reboot recovery over SSH

Wanneer je alles goed hebt gedaan staat op de Sd kaart LibreElec en boot je voortaan vanaf Sd naar een kale versie van LibreElec, hierop kun je dan zelf eenvoudig KAOSbox installeren door de stappen te volgen in DEZE LINK. Wil je toch gebruik maken van Android schakel je jouw Systeem uit en haal je de SD of USB stick eruit en start hij daarna op in Android. Wil je daarna weer booten vanaf SD of USb stick plaats je deze terug en reboot je jouw Android box en zal hij weer opstarten in LibreElec. Veel plezier…

One thought on “%1$s”

Comments are closed.

Copyright © All rights reserved. | Newsphere by AF themes.

Login