yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] salvi:
I bought the Gbox MX2 a couple of days ago and used it with Android. Wasn't really happy with it so started looking into Linux and found this page.

First, I would strongly suggest that all the current issues with loading Linux be posted on the first page so people won't install it and have issues that were found already on this 48+ page post.

My device came pre-loaded with 1.1.6. I flashed it with MX_LINUX_v1.00-RC1-NEWMTD-G18REF_MX2REF-update.zip according to the instructions.

1st issue: After power off/on the device would not fully boot. It would stay stuck on the XMBC logo.

-----Solution: Enter recovery mode and perform "wipe cache partition" and "wipe data/factory reset"

2nd issue: Device would not connect to Wifi

-----Solution: Make sure that date/time are correct

3rd issue: XBMC was not auto fitting on TV how it would when running Android

-----Solution: Go into settings and change the resolution that fits fine with your TV

4th issue: Not able to install any addons/changes are not saved when powering device off/on

-----Solution:

----------4.1 Flash the Matricom 1.1.5 firmware using the steps from this page http://xdaforums.com/showpost.php?p=45502307&postcount=12 . The simplified steps are on the next post as well.

----------4.2 Verify that your device is now on 1.1.5 firmware by running the OTA Updater application

----------4.3 Flash the device with MX_LINUX-v1.00-RC1-G18REF_MX2REF-update.zip
[Miscellaneous Android Development] salvi:
A re-wrote the instructions for the 4th issue in case other people are confused:

Here is an almost-idiot proof ROM install and UNBRICK method instruction for AML8726-MX (M6) Android TV Box (1gb / 8gb dual core):

Also known as:

G18REF

DROIDBOX iMX6

DROIDTV MX

MX2REF

MATRICOM G-BOX MX2

or any generic Android MX Media Box with same hardware, AML8726MX 1G/8G set top box

HD18 V2.2

HD18 V2.21

HD18 V2.22

I created an easy-install SD Card image from this ROM: Matricom G-Box Midnight MX2 v1.1.5+ (ROM DATE = 9th of August 2013)

A. CREATING THE SD CARD

1. Run the HDDRawCopy1.02Portable.exe application

2. Select the MATRICOM_MX2_115_FULL_AUG_09_2013.imgc as the source

3. Select the SD Card as the destination

4. Click Start

5. Close the HDD RAW COPY program and eject the card (SAFELY - choose eject from PC, right click menu + eject).

WARNING: THIS METHOD WILL ERASE EVERYTHING FROM YOUR MX BOX AND INSTALL A NEW ROM. USE AT YOUR OWN DISCRETION.

B. FLASHING THE SD IMAGE FILE TO DEVICE

1. Make sure MX device is powered off and power cable removed.

2. Insert SD card you just created.

3. Insert a match or a toothpick to reset hole - you will feel a click. (it is the AV hole in the back)

4. Power on the MX box by inserting power cable, while holding the match in the reset hole.

5. It will boot to recovery and start installing ROM.

6. After finishing it will give 2 errors - these do not matter.

7. Remove power cable and insert it again, the device will boot as MATRICOM MIDNIGHT G-BOX MX2

---------- Post added at 07:26 AM ---------- Previous post was at 07:07 AM ----------

I'm happy to confirm that performing my above posted steps solved my issues.

---------- Post added at 07:57 AM ---------- Previous post was at 07:26 AM ----------

One thing to note is that the Wifi card on these devices are crap. I have an Aruba controller with an AP105 with HT enabled on both bands. The Apple TV/Roku are getting at least 20Mbps, the AP is in the garage, but this Gbox MX2 is barely getting 4Mbps. That would explain why the video keeps buffering so much.

I'm going to do a mesh setup with the APs to see if having an AP closer gives better results. I would recommend just wiring this device directly instead though. Can an external 5Ghz capable card be added instead?
[Miscellaneous Android Development] dhead666:
I found out that the VS IP015 (Amlogic MX, DVB-T2) includes the Silicon Labs SI2168 demodulator so I'll take the chance and order EM6-T2 and try to get it working in Linux (if someone else won't get to it, shipping .

Another model that's available on Aliexpress with DVB-T2 is the GK526T which comes with a remote that feature an air mouse but no the usual multimedia keys (like: play, next ...).
[Miscellaneous Android Development] dhead666:
Anyone else interest in the EM6-T2 and its counterpart EM6-S2 ?

Although the location of the Ethernet is a bit strange I really like the design of the device.

What's bothers me is the remote's buttons layout which is just wrong.

In hope to somehow deliver this message to the manufacturer I've sent the following to few resellers on Aliexpress.

So if you find interest in the device and don't like the remote, please consider to contact the seller
[Miscellaneous Android Development] braders2k:
Anyone been using RC2 on a daily basis?
[Miscellaneous Android Development] -lukin-:
Thanks Corey. I installed MX_LINUX_PRERC2-TEST1-STVMX-update on a generic box like the ATV1200 and everything is good. Only problem is that my WiFi isn't working - but doesn't matter because I hard wire everything.

Cheers!
[Miscellaneous Android Development] desmondo1:
Backup RC1 MX linux

I have been running mx linux RC1 for a good few months and for the most part I have been very impressed with the speed and picture quality, I have it hooked in to an avr and the sound seems awesome. I generally use the wired ethernet as I have a gigabit switch there for my satellite. But on occasion I have lost my ability to access my network either wirelessly or through the switch and I have had to wipe all my settings doing a factory reset. I have tried xbmc backup but this does not work to ext storage sdcard or usb. Is there any other addons or way of backing it up?
[Miscellaneous Android Development] -lukin-:
XBMC Backup copies the "addons" and "user data" folders, so I just save copies of those folders and then put them back it I ever need to restore my settings. I haven't done with with XDA Linux XBMC yet - only Android XBMC. How about SSH and copy them with command line? Sorry I didn't give you 100% answer.

---------- Post added at 09:14 AM ---------- Previous post was at 09:13 AM ----------

Yes, it's stable on ATV1200. No WiFi - but that's the only issue I notice.
[Miscellaneous Android Development] desmondo1:
Thanks, I think it will need to be ssh, as I could use the addon on android, but now it says backing up to target but nothing saves.
[Miscellaneous Android Development] stenka85:
https://mega.co.nz/#!GN8XkB6b!GAY0FsyXeii5lfWzsMVG41yy62dwJnuH4slqSuk5CFM

Build from sources 21/2/2014 for G18REF/MX2REF for OLD MTD.

Installed without wipes coming from RC1 Works like a charm.

"Bugs"

- No menu for internet settings, only connect with Ethernet and DHCP.
[Miscellaneous Android Development] dhead666:
Thanks for posting this, I have'nt had time to build myself.

Seems like Amlogic still didn't fixed the deinterlacing bug (this is the latest kernel from 20131225), very annoying.

Corey removed the Pivos' Network Manager patch and added the Network Manager addon (go to Programs - > Network-Manager)
[Miscellaneous Android Development] -lukin-:
Thanks. I'm using MX_LINUX_PRERC2-TEST1-STVMX-update - Can I flash right over top of that?

---------- Post added at 04:06 PM ---------- Previous post was at 03:15 PM ----------

I don't see that on MX_LINUX_PRERC2-TEST1-STVMX-update
[Miscellaneous Android Development] dhead666:
Well, your build probably too old, you need both of these commits

https://github.com/CoreTech-Develop...mit/0fc7e3dc9e55ad3e0b6106963f5b14118593bba8v

https://github.com/CoreTech-Develop...mmit/b1f09903c9dfb50a0abd7a1e74d175ff3ab24210
[Miscellaneous Android Development] -lukin-:
Thanks dhead. Unfortunately, this surpassed by Linux knowledge at this moment. I'll need to know what a commit is and what to do with them next :silly:

Keep truckin'
[Miscellaneous Android Development] wason92:
A commit is a change to the software.

buildroot-mx_linux is being developed in a git repo, it's public so anyone can download it at anytime.

You don't need to know much about using git since [MENTION=2258485]stenka85[/MENTION] has already built the package ready to install.

So if you want to try it with the changes up to 21/02/2014 just install the build he posted.
[Miscellaneous Android Development] chemakor:
Hope you didnt forget us with the blutimes mx5?
[Miscellaneous Android Development] -lukin-:
I missed this post. Thanks for doing that stenka85!

Thanks. I'm going to look more into building gits.
[Miscellaneous Android Development] Biatsch:
http://www.jynxbox.tv/threads/64-Unofficial-Jynxbox-M6-XBMC-Pure-Linux

Works great on ATV1200 :D
[Miscellaneous Android Development] fremar:
Is there any linux xbmc that works on a tronsmart prometheus?
[Miscellaneous Android Development] elboby:
-edited-
[Miscellaneous Android Development] braders2k:
Whats the latest MX software for the same android box which is posted on the first page from op..

Im on RC1 at mo just wondered if anything new to flash?

Thanks
[Miscellaneous Android Development] -lukin-:
assert failed:

getprop("ro.build.product") == "g18ref" || getprop("ro.product.device") == "g18ref"

getprop("ro.build.product") == "mx2ref" || getprop("ro.product.device") == "mx2ref"

Installation aborted.

This was flashing my ATV520E -- Newer model with antenna. So I guess it's got the NEW MTD?

Update:

I'm getting the same error with my ATV1200. Technically it's a generic ATV1200like box with external antenna. Someone else had said it worked on ATV1200. Is it possible that both my ATV520 and ATV1200 have new builds?

