yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] codesnake:
I don't have such image, but if your box still have bootloader, you should be able to at least install Android firmware from Matricom, then enter recovery and install OpenELEC.
[Miscellaneous Android Development] dracosc:
Tried over 30 times and 10 different ways to unbrick but no success! :(

Do you know any other way i can try? And how do i know if my box has bootloader?
[Miscellaneous Android Development] dracosc:
Can i know what is the default advancedsettings.xml in the latest built?

BTW, THANKS!!!! IT IS THE FASTEST XBMC i have ever tried!
[Miscellaneous Android Development] codesnake:
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>

<network>
<cachemembuffersize>20971520</cachemembuffersize>
</network>

<samba>
<clienttimeout>30</clienttimeout>
</samba>

<network>
<readbufferfactor>4.0</readbufferfactor>
</network>

<pvr>
<minvideocachelevel>5</minvideocachelevel>
<minaudiocachelevel>20</minaudiocachelevel>
</pvr>
</advancedsettings>
[Miscellaneous Android Development] dracosc:
Hopy you can make a version for the newer S805 boxes :)
[Miscellaneous Android Development] mitnits:
/storage on external USB - can it be done in openelec? Also - custom IR remotes?

Hello

First of all, great work, it's fun to see openelec running fairly well on g18ref boxes...

Now, the boxes have pretty limited storage, so I'd like to move /storage to an external USB.... On Raspberry PI that was kind of simple (you moved the entire system to USB and just booted from SD card with disk=xxxx option to the kernel), g18ref is different enough I guess, so that I can't even find where linux kernel command line is configured....

I've seen hacks soft-linking /storage/.xbmc to external disk but I don't like those for some reason...

Another question (less important, but still...)

Can I somehow add (irrecord?) a custom IR remote to g18ref box?

Thanks
[Miscellaneous Android Development] codesnake:
You cannot change the kernel command line for MX2. Maybe moving the /storage will be supported in future, but it is not a priority task for now.

Unfortunately never did that, maybe someone will help you here. But if you did that already on other OpenELEC installations, on MX2 it can be done in a similar manner.
[Miscellaneous Android Development] mitnits:
Hmm...

That's unfortunate. I imagined there would be a way to tweak uboot parameters in a user-friendly way. Eventually I ended up with a hack: set up the /storage/.config/autostart.sh to mount my USB device by label over /storage :) . xbmc does not seem to mind, and it shows up nicely in settings->system info. I did not yet find anything that broke as a result of this trick (maybe network configs?), and it will survive updates I suppose.....

my /storage/.config/autostart.sh:

mount -o noatime,user_xattr,acl,barrier=1,data=ordered /dev/disk/by-label/USERDATA /storage
umount -f /var/media/USERDATA*
mkdir -p /var/media/internal
mount -o noatime,user_xattr,acl,barrier=1,data=ordered /dev/data /var/media/internal

of course had to tune2fs -L USERDATA /dev/sda1 before it worked....
[Miscellaneous Android Development] mitnits:
Tiny issue with XBMC addons that have binaries compiled for arm linux/RPi

Hi Codesnake

I think I see an easy-to-fix issue with your OpenELEC image that breaks addons that pack pre-compiled binaries for linux_arm or RPi (xbmctorrent is one).

Those binaries (in my case, torrent2http) look for a symlink to loader called /lib/ld-linux-armhf.so.3, which, I think, is absent in your image.

For comparison:

Raspberry Pi:
rpi:~ # ls -l /lib/ld-linux*
lrwxrwxrwx 1 root root 10 Oct 4 13:48 /lib/ld-linux-armhf.so.3 -> ld-2.20.so
lrwxrwxrwx 1 root root 5 Oct 4 13:48 /lib/ld-linux.so.3 -> ld.so
rpi:~ #

MX2:
ls -l /lib/ld-linux*
lrwxrwxrwx 1 root root 10 Oct 5 20:41 /lib/ld-linux.so.3 -> ld-2.20.so
mx:~ #

