Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD][KERNEL][4.2.X][BOOTLOGO] Add a Boot Logo like SGS1 to your Gnex Kernel

OP ak

21st December 2012, 12:17 PM   |  #1  
ak's Avatar
OP Recognized Contributor
Flag Ak Land Valley
Thanks Meter: 47,827
 
11,388 posts
Join Date:Joined: Feb 2011
Donate to Me
More






I am not responsible for any damage to your phone.
Proceed with caution if you have no experience.

NB: This guide is made for Gnex Kernel for ROM 4.2.X





I want to explain how to add a bootlogo to your kernel.
All steps are designed to run on linux box.
This allows you to bypass the lack of this fantastic opportunity on our GNEX.

The base is to know linux kernel compilation and a bit of imagination.

Step 1

We create the image that will be displayed at boot time, to do this you can use a free tool such as Gimp:
- create an image in any format (for ex. png), the important thing is size (720x1280)
- goto menu/image/mode/Indexed -> select Generate Optimum Palette -> Maximum number of Color -> 224
- goto file/export -> Set Name = logo_linux_clut224.ppm -> Type = PNM Image (*.pnm) -> Click Export -> Data formatting = Ascii -> Save

Step 2

At this point, you must import your file in the specific directory of the kernel:
- cp -vr drivers/video/logo/logo_linux_clut224.ppm drivers/video/logo/logo_linux_clut224.ppm.bck
- cp -vr /<your-dir>/logo_linux_clut224.ppm drivers/video/logo/logo_linux_clut224.ppm

Step 3

Now let's change the default configuration to compile with what you need, add this line to .config:

#
# Boot logo and Framebuffer
#
CONFIG_CMDLINE="console=ttyS0,115200 androidboot.console=ttyS0 fbcon=rotate:0 mem=1G vmalloc=768M zcache omap_wdt.timer_margin=60 no_console_suspend"
CONFIG_BOOT_PRINTK_DELAY=y
CONFIG_CMDLINE_FORCE=y
CONFIG_CMDLINE_EXTEND=y
CONFIG_VT=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_VGA16 is not set
CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_LOGO_LINUX_MONO is not set
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FONTS is not set
# CONFIG_FONT_4x6 is not set
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_8x8 is not set
# CONFIG_FONT_8x16 is not set

Step 4

The last step is to replace the attached file in your initramfs (make a backup of your original files):
- cp -vr /<dir-of-your-ramdisk/init /<dir-of-your-ramdisk/init.bck
- cp -vr init /<dir-of-your-ramdisk/init

Step 5

Recompile your kernel and initramfs.

Now have fun.

Everything you need and guides to compile a kernel can be found on my github linked in the signature.






Last edited by ak; 9th December 2013 at 03:34 PM.
The Following 23 Users Say Thank You to ak For This Useful Post: [ View ]
21st December 2012, 12:17 PM   |  #2  
ak's Avatar
OP Recognized Contributor
Flag Ak Land Valley
Thanks Meter: 47,827
 
11,388 posts
Join Date:Joined: Feb 2011
Donate to Me
More
Talking .... reserved ....

.... reserved ....
Last edited by ak; 21st December 2012 at 12:40 PM.
The Following 3 Users Say Thank You to ak For This Useful Post: [ View ]
21st December 2012, 12:18 PM   |  #3  
ak's Avatar
OP Recognized Contributor
Flag Ak Land Valley
Thanks Meter: 47,827
 
11,388 posts
Join Date:Joined: Feb 2011
Donate to Me
More
Talking .... reserved ....

.... reserved ....
The Following 3 Users Say Thank You to ak For This Useful Post: [ View ]
21st December 2012, 07:33 PM   |  #4  
Ashtrix's Avatar
Senior Member
Thanks Meter: 345
 
1,249 posts
Join Date:Joined: Dec 2010
More
Makes Gnex UX more better like SGS 1 and was waiting for this since a long time !

That's great work Anarkia, thanks
Last edited by Ashtrix; 21st December 2012 at 07:39 PM.
The Following 2 Users Say Thank You to Ashtrix For This Useful Post: [ View ]
23rd December 2012, 06:26 AM   |  #5  
obtained's Avatar
Senior Member
Flag Cleveland
Thanks Meter: 284
 
498 posts
Join Date:Joined: Feb 2012
More
Fantastic. It adds extra awesomeness to your kernel.

Sent from my Galaxy Nexus using xda premium
26th December 2012, 01:40 AM   |  #6  
Well i've tried the image, the init, and the flags and I get nothing. It did pop up with a little text android and a flashing cursor at one point messing with a few other flags, but using this setup I can't seem to get it running. I'm trying to diagnose the issue but I am not sure where to start.

Sent from my Galaxy Nexus using Tapatalk 2
26th December 2012, 10:06 AM   |  #7  
ak's Avatar
OP Recognized Contributor
Flag Ak Land Valley
Thanks Meter: 47,827
 
11,388 posts
Join Date:Joined: Feb 2011
Donate to Me
More
The focal point is init file .... Have you insert it into your ramdisk?

Do you use anykernel format?

Gnex with AK inside
The Following 3 Users Say Thank You to ak For This Useful Post: [ View ]
26th December 2012, 03:29 PM   |  #8  
Quote:
Originally Posted by anarkia1976

The focal point is init file .... Have you insert it into your ramdisk?

Do you use anykernel format?

Gnex with AK inside

I tried with and without the init file. I have it build the boot during compile. Ill keep trying.

Sent from my Galaxy Nexus using Tapatalk 2
26th December 2012, 06:09 PM   |  #9  
ak's Avatar
OP Recognized Contributor
Flag Ak Land Valley
Thanks Meter: 47,827
 
11,388 posts
Join Date:Joined: Feb 2011
Donate to Me
More
Ramdisk is essential point for have personal kernel bootlogo.
If you see only text log the problem is inside ramdisk!
Thanks
The Following User Says Thank You to ak For This Useful Post: [ View ]
26th December 2012, 07:46 PM   |  #10  
Quote:
Originally Posted by anarkia1976

Ramdisk is essential point for have personal kernel bootlogo.
If you see only text log the problem is inside ramdisk!
Thanks

How did you modify the init? That may not be working with my kernel.

Sent from my Galaxy Nexus using Tapatalk 2

Post Reply Subscribe to Thread

Tags
ak kernel, anarkia, boot, bootlogo, logo
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes