GithubHelp home page GithubHelp logo

xiaolu / intel-boot-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sndnvaps/intel-boot-tools

0.0 4.0 4.0 1.09 MB

Tools to pack/unpack RAZR i / lenovo k900 bootimages (X86 arch)

Shell 4.41% C 95.59%

intel-boot-tools's Introduction

intel-boot-tools

Tools to pack/unpack RAZR i bootimages

support Moto RAZR i / lenove K900

original source

http://forum.xda-developers.com/showthread.php?t=1972589

https://github.com/turl/razr-i-boot-tools

Just run "make" to build the tools, the usage is really simple

Code:

$ ./pack 

Usage: ./pack original-image bzImage ramdisk output.img

example: ./pack ./recovery.img zImage ramdisk.cpio.gz new-recovery.img 

From left to right, an already existing boot image (to copy bootstub from, it could be built from source on the future), the kernel, the gzipped cpio ramdisk and the output filename

Code:

$ ./unpack

Usage: ./unpack original-imgage bzImage-out ramdisk-out.cpio.gz

example: ./unpack ./recovery.img zImage ramdisk.cpio.gz 

From left to right, the image you want to unpack, and the destination files for bzImage and ramdisk. You can then unpack the ramdisk with something like

Code:

$ mkdir ramdisk-unpack

$ cd ramdisk-unpack

$ zcat ../ramdisk.cpio.gz|cpio -i

And then repack it with something like Code:

cd ramdisk-unpack 

$ find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz

intel-boot-tools's People

Contributors

turl avatar sndnvaps avatar nd-v-s avatar xiaolu avatar

Watchers

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