When I manually run the binary by invoking the loader, everything works fine:

# /lib/ld-linux.so.3 torrent2http
Usage of torrent2http:
-bind=":5001": Bind address of torrent2http
-dlpath=".": Download path
-dlrate=0: Max Download Rate
-encryption=1: Encryption: 0=forced 1=enabled (default) 2=disabled
-keep=false: Keep files after exiting
-max-idle=-1: Automatically shutdown if no connection are active after a timeout.
-no-sparse=false: Do not use sparse file allocation.
-port-lower=6900: Lower bound for listen port.
-port-upper=6999: Upper bound for listen port.
-ulrate=0: Max Upload Rate
-uri="": Magnet URI or .torrent file URL

So I guess this can be trivially fixed....
[Miscellaneous Android Development] codesnake:
That means that the OpenELEC and the addon was compiled with different float ABI. Newest build (see https://forum.matricom.net/index.php?topic=11823.msg25837#msg25837) has been built with hard float ABI, and should work with your addon out-of-the-box.
[Miscellaneous Android Development] inameiname:
So by doing this you are essentially making your MX2 read at boot your specified SD Card's folder, 'storage,' inside "USERDATA," instead of its internal storage? Does this also mean you can now freely use cachemembuffersize of '0' and it'll use your SD Card for buffering?

I am interested in how to make mine do this, so long as there is no real problems involved. How exactly do I do this? I create a folder called "USERDATA" and then one called 'storage' in it on my SD Card, and then create a /storage/.config/autostart.sh with only what you wrote above? Finally, how do I do tune2fs on my MX2? I take it I have to SSH into my box from my computer?
[Miscellaneous Android Development] milesman:
I'm currently running latest build on my CMX AML8726-MX, I am wondering if anyone else is suffering from completely unresponsive system after several hours of video playback? my screen will show green vertical lines and sound will be looping when it freezes.

I haven't experience this issue with Beta 6 build, happened after I upgraded it.

I also wiped device and re-flashed it afterwards and it did not help.
[Miscellaneous Android Development] mitnits:
Not quite (and BTW it's not perfect). Instead, I mount the external USB device on top of existing userdata directory, obscuring it. The old userdata contents remains mounted but is invisible to XBMC.

Also, being an XBMC newbie, I never tried playing with cachemembuffersize, but it looks like having a fast device (and also maybe actual hard disk and not flash storage, due to wear-and-tear considerations) would let you have it. I would not configure this with just the internal storage on MX2, but that's just my opinion.

The complete recipe would look something like this:

1) Find yourself a fast USB device. I really don't know which are fast but in my experiments I ended up using USB 3.0 disk-on-key. The box only has USB 2.0 but the my disk-on-key device itself is pretty speedy. Having slow device will bog down your user experience (slow refreshes on artwork etc)

2) Format a partition on it using ext3 (in my case it worked best. NTFS almost works, but SSH stops working for some reason, never debugged it). The necessary tool to format as EXT3 (mke2fs -j) is available on the box. NTFS can be formatted on any PC.

3) Label the partition using e.g. tune2fs utility (available on the box). Make sure the label is "USERDATA" to match the label I used in my script. If you go NTFS way, that's what you need to use for volume label as well.

4) Copy the script from my earlier post to /storage/.config/autostart.sh and make sure it's executable (chmod a+x /storage/.config/autostart.sh)

Disclaimer: YMMV, I suggest not attempting this if you're not comfortable with SSH and Linux command line. While I don't think this has the potential to break your box, it may lead to some time being wasted.
[Miscellaneous Android Development] inameiname:
Ah, I gotcha.

I believe earlier Codesnake's commented (whether on this thread or the one on Matricom's website) on the use of '0' cachemembuffersize and stated he's not worried about it, so maybe it isn't a huge issue. However, after having to get a replacement box only after 3 months, allthewhile using '0' camchemembuffersize makes me a tad wary myself.

