https://github.com/imx6‑dongle 
https://github.com/imx6‑dongle/wiki/wiki 
https://github.com/imx6‑dongle/wiki/wiki/GK802‑hardware 
• kernel 4.4 https://github.com/dpavlin/linux‑udoo 
• u‑boot https://github.com/dpavlin/uboot‑imx6dongle 

Contents: [Dobrica Pavlinušić's random unstructured stuff]
• Dobrica Pavlinušić's random unstructured stuff (chroot) 
• Dobrica Pavlinušić's random unstructured stuff (u‑boot) 
• Dobrica Pavlinušić's random unstructured stuff (compile) 
• Dobrica Pavlinušić's random unstructured stuff (dut) 
• Dobrica Pavlinušić's random unstructured stuff (boot) 
• Dobrica Pavlinušić's random unstructured stuff (kernel) 
• Dobrica Pavlinušić's random unstructured stuff (sources) 
• Dobrica Pavlinušić's random unstructured stuff (compile kernel 4.4) 
• Dobrica Pavlinušić's random unstructured stuff (compile 3.0.x) 
• Dobrica Pavlinušić's random unstructured stuff (pinout) 
• Dobrica Pavlinušić's random unstructured stuff (Serial) 
• Dobrica Pavlinušić's random unstructured stuff (XBMC) 
• Dobrica Pavlinušić's random unstructured stuff (Linux) 

Bus 001 Device 045: ID 15a2:0054 Freescale Semiconductor, Inc. i.MX6Q SystemOnChip in RecoveryMode

chroot
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

u‑boot
compile
https://github.com/imx6‑dongle/wiki/wiki/U‑Boot‑basics 
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

dut
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

boot
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

kernel
sources
• https://github.com/imx6‑dongle/linux‑imx 
• https://github.com/patrykk/linux‑udoo 
• https://github.com/xobs/novena‑linux 
compile kernel 4.4
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

compile 3.0.x
https://github.com/imx6‑dongle/wiki/wiki 
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 
pinout

older stuff
Hi‑802 is clone of this one
• 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://forum.xda‑developers.com/showthread.php?t=2044045 
• FULL micro‑sd images http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=51&t=1113 
• root http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&t=226&start=80#p4516 
• production, motherboard pictures http://www.hiapad.com/?p=1994 
Serial
http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&t=226&start=210#p6651 

XBMC
external player http://www.xbmcandroid.com/2012/12/10/how‑to‑install‑xbmc‑nightly‑with‑external‑player‑on‑the‑mk802‑stick‑or‑other‑android‑tv‑devices/ 
Linux
http://www.junklet.net/test/gk802_boot.txt 
https://wiki.linaro.org/Boards/MX6QSabreLite 
http://boundarydevices.com/linaro‑12‑09‑for‑i‑mx6/