LibreELEC for Khadas VIM (SD & USB & eMMC)


Hello balbes150, I tried for SPDIF over Tone board. Running LE LibreELEC-Khadas_VIM.arm-9.0-devel-20180817143145-34a3aa6.img from USB card reader.

I was unable to get SPDIF output from the Tone board. I configured LE to xcore SPDIF.

It should be noted, I have not got it to work on Android Nougat 20180619 either.

In both cases, the Tone board continues to output over analog outputs.

I have also posted the Android results in the Tone section.

Let me know if I have missed something.


It is possible that the kernel 4.18 is not yet ready to work with SPDIF. Try to run the image LE with kernel 3.14 and test the SPDIF.


CONFIG_SND_SOC_MESON_SPDIF isn’t enabled in the current kernel config and mainline device trees don’t expose the hardware. It’s known and on the to-do list once we start digging into audio support (sometime soon hopefully, but no timescales).


Not sure how to swap kernels. I remember reading about it, but have been unable to find it again.

Note: Results are the same with or without TB on LibreELEC.


You don’t need to change anything manually. :slight_smile: Just take another image of LE from here.


That, I can do.:grin:

I will let you know what I find.
Thanks. :slight_smile:


Hello balbes150, Same results.

With Tone board - LibreELEC-S905.arm-9.0-devel-20180813185847-d35efa1.tar
-No SPDIF output. Tone board’s analog outputs carry signal when set to SPDIF.

-20180619 Android same SPDIF result as LE.

Without Tone board - LibreELEC-S905.arm-9.0-devel-20180813185847-d35efa1.tar
-No SPDIF settings option available in LE.

-20180619 Android GPIO SPDIF works.


Update Libreelec images with kernel 3.14 (20180831).


Thanks for image. Is github source code repository already up to date?
I recently have issues downloading from yandex. I will contact you personally.
I can try to build myself should download continue to fail. :slight_smile:


Hi. I don’t have time to update git. I’ll do it in the next few days.


Official LibreELEC support for Khadas VIM from today. Congrats!
Available alpha is based on Kodi Leia beta 1 (v2). No s912 support.


no worries and no hurry
thanks for your valuable time


Update git branch :wink:


Update 20180902 image LE kernel 4.18.


Perfect, I could build and run LE+addons just fine for KVIM2 EMMC 3-in-1 libreelec (kernel 3.14.29). I still have trouble downloading from Yandex but will contact you 1:1 about it.

Thanks so much for your amazing work !


Updated image LE-9.1 (kernel 4.18) .


Hi guys, i just installed the latest alpha build on my vim1, by burning it on a sd card.
So now i would like to install it on emmc, if possible without keeping android. How should i do it?
I guess it should depend of the uboot installed on emmc, right ?
I’m not afraid of complex solution, i just need the steps. Unfortunately the khadas vim docs is a mess and inconsistent, and forum posts are not documentation.


Installation of new versions of LE-9 (with 4.18 kernel) in eMMC is possible in two variants.

  1. With preservation of regular u-boot-2015 (recommended option). Retains the ability to return to Android using the standard tools of firmware of the USB Burn Tool and etc.
  2. With the replacement of u-boot-2015 to u-boot-2018 (in this version all eMMC is used for LE operation and there is no possibility to use standard USB Burn Tool tools).

For installation on the first option.

  1. Start LE from external media.
  2. Check the operation of all the necessary functions in the new LE (I strongly recommend that you carefully perform this item, that would then not have to solve the issues of recovery to previous versions).
  3. If the new version is satisfied. To include in the LE access mode via SSH. Connect via SSH and run “/flash/”. If there are no errors, run “/flash/”.

After these commands, the LE will be written to the eMMC and when the power is turned on without external media, the LE from the eMMC should start.

The second installation option (with the replacement of u-boot-2015 to u-boot-2018).

  1. Run from external media and perform a full scan, as in the first option.
  2. Connect the external media to the PC and rename the external media file " vim-2018-u-boot-emmc.img " to " u-boot-emmc.img."
  3. Start the system from external media and connect via SSH. To run the command “/flash/”.
  4. To run the command “/flash/”.
  5. To run the command “/flash/”.

In order to be able to revert to the current state of the system in eMMC, prior to all experiments with installing LE in eMMC, I strongly recommend making a full backup of the entire eMMC. To do this, you need to connect via SSH and run the command “/flash/”. This script will create a full compressed copy of the entire eMMC under “/storage/backup/ddbr”. In the future, you can run the script “/flash/” and it will restore the contents of the eMMC exactly to the state it was in when the copy was created (with the loader, settings, and other elements). Depending on the size and size of the eMMC, the copy creation process can take 5-30 minutes.


Hi balbes, and thank you so much for your post and the time you took to write it.
Whats the difference between the 2015 and 2018 version of uboot? I will only use LE on the board.


u-boot-2015 is a regular u-boot, which is used in firmware and systems with kernel 3.14 and 4.9 for Khadas. Accordingly, when you use it, all the functions that are in it are saved. u-boot-2018 is a new version, which is based on the main source branch, so it does not have any elements and functions specifically designed for Khadas.