Anyway, thanks for the instructions. Another way that might be easier for some who don't like ssh:

1. Use a computer to format a usb drive, labelling it USERDATA. On Linux, I prefer using Gparted.

2. Create and make executable the autostart.sh as mentioned.

3. Copy the autostart.sh to MX2.

- copy autostart.sh to newly formatted usb drive, plug it into MX2, just like any other external device, open 'File Manager' in XBMC, then copy the whole 'storage' (or just the 'storage', 'config', and 'cache,' folders, just like OpenElec backups contain) contents onto usb drive. and cut and paste the autostart.sh to /storage/.config/, hard power cycle with remote immediately following, and voila.

I actually copied my storage, config, and cache from an OpenElec backup I already had kept on my computer rather than using the above way. Whatever way to get your custom stuff back. Seems to work, thanks.

Note: I noticed the permissions for the 'storage,' 'config,' and 'cache,' folders on my usb drive were 'root' when I first tried it (before copying my customizations to it), so I made sure to make 'root' the user for my custom ones as well. Does that matter?

Small issue: Testing this after OpenElec Reset-ting, and then immediately copying over autostart.sh and rebooting into my usb drive's .xbmc folder, I noticed my Wifi doesn't connect as it should. I'm guessing Wifi connects first before autostart.sh is run, but since I didn't configure this prior, only after using '.xbmc' on usb drive, it lags. So just make sure to connect before and it seems to work.

Again, appreciate the suggestion. Although, only using the usb drive for video buffering would be most preferable. Perhaps some sort of symlinking is possible?
[Miscellaneous Android Development] chigo58:
Just loaded 4.2.1 on a wired genuine MX2 from v1.1.6 - encountered no problems whatsoever.

Loaded a couple of plugins, set some display parameters and the box was good to go - very happy indeed :good:

Power-off worked, blue LED light remained on - very minor but thought i'd point it out.

Thank you for your very valid contribution codesnake - hope to see further updates.
[Miscellaneous Android Development] codesnake:
Hi all,

Here's my first public build of OpenELEC for M8 box based on Amlogic S802 chip (2GB square version, thanks to Panya32, who donated an M8 box). Download it here: https://googledrive.com/host/0B4FNwq1C49hvX1Y1bHFTY0ZvUEk/OpenELEC-Meson8-K200-devel-99a1eba.zip.

To install, unpack the archive onto SD-card, insert it into the box, and enter recovery using toothpick. Installation should start automatically.

Waiting for you feedback.
[Miscellaneous Android Development] Bruur:
Thanks in advance Codesnake!

I'll try it this evening. I have a square S802 box ready to test this on! I'll let you know of the test results.

Let me check if I got this right? The contents of this zip must be placed on an SD card and the box is updated via the toothpick method?
[Miscellaneous Android Development] codesnake:
Right.
[Miscellaneous Android Development] roy8846:
Is the mx openelec pretty much done with or is there more updates in the pipeline? Bought 2 boxes because of your rom so big thanks
[Miscellaneous Android Development] codesnake:
Here's a new build for M8 that has the following changes:

forces 720p video mode at startup that should fix the no splash / no signal issue.

enables 5GHz band for built-in Wi-Fi.

Download: https://googledrive.com/host/0B4FNw...nELEC-CodeSnake-Meson8-K200-devel-99a1eba.zip
[Miscellaneous Android Development] DWhite456:
I have an MX2 Matricon that I have 1.1.5 firmware on. I downloaded the latest file mx2 4.2.1 from the first post. in recovery I wiped data and cache, then I installed the openelec zip from recovery. It boots up to a Openelec splash screen and then it has an error " error in mount_storage: mount_common: Could not mount /dev/data ***

### Start debugging shell.... type exit to quit @@@

ah: Cants access tty>: job control turned off

#

it does not do anything after that. I dont have a keyboard hooked up to it. just the basic remote.

Any thoughts?
[Miscellaneous Android Development] jatoprieto:
Openelec must be installed over 1.1.6

