Coder Social home page Coder Social logo

andloani / g2root-kmod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tmzt/g2root-kmod

0.0 1.0 0.0 7.15 MB

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

Home Page: http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2

g2root-kmod's Introduction

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 CROSS_COMPILE=/opt/arm-2008q3/b
 $ ARCH=arm make surf7x30_defconfig                                             
 $ ARCH=arm make oldconfig                                                      
                                                                                
   At this point you'll need to edit .config to match below:                    
                                                                                
 CONFIG_LOCALVERSION="-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=HTC_Vision#Building_a_basic_kernel_module
(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. 




g2root-kmod's People

Contributors

tmzt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.