Android on the gk802: why the imx6-dongle kernel as is won't work but another might.
########################################
The idea was to first test it with the oficial ROM, changing only the kernel.
I used abootimg to change te ramfs and repack the original kernel. it worked.
Then I tried with my kernel and failed. Then just to make sure that the problem was not
due to the packing or a rarefs I tried to pack the the rootfs inside the kernel itself.
I did two things:
1) Test the kernel using a gziped ramfs
########################################
I added those lines the config:
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="/home/ikr/myandroid/kernel_imx/initramfs.cpio.gz"
CONFIG_RD_GZIP=y
/init loaded init.rc and I could type commands on the shell via the 3.3V serial ttymxc3 but it was rebooting itself
after several attempts at "init: untracked pid NUMBER exited"
2) Make sure I was using a kernel with android files.
########################################
It seems make just ignored my kernel .config lines about Android without any warning related to them.
#
# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_LOGGER=y
CONFIG_ANDROID_RAM_CONSOLE=y
CONFIG_ANDROID_LOW_MEMORY_KILLER=y
...
So I did a quick check and the kernel doesn't have android files on it
ls ~/myandroid/kernel_imx/mm/ashmem.c
ls ~/myandroid/kernel_imx/include/config/android
Now I realized two things:
########################################
1) abootimg works as intended.
2) The kernel at
https://github.com/imx6-dongle doesn't include android kernel files on it.
to be continued... ;)