<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: GK802]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?gk802</link>
<description></description>
<pubDate>Thu, 07 Apr 2016 13:16:13 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[GK802]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?gk802</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm, linux</div><hr/><div class="wiki">
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle">https://github.com/imx6-dongle</a><br />
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki">https://github.com/imx6-dongle/wiki/wiki</a><br />
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki/GK802-hardware">https://github.com/imx6-dongle/wiki/wiki/GK802-hardware</a></p>
<ul>
<li>kernel 4.4 <a target="_blank" title="(external link)" href="https://github.com/dpavlin/linux-udoo">https://github.com/dpavlin/linux-udoo</a></li>
<li>u-boot <a target="_blank" title="(external link)" href="https://github.com/dpavlin/uboot-imx6dongle">https://github.com/dpavlin/uboot-imx6dongle</a></li>
</ul>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#chroot">Dobrica Pavlinušić's random unstructured stuff (chroot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] chroot} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile">Dobrica Pavlinušić's random unstructured stuff (compile)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#dut">Dobrica Pavlinušić's random unstructured stuff (dut)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] dut} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#boot">Dobrica Pavlinušić's random unstructured stuff (boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] boot} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel">Dobrica Pavlinušić's random unstructured stuff (kernel)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#sources">Dobrica Pavlinušić's random unstructured stuff (sources)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] sources} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile_kernel_4_4">Dobrica Pavlinušić's random unstructured stuff (compile kernel 4.4)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile kernel 4.4} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile_3_0_x">Dobrica Pavlinušić's random unstructured stuff (compile 3.0.x)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile 3.0.x} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#pinout">Dobrica Pavlinušić's random unstructured stuff (pinout)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] pinout} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#serial">Dobrica Pavlinušić's random unstructured stuff (Serial)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Serial} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#xbmc">Dobrica Pavlinušić's random unstructured stuff (XBMC)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] XBMC} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#linux">Dobrica Pavlinušić's random unstructured stuff (Linux)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Linux} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><pre>
Bus 001 Device 045: ID 15a2:0054 Freescale Semiconductor, Inc. i.MX6Q SystemOnChip in RecoveryMode



</pre>
<br /><h1 id="chroot">chroot</h1>
<pre>
root@nuc:/tmp/n3# cp `which qemu-arm-static` usr/bin/
root@nuc:/tmp/n3# chroot .
root@nuc:/# uname -a
Linux nuc 4.4.0-1-amd64 #1 SMP Debian 4.4.4-1 (2016-03-07) armv7l GNU/Linux
root@nuc:/# file /bin/bash 
/bin/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=1a8601b954c83a01d91298d0f2f8f61ca033ebdd, stripped



</pre>
<br /><h1 id="u_boot">u-boot</h1>
<h2 id="compile">compile</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki/U-Boot-basics">https://github.com/imx6-dongle/wiki/wiki/U-Boot-basics</a></p>
<pre>
dpavlin@nuc:/nuc/imx6/uboot-imx6dongle$


sudo apt-get install make gcc-arm-none-eabi libusb-1.0

export ARCH=arm
export CROSS_COMPILE=arm-none-eabi-

make gk802_config

make
</pre>
<br /><h2 id="dut">dut</h2>
<pre>
pi@rpi2 ~/imx6/uboot-imx6dongle $ git remote -v
origin  https://github.com/imx6-dongle/uboot-imx6dongle (fetch)
origin  https://github.com/imx6-dongle/uboot-imx6dongle (push)

pi@rpi2 ~/imx6/uboot-imx6dongle $ make gk802_config
Configuring for gk802 - Board: gk802, Options: IMX_CONFIG=board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg

pi@rpi2 ~/imx6/uboot-imx6dongle $ sudo apt-get install libusb-1.0

make gk802_config tools

sudo ./tools/imxboot /nuc/imx6/uboot-imx6dongle/u-boot.imx

</pre>
<br /><h2 id="boot">boot</h2>
<pre>
CPU:   Freescale i.MX6Q rev1.1 at 792 MHz                                                         
CPU:   Temperature 12 C, calibration data: 0x5834de7d                                             
Reset cause: POR                                                                                  
Board: MX6Q-gk802                                                                                 
DRAM:  1 GiB                                                                                      
MMC:   FSL_SDHC: 0, FSL_SDHC: 1                                                                   
enable_hdmi: setup HDMI monitor                                                                   
Display: HDMI (1024x768)                                                                          
In:    serial                                                                                     
Out:   serial                                                                                     
Err:   serial                                                                                     
</pre>
<br /><h1 id="kernel">kernel</h1>
<h2 id="sources">sources</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/linux-imx">https://github.com/imx6-dongle/linux-imx</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/patrykk/linux-udoo">https://github.com/patrykk/linux-udoo</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/xobs/novena-linux">https://github.com/xobs/novena-linux</a></li>
</ul>
<h2 id="compile_kernel_4_4">compile kernel 4.4</h2>
<pre>
dpavlin@klin:/klin/imx6/linux-imx$ git remote -v
boundarydevices https://github.com/boundarydevices/linux-imx6 (fetch)
boundarydevices https://github.com/boundarydevices/linux-imx6 (push)
gk802   https://github.com/imx6-dongle/linux-imx.git (fetch)
gk802   https://github.com/imx6-dongle/linux-imx.git (push)
origin  https://github.com/xobs/novena-linux (fetch)
origin  https://github.com/xobs/novena-linux (push)
patrykk https://github.com/patrykk/linux-udoo (fetch)
patrykk https://github.com/patrykk/linux-udoo (push)

