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

From Gentoo Wiki
Jump to: navigation, search
Warning
This page is a work in progress by Rage (talk | contribs). Treat its contents with caution.
Resources

Emerge

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 repos.conf file and emerge it as shown here for rage-overlay:

FILE /etc/portage/repos.conf/rage-overlay.conf
[rage-overlay]
location = /usr/local/portage/rage-overlay
sync-type = git
sync-uri = https://github.com/lramage94/overlay.git
auto-sync = yes

For using sync-type = git the package dev-vcs/git needs to be installed. Alternatively, layman can be used for adding the repository.

root #emerge --ask sys-kernel/kodiak-sources

Installing crossdev for cross compiling

root #emerge --ask crossdev
root #crossdev --stable -v -t arm-linux-gnueabihf --gcc 4.9.4

Building a Kernel

eselect python list

eselect python set <python2>

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

emerge -av sys-devel/gcc-4.9.4

root #cd /usr/src/linux
root #zcat /proc/config.gz > .config
root #make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

USB OTG

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

Kexec

TODO

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

See also

  • Project:Android - Using ebuilds to track patchsets and customized sources is the Gentoo-preferred way to handle Android-specific customizations to the official Linux kernel.
  • GLEP 26 - This GLEP proposes to create a more consistent handling of kernels and kernel building.
  • Cross_build_environment - It may be useful to cross compile from a more powerful system.

External resources