Go back to 1.1.5 and the update to 1.1.6.

From there wipe and install 4.2.1
[Miscellaneous Android Development] codesnake:
You need to install the 1.1.6 firmware first, then OpenELEC.
[Miscellaneous Android Development] DWhite456:
thanks for the quick posts. I appreciate it.
[Miscellaneous Android Development] Bruur:
OK, I tested this yesterday. It works like a charm! I only tested with a wired internet connection by the way.

I restored a backup file from a MX box on it. And it ran without any problem. Is this wise to put a backup from a different model OpenElec box on it actually? Can this lead to problems? Are there settings in the backup of the MX box which lead to issues with this hardware, for example downgrading of performance? By the way under System Info, I saw the extra cores and memory.

The difference in performance with the MX box was difficult to notice. Since, most of the 'waiting time' is due to performance of online services. I couldn't test with the biggest performance hungry addon P2P streams, because recently all streams broke because the streams require a new AceStream engine.
[Miscellaneous Android Development] wolfsbaine:
hi codesnake, installed this last night on my Eny M8, the standard remote control does not function with this rom, i used a phone app to set it up and it runs great. I did also go back into recovery and did another full wipe to double check.

i notice in the system information it reports 2.0 bogo mips same as android xbmc, on stanes ver (which i have installed on another box) it reports 5.8.

while watching a video i was unable to get the on screen menu to appear for play/pause though the phone app does have a play/pause button anyway.

also i was unable to find the sdcard mount point to restore my settings backup so had to copy it across into one of the openelec shares to do a restore.

seems to be working great other than that, help on getting the remote working would be appreciated

great effort, thanks ;)
[Miscellaneous Android Development] codesnake:
You can freely use the OpenELEC backups from other Amlogic-based boxes.
[Miscellaneous Android Development] sd26:
Thanks codesnake. I installed your openelec on my M8 (square box) and i's fantastic. I haven't had a freeze interlacing issues or xbmc crash.

A few questions. Is a pink screen normal during the boot logo? Also I sometimes get a brief pink screen when skipping forward.Thanks again, well done.
[Miscellaneous Android Development] codesnake:
Here's the promised new build for M8 box.

Updates in this build:

Fixed an issue when you cannot install any addons from OpenELEC official and unofficial repositories. Now you can install tvheadend, vdr, etc.

Fixed SD-card not mounting issue

Added support for Realtek 8188EU Wi-Fi module that seems to be used in some M8 models.

Loads remote.conf from /storage/.config if it exists, otherwise loads standard /etc/remote.conf

Download links:

for updating the exisiting installations: https://googledrive.com/host/0B4FNw...odeSnake-Meson8-K200-devel-bb377b3-update.tar

for new installations from recovery: https://googledrive.com/host/0B4FNw...nELEC-CodeSnake-Meson8-K200-devel-bb377b3.zip
[Miscellaneous Android Development] pigbait:
Wow unreal the rate you are developing at
[Miscellaneous Android Development] codesnake:
A new build for M8

Here's a new build for M8 box.

Updates in this build:

Added support for most widely used digital TV tuners.

Added both RTL8188EU and RTL8188EU-MP Wi-Fi drivers.

Download links:

for updating the exisiting installations: https://googledrive.com/host/0B4FNw...odeSnake-Meson8-K200-devel-0866447-update.tar

for new installations from recovery: https://googledrive.com/host/0B4FNw...nELEC-CodeSnake-Meson8-K200-devel-0866447.zip
[Miscellaneous Android Development] Big jugs:
New build doing strange things with my wifi, comes up with ip 194.254.357. Etc then goes to the normal one of 192.168.0.32.
[Miscellaneous Android Development] codesnake:
New build for M8

Today I have a little surprise for the community. Finally I have made the HDMI CEC working on M8 boxes! Now you can use the remote from your TV to control the XBMC.

Download links:

for updating the exisiting installations: https://googledrive.com/host/0B4FNw...odeSnake-Meson8-K200-devel-320a148-update.tar