dpavlin@klin:/klin/imx6/linux-imx$ git checkout -b patrykk/4.4-5.0.11.p7.3 remotes/patrykk/4.4-5.0.11.p7.3

dpavlin@klin:/klin/imx6/linux-imx$ sudo apt-get install firmware-realtek



dpavlin@klin:/klin/imx6/linux-imx$ git checkout -b imx_3.10.17_1.0.0_ga remotes/gk802/imx_3.10.17_1.0.0_ga
Checking out files: 100% (34524/34524), done.
Branch imx_3.10.17_1.0.0_ga set up to track remote branch imx_3.10.17_1.0.0_ga from gk802.
Switched to a new branch 'imx_3.10.17_1.0.0_ga'

dpavlin@klin:/klin/imx6/linux-imx$ make gk802_defconfig

export ARCH=arm
export CROSS_COMPILE=arm-none-eabi-

LOADADDR=0x10800000 make uImage modules -j 4


#mkdir /tmp/boot
#INSTALL_PATH=/tmp/boot make install

mkdir /tmp/modules
INSTALL_MOD_PATH=/tmp/modules make modules_install
</pre>
<br /><h2 id="compile_3_0_x">compile 3.0.x</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki">https://github.com/imx6-dongle/wiki/wiki</a></p>
<p>
<a target="_blank" title="(external link)" href="http://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/arm-linux-gnueabi/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabi.tar.xz">http://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/arm-linux-gnueabi/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabi.tar.xz</a></p>
<h1 id="pinout">pinout</h1>
<span class="nlw_phrase"><img alt="gk802-pinout.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/gk802-pinout.jpg?action=attachments_download;page_name=gk802;id=20160307233735-0-27346" /><!-- wiki: {image: gk802-=pinout.jpg} --></span><br /><br /><p>
<strong>older stuff</strong></p>
<p>
Hi-802 is clone of this one</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.geekbuying.com/item/Unii-GK802-Fresscale-i-MX6-Quad-Dure-Cortex-A9-DDR3-1GB-RAM-8GB-ROM-TV-Box-Dongle----Black-312807.html">http://www.geekbuying.com/item/Unii-GK802-Fresscale-i-MX6-Quad-Dure-Cortex-A9-DDR3-1GB-RAM-8GB-ROM-TV-Box-Dongle----Black-312807.html</a></li>
<li><a target="_blank" title="(external link)" href="http://forum.xda-developers.com/showthread.php?t=2044045">http://forum.xda-developers.com/showthread.php?t=2044045</a></li>
<li>FULL micro-sd images <a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=51&amp;t=1113">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=51&amp;t=1113</a></li>
<li>root <a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=80#p4516">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=80#p4516</a></li>
<li>production, motherboard pictures <a target="_blank" title="(external link)" href="http://www.hiapad.com/?p=1994">http://www.hiapad.com/?p=1994</a></li>
</ul>
<h1 id="serial">Serial</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=210#p6651">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=210#p6651</a><br />
<img alt="http://www.junklet.net/test/gk802_serial.jpg" src="http://www.junklet.net/test/gk802_serial.jpg" border="0" /></p>
<h1 id="xbmc">XBMC</h1>
<p>
external player <a target="_blank" title="(external link)" href="http://www.xbmcandroid.com/2012/12/10/how-to-install-xbmc-nightly-with-external-player-on-the-mk802-stick-or-other-android-tv-devices/">http://www.xbmcandroid.com/2012/12/10/how-to-install-xbmc-nightly-with-external-player-on-the-mk802-stick-or-other-android-tv-devices/</a></p>
<h1 id="linux">Linux</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.junklet.net/test/gk802_boot.txt">http://www.junklet.net/test/gk802_boot.txt</a><br />
<a target="_blank" title="(external link)" href="https://wiki.linaro.org/Boards/MX6QSabreLite">https://wiki.linaro.org/Boards/MX6QSabreLite</a><br />
<a target="_blank" title="(external link)" href="http://boundarydevices.com/linaro-12-09-for-i-mx6/">http://boundarydevices.com/linaro-12-09-for-i-mx6/</a></p>
</div>
<hr/><div>Attachments: gk802-pinout.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm, linux</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?gk802</guid>
<pubDate>Thu, 07 Apr 2016 13:16:13 -0000</pubDate>
</item>
</channel>
</rss>