Site Tools


abootimg

This is an old revision of the document!


Table of Contents

TODO

abootimg

Introduction

abootimg is a tool created by Gilles Grandou for manipulating Android Boot Images directly from the AC100 (Be carefull to not mess your bootimg or you will need NVidia's nvflash to flash again a bootable image). abootimg can work directly on block devices, or, the safest way, on a file image.

For further informations, read the README.

Usage

  • reading current boot image
abootimg -i /dev/mmcblk0p2

here is the output for an AC100-114:

root@ac100:/tmp/bootimg# abootimg -i /dev/mmcblk0p2

Android Boot Image Info:

* file name = /dev/mmcblk0p2 [block device]

* image size = 8388608 bytes (8.00 MB)
  page size  = 2048 bytes

* Boot Name = "Ubuntu Boot Img"

* kernel size       = 3146584 bytes (3.00 MB)
  ramdisk size      = 2310081 bytes (2.20 MB)

* load addresses:
  kernel:       0x10008000
  ramdisk:      0x11000000
  tags:         0x10000100

* cmdline = mem=448M@0M tegrapart=recovery:300:a00:800,boot:d00:1000:800,mbr:1d00:200:800 root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx zcache debug verbose console=tty0 console=ttyGS0,115200n8 console-setup/layoutcode=fr console-setup/variantcode=oss locale=fr_FR

* id = 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
  • extracting current bootable image
cd /tmp/bootimg
abootimg -x /dev/mmcblk0p2

here is the result and files extracted:

root@ac100:/tmp/bootimg# abootimg -x /dev/mmcblk0p2
writing boot image config in bootimg.cfg
extracting kernel in zImage
extracting ramdisk in initrd.img
root@ac100:/tmp/bootimg# ls -1
bootimg.cfg
initrd.img
zImage
  • updating the kernel on a copy of the current bootable image
  dd if=/dev/mmcblk0p2 of=/tmp/part-6.img
  abootimg -u /tmp/part-6.img -k /boot/vmlinuz

Greatings

Thank you very much for this great tools ggrandou! ;-)

abootimg.1329255690.txt.gz · Last modified: 2012/02/14 22:41 by armelf · Currently locked by: 172.30.0.1,38.152.14.104