for new installations from recovery: https://googledrive.com/host/0B4FNw...nELEC-CodeSnake-Meson8-K200-devel-320a148.zip
[Miscellaneous Android Development] sidler:
hi codesnake- which digital TV tuners have you added support for so I know which one to buy? Are there any dvb-s2 drivers which can be used with tvheadend?

My prima pm6001 died and I am just about to by an M8 box
[Miscellaneous Android Development] maormark:
Codesnake there is a chance that you can customize the pulsar extension to our mx2.

Here is the link for the addon:

http://forum.kodi.tv/showthread.php?tid=200957

Thanks in advance
[Miscellaneous Android Development] codesnake:
I added all TV tuners natively supported by the 3.10 kernel.
[Miscellaneous Android Development] codesnake:
Unfortunately currently I'm busy with other things.
[Miscellaneous Android Development] sidler:
Apologies if this is a newbie question but I'd like to learn how this works.

How would I add the following drivers to the Kernel: http://www.dvbsky.net/Support_linux.html

I'd appreciate any pointers to get me started and understand how drivers are added to the kernal
[Miscellaneous Android Development] sd26:
Sound playing too fast voice high pitched

Codesnake how do I fix the following error which makes everyone sound like they have inhaled helium and skips video?

09:46:50 T:2689594448 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1055794.001431, should be:1157037.001907, error:101243.000477

09:46:50 T:2689594448 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1557140.001907, should be:1666886.027657, error:109746.025749

Extract from xbmc.log here:

http://pastebin.com/iXdhQQF0

It occurs on all videos on the Australian Football add-in but only on your open-elec and stanes amlinux xbmc. M8 android, My CS968A android box Windows and Linux XBMC all play the videos fine.

Is it possibly related to sample rate 32000?

Also the SD card mounts read only and i am unable to remount it read/write. Can you please make the sdcard read mount/write?

/dev/mmcblk0p1 on /var/media/32GB_SD type vfat (ro,nosuid,nodev,noexec,noatime,fmask=0133,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)

Thanks
[Miscellaneous Android Development] codesnake:
Example stream?

Confirmed. I'll try to fix that.
[Miscellaneous Android Development] sd26:
AFL Video plugin for XBMC - > https://github.com/andybotting/xbmc-addon-afl-video

http://bponlinewoc2264.ngcdn.telstr...RT_ON_COMPENSATION01_S_2739744942__932973.mp4

http://bponlinewoc2264.ngcdn.telstra.com/platform_release/740/94/WEB_1105_TIME_TRIAL_S_489723818.mp4

http://bponlinewoc6264.ngcdn.telstr...FREM_RD01_Q1_S_1285853393__191406.mp4?start=0

xbmc.log of the 3 videos playing:

http://pastebin.com/yUyJXXS7
[Miscellaneous Android Development] pigbait:
Not sure if it's a bug or not, but if I set my box to 1080p 24hz I lose audio, I tried 3 different HDMI cords and different HDMI ports it will some times get audio... will try and post log
[Miscellaneous Android Development] codesnake:
What box do you use? I watch most of the movies in 1080p 24Hz display mode on M8 and MX2 without any problems.
[Miscellaneous Android Development] pigbait:
Sorry it's a M8 version 0.92 board.... might be old hardware problem.. I will try without audio passthru

---------- Post added at 11:18 AM ---------- Previous post was at 11:17 AM ----------

Could even be my stupid onkyo amp
[Miscellaneous Android Development] bouter:
Love it

I love your development of this.

Getting my m8 soon and I will put this on the box :)

Another question, is it possible to have dual boot on the m8?

So my kids/wife can play with Android. And if I want to watch a movie I can boot into openelec?

Thanks for the effort you put in this.

Regards

De Bouwer
[Miscellaneous Android Development] codesnake:
No, you can't use Android and OpenELEC at the same time, because OpeELEC replaces Android. To use Android you need to reinstall it again.
[Miscellaneous Android Development] TylerDurdenK:
What box?

