This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

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

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

Rooting

Root access is needed before continuing.

There are several methods for gaining root access, but unfortunately, they all seem to require a proprietary apk to do that.

I've typically factory reset a device, attempted to gain root access via such a tool, then flash with new rom. That way, those apps do not have access to any personal data. I can also verify that any left over surprises are overwritten by the new rom.

This project seeks to remedy this.

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.conf
[rage]
location = /usr/local/portage/rage
sync-type = git
sync-uri = https://gitlab.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

root #eselect python set python2.7
root #emerge -av sys-devel/gcc
root #cd /usr/src/linux
root #zcat /proc/config.gz > .config
root #make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

USB OTG

KERNEL drivers/usb/core/Kconfig
'"`UNIQ--pre-00000000-QINU`"'

Kexec

Due to the bootloader being locked on this device, kexec is need to execute custom kernels. However, it will need to be built as a module and loaded dynamically.

KERNEL Documentation/kdump/kdump.txt
'"`UNIQ--pre-00000003-QINU`"'

See also

External resources