LibreELEC 8 for Intel Atom Bay Trail and Cherry Trail Devices with 32-bit UEFI Binary

LibreELEC, a fork of OpenELEC, was announced several months ago, and images for various hardware platform were released in that time period. However, support for Intel Bay Trail and Cherry Trail platforms using a 32-it UEFI binary might not have always work, or was more difficult to install. piotrasd has now created a LibreELEC 8 + Kodi 17 beta 3 build especially for this type of devices, and tested it on Tronsmart Ara IZ37 Bay Trail mini PC.

libreelec-8-intel-atom-z3735fHowever, it should work on other Intel Atom Z3735F or Intel Atom x5/z7 mini PC or sticks with a 32-bit UEFI bootloader. If you have such device, you can try it the following instructions using a USB flash drive:

  1. Download and install Rufus or LibreELEC SD USB creator
  2. Download and unpack LibreELEC 8 32-bit UEFI image file
  3. Launch your USB creator program, select the firmware file, and make a bootable USB flash drive
  4. Connect the USB flash drive to your mini PC
  5. Power it on, and press the ESC key on your keyboard to enter the boot menu
  6. Select your USB drive, and follow the Installer procedure on the TV
  7. Installation is complete

I understand that the procedure will wipe out your current operating system since it will install on the internal storage. Make sure that the bootable USB drive is the only USB device connected to the mini PC or TV stick during installation. If the display is too bright, you can go to System settings->Display, and disable “Use Limited colour range (16-235)” option.

Support CNX Software - Donate via PayPal or become a Patron on Patreon

78
Leave a Reply

avatar
78 Comment threads
0 Thread replies
5 Followers
 
Most reacted comment
Hottest comment thread
19 Comment authors
StunadCOMPUSTICKkallairORLANDO GORDONDocDuck Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
GunterO
Guest
GunterO

Nice! Is audio over HDMI supported?

piotrasd
Guest
piotrasd

Yes audio fixed and latest kernel 4.7.4 with latest intel drivers etc.

RK
Guest
RK

How did they solve the baytrail kernel bug? (https://bugzilla.kernel.org/show_bug.cgi?id=109051)

*Asking while downloading… I can code on the framebuffer if needs be…

piotrasd
Guest
piotrasd

yes i added this flag for kernel (intel_idle.max_cstate=1) 😉 but im not test long this latest kernel so maybe without will also fine.

piotrasd
Guest
piotrasd

@RK leave me feedback if works

Morka
Guest
Morka

Working great on MeLE PCG02U.

piotrasd
Guest
piotrasd

here Emby server for LE8 Kodi 17.0 if someone use
https://www.sendspace.com/file/31t5vh

RK
Guest
RK

@piotrasd I’ll be sure to try it out in the next couple of days or at the weekend at the very latest.

Envagyok75
Guest
Envagyok75

Dts-hd and dolby TrueHD can passtrough?
Output refresh rate switch work?
Linux dvb drivers implemented?
Can I install to z3735f tablet too?
Thanks for answers, and thanks your awesome work 🙂

joe6915
Guest
joe6915

Working on Wintel W8 Intel Z3735F

RPM
Guest
RPM

Working on PIPO X8

– disabled the internal memory, installed on USB Stick, set the BIOS to boot from USB
– internal sound chip, wifi and touchscreen not working
– screen orientation on internal display wrong – 90 degrees shifted

– would be absolutely perfect, if screen rotation, touchscreen, internal audio chip and wifi also would work out of the box

piotrasd
Guest
piotrasd

@Envagyok75
Output refresh rate switch work? –> only stereo or multichannel PCM
Linux dvb drivers implemented? –> from kernel but is possible add more example TBS or Crazycat etc.
Can I install to z3735f tablet too? –> yes but im not sure about touchscreen working and other devices like WIFI
Thanks for answers, and thanks your awesome work

piotrasd
Guest
piotrasd

Output refresh rate switch work? –> yes without problem

piotrasd
Guest
piotrasd

– would be absolutely perfect, if screen rotation, touchscreen, internal audio chip and wifi also would work out of the box.

some touch screen driver i can enable in Kernel, about screen roation try using own xorg.conf with this
http://pastebin.com/6qjrAdzx
and put xorg.conf to config folder on device (over SMB you can do that) and reboot PC

for get working Wifi i need to know chipset
and for audio i belive some special alsa config

piotrasd
Guest
piotrasd

@RPM please check this build
https://www.sendspace.com/file/r8jl9d (image)
or for update copy only this
https://www.sendspace.com/file/pfbtt4
tar archive to update folder and reboot

In this build im enabled all touchscreen drivers, more WIFI, sensors, etc.
also updated Kodi to latest.

RPM
Guest
RPM

Dear piotrasd,

here the hardware devices i was able to get from the Win8 system of the PIPO X8:

Sound chip(s): Realtek I2S Audio Codec (6.2.9600.41461)
Intel SST Audio Device (WDM) (603.9600.2801.46690)

WiFi: Realtek RTL8723BS Wireless LAN 802.1
Network (wired): DM9621A USB to Fast Ethernet Adapter

Bluetooth 4.0 module

Goodix Touch HID

The Xorg.conf you did release, is working fine – screen rotation is also working now !

piotrasd
Guest
piotrasd

@RPM on last build ?

About wifi – driver are in my build for RTL8723BS
(but sometime you must change bios setting example SCCP from ACPI to PCI change, or select boot from Android or windows to SteamOS, or Ubuntu … (if exist in bios) usual this help

RPM
Guest
RPM

@piotrasd

Meanwhile i already tried to boot Win8 first, then made a reboot into LibreELEC – no success
Also switched from ACPI to PCI and also choosed ISP Device Selection to Linux boot – neither any success
for getting wifi to work

RPM
Guest
RPM

@piotrasd

i made a mistake. i didn´t realize your post with the new image.
i will download, install and test it later today and give you a feedback then 😉

RPM
Guest
RPM

@piotrasd

Meanwhile i tested the update with following results:

WiFi and Bluetooth now working out of the box, without any necessary BIOS adjust or reboot!

Touchscreen – basic function, but not calibrated – means cursor move to opposite side, where the finger is moved to.
(is there a calibration utility available or some other workaround?)

Internal audio still not working

Thank you very much for this already big step ahead to the perfect system!

Peter
Guest
Peter

@RPM
Can you show me the result of command
ls -l /dev/input/by-id

I’m currently working on touchscreen addon for LibreELEC. Currently it needs to be configured manually but in the future I would like to make some auto detection.

RPM
Guest
RPM

@Peter

i would very like to pass the necessary information to you, but unfortunately the SSH-login with root / libreelec
is not working. Even after i deleted my SSH-folders 2 times already and imported the RSA keys 2 times again into my Putty.

@piotrasd
is the password inside this built really “libreelec”?

Many thanks in advance for your support

piotrasd
Guest
piotrasd

password “le”

RPM
Guest
RPM

@piotrasd

thank you very much for the password

@Peter
the ls command “ls -l /dev/input/by-id” showed the USB mouse and keyboard only – after disconnected this 2 devices
i just got the message “No such file or directory”

Peter
Guest
Peter

@RPM
Can you try to install System-tools addon and run evtest program. There should be mentioned touchscreen.

RPM
Guest
RPM

@Peter

After installed the system-tools i got this informations:

LibreELEC:~ # evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Video Bus
/dev/input/event1: Logitech USB Optical Mouse
/dev/input/event2: HID 04f3:0103
/dev/input/event3: HID 04f3:0103
/dev/input/event4: Goodix Capacitive TouchScreen
Select the device event number [0-4]: 4
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x416 product 0x38f version 0x1060
Input device name: “Goodix Capacitive TouchScreen”
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 0
Min 0
Max 800
Event code 1 (ABS_Y)
Value 0
Min 0
Max 1280
Event code 47 (ABS_MT_SLOT)
Value 0
Min 0
Max 9
Event code 48 (ABS_MT_TOUCH_MAJOR)
Value 0
Min 0
Max 255
Event code 50 (ABS_MT_WIDTH_MAJOR)
Value 0
Min 0
Max 255
Event code 53 (ABS_MT_POSITION_X)
Value 0
Min 0
Max 800
Event code 54 (ABS_MT_POSITION_Y)
Value 0
Min 0
Max 1280
Event code 57 (ABS_MT_TRACKING_ID)
Value 0
Min 0
Max 65535
Properties:
Property type 1 (INPUT_PROP_DIRECT)
Testing … (interrupt to exit)

piotrasd
Guest
piotrasd

Latest build (few more patches for BayTrail) but please do not expect yet working sound (only over HDMI for now)
https://www.sendspace.com/file/yufav2 – tar update
https://www.sendspace.com/file/wkm5eq img file

When @Peter finish addon for calibration TS i will add to build

RPM
Guest
RPM

@piotrasd

later today i will install your new built again for testing – thank you very much for your great support!

There is one more thing i would like to mention. When i tested the builts, i found, that it is no longer
possible to install addons from repos, which are not directly supported by kodi team in this Krypton
built anymore. Just nothing happen, after started to install. Is this a general new policy or an issue with
this development builts?

Peter
Guest
Peter

@RPM
You need to enable “Unknown sources” settings under addons section like shown here:comment image

RPM
Guest
RPM

@Peter

That was my first action after the installations – but without any success – until now in both builts @piotrasd
supported us with

RPM
Guest
RPM

@Peter and piotrasd

Meanwhile i downloaded and made a complete clean and fresh install of the newest release from piotrasd.

Definitely it isnt possible anymore to install components from other repositories than Kodi ones (!)

Sound output is shown now (greyed out) as “Default, Bluetooth Audio (PULSEAUDIO)” ,
but bluetooth component cannot be switched on (testet with bluetooth speakers and mobile)

piotrasd
Guest
piotrasd

yes there is some issue with BT, its very complicated because WIFI/BT module are on SDIO/GPIO.
Most of problem with hardware like sound, bt i saw resolved in kernel 4.8. But i will switch after release
HDMI sound patch. This repos i will check

RPM
Guest
RPM

@piotrasd

Thank you very much again.
I have one more question. Would it be
possible to make a built with all these final patches on Kodi Jarvis based, about the repo addon limitations?

piotrasd
Guest
piotrasd

Yes but 16.x dont support EGL so expirance from GUI speed and encoding will worse. Last version was 15.2 special patched. Latest kodi 17 beta is pretty stable.

I belive with Kernel 4.8 will even better, this version of kernel more support Atoms cpu because of added Surface 3 based on z8300

(repo addons) I will check, but if i good remeber i added some repo yesterday for skin downloads and works, but i will confirm that.

RPM
Guest
RPM

Were this repos Libreelec or Kodi ones?
From this repos i also were able to install skins and / or e.g Yahoo Weather.

Other repos e.g. Superrepo i can add and search for the addons submitted in this repo also, but after tried to install several of these addons, just no any kind of installation process will start.

piotrasd
Guest
piotrasd

https://forum.libreelec.tv/thread-8-post-13179.html#pid13179 here addon to calibrate/configure TouchScreen
by @Peter work !! great Work !! just download generic version and please test.

RPM
Guest
RPM

@Peter and piotrasd

Downloaded and installed the generic touchscreen plugin.

Itś showing up with the icon in addons. After executing i just can see “loading Rings”
and the background is getting darker. After 5 mins of this loading and not continuing
process i went back to the normal skin with ESC.

I dont think i made something wrong – after this i made a reboot but situation still same.
Also tried not only in the Estuary skin. With Confluence skin itś the same.

Peter
Guest
Peter

@RPM
It doesn’t work of the box (as mentioned in post) – you need to configure 2 files and then reboot.

RPM
Guest
RPM

@Peter

Meanwhile i followed the procedure 7.1 several times and also changed the necessary paths
to the matching ones of your plugin:

“/storage/.kodi/userdata/addon_data/service.system.touchscreen”

The fb*-device (in my case fb0) and the event-id (in my case event3)
i added like described in your instructions, too.

One thing inside the autostart.sh is still not clear to me :
Will the ts_env.sh be copied to the /usr/bin directory? Or is this path wrong maybe?

In fact until now the situation is still the same like before

Peter
Guest
Peter

@RPM
The only thing you need to do is to fix ts_env.sh and ts.conf files. No autostart.sh or anything else.
If you set TSLIB_TSDEVICE with event number then you also need to set TOUCHSCREEN_NAME=””.

Because I don’t have any USB screen it is not yet confirmed this addon works as I though it should (still waiting some confirmation from a guys who used this setup integrated in image itself).

RPM
Guest
RPM

@Peter

there is one other thing i would like to mention.
I had to modify the xorg.conf, because my display originally
was rotated 90 degrees to the left side.

Could this be a reason for an issue, too?

RPM
Guest
RPM

@Peter

“TOUCHSCREEN_NAME=”Goodix Capacitive TouchScreen”
if [ -z “$TOUCHSCREEN_NAME” ]; then
export TSLIB_TSDEVICE=/dev/input/event3
export TSLIB_FBDEVICE=/dev/fb0

should be fine – i checked several times. Also deleted the autostart.sh script now.

What to change in the ts.conf?

module_raw input grab_events=1
module pthres pmin=1
module variance delta=30
module dejitter delta=100

Peter
Guest
Peter

I doubt the name is correct (spaces)? Did you got it with command
ls -al /dev/input/by-id
Can you run this and post url
ls -al /dev/input/by-id | pastebinit

Also TSLIB_CONFFILE has only one “

RPM
Guest
RPM
Peter
Guest
Peter

There is no your screen mentioned.
Just set TOUCHSCREEN_NAME=”” and correct event path under TSLIB_TSDEVICE. After reboot calibration should work from Kodi.

RPM
Guest
RPM

@Peter

Hooray! GREAT JOB!

But now i have the problem with the 90 degrees
means if try to touch the top left cross, the cursor is top right
if i touch top right, the curser is lower right,….

Peter
Guest
Peter

I think you just need to swap xy coordinates? In ts.conf file use like this
#module linear
# or use swap_xy parameter to swap axes
module linear swap_xy=1

If this doesn’t work stop kodi and ts_uinput_touch, run evtest, select touschscreen, touch shortly top/left, top/right, bootm/right, bottom/left and post data from evtest to pastebinit service or somewhere else (not to spam here to much).
systemctl stop kodi
systemctl stop ts_uinput_touch
evtest

This 90 degrees rotation is not covered in tslib (meaning I would need to add this functionality in).

RPM
Guest
RPM

@Peter

module linear swap_xy=1 –> not working

About not to spam here so much, i copied the putty results into a txt file,
but cannot attach here.
Unfortunately i do not know, how to use Pastebinit command
for terminal screen and evtest result.
Is there another way, for send you this txt-file?