g2root-kmod

by tmzt

various modules to aide in 'rooting' the tmobile g2 (htc vision)

126 Stars 194 Forks Last release: Not found 166 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Welcome to the g2root arm foreign/hostile kernel exploration toolkit.

syntax: CROSS_COMPILE=/opt/arm-2008q3/bin/arm-none-eabi- ARCH=arm make KDIR=[KERNEL SOURCE FROM WIKI] [clean|DOSTUFF=0|DOSTUFF=1]

Building the toolkit

You'll need an ARM toolchain. The following assumes you're using the
CodeSourcery tools installed to /opt/arm-2008q3; otherwise, change the
CROSS_COMPILE variable.

$ git clone git://codeaurora.org/kernel/experimental.git kernel-source
$ git clone git://gist.github.com/619505.git module-source
$ cd kernel-source && git checkout origin/aosp/android-msm-2.6.32-7x30-wip
& # The follow commands may need to be run with CROSSCOMPILE=/opt/arm-2008q3/b $ ARCH=arm make surf7x30defconfig
$ ARCH=arm make oldconfig

At this point you'll need to edit .config to match below:

CONFIGLOCALVERSION="-g814e0a1 "
CONFIG
LOCALVERSION_AUTO=n

Modify Makefile so it starts with this:

VERSION = 2
PATCHLEVEL = 6 SUBLEVEL = 32
EXTRAVERSION = .17

Continue as follows:

$ ARCH=arm make prepare
$ ARCH=arm make scripts
$ cd ..

taken from: http://forum.xda-developers.com/wiki/index.php?title=HTCVision#Buildingabasickernelmodule (thanks FatTire and dpw13)

then

$ # The following line assumes the CodeSourcery cross-compiler

$ CROSS_COMPILE=/opt/arm-2008q3/bin/arm-none-eabi- ARCH=arm make KDIR=[KERNEL SOURCE FROM WIKI] DOSTUFF=0

Copy to a place on your G2 (or other device).

On the G2 (in a root shell):

g2# dmesg -c g2# rmmod module.ko g2# insmod module.ko g2# dmesg

Test and make sure it doesn't blow up and the printed (in dmesg) addresses look sane (not 0 or fffx whatever) Then proceed to build the working version:

$ CROSS_COMPILE=/opt/arm-2008q3/bin/arm-none-eabi- ARCH=arm make KDIR=[KERNEL SOURCE FROM WIKI] clean

$ CROSS_COMPILE=/opt/arm-2008q3/bin/arm-none-eabi- ARCH=arm make KDIR=[KERNEL SOURCE FROM WIKI] DOSTUFF=1

Now follow the same instructions to test.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.