FORUMS

I/O Summary: How Android M Handles Power And Charging

In the spirit of improving the core Android experience, Google is changing Android … more

I/O Summary: Google Photos App

At I/O 2015, Google tackled the information problem in mobile once more, this time through … more

I/O Summary: Development, Play Store, The Next Billion

VP of Engineering Jen Fitzpatrick began talking about what Google is doing to … more

I/O Summary: Google Now on Tap

Google is all about organizing the world’s information to make it universally useful, and these … more

[Tutorial] How to change kernel logo (1st boot srceen) [COMPLETED]

Thanks Meter: 2,559
 
By nelikp, Senior Member on 29th October 2012, 05:01 PM
Post Reply Subscribe to Thread Email Thread
We have 3 major works here... So I gonna to make it seperated
-1st post is HOW TO EXTRACT kernel.img (boot.img)
-2nd post is HOW TO CONVERT PICTURE FILE to BOOT.RLE
-3rd post is HOW TO REPACK THE KERNEL PAKAGE into boot.img


Requiredment
-Window machine
-installed cygwin
-the full boot.img/kernel (some kernel won't work because there is no full pakage/ i mean we can't)
-bootimg.zip (tool for UNPACK and REPACK kernel)
-boot_screen_logo_creation_package.rar

Thank and Credit
i- Credit to DooMLoRD Recognized Developer over most of XPERIA devices for his own tool and tutor that I learned before
ii- Credit to jimbo77 Senior Member for his tutorial that I used and learned and tool for unpack and repack
ii- Don't forget to give them a thanks meter

================================================== ===========================


Here we go

1-This section I will show u how to unpack and repack the boot.img
just see from original thread by jimbo77 from here and download the UNPACK and REPACK tool by him HERE

this is a fast guide from me:-
1-extract the bootimg-tools.zip into new folder (name it 'boot' folder)
2-move it into cygwin directory (cygwin/boot)
3- move your fav kernel into same directory
4-run cygwin.bat

Quote:

cd /boot



5-Now, unpack your boot.img by running the following command:

Quote:

./extractboot boot.img


If your output looks like this, then the extraction has worked correctly! Note that the Command Line string has also been read from the source file, this will be used later when you go to re-pack your file.

Your script folder should now look like this:

boot.img-kernel is the compiled kernel blob that was inside the source boot.img, if you want to replace the kernel with another compiled kernel image, you can replace this file with another one (but leave the file name the same)

boot.img-ramdisk.gz is the gzipped ramdisk image which has been split from the boot.img, you should leave this file alone.
The “out” folder contains the EXTRACTED ramdisk, and this is where you should make your changes to the ramdisk.

Important Note!

Remember, when editing files in the ramdisk through Windows, such as init.rc, Windows notepad will not format the files correctly, making them almost impossible to read, wheras Wordpad will LOOK like it is formatting the files correctly, if you save one of these files from the Wordpad application it will BREAK the file and it will no longer be able to be read correctly by Android. To edit these files you MUST use an editor such as Notepad++ which you can download for free.

AGAIN...
Special thanks/credit to jimbo77 for his excellent guide
Last edited by nelikp; 30th October 2012 at 06:07 AM.
The Following 27 Users Say Thank You to nelikp For This Useful Post: [ View ]
 
 
29th October 2012, 05:02 PM |#2  
nelikp's Avatar
OP Senior Member
Flag lost world
Thanks Meter: 2,559
 
More
So.. NEXT step to change a kernel logo is here

Requiredment
1-a picture what are u like to look into the 1st boot screen (kernel logo) (make sure it size/resolution same your device resolution)
2-boot_screen_logo_creation_package.rar
3-some infos and knowledges here
4-window machine like i explained on 1st post


My quick guide
-extract the tool.rar
-move extracted files into new folder (name it 'rle' folder without quote)
-move into cygwin folder (to make it easy to follow my simple guide)
-copy your own logo.png (a picture u want to use on a kernel) into same rle folder
(for 4 steps above it shold look like tis)


