<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-626180034942409154</id><updated>2024-09-10T09:27:55.875-03:00</updated><title type='text'>MELE A1000 Hacking</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://melea1000.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://melea1000.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>david</name><uri>http://www.blogger.com/profile/14722431132512249974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-626180034942409154.post-544126867706161899</id><published>2013-04-09T20:05:00.002-03:00</published><updated>2013-04-11T21:56:15.030-03:00</updated><title type='text'>Mele as a media server</title><content type='html'>&lt;h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size: large;&quot;&gt;Perfect media server&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Your media (and general purpose) server should have:&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Torrent daemon&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;samba share&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;mysql&amp;nbsp;+ php + nginx&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;software to queue, rename and organize your downloads (I&#39;m using sickbeard+ couchpotato)&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;misc&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Operative system&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;I&#39;m choosing debian armhf, but feel free to try ubuntu arm or arch arm.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Follow either &lt;a href=&quot;http://guillaumeplayground.net/mele-a2000-headless-debian-wheezy-armhf-with-nand-install-v1/&quot;&gt;Guillaume&#39;s&lt;/a&gt; or &lt;a href=&quot;http://romanrm.ru/en/a10/debian&quot;&gt;Roman&#39;s&lt;/a&gt; instructions on how to install.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Software&lt;/span&gt;&lt;/h4&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Torrent daemon&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;I chose to use &lt;b&gt;transmission-daemon&lt;/b&gt; over deluge (and didn&#39;t try any other) because deluged + deluge-web was eating up to 30MB of ram, where as transmission-daemon uses 2MB of ram, and the Mele has only 512MB.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;# apt-get install transmission-daemon&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;# service transmission-daemon stop&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;# vi /etc/transmission-daemon/settings.json&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;set rpc-whitelist-enabled&lt;/span&gt; to false&lt;br /&gt;
add&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &quot;watch-dir&quot;: &quot;/home/storage/torrentfiles&quot;,&lt;br /&gt; &amp;nbsp;&amp;nbsp; &quot;watch-dir-enabled&quot;: true&lt;br /&gt;at the end of the file if you want transmission to pick up the torrents placed in that folder (both couchpotato and sickbeard can do that)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# service transmission-daemon start&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Log in to the default port http://127.0.0.1:9091. The default password is transmission.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;On the webui I set up a watch directory because sickbeard stores the torrent files there, and transmission loads them.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;Samba share&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;#apt-get install samba-common-bin samba-common samba&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Each samba share configuration is unique to the user, but I&#39;ve set a share with read-write, anonymous access.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;At the end of the /etc/samba/smb.cnf file add&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[share-name]&lt;br /&gt;&amp;nbsp; path = /path/to/share&lt;br /&gt;&amp;nbsp; read only = no&lt;br /&gt;&amp;nbsp; writeable = yes&lt;br /&gt;&amp;nbsp; guest ok = yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Mysql + php + nginx&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;#apt-get install nginx php5 php5-mysql php5-fpm mysql-server-5.5 mysql-client-5.5 php5-mysql&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;

&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Mysql configuration&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;Remote access &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;I&#39;m assuming&amp;nbsp; you used &#39;root&#39; for your username.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;code&gt;mysql -u root&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;If you didn&#39;t set up a password&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;code&gt;mysql&amp;gt; SET PASSWORD FOR &#39;ROOT&#39;@&#39;LOCALHOST&#39; = PASSWORD(&#39;your_new_password&#39;);&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;code&gt;To gain remote access with the username &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code&gt;mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO &#39;root&#39;@&#39;%&#39; IDENTIFIED BY &#39;your_password&#39; WITH GRANT OPTION;&lt;br /&gt;
mysql&amp;gt; FLUSH PRIVILEGES;&lt;br /&gt;
mysql&amp;gt; exit&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;#vi /etc/mysql/my.cnf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;comment out the line that says&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;bind-address = 127.0.0.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;#service mysql restart&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href=&quot;http://www.lowendbox.com/blog/yes-you-can-run-18-static-sites-on-a-64mb-link-1-vps/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Optimize the ram usage of mysql&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;nginx&lt;/span&gt;&lt;/h3&gt;
I chose nginx because of it&#39;s small memory footprint and high performance. Check benchmarks vs apache to see the difference.&lt;br /&gt;
&lt;div class=&quot;command&quot;&gt;
&lt;b&gt;Configuration &lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;command&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;#vi /etc/nginx/sites-available/default&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;A webserver&#39;s config changes totally, depending the needs of the host. Here&#39;s an example &lt;a href=&quot;http://wiki.nginx.org/NginxFullExample&quot; target=&quot;_blank&quot;&gt;link &lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Couchpotato, SickBeard&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;#apt-get install git-core python2.7 python-cheetah&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;$ git clone git://github.com/RuudBurger/CouchPotato.git&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;$ git clone git://github.com/midgetspy/Sick-Beard.git&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Follow on-screen intructions for both.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h4&gt;
Misc&lt;/h4&gt;
Here&#39;s the server running all the processes (no couchpotato) &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i.imgur.com/wBULLAy.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;199&quot; src=&quot;http://i.imgur.com/wBULLAy.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Mount ntfs with write permission&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;#apt-get install ntfs-3g&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;#mount /dev/sd# /path/you/want &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i.imgur.com/Nlt8bGU.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt; &lt;/div&gt;
&lt;h3&gt;
Overclock&lt;/h3&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;#echo &#39;1110000&#39; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;/h3&gt;
&lt;h3&gt;
Leds&lt;/h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;use &quot;1&quot; to turn them on, you might need to run #insmod sun4i-gpio&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;power off blue led&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;echo &quot;0&quot; &amp;gt; /sys/devices/virtual/misc/sun4i-gpio/pin/ph20&lt;br /&gt;&lt;b&gt;power off red led&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;echo &quot;0&quot; &amp;gt; /sys/devices/virtual/misc/sun4i-gpio/pin/ph10&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://melea1000.blogspot.com/feeds/544126867706161899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://melea1000.blogspot.com/2013/04/mele-as-media-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/544126867706161899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/544126867706161899'/><link rel='alternate' type='text/html' href='http://melea1000.blogspot.com/2013/04/mele-as-media-server.html' title='Mele as a media server'/><author><name>david</name><uri>http://www.blogger.com/profile/14722431132512249974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-626180034942409154.post-6300092465454780231</id><published>2013-02-21T00:31:00.001-03:00</published><updated>2013-02-21T04:45:18.729-03:00</updated><title type='text'>Ubuntu and XBMC on the MELE</title><content type='html'>Been trying to set up the MELE as a media/home server and found guillaume&#39;s blog (&lt;a href=&quot;http://guillaumeplayground.net/&quot;&gt;http://guillaumeplayground.net&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
Get the &lt;b&gt;ubuntu 12.10&lt;/b&gt; armhf image with the patched 3.0.4.2+ kernel from&amp;nbsp;&lt;a href=&quot;http://guillaumeplayground.net/share/ubuntu_12.10_armhf_v1_mele_t0.img.gz&quot;&gt;here&lt;/a&gt;&amp;nbsp; (MD5: 32e181589ac4232fdaac3e9f86546e87)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Decompress&lt;/b&gt; the image and dd it to your SD card.&lt;br /&gt;
Put it in the MELE, connect VGA/Ethernet and turn it on.&lt;br /&gt;
Default user/password is: root/root&lt;br /&gt;
&lt;br /&gt;
To &lt;b&gt;modify the video output&lt;/b&gt;, led flashing and MAC address, run &lt;b&gt;PIMP_MY_MELE&lt;/b&gt; as root.&lt;br /&gt;
It&#39;s a perl script located on /usr/local/pimpmymele/&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Sata module&lt;/b&gt; is not loaded by default.&lt;br /&gt;
To load it until reboot, run&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;modprobe sw_ahci_platform&lt;/span&gt;&lt;br /&gt;
or&amp;nbsp;load it on boot with&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo &quot;sw_ahci_platform&quot; &amp;gt;&amp;gt; /etc/modules; reboot&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Check your MELE speed&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# grep BogoMIPS /proc/cpuinfo&lt;br /&gt;BogoMIPS : 1001.88&lt;/span&gt;&lt;br /&gt;
If not:&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;rm -f /etc/rc2.d/*ondemand&lt;br /&gt;echo &quot;cpufreq-set -g performance&quot; &amp;gt;&amp;gt; /etc/rc.local&lt;br /&gt;cpufreq-set -g performance&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Overclocking&lt;/b&gt;&lt;br /&gt;
This is &lt;b&gt;dangerous&lt;/b&gt;. You&#39;ve been warned. This will set your frequency at 1.15GHz and it will be off when you reboot (stress test to see if your MELE is stable; glxgears is useful)&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo &#39;1152000&#39; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq&lt;/span&gt;&lt;br /&gt;
If you want to make this permanent run&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo &quot;echo &#39;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;1152000&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&#39; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq&quot; &amp;gt;&amp;gt; /etc/rc.local&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Available frequencies are at &lt;span style=&quot;font-size: x-small;&quot;&gt;/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies&lt;/span&gt;&lt;b&gt;Consider that you&#39;ll need overvoltage to pass 1.2GHz, and if you plug in an external HDD / sata HDD, the current might not be enough for the processor&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
This got me from 35.785 to 39.447 fps on GLXGears (~10% performance increase with a 15% OC)&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font: inherit;&quot;&gt;&lt;b&gt;XBMC&lt;/b&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: x-small; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Download the&amp;nbsp;&lt;a href=&quot;http://dl.miniand.com/jas-hacks/xbmc/xbmc_01_12_2012.tar.gz&quot;&gt;files&lt;/a&gt;&amp;nbsp;(compiled from&amp;nbsp;&lt;/span&gt;&lt;/code&gt;git://github.com/empatzero/xbmca10) and decompress them to / (yes, to root)&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;You can run these&amp;nbsp;&lt;/span&gt;&lt;/code&gt;from X&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;/allwinner/xbmc-pvr-binhf/bin/xbmc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;/allwinner/xbmc-pvr-binhf/bin/xbmc-standalone&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
or this from a TTY&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;/allwinner/xbmc-pvr-binhf/lib/xbmc/xbmc.bin&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Considering it runs on framebuffer, if you run it from SSH you&#39;ll see the cursor where it was; if you run it locally the cursor will go to the last row and it&#39;ll be unnoticeable&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Before setting up XBMC on boot you should test audio and video; as well as automounting if you plan on using external disks or pendrives.&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If you have &lt;b&gt;dependecy problems&lt;/b&gt; launching &lt;b&gt;xbmc&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
Run&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;apt-get install xbmc&lt;/span&gt;&lt;/div&gt;
You won&#39;t run the repo version, but some libraries/dependencies are not in the tar&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://melea1000.blogspot.com/feeds/6300092465454780231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://melea1000.blogspot.com/2013/02/ubuntu-and-xbmc-on-mele.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/6300092465454780231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/6300092465454780231'/><link rel='alternate' type='text/html' href='http://melea1000.blogspot.com/2013/02/ubuntu-and-xbmc-on-mele.html' title='Ubuntu and XBMC on the MELE'/><author><name>david</name><uri>http://www.blogger.com/profile/14722431132512249974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-626180034942409154.post-2557016383981527889</id><published>2012-09-06T11:10:00.004-03:00</published><updated>2013-04-09T20:15:17.914-03:00</updated><title type='text'>XBMC as launcher</title><content type='html'>&lt;br /&gt;
Now that XBMC is useful as a media player for my MELE (see HW acceleration thread), I also use it as a launcher.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Basic instructions&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Download the APK from &lt;a href=&quot;https://www.dropbox.com/sh/i001q55lnnzlu1a/qu1PNDk_Yx/XBMC%20Android/XBMC%20with%20MXPlayer%20-%20Launcher%20Version/xbmcapp-armeabi-v7a-debug-launcher.apk&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;
And if you want to use an external player, check the previous post.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Advanced instructions&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Important:&lt;/b&gt;&amp;nbsp;There&#39;s already a modified manifset file uploaded&amp;nbsp;&lt;a href=&quot;https://www.dropbox.com/sh/i001q55lnnzlu1a/Sj7OYLYMts/XBMC%20Android/XBMC%20with%20MXPlayer%20-%20Launcher%20Version/AndroidManifest.xml&quot;&gt;here&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
To make xbmc work as &lt;b&gt;launcher&lt;/b&gt; and make it persistent (this means it doesn&#39;t close when you watch a movie,and it doesn&#39;t need to load everything again when you finish a movie) you have to modify the file: &quot;$XBMC_FOLDER/tools/android/packaging/xbmc/bin/AndroidManifest.xml&quot;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Inside the file you can find the &quot;intent-filter&quot; node, we need to add an Intent for the home action.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
....&lt;br /&gt;
&amp;lt;intent-filter&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;action android:name=&quot;android.intent.action.MAIN&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;category android:name=&quot;android.intent.category.HOME&quot; /&amp;gt;&lt;br /&gt;
....&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you want to xbmc appear in the default launcher as an application, don&#39;t replace the line:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&amp;gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you replace LAUNCHER with DEFAULT the application won&#39;t be listed anywhere but in the &quot;All&quot; section of the Android application manager.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;To make it persistent:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
(&lt;b&gt;WARNING&lt;/b&gt;&amp;nbsp;this will make XBMC constantly consume resources, so if you have low memory everything will be slower, this doesn&#39;t seem to be the case with MELE, but if you are using emulators or other applications with high memory usage this may impact on the performance).&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You need to modify the &quot;Application&quot; Node:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&quot;&amp;lt;application android:icon=&quot;@drawable/ic_launcher&quot; android:debuggable=&quot;true&quot; android:label=&quot;@string/app_name&quot; android:hasCode=&quot;true&quot;&amp;gt;&quot;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
add the option:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
android:persistent=&quot;true&quot;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;When this file was modified, the following file got modified also&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$XBMC_FOLDER/tools/android/packaging/xbmc/bin/AndroidManifest.xml.&lt;/blockquote&gt;
&lt;div&gt;
&lt;b&gt;I believe you should also modify this file with the desired options.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
After modifying the xml, you have to build the apk, and install it normally.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://melea1000.blogspot.com/feeds/2557016383981527889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://melea1000.blogspot.com/2012/09/xbmc-as-launcher.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/2557016383981527889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/2557016383981527889'/><link rel='alternate' type='text/html' href='http://melea1000.blogspot.com/2012/09/xbmc-as-launcher.html' title='XBMC as launcher'/><author><name>david</name><uri>http://www.blogger.com/profile/14722431132512249974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-626180034942409154.post-255615432946291952</id><published>2012-09-06T10:57:00.002-03:00</published><updated>2013-04-09T20:13:43.618-03:00</updated><title type='text'>XBMC with external player [temporary solution for lack of HW acceleration]</title><content type='html'>You may know the &lt;a href=&quot;http://xbmc.org/&quot;&gt;XBMC&lt;/a&gt; project (&quot;XBMC is an award-winning free and open source (GPL) software media player and entertainment hub for digital media.&quot;), it&#39;s awesome, open source and works very well. &lt;br /&gt;
&lt;br /&gt;
But, for now, in android the hardware acceleration is not working.&lt;br /&gt;
&lt;br /&gt;
inRivalz came up with a workaround to use an external player, which has working hardware acceleration, instead of the internal player.&lt;br /&gt;
&lt;br /&gt;
This means using a closed-source alternative, for now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt; Basic instructions&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Download &lt;a href=&quot;https://www.dropbox.com/sh/i001q55lnnzlu1a/NSFhBf1P8N/XBMC%20Android/xbmcapp-armeabi-v7a-debug.apk&quot;&gt;this&lt;/a&gt; apk.&lt;br /&gt;
&lt;br /&gt;
Install it on your device, and modify the playercorefactory.xml (which, according to &lt;a href=&quot;http://wiki.xbmc.org/index.php?title=userdata&quot;&gt;XBMC Wiki&lt;/a&gt; is in Android/data/org.xbmc.xbmc/files/.xbmc/userdata/)&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;playercorefactory&amp;gt;&lt;br /&gt;
&amp;lt;players&amp;gt;&lt;br /&gt;
&amp;lt;player name=&quot;MPC-HC&quot; type=&quot;ExternalPlayer&quot; audio=&quot;false&quot; video=&quot;true&quot;&amp;gt;&lt;br /&gt;
&amp;lt;filename&amp;gt;com.inisoft.mediaplayer.a&amp;lt;/filename&amp;gt;&lt;br /&gt;
&amp;lt;hidexbmc&amp;gt;true&amp;lt;/hidexbmc&amp;gt;&lt;br /&gt;
&amp;lt;/player&amp;gt;&lt;br /&gt;
&amp;lt;/players&amp;gt;&lt;br /&gt;
&amp;lt;rules action=&quot;prepend&quot;&amp;gt;&lt;br /&gt;
&amp;lt;rule video=&quot;true&quot; player=&quot;MPC-HC&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/rules&amp;gt;&lt;br /&gt;
&amp;lt;/playercorefactory&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
Replace the bold part with either for the corresponding version of the MXPlayer you have installed.&lt;br /&gt;
&lt;b&gt;com.mxtech.videoplayer.pro&lt;/b&gt; - Pro Edition.&lt;br /&gt;
&lt;b&gt;com.mxtech.videoplayer.ad&lt;/b&gt; - Free Edition.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Advanced instructions:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Download the source from XBMC Git: &lt;a href=&quot;https://github.com/xbmc/xbmc/blob/master/docs/README.android&quot;&gt;Instructions&lt;/a&gt;&lt;br /&gt;
Apply this patch &lt;a href=&quot;http://trac.xbmc.org/attachment/ticket/13267/diff.android.patch&quot;&gt;Link&lt;/a&gt;, but replace &quot;StartActivityWithExtra&quot; with this&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
// External Player&lt;br /&gt;
bool CXBMCApp::StartActivityWithExtra(const string &amp;amp;package,const string &amp;amp;path)&lt;br /&gt;
{&lt;br /&gt;
if (!m_activity || !package.size())&lt;br /&gt;
return false;&lt;br /&gt;
jthrowable exc;&lt;br /&gt;
JNIEnv *env = NULL;&lt;br /&gt;
AttachCurrentThread(&amp;amp;env);&lt;br /&gt;
jobject oActivity = m_activity-&amp;gt;clazz;&lt;br /&gt;
jclass cActivity = env-&amp;gt;GetObjectClass(oActivity);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Intent oIntent = new Intent(Intent.ACTION_VIEW);&lt;br /&gt;
jclass cIntent = env-&amp;gt;FindClass(&quot;android/content/Intent&quot;);&lt;br /&gt;
jmethodID midIntentCtor = env-&amp;gt;GetMethodID(cIntent, &quot;&amp;lt;init&amp;gt;&quot;, &quot;(Ljava/lang/String;)V&quot;);&lt;br /&gt;
jstring sIntentView = env-&amp;gt;NewStringUTF(&quot;android.intent.action.VIEW&quot;); // Intent.ACTION_VIEW&lt;br /&gt;
jobject oIntent = env-&amp;gt;NewObject(cIntent, midIntentCtor, sIntentView);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(sIntentView);&lt;br /&gt;
// Uri oUri = Uri.parse(sPath);&lt;br /&gt;
jclass cUri = env-&amp;gt;FindClass(&quot;android/net/Uri&quot;);&lt;br /&gt;
jmethodID midUriParse = env-&amp;gt;GetStaticMethodID(cUri, &quot;parse&quot;, &quot;(Ljava/lang/String;)Landroid/net/Uri;&quot;);&lt;br /&gt;
jstring sPath = env-&amp;gt;NewStringUTF(path.c_str());&lt;br /&gt;
jobject oUri = env-&amp;gt;CallStaticObjectMethod(cUri, midUriParse, sPath);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(sPath);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(cUri);&lt;br /&gt;
// oIntent.setDataAndType(oUri, &quot;video/*&quot;);&lt;br /&gt;
jmethodID midIntentSetDataAndType = env-&amp;gt;GetMethodID(cIntent, &quot;setDataAndType&quot;, &quot;(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;&quot;);&lt;br /&gt;
jstring sMimeType = NULL;&lt;br /&gt;
sMimeType = env-&amp;gt;NewStringUTF(&quot;video/*&quot;);&lt;br /&gt;
oIntent = env-&amp;gt;CallObjectMethod(oIntent, midIntentSetDataAndType, oUri, sMimeType);&lt;br /&gt;
// oIntent.setPackage(sPackage);&lt;br /&gt;
jstring sPackage = env-&amp;gt;NewStringUTF(package.c_str());&lt;br /&gt;
jmethodID mSetPackage = env-&amp;gt;GetMethodID(cIntent, &quot;setPackage&quot;, &quot;(Ljava/lang/String;)Landroid/content/Intent;&quot;);&lt;br /&gt;
oIntent = env-&amp;gt;CallObjectMethod(oIntent, mSetPackage, sPackage);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(sMimeType);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(oUri);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(cIntent);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(sPackage);&lt;br /&gt;
&lt;br /&gt;
// startActivity(oIntent);&lt;br /&gt;
jmethodID mStartActivity = env-&amp;gt;GetMethodID(cActivity, &quot;startActivity&quot;, &quot;(Landroid/content/Intent;)V&quot;);&lt;br /&gt;
env-&amp;gt;CallVoidMethod(oActivity, mStartActivity, oIntent);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(cActivity);&lt;br /&gt;
env-&amp;gt;DeleteLocalRef(oIntent);&lt;br /&gt;
exc = env-&amp;gt;ExceptionOccurred();&lt;br /&gt;
if (exc)&lt;br /&gt;
{&lt;br /&gt;
CLog::Log(LOGERROR, &quot;CXBMCApp::StartActivity Failed to load %s. Exception follows:&quot;, package.c_str());&lt;br /&gt;
env-&amp;gt;ExceptionDescribe();&lt;br /&gt;
env-&amp;gt;ExceptionClear();&lt;br /&gt;
DetachCurrentThread();&lt;br /&gt;
return false;&lt;br /&gt;
}&lt;br /&gt;
DetachCurrentThread();&lt;br /&gt;
return true;&lt;br /&gt;
}&lt;br /&gt;
// End External Player&lt;/blockquote&gt;
The issue with the original code was the method &quot;getLaunchIntentForPackage&quot;. This finds the first intent action for the package. The MX Player has both, MAIN and VIEW, but &quot;getLaunchIntentForPackage&quot; only finds the MAIN intent, and for this reason it doesn&#39;t work.&lt;br /&gt;
&lt;br /&gt;
Build the source and install it on your device, and modify the playercorefactory.xml (which, according to &lt;a href=&quot;http://wiki.xbmc.org/index.php?title=userdata&quot;&gt;XBMC Wiki&lt;/a&gt; is in Android/data/org.xbmc.xbmc/files/.xbmc/userdata/)&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;playercorefactory&amp;gt;&lt;br /&gt;
&amp;lt;players&amp;gt;&lt;br /&gt;
&amp;lt;player name=&quot;MPC-HC&quot; type=&quot;ExternalPlayer&quot; audio=&quot;false&quot; video=&quot;true&quot;&amp;gt;&lt;br /&gt;
&amp;lt;filename&amp;gt;com.inisoft.mediaplayer.a&amp;lt;/filename&amp;gt;&lt;br /&gt;
&amp;lt;hidexbmc&amp;gt;true&amp;lt;/hidexbmc&amp;gt;&lt;br /&gt;
&amp;lt;/player&amp;gt;&lt;br /&gt;
&amp;lt;/players&amp;gt;&lt;br /&gt;
&amp;lt;rules action=&quot;prepend&quot;&amp;gt;&lt;br /&gt;
&amp;lt;rule video=&quot;true&quot; player=&quot;MPC-HC&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/rules&amp;gt;&lt;br /&gt;
&amp;lt;/playercorefactory&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
Replace the bold part with either for the corresponding version of the MXPlayer you have installed.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;com.mxtech.videoplayer.pro&lt;/b&gt; - Pro Edition.&lt;br /&gt;
&lt;b&gt;com.mxtech.videoplayer.ad&lt;/b&gt; - Free Edition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://melea1000.blogspot.com/feeds/255615432946291952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://melea1000.blogspot.com/2012/09/xbmc-with-external-player-temporary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/255615432946291952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/255615432946291952'/><link rel='alternate' type='text/html' href='http://melea1000.blogspot.com/2012/09/xbmc-with-external-player-temporary.html' title='XBMC with external player [temporary solution for lack of HW acceleration]'/><author><name>david</name><uri>http://www.blogger.com/profile/14722431132512249974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-626180034942409154.post-1458215453544321572</id><published>2012-08-22T00:55:00.003-03:00</published><updated>2012-08-24T11:43:14.776-03:00</updated><title type='text'>Random MELE Tweaks</title><content type='html'>&lt;b&gt;Set FileSystem writable&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mount -o rw,remount /system&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Set FileSystem readable-only&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mount -o r,remount /system&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Remove infrared capabilities &lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;su&lt;br /&gt;rmmod sun4i_ir&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Power off blue led&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo &#39;0&#39; &amp;gt; /sys/devices/platform/gpio_sw.1/gpio_sw/PH20/data&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Power On blue led&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo &#39;1&#39; &amp;gt; /sys/devices/platform/gpio_sw.1/gpio_sw/PH20/data&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Power On red led&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo &#39;1&#39; &amp;gt; /sys/devices/platform/gpio_sw.0/gpio_sw/PH10/data&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;Power off red led&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo &#39;0&#39; &amp;gt; /sys/devices/platform/gpio_sw.0/gpio_sw/PH10/data&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
This has to be done every time you reboot.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Disable most System apps&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Place sh on MELE &lt;a href=&quot;https://www.dropbox.com/s/tk0939acarus65f/systemapps.sh&quot; target=&quot;_blank&quot;&gt;[link]&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;navigate to folder.&lt;/li&gt;
&lt;li&gt;sh systemapps.sh&lt;/li&gt;
&lt;li&gt;follow instructions&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;Enable adb via TCP:&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;su&lt;br /&gt;setprop service.adb.tcp.port 5555&lt;br /&gt;stop adbd&lt;br /&gt;start adbd&lt;br /&gt;ifconfig eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;Download SuperCharger V6 Script&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=991276&quot; target=&quot;_blank&quot;&gt;Link&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://melea1000.blogspot.com/feeds/1458215453544321572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://melea1000.blogspot.com/2012/08/random-mele-tweaks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/1458215453544321572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/1458215453544321572'/><link rel='alternate' type='text/html' href='http://melea1000.blogspot.com/2012/08/random-mele-tweaks.html' title='Random MELE Tweaks'/><author><name>david</name><uri>http://www.blogger.com/profile/14722431132512249974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-626180034942409154.post-2225825665994141621</id><published>2012-08-21T22:33:00.001-03:00</published><updated>2012-08-21T22:34:29.725-03:00</updated><title type='text'>ICS [Stock] and CM9/AOKP ICS for MELE A1000</title><content type='html'>Files:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Official MELE files:&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/bbvfdwfw3tn43zf/Mele_4.0_V1.0%28paracm9%29.img&quot; target=&quot;_blank&quot;&gt;Official 4.0 V1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/ofc5vyhrb4wp4aq/Mele_4.0_V1.1.img&quot; target=&quot;_blank&quot;&gt;Official 4.0 V1.1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/fuqt8f53gsxhrxy/PhoenixCardV306_2012_03_02.7z&quot; target=&quot;_blank&quot;&gt;Phoenix card software for Windows 7&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/a83ykl56qimb5nw/PhoenixCardXP.7z&quot; target=&quot;_blank&quot;&gt;Phoenix card software for Windows XP&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;CM9/AOKP files&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/pywzkob1lmgkoz7/recovery.img&quot; target=&quot;_blank&quot;&gt;Recovery file&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/6rf920sv324dx0g/mele%20legacy%201.08.zip&quot; target=&quot;_blank&quot;&gt;Mele 1.0.8 Legacy file&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/1m1cdwkldll2n0y/gapps-ics-20120429-signed.zip&quot; target=&quot;_blank&quot;&gt;Gapps signed&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/1ixjhhclty8uney/aokp_20120708.zip&quot; target=&quot;_blank&quot;&gt;AOKP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/0qvkhafcggg3sru/cm9_nightly_20120721.zip&quot; target=&quot;_blank&quot;&gt;CM9&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/7tfo6wtepcqenw1/adb_recovery_install.7z&quot; target=&quot;_blank&quot;&gt;ADB Recovery files&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Installation process for MELE Files:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Flash the desired image with the corresponding PhoenixCard version to an SD card.&lt;/li&gt;
&lt;li&gt;Turn off MELE&lt;/li&gt;
&lt;li&gt;Place SD inside of MELE&lt;/li&gt;
&lt;li&gt;Turn on MELE&lt;/li&gt;
&lt;li&gt;Wait for it to stop flashing red and blue lights&lt;/li&gt;
&lt;li&gt;Remove SD card&lt;/li&gt;
&lt;li&gt;Turn on MELE&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
The problem is that the xpad module is not supported with the original ICS files, which means no Xbox controller but&amp;nbsp;CM9 and AOKP support xpad.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;In order to flash CM9 or AOKP:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Turn on MELE&lt;/li&gt;
&lt;li&gt;Connect to Ethernet.&lt;/li&gt;
&lt;li&gt;In the ADB Recovery files&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;Run HDMI or VGA scripts according to your setup(CWM will use this output).&lt;/li&gt;
&lt;li&gt;Edit the script.fex MAC address for yours.&lt;/li&gt;
&lt;li&gt;Run edit bootload.bat&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Copy the following files to the SD&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;Recovery.img&lt;/li&gt;
&lt;li&gt;CM9 or AOKP, your choice&lt;/li&gt;
&lt;li&gt;Google apps&lt;/li&gt;
&lt;li&gt;Mele legacy file&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Execute install-recovery.bat &amp;lt;mele ip address&amp;gt;, this will make MELE reboot in recovery mode.&lt;/li&gt;
&lt;li&gt;During recovery mode&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;Wipe cache&lt;/li&gt;
&lt;li&gt;Wipe data&lt;/li&gt;
&lt;li&gt;Flash CM9/AOKP&lt;/li&gt;
&lt;li&gt;Flash Google Apps&lt;/li&gt;
&lt;li&gt;Flash Legacy File&lt;/li&gt;
&lt;li&gt;Go to advanced -&amp;gt; Fix permissions&lt;/li&gt;
&lt;li&gt;Reboot.&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;div&gt;
If something goes wrong during the flash process, MELE won&#39;t give video at all or it will get stuck in a bootloop. Just flash original 4.0 image and proceed to flash CM9/AOKP again.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;IMPORTANT&lt;/span&gt;:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;CM9/AOKP won&#39;t work if you flash 4.0 V1.1, you have to be on 4.0 V1.0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;The boot image comes pre-rooted.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Based on Naismith&#39;s (&lt;a href=&quot;http://www.slatedroid.com/topic/36614-mele-a1000a2000-install-cwm-cm9aokp-all-mods/page__hl__a1000&quot; target=&quot;_blank&quot;&gt;Slatedroid&lt;/a&gt;) tutorial&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://melea1000.blogspot.com/feeds/2225825665994141621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://melea1000.blogspot.com/2012/08/ics-stock-and-cm9aokp-ics-for-mele-a1000.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/2225825665994141621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/2225825665994141621'/><link rel='alternate' type='text/html' href='http://melea1000.blogspot.com/2012/08/ics-stock-and-cm9aokp-ics-for-mele-a1000.html' title='ICS [Stock] and CM9/AOKP ICS for MELE A1000'/><author><name>david</name><uri>http://www.blogger.com/profile/14722431132512249974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-626180034942409154.post-1761063784941387045</id><published>2012-08-17T18:59:00.001-03:00</published><updated>2012-09-28T19:50:57.231-03:00</updated><title type='text'>XBOX 360 controller support in 3.0.8 kernel</title><content type='html'>&lt;span style=&quot;font-family: inherit;&quot;&gt;The XBOX 360 controller doesn&#39;t work in my MELE (Kernel 3.0.8) because t&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;he kernel modules needed to support it [ ff-memless, xpad ] , are disabled by default in our kernel.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Download the ARM kernel&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;git clone git://github.com/amery/linux-allwinner/tree/lichee-3.0.8-sun4i&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Install the necessary libraries / binaries&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: x-small;&quot;&gt;apt-get install gcc-4.4-arm-linux-gnueabi build-essential&amp;nbsp;u-boot-tools (if u-boot-tools not found, try uboot-mkimage)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Configure&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# make clean&lt;br /&gt;# make -j4 ARCH=arm CROSS_COMPILE=/root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- xconfig&lt;/span&gt;&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: monospace;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Check(Press &#39;M&#39;) the following modules:&lt;/b&gt;&lt;br /&gt;
Input device support -&amp;gt; Support for memoryless force-feedback device&lt;br /&gt;
Input device support -&amp;gt; Joystick / gamepad&lt;br /&gt;
Input device support -&amp;gt; Joystick / gamepad -&amp;gt; X-box gamepad&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;text-align: left;&quot;&gt;Compile the modules&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# make -j4 ARCH=arm CROSS_COMPILE=/root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;If you get &quot;arm-linux-gnueabi-gcc&quot; not found, run:&lt;br /&gt;sudo ln -s /usr/bin/arm-linux-gnueabi-gcc-*version* /usr/bin/arm-linux-gnueabi-gcc&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
That should give you the xpad.ko in the drivers/input/joystick file.&lt;br /&gt;
&lt;br /&gt;
Move it to the MELE, then run&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;su&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;insmod xpad.ko&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Alternatively, if you don&#39;t want to compile the kernel&lt;/b&gt;&amp;nbsp;&lt;b&gt;use this module.&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.dropbox.com/s/bh1z4tu2bpl52vo/xpad.ko&quot; target=&quot;_blank&quot;&gt;xpad.ko module&lt;/a&gt;&lt;br /&gt;
download it, copy it to the MELE and then run&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;su&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;insmod xpad.ko&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://melea1000.blogspot.com/feeds/1761063784941387045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://melea1000.blogspot.com/2012/08/xbox-360-controller-errors.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/1761063784941387045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/626180034942409154/posts/default/1761063784941387045'/><link rel='alternate' type='text/html' href='http://melea1000.blogspot.com/2012/08/xbox-360-controller-errors.html' title='XBOX 360 controller support in 3.0.8 kernel'/><author><name>david</name><uri>http://www.blogger.com/profile/14722431132512249974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry></feed>