I am going to develop a custom board with IMX6 DUAL LIGHT processor with android and microSD and DDR memories only (without eMMC, NAND, NOR).
What documents can i read to start learning how to develop drivers, port firmwares, build firmware, kernel from sources? I am embedded developer, I know how to work with Cortex-M controllers, know Cortex-A architecture a little. But i don't understand how Linux kernel and Android sources are work together. As i know, a kernel and sources can be built separately and can be flashed separately. But how a kernel driver's API work with android sources API if they are compiled separately, how Android system can call functions in kernel? How to debug a kernel, via JTAG?
Thank you for answers!