How to Get “Kernel Base Adress” of an Android boot.img


Kernel base adress (on Android) is needed for repacking boot.img with
repacking boot.img tools after it was edited. In this article i am use Ubuntu konsole/terminal, but this will work on another Linux distros. I use a Samsung Galaxy Mini boot.img. Stock room 2.3.4 (XXKPI), Andro-ID V 3.0, CM7 RC0 and RC1 custom room for galaxy mini have 0x13600000 as their kernel base adress.

  • First create a script (example get_kernel_address.sh) in folder which contain boot.img
  • Copy paste this script to get_kernel_address.sh:

#!/bin/sh

base_temp=`od -A n -h -j 34 -N 2 boot.img | sed 's/ //g'`

zeros=0000

base=0x$base_temp$zeros

echo $base

 

make it write-able:

$ chmod 777 get_kernel_address.sh

 

run it:
$ ./get_kernel_address.sh

After that look on terminal and for Galaxy Mini , its kernel base adress is 0x13600000 .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s