User:Rage/Drafts/Amazon Fire Phone (Kodiak)

Enabling Experimental USE flag
Add  to the system's USE variable in :

USE_EXPAND
See sys-kernel/kodiak-sources for a list of possible values for KODIAK_KERNEL_FEATURES.

binary - automatically build the kernel

otg - enable usb otg in the kernel

kexec - enable kexec in the kernel

Installing sources from custom ebuild repositories
Currently, these kernel sources are only supported by an ebuild in rage-overlay.

To enable a custom ebuild repository, create the proper /etc/portage/repos.conf file and it as shown here for rage-overlay:

For using  the package  needs to be installed. Alternatively, layman can be used for adding the repository.

USB OTG
http://cateee.net/lkddb/web-lkddb/USB_OTG.html

Kexec
TODO

Built as kernel module as well. This will be messy.

External resources

 * https://forum.xda-developers.com/fire-phone
 * https://forum.xda-developers.com/fire-phone/development/dev-building-custom-kernel-kernel-t3195492
 * https://github.com/lramage94/gentoo-overlay/tree/master/sys-kernel/kodiak-sources
 * https://sourceforge.net/projects/runnix/
 * https://ruedigergad.com/2012/12/09/nexus-7-easily-flashaccess-entire-userdata-partition/
 * https://forum.xda-developers.com/showthread.php?t=2104706
 * http://www.phoronix.com/scan.php?page=news_item&px=MTUzNDk