-now launch cygwin.bat
Quote:

cd /rle



Quote:

./convert_image_to_rle.bat logo.png



Ah...my mistake..don't forget to move/copy/replace new logo.rle into
C/cygwin/boot/out/ramdisk/here


if you done good...follow next step on next post (to repack your moded kernel)
Last edited by nelikp; 30th October 2012 at 06:48 PM.
The Following 15 Users Say Thank You to nelikp For This Useful Post: [ View ]
29th October 2012, 05:02 PM |#3  
nelikp's Avatar
OP Senior Member
Flag lost world
Thanks Meter: 2,559
 
More
Last step before you flash a new look kernel (boot.img) is

Repack your moded kernel

Quote:

./packboot




One thing to note that people may mention in other guides, is that when packing boot.img files, you will usually have to declare a base address, and a command line to the packaging tool. This set of scripts reads the existing command line and base address from the boot.img file you originally provided at the time of repacking, so always make sure you leave your original source boot.img file in the folder and do not re-name it after extraction, your newly created boot.img file will be named boot_new.img and will NOT overwrite the original.


Done! If your screen looks like the image above, then you should now have a freshly created boot_new.img file, ready to be flashed to Android for testing, you can now go ahead and flash it through FASTBOOT one thing I'll recommend though is to first do
Last edited by nelikp; 29th October 2012 at 09:43 PM.
The Following 17 Users Say Thank You to nelikp For This Useful Post: [ View ]
29th October 2012, 05:03 PM |#4  
nelikp's Avatar
OP Senior Member
Flag lost world
Thanks Meter: 2,559
 
More
I need this for extra (extra thanks..)

(may U?)
The Following 11 Users Say Thank You to nelikp For This Useful Post: [ View ]
29th October 2012, 06:06 PM |#5  
jader13254's Avatar
Senior Member
Flag actuely i haev more thx den yu
Thanks Meter: 17,889
 
Donate to Me
More
Quote:
Originally Posted by nelikp

I need this for extra (extra thanks..)

(may U?)

ähem lol thats not needed...?
The Following 2 Users Say Thank You to jader13254 For This Useful Post: [ View ]
29th October 2012, 10:25 PM |#6  
nelikp's Avatar
OP Senior Member
Flag lost world
Thanks Meter: 2,559
 
More
Wink
Quote:
Originally Posted by jader13254

ähem lol thats not needed...?

hahahahaa

Happy theme-ing
The Following User Says Thank You to nelikp For This Useful Post: [ View ]
29th October 2012, 11:16 PM |#7  
Hairy Highlander's Avatar
Junior Member
Flag Gothenburg
Thanks Meter: 0
 
More
Cool
Thanks for the tutorial, I think I'll try this at the weekend just for fun.
30th October 2012, 04:50 AM |#8  
datagubben's Avatar
Senior Member
Flag Landskrona
Thanks Meter: 486
 
More
Nice tutorial, almost n00b proof. But I use kernel kitchen instead of cygwin. 😊

Sent from my LT15i using xda premium
31st October 2012, 05:39 PM |#9  
YeoZy96's Avatar
Senior Member
Flag Kuching
Thanks Meter: 136
 
More
Lightbulb
Quote:
Originally Posted by datagubben

Nice tutorial, almost n00b proof. But I use kernel kitchen instead of cygwin. 😊

Sent from my LT15i using xda premium

Seriously ??? Whats This?

Quote:

$ ./extractboot boot_9.587c.IMG
./extractboot: ./split_bootimg.pl: /usr/bin/perl: bad interpreter: Permission denied
./extractboot: line 17: cpio: command not found
gzip: ../../boot.img-ramdisk.gz: No such file or directory

31st October 2012, 06:25 PM |#10  
nelikp's Avatar
OP Senior Member
Flag lost world
Thanks Meter: 2,559
 
More
Quote:
Originally Posted by YeoZy96

Seriously ??? Whats This?



What kernel? Give me the link kernel
The Following User Says Thank You to nelikp For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes