Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

[Tutorial/Howto] Installing thirdparty applications (deb) in Openelec based TV Stick (MK808b plus)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Tutorial/Howto] Installing thirdparty applications (deb) in Openelec based TV Stick (MK808b plus)

    I must admit Openelec is a great distro (pretty fast as well) however sometimes we want to install third party applications. Here is a basic how to

    This tutorial is written for MK808b plus however most Armv7 sticks should work good.

    Installing Openelec to Nand

    1. I always prefer installing to Nand
    Reason being Openelec has a very good structure where it loads whole img on-the-fly to memory each time it boots and only changes (configurations) etc are stored in the /storage folder
    This means stronger chance of survival during abrupt shutdowns etc. Which also means you cant just copy anything you want to usr or lib or bin folders.

    You must intelligently use the storage folder

    2. Since this tutorial is written for Mk808b plus (wifi is AP6210/6212 but should work with other wireless as well), go here and grap the release (due credit to kzaq)
    3. Follow the proceed as follows - Refer to thread above

    incase the pin method doesnt work....just boot into the android and run the command
    reboot recovery
    more information here
    4. Once you boot in (set up the first time options) you will see the following under storage directory Click image for larger version

Name:	storage.png
Views:	129
Size:	24.1 KB
ID:	532106






    It is important to understand the following
    /storage/.config/modules-load.d can be used to load say kernel drivers which are missing.

    For example you want to load realtekwifi.ko driver,
    just copy the file (realtekwifi.ko) to the above folder /storage/.config/modules-load.d/ and
    Just create a file (any name ending with .conf) realtekwifi.conf
    Open the realtekewifi.conf file with vi and just enter the realtekwifi (notice i did not add .ko extension)
    Reboot it and it should load the wifi drivers

    Incase you want to enable additional drivers, just edit the following file and say 'y" or 'm' (yes means compile into kernel and m means compile as module)
    I would suggest compile as modules and load the additional modules using the above method Click image for larger version

Name:	kernel.png
Views:	117
Size:	35.5 KB
ID:	532107






    Notice below of a sample tv stick that loads additional modules during boot (they were compiled with option m and copied to that folder and a .conf file created) Click image for larger version

Name:	modules.png
Views:	111
Size:	16.3 KB
ID:	532108






    Now thats all sweet and dandy

    What if you want to install applications

    Now fundamentally your system is up and running however you can make changes to the system but they will be lost on reboot.

    First you can identify the application you want to install. Typically look for armhf packages here
    The last one is specially for odroid c1 (aka s805)

    Assuming you identified a package. Generally I identified I want to install say v4l-utils

    What you can do is locate the package say here.


    Download the package and unzip using 7.zip and you will get a data.tar file
    Copy using winscp to openelec
    untar using the following command tar -xf packagename.tar

    You may need the libraries also

    You can identify the dependencies as follows Click image for larger version

Name:	devb.png
Views:	113
Size:	19.2 KB
ID:	532111






    You must create a folder of your choice in the below directory

    /storage/.kodi/addons
    and then copy bin and lib folders of v4l-utils under the above folder

    What it basically does is kodi autoloads the files especially the libraries by changing the LD_LIBRARY_PATH during boot.

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Perfect your application is now working
    You can run it by changing to the folder and running it as ./programname

    Sometimes libraries can conflict and for that case you can create a script named autostart.sh in

    /storage/.config/autostart.sh

    You can make sure the usr/lib and lib folders have lowest preference

    You will need to sleep 1minute to make sure the export command is the last command to run post boot

    Click image for larger version

Name:	autostart.png
Views:	107
Size:	14.0 KB
ID:	532112
    Last edited by mailkit; 24 October 2015, 14:40.

    #2
    I hope this tutorial helps everyone!

    Comment


      #3
      Can I install chromium browser on openelec? It would be cool in order to watch netflix on Openelec...

      Comment


        #4
        Originally posted by winnior View Post
        Can I install chromium browser on openelec? It would be cool in order to watch netflix on Openelec...
        In theory, we could...recently one of the friends in the forum asked to me enable vpn unfortunately the kernel

        didnt have all the required kernel config options enabled....so we are recompiling the kernel with all options enabled...i shall try chromium as well and report back

        Comment


          #5
          Thanks mate, i hope you achieve this, it would be amazing to play any DRM streams over chromium on Amlogic boxes!!!

          Comment


            #6
            @mailkit: Any idea if this approach can get Calibre working on MK808B+ OpenELEC port? So as to have Calibre server runing in the background , and download ebooks over internet. Or even better run COPS?
            Last edited by shamanNS; 31 October 2015, 15:24.

            Comment


              #7
              Originally posted by shamanNS View Post
              @mailkit: Any idea if this approach can get Calibre working on MK808B+ OpenELEC port? So as to have Calibre server runing in the background , and download ebooks over internet. Or even better run COPS?
              Let me check it....since its based on python it must be easy (openelec comes bundled with python)....i will check in the next 48 hours and report back...even the chromium ...havent had time...

              Comment


                #8
                Yes, but it has bunch of dependencies... I saw that there is some very outdated (v 0.8.) version of Calibre working on Rpi , but not on OpenELEC port.
                COPS just needs web server and PHP5 ... (and Dropbox or Owncloud client xD, if Calibre library is on another device).

                Comment

                Working...
                X