Giter Site home page Giter Site logo

kt747-jb's Introduction

To build source-based kernel:

1. Set CROSS_COMPILE to an appropriate path prefix, e.g.,

   export CROSS_COMPILE=../cm/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

2. Build kernel, for d2spr:

   make m2_spr_defconfig && make -j 4

   Or, for d2vzw:

   make m2_vzw_defconfig && make -j 4


And to merge the kernel into recovery:

3. Pull recovery partition from device:

   adb reboot recovery
   adb root
   adb shell 'dd if=/dev/block/mmcblk0p18 of=/tmp/recovery.img bs=256k'
   adb pull /tmp/recovery.img

4. Merge newly-built zImage into recovery.img:

   ../cm/out/host/linux-x86/bin/unpackbootimg -i recovery.img
   cp arch/arm/boot/zImage recovery.img-zImage

   ../cm/out/host/linux-x86/bin/mkbootimg --kernel recovery.img-zImage \
       --ramdisk recovery.img-ramdisk.gz \
       --cmdline "console=null androidboot.hardware=qcom user_debug=31" \
       --base 0x80200000 --pagesize 2048 --ramdiskaddr 0x81500000 \
       -o recovery.img

kt747-jb's People

Contributors

ktoonsez avatar hyperb1iss avatar tortel avatar faux123 avatar mkasick avatar vkathota avatar benoitgoby avatar bebarino avatar jpa468 avatar xiaomi-sm7435 avatar shareefalis avatar jgebben avatar myfluxi avatar ashish-s-sharma avatar toddpoynor avatar wildea01 avatar alanstern avatar entropy512 avatar bsmojver avatar djbw avatar ucdevel avatar rientjes avatar decad3nce avatar gokhanmoral avatar kosaki avatar pullipcho avatar tek-life avatar madalinbucur avatar xnubia avatar minchank avatar

Watchers

James Cloos avatar  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.