What boxes are you guys using? The M8 and MX2? Which is best?
[Miscellaneous Android Development] TylerDurdenK:
Would this one work well?

http://pages.ebay.com/link/?nav=item.view&id=271641153269&alt=web
[Miscellaneous Android Development] jatoprieto:
Same one I have.
[Miscellaneous Android Development] TylerDurdenK:
Thanks, I take it you're happy with the user experience when running Openelec with this box?

Do you have any other hardware that you have experienced Openelec on for comparison?
[Miscellaneous Android Development] jatoprieto:
I just installed openelec on this box last night. It's running ok. However, I can't tell you it's the best I've used, (yet) I have several MX2 and the are awesome. I would assume that these are better.

I also have a full blown HTPC with openelec and these boxes are pretty good considering the different hardware to my HtPC. I am very happy with the work codesnake has done.
[Miscellaneous Android Development] TylerDurdenK:
So, are the MX2 boxes better? I thought they were lower spec.....!
[Miscellaneous Android Development] jatoprieto:
They are lower specs. I've just had them longer. I just got this m8
[Miscellaneous Android Development] vvd214:
Help with G02REF board

I try co compile Openelec from codesnake source for my G02REF board by edit updater-script file, After flash, reboot, It show Openelec logo and hang at screen with error (picture in attach file):

error in mount_storage mount_common could not mount /dev/system

Maybe need to more modify things about cpio, initramfs, please help me

My board Mtd is:

cat /proc/mtd

dev: size erasesize name

mtd0: 00400000 00200000 "logo"

mtd1: 00800000 00200000 "recovery"

mtd2: 00800000 00200000 "boot"

mtd3: 10400000 00200000 "system"

mtd4: 10000000 00200000 "cache"

mtd5: de000000 00200000 "data"

mtd6: 00060000 00001000 "bootloader"

mtd7: 00008000 00001000 "ubootenv"
[Miscellaneous Android Development] TylerDurdenK:
I've just order 3 M8 Boxes from AliExpress to replace my current openelec clients. Fingers crossed for a pain free install!

Here's thelink - http://www.aliexpress.com/item/Amlo...uad-Core-2Gb-8Gb-GPU-Mali450/32226525211.html

Thanks for your efforts Codesnake.
[Miscellaneous Android Development] pakkosauna:
I have same problem on my G18REF, first start came same error but over on openelec logo. Second start is only black screen.

this ROM works fine http://xdaforums.com/showthread.php?t=2418029

/root$ cat /proc/mtd

dev: size erasesize name

mtd0: 00800000 00200000 "logo"

mtd1: 00800000 00200000 "aml_logo"

mtd2: 00800000 00200000 "recovery"

mtd3: 00800000 00200000 "boot"

mtd4: 40400000 00200000 "system"

mtd5: 20000000 00200000 "cache"

mtd6: 10000000 00200000 "backup"

mtd7: 18cc00000 00200000 "userdata"

Only uboot in SDcard bring box a live.

Problem solved:

Installing gbox software ver. 1.1.6 did not update New mtd first time. :silly:
[Miscellaneous Android Development] bouter:
Can i help ya?

I'm sorry codesnake, but the cec doesnt work for my m8 box? anything i can do about this? i tryed 3 diferent hdmi cables. it does work on my pi..

And also 1080 isnt availeble on my m8 box?

Can i do something to help you with this isseus?

De Bouwer
[Miscellaneous Android Development] codesnake:
Did you enable the HDMI CEC on your TV? Note that on TVs of different vendors the HDMI CEC technology may be called differently. For example on LG TVs it is called SimpLink.
[Miscellaneous Android Development] bouter:
Yes its active on my tv. my soundbar/blueray etc etc is all working with it atm.

And even my raspberry works with it

Its called allshare on my samsung
[Miscellaneous Android Development] codesnake:
You can send me your dmesg output for analyzing.