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

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.

Building a Kernel
eselect python list

eselect python set

https://github.com/gentoo/gentoo/tree/master/sys-devel/gcc

emerge -av sys-devel/gcc-4.9.4

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://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
 * https://community.kde.org/Plasma/Mobile/Porting