To double-check, first flash update_spi_mx_20130805.img then update_stvmx_20130805_eng.img and then MX_LINUX-G18REF_MX2REF-update-210213. Not sure what I'm doing wrong here.
[Miscellaneous Android Development] Biatsch:
http://www.jynxbox.tv/threads/64-Unofficial-Jynxbox-M6-XBMC-Pure-Linux use thi´s one ;)
[Miscellaneous Android Development] -lukin-:
Funny you should say that... I just flashed Jynxbox Linux and it works. But I have one red light and one blue light. Not sure what that's about...
[Miscellaneous Android Development] Biatsch:
F***** lights aren`t important for me since everything is working if u have small remote from geniatech just download remote.conf and replace in etc/xbmc

https://www.dropbox.com/sh/1r3anv4hfubi5wr/Ss2bD31f9Q :D
[Miscellaneous Android Development] elboby:
How can make a build?
[Miscellaneous Android Development] dados:
sudo apt-get install git build-essential zip gawk libtool gettext \

automake autoconf nasm unzip gettext flex bison libsdl-image1.2 \

liblzo2-2 lzma python openjdk-7-jre-headless \

texinfo libxml-parser-perl wget pkg-config swig cpio zlib1g-dev \

libncurses5-dev autopoint

git clone https://github.com/CoreTech-Development/buildroot-mx_linux.git

cd buildroot-mx_linux

make the defconfig for your board

make

I think, that's all.

Please correct me, if i am wrong!

But i don't know how to build a new uImage.

I would like to have a kernel without amlogic-dvb-support and dvb-core and dvb-usb as external modules.

I think, then it will be possible to cross compile v4l2 drivers and watch live TV with tvheadend-server and tvheadend pvr addon in xbmc.

I tried Stanes1983 build, but got a lot of gcc errors and no mali.ko

Is there any howto?

Regards

Daniel
[Miscellaneous Android Development] elboby:
thanks

building...
[Miscellaneous Android Development] Biatsch:
Recovery on Jynx Bootcard will change .... U cant get back to geniatech rom ......

Flash JynxRom at ur own risk....
[Miscellaneous Android Development] -lukin-:
Hey Corey:

I noticed your link to the Jynxbox firmware and thought I should mentioned there's difficulties reverting from it to Geniatech Android firmware and/or your XDA Linux version. Do you have any insight into this issue? Following all the standard procedures to flash the ATV520E, I can't get any other firmware to stick. Is it because Jynxbox is a single core processor?

Thanks.
[Miscellaneous Android Development] croniccorey:
jynxm6 is a dual core... Reason for trouble reverting is because the board name is now jynxm6 not stvmx... I will upload a revert zip once I got time... Later today or tomorrow..

Also just note that fw is ment for jynxbox m6 not for other stvmx boards, so flash unofficial boards at your own risk...
[Miscellaneous Android Development] -lukin-:
Thanks. I tried on my generic ATV1200 and still get...

assert failed:

getprop("ro.build.product") == "g18ref" || getprop("ro.product.device") == "g18ref"

getprop("ro.build.product") == "mx2ref" || getprop("ro.product.device") == "mx2ref"

Installation aborted.

So that means the ATV1200 boardname is STVMX? Okay, got it. Is there a more recent STVMX build that is ready to be compiled? (Current, PRERC2 works with bugs).
[Miscellaneous Android Development] Biatsch:
Would be AWESOME if u create revert zip, cause iam on jynxrom with my atv1200 and can`t get back :( (But Jynxrom is workin fine for me, until an update of STVMX will be out, my Linux skills are noob like, and cant create a new Rom from github :( )
[Miscellaneous Android Development] theos0o:
[MENTION=3484100]croniccorey[/MENTION]

I know this is slightly off topic, but is there any working android kernel source for the MX2?

I tried this one but it doesnt seem to boot.. :(
[Miscellaneous Android Development] -lukin-:
Not sure if this helps, but I logged my stock generic ATV1200 via serial and got the following MTD

Creating 7 MTD partitions on "nandnormal":
0x000000800000-0x000000c00000 : "logo"
0x000000c00000-0x000001400000 : "boot"
0x000001400000-0x000021400000 : "system"
0x000021400000-0x000040800000 : "cache"
0x000040800000-0x000053400000 : "backup"
0x000053400000-0x0000b3400000 : "userdata"
NAND bbt detect factory Bad block at 66c00000
NAND bbt detect factory Bad block at a1800000
NAND bbt detect factory Bad block at a8400000
0x0000b3400000-0x0000fe000000 : "NFTL_Part"
[Miscellaneous Android Development] mehanic01:
Awesome Thanks great work xbmc runs super fast, using on a g18ref wifi won't connect but works great with Ethernet.

Thanks
[Miscellaneous Android Development] dhead666:
It looks like Amlogic finally released Android 4.4 for the the dual core 8726-MX.

Hopefully their next kernel released will be much newer than 3.0.50 and will have some fixes for the video related issues (deinterlacing and high bitrate).

http://openlinux.amlogic.com/Android/Mbox
[Miscellaneous Android Development] shlomicthailand:
Build from github guide

Hi guys

can someone send a guide on how to build Corey github sources , he has several repos there, (xbmc, build-root)

thanks

Shlomi
[Miscellaneous Android Development] rod1:
Hi, I have a Droid Stick A2, but can't get anything to boot. Which version of android were you coming from, and which Linux rom did you use?
[Miscellaneous Android Development] chaos72653:
I've flased the build, and love it. Very clean and very fast. No issues whatsoever.

But I would like to add some apps on the linux side and access them using advanced launcher. Specifically some emulators. I can't install via ssh though and can't get xterm to open using advanced launcher. Any help would be greatly appreciated.
[Miscellaneous Android Development] Vitaliy_S:
Hi, croniccorey. Where find sources for g02refdongle kernel (or defconfig) ? In you github only precompile kernel.

Sorry for the bad english.
[Miscellaneous Android Development] dhead666:
If anyone interest it looks like the HD18T2 (DVB-T2) and HD18S2 (DVB-S2) have been added to DX and sold as HD18T2 and HD18S2.

http://dx.com/p/hd18t2-dvb-s2-dual-...ireless-signal-w-1gb-ram-8gb-rom-black-294645

http://dx.com/p/hd18s2-dvb-s2-dual-...ox-player-w-1gb-ram-8gb-rom-hdmi-black-294644
[Miscellaneous Android Development] elboby:
are you running the commands as root user?
[Miscellaneous Android Development] sag:
Yes. User root. Ubuntu 13.10. Java and Python working. Old MTD version is compiled like a charm. I guess it has to to with the config file, but I see it worked for you, so I'm lost.
[Miscellaneous Android Development] -lukin-:
I didn't have any luck with my generic dongle. Messed it up good and have been trying to burn the image with Amlogic tools. Problem is that my stick doesn't seem to match with the various firmwares out there. Anyways, I've pretty much written that generic stick off altogether.
[Miscellaneous Android Development] Biatsch:
MTD with Pure Linux Jynxrom on ATV1200

[MENTION=3484100]croniccorey[/MENTION]

hope it might be helpful for revert.zip

[root@M6 /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: 40200000 00200000 "system"

mtd5: 08000000 00200000 "cache"

mtd6: 10000000 00200000 "backup"

mtd7: a5600000 00200000 "userdata"

mtd8: 00060000 00001000 "bootloader"

mtd9: 00008000 00001000 "ubootenv"
[Miscellaneous Android Development] phatgenius:
Moving Cache Location

I have been trying to figure this out on a couple forums, but haven't had any luck. I am trying to move my cache location on my GBox MX2 to a usb drive versus the hardware. I have tried to ssh using user: root & password: letmein but doesn't go through. I can gain access through FTP to the root folder but can't seem to find the home folder. If anyone can help give me insight on how to complete this I would appreciate it.
[Miscellaneous Android Development] croniccorey:
Sorry all waiting for this revert zip.. Unfortunately I have no computer ATM due to my laptop took a fall... I'll do the zip asap (once I'm back online with PC)

Agin sorry for inconvenience and I'll post it asap
[Miscellaneous Android Development] -lukin-:
Sucks... I guess it's a good time to donate $20! Maybe some of the other 212 people using your Native Linux XBMC will throw you some money as well. :angel:

Brothers don't shake hands, brothers gotta hug
[Miscellaneous Android Development] Biatsch:
No Problem ...... wrote Problems on Freaktab Forum, too...... Finless is going to make original spi without Assertion check, too :D

and a Little Donation ;)
[Miscellaneous Android Development] dhead666:
[MENTION=3484100]croniccorey[/MENTION]

I can confirm the issue with Tvheadned and AAC codec is resolved in XBMC Gotham on Linux (with your Buildroot tree), tested on M3 device.
[Miscellaneous Android Development] wason92:
How did you install Gotham?
[Miscellaneous Android Development] kszaq:
I think you can't simply install Gotham, you need to compile it. To do this, the following change should be sufficient:

diff --git a/package/thirdparty/xbmc/Config.in b/package/thirdparty/xbmc/Config.in
index d6ccd4a..38830fa 100644
--- a/package/thirdparty/xbmc/Config.in
+++ b/package/thirdparty/xbmc/Config.in
@@ -54,6 +54,7 @@ config BR2_PACKAGE_XBMC
select BR2_PACKAGE_READLINE
select BR2_PACKAGE_EXPAT
select BR2_PACKAGE_LIBXML2
+ select BR2_PACKAGE_LIBXSLT
select BR2_PACKAGE_YAJL
select BR2_PACKAGE_SAMBA
select BR2_PACKAGE_SAMBA_LIBSMBCLIENT
diff --git a/package/thirdparty/xbmc/confluence_powerbutton.patch b/package/thirdparty/xbmc/confluence_powerbutton.patch
index dd8c07b..058f889 100644
--- a/package/thirdparty/xbmc/confluence_powerbutton.patch
+++ b/package/thirdparty/xbmc/confluence_powerbutton.patch
@@ -3,9 +3,9 @@ index 1eb6bd6..0b69bea 100644
--- a/addons/skin.confluence/720p/Home.xml
+++ b/addons/skin.confluence/720p/Home.xml
@@ -1064,7 +1064,7 @@
+ <height>45</height>
<label>31003</label>
<font>-</font>
- <aligny>-</aligny>
- <onclick>ActivateWindow(ShutdownMenu)</onclick>
+ ####Compiler will set function####
<texturefocus border="5">floor_buttonFO.png</texturefocus>
diff --git a/package/thirdparty/xbmc/xbmc.mk b/package/thirdparty/xbmc/xbmc.mk
index 2515fc1..b08adeb 100644
--- a/package/thirdparty/xbmc/xbmc.mk
+++ b/package/thirdparty/xbmc/xbmc.mk
@@ -4,9 +4,9 @@
#
#################################################################################

-XBMC_VERSION = d35171783e401511dc97dbd23eb40029a3ea9e94
+XBMC_VERSION = Gotham
XBMC_SITE_METHOD = git
-XBMC_SITE = git://github.com/CoreTech-Development/xbmc.git
+XBMC_SITE = git://github.com/xbmc/xbmc.git
XBMC_INSTALL_STAGING = YES
XBMC_INSTALL_TARGET = YES

That way you'll get the latest Gotham revision (beta 1 for now) which already includes AML-specific changes.
[Miscellaneous Android Development] lexi81:
nightly

Any chance you can release a nightly for g18ref_mx2ref old MTD?
[Miscellaneous Android Development] dhead666:
Did you tried what you are suggesting ?

XBMC mainline is missing some important commits like the hdmi silence (which may be hazaderous to equipment) and the audio bit rate.
[Miscellaneous Android Development] kszaq:
No, I didn't try that since I don't have access to my box at the moment. This simply allows you to compile it. Thanks for the warning, I'm glad I haven't posted the builds yet. Can you provide me with links to some information/patches regarding these matters?
[Miscellaneous Android Development] dhead666:
I've started to look into moving to Gotham, so I compared the git log between mainline Frodo and Corey's 12.4.

I've shorten the list (more than 300) to few commits that need to be review and merge if required.

There is also a list of important files that should be review seperately with more attention as I may dropped something important.

As you said Pivos push most of the commits into XBMC mainline, so while the commits list is long I'm guessing most could be dropped,

others like the Alsa bit rate patch should not exist in XBMC but should be fixed in the kernel (see sound/soc).

Anyway the most important commit is probably the hdmi silence, see https://github.com/MakakLabs/xbmc/commit/ad6349fa4420f314b5bedc0799de990daee0ffac

The list is at

https://github.com/MakakLabs/xbmc/issues/1

Edit:

p.s. look at https://github.com/MakakLabs/buildroot-amlogic-xbmc/commits/m3_linux-gotham (I did forgot to add libxslt).
[Miscellaneous Android Development] Vitaliy_S:
XBMC Gotham beta2 for Droid Stick A2 (G02REFDONGLE)

Internal wi-fi is working

_https://cloud.mail.ru/public/6076b7987ab0/Gotham_beta2_G02REFDONGLE-update.zip

XBMC Gotham 14 alpha1 for Droid Stick A2 (G02REFDONGLE)

Internal wi-fi is working

_https://cloud.mail.ru/public/7aa424ea4906/Gotham14__alpha1_G02REFDONGLE-update.zip
[Miscellaneous Android Development] rod1:
Hi

Thanks for compiling these. Tried the first one on my Droid Stick A2. Boot's nicely seems fluid. However, there is no wifi connection. Network Manager reports: "More than one wifi device found. This could be a problem." and it is!

Will try the second build soon.
[Miscellaneous Android Development] Vitaliy_S:
Click Add and you will see SSID, enter keyphrase, after this exit from Network-manager
[Miscellaneous Android Development] -lukin-:
Whaaaaat? That's awesome. If I could only get the dumb stick to burn right ;)
[Miscellaneous Android Development] rod1:
Unfortunately no APN's are displayed, despite hiting refresh.
[Miscellaneous Android Development] Vitaliy_S:
You have Droid Stick A2 with Broadcom WL-211 (BCM-40181) or other device ?
[Miscellaneous Android Development] Biatsch:
[MENTION=3484100]croniccorey[/MENTION]

Spi without assertioncheck isnt working from finless :( so still stuck on jynxrom..... Maybe u can fix it in future

Atv1200 user
[Miscellaneous Android Development] dhead666:
[MENTION=3484100]croniccorey[/MENTION]

* See http://trac.xbmc.org/ticket/14995

* Is it possible to drop the audio sample rate remapping from XBMC and hide the faullty ones in the driver (sound/soc/aml) ?

* Have you seen my PR ? I been doing a little bit of restructing and I'm not sure if I delete it, anyway here's the commit that seem to me like missing from your tree https://github.com/MakakLabs/buildroot-amlogic-xbmc/commit/80bf85b8bb6c2cc10c5506b59a297ba9e1a4f18e