Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 39518|Reply: 0

[FAQ] Openelec OPi for beginners

[Copy link]
Post time 2016-2-3 15:40:50 | Show all posts |Read mode
Edited by jernej at 2017-1-9 20:54

This FAQ is related to Openelec for OrangePI by jernej. Any post that is not Q/A will not be tolerated!

0. What it is OpenELEC for OrangePI ?
OpenELEC is an embedded operating system built specifically to run Kodi (formerly known as XBMC), the open source entertainment media hub.
OpenELEC for OrangePI it is OpenELEC forked by jernej (more info about this fork https://github.com/jernejsk/OpenELEC-OPi2/blob/master/README.md)

1. Where I can find more information about jernej fork ?
In main thread
http://www.orangepi.org/orangepi ... =648&extra=page%3D1

2. Where I can find OpenELEC for OrangePI source ?
Forked jernej source is here:
https://github.com/jernejsk/OpenELEC-OPi2/

3. Where I can find Openelec for OrangePI images ?
Latest prebuilt images provided by jernej or community can be found here:
http://www.orangepi.org/orangepi ... 1075&extra=page%3D1

4. How to install transmisssion, mc, strace, etc. ?
First of all download "opi unofficial repository" from official repository (maintained by jernej, please do not report issues to official OpenELEC team)

Then install for example "transmission" addon (from "opi unofficial repository")
http://kodi.wiki/view/HOW-TO:Install_add-ons

5. What it is "opi unofficial repository"
It has almost all plugins which are present in "Unofficial Openelec Addons repository" ( https://github.com/OpenELEC/unofficial-addons/) and are compiled for Orange Pi.

6. How to configure IR remote?
Run following command, follow the instructions, reboot and that's it:
  1. irrecord /storage/.config/lircd.conf
Copy the Code

If you forgot to add any key, then just re-run setup command.

Second step is to configure script.bin to allow IR remote to wake up the board from sleep. This will work only with IR remote which uses NEC protocol. Follow this guide in OP:
http://www.orangepi.org/orangepi ... 2048&fromuid=198504

WARNING: There is no need anymore to run lircd in autostart.sh (old method). It is started automatically and now it only interfere with system. Remove this command if you still have it.
NOTE: If you decided to change the remote, you must first delete configuration file with:
  1. rm /storage/.config/lircd.conf
Copy the Code

7. Is HDMI-CEC working ?
First version is included in prebuilt image [2016/8/6]. Thanks jodamm (https://github.com/jodamm/linux/tree/sun8i) for his work on that.

NOTE: There are many reports that it doesn't work on PC Plus while it works on others boards using same TV. There is no explanation yet for that. Kernel is the same while HW seems also to be the same. More research is needed.

NOTE2: It seems that for some it works perfectly and for other it doesn't work at all. Please do not report any issues about CEC, because it is small miracle that it even works (for some). If you want better support, help convince Allwinner to release full documentation about HDMI.

8. How can I install OpenELEC on eMMC?
Just burn the image on a SD card, setup up SSH or serial connection and enter following command:
  1. emmc_install.sh
Copy the Code

Confirm that you are ok with erasing all data on eMMC and wait a few minutes. That's it.

NOTE: You will get fresh installation with no settings transfered. It will automatically reboot after the first boot.

9. Where can I find PVR addons? PVR addons from other repositories don't work.
Images from [2016/04/28] onwards should have enabled repositories which are specifically compiled for OPi.

10. How can I build my own image ?
NOTE: You must have dtc (device tree compiler) preinstalled. Every other tool needed will be installed by build system.
  1. git clone -b openelec-7.0 --depth 1 https://github.com/jernejsk/OpenELEC-OPi2
Copy the Code
Supported devices:
  • SYSTEM=opi2
  • SYSTEM=opione
  • SYSTEM=opipc
  • SYSTEM=opiplus
  • SYSTEM=opilite
  • SYSTEM=opipcplus
  • SYSTEM=opiplus2e
  • SYSTEM=bpim2p
  • SYSTEM=bx2

Build with:
  1. PROJECT=H3 SYSTEM=xxx ARCH=arm make image
Copy the Code
NOTE: If you omit SYSTEM variable, then you will get OPi2 image.

Check ./target folder for .img.gz file. Extract it and write it to SD card.

11. How can I build addons?
NOTE: If you didn't build image or another addon before, this can take a lot of time. Next builds will be much faster.

You can build wanted addon with:
  1. PROJECT=H3 ARCH=arm scripts/create_addon pvr.iptvsimple
Copy the Code
where pvr.iptvsimple is the addon you want to build.

Check target/ folder for a zip package which can be installed with Kodi.

12. How can I update OpenELEC without losing my settings?
First download tar file instead of an image. Then follow this: http://wiki.openelec.tv/index.ph ... y_Updating_OpenELEC

NOTE: This update methon is recommended only if you have full [2016/04/28] image or newer. Don't bother to report troubles otherwise

13. Does my USB WIFI dongle works?
Check this post: http://www.orangepi.org/orangepi ... 9295&fromuid=198504

14. How to create backup?
Please check this post: http://www.orangepi.org/orangepi ... 1048&fromuid=198504

15. Power button doesn't work.
It works now unless you have USB hub connected with additional device. That sadly rules out OPi2 and OPiPlus if they have anything attached to USB port (you can setup IR remote). Another thing that might prevent power button from working is lircd. There is no need anymore to run lircd in autostart.sh (old method). It is started automatically and now it only interfere with power button and possibly others input devices.

16. How to enable TV out?
First, you need cable like that: http://www.orangepi.org/orangepi ... 2309&fromuid=198504
Then you need image with fixed TV out support. That means any image compiled from sources [2016/5/5] onwards. At last, you need to edit fex file for your board:
  1. [disp_init]
  2. disp_mode = 1
  3. screen1_output_type = 2
  4. screen1_output_mode = 11

  5. [tv_para]
  6. tv_used = 1
Copy the Code
11 means PAL and 14 means NTSC

NOTE: Be aware that system update will overwrite fex file and you will have to set it up again.

17. How to edit script.bin in-place (without using another computer)?

From image 2016/10/26 onward you can do this:
  1. mount -o remount,rw /flash
  2. cd /flash
  3. bin2fex script.bin script.fex
  4. mv script.bin script.bin.bak
  5. nano script.fex
  6. fex2bin script.fex script.bin
Copy the Code
Then you have to reboot the board.
Orange PI PC
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-24 05:50 GMT+8 , Processed in 0.026518 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list