Giter VIP home page Giter VIP logo

allwinner-kitchen's Introduction

Allwinner Kitchen

Handy tools suitable for:

  • Android boot.img splitting
  • Android simg2img convertions
  • Allwinner fex2bin and bin2fex utils (sunxi-tools)

All binaries are ELF 32-bit LSB executables. Sorry, OS X guys :(

Repacker utility

This tool will unpack the boot.img from any Android device, but AFAIK repacked imgs will work only for Allwinner SOCs. Test carefully.

Simple usage:

  • ./repacker.rb <boot.img> to unpack
  • ./repacker.rb <boot_src> to pack

Example:

$ ../allwinner-kitchen/repacker.rb boot.img 
$ ../allwinner-kitchen/repacker.rb boot_src.232/
$ tree
.
├── boot.img
├── boot_src.232
│   ├── kernel
│   └── ramdisk
│       ├── data
│       ├── default.prop
│       ├── dev
│       ├── init
│       ├── init.b2g.rc
│       ├── init.goldfish.rc
│       ├── initlogo.rle
│       ├── init.rc
│       ├── init.sun4i.rc
│       ├── init.sun4i.usb.rc
│       ├── proc
│       ├── sbin
│       │   ├── adbd
│       │   └── ueventd -> ../init
│       ├── sys
│       ├── system
│       ├── ueventd.goldfish.rc
│       ├── ueventd.rc
│       └── ueventd.sun4i.rc
└── boot_src.232.img

8 directories, 16 files

Tools

allwinner-kitchen/tools $ ls
bin2fex  fex2bin  fexc  make_ext4fs  mkbootfs  mkbootimg  mkuserimg.sh  simg2img  split_bootimg.pl

Let's convert system.img to ext4 using the simg2img:

$ allwinner-kitchen/tools/simg2img system.img system_new.img
$ file system.img 
system.img: data
$ file system_new.img 
system_new.img: Linux rev 1.0 ext4 filesystem data, UUID=57f8f4bc-abf4-655f-bf67-946fc0f9f25b (extents) (large files)

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.