Skip to content

hammer-box/allwinner-kitchen

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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)

About

Split and pack the boot.img, convert simg2img, fex2bin and bin2fex

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors