projectgus / gk802-debian-installer

Build process to convert a vanilla Debian Armhf netinst into one suitable for a GK802 "AndroidTV" device
http://projectgus.com/2013/05/debian-installer-for-zealz-gk802-android-tv-quad-core-arm-minipc/
Other
9 stars 0 forks source link

This is a hacky build process for creating a custom Debian Wheezy Installer derived SD card image that can be used to install Wheezy on a GK802 "AndroidTV" device.

As the term "hacky build process" suggests, this process is plenty hacky and doesn't even build debian-installer from source - it just takes the installer initrd image from the "vexpress" netinst (usually used for QEMU hosts) and then adds some additional scripts and stages to it. I know, it's the worst.

This repo could probably be reused to create hacky device-specific installers for other devices, assuming they have a working source-based kernel and a sane bootloader.

On "doing it right"

It would have been good to do it properly, but lots of things involved in doing that (like creating kernel udebs for a non-debian cross-compiled kernel, or creating a kernel package to manage uboot installation for Freescale i.MX6), are non-trivial tasks that I didn't really know much about, or have the time/inclination to try and implement this time around. :).

If you're keen to do a "proper" version of this then please do, it'd be awesome!

The one non-hacky thing this installer does is install an actual kernel package, so you can upgrade kernels the Debian way, and also use Debian's initramfs system, etc. (possibly also dkms...)

Installing Debian on a GK802 using this stuff

See this blog post for a downloadable installer image and instructions.

"Building" an image

Dependencies (assuming Debian/Ubuntu host):

sudo apt-get install kernel-package fakeroot genext2fs gcc-arm-linux-gnueabihf
sudo apt-get build-dep linux

(From memory, please tell me if incomplete...)

There are a few variables in the top of the Makefile that you might want to edit or override on the command line, for example the parallel make command.

Then just run 'make'. Don't run "make -jN", things will probably go wrong.

Known Issues

Useful bits to fiddle with

Compared to the current GK802 defconfig this config-server builds lots of things as modules, supports initramfs, and disables the GPU module, among other things.