Need help with g2root-kmod?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

tmzt
126 Stars 192 Forks 166 Commits 5 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 310,268
C
Racket
68 commits

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.