LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-17-2009, 01:43 PM   #1
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Limits on kernel logo


Hi all, I was going to change the boot logo for a new kernel, I was wondering if anyone knew of any limitations on the .ppm file used for this such as size etc due to the fact that I can cut and paste an image a lot better than I can manipulate one (I really can't even color in the the lines to be quite honest).

Thanks
 
Old 12-17-2009, 08:28 PM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
no more than 224 colors, and 80x80px size
 
Old 12-17-2009, 08:45 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by ~sHyLoCk~ View Post
no more than 224 colors, and 80x80px size
I thought it was 16 colors and 79x79 size, guess i am an idiot.
 
Old 12-17-2009, 08:47 PM   #4
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
How to modify the linux kernel boot logo.

I'm sure this is available elsewhere, but I kept finding broken links and typos and I needed something to do while my new kernel compiled!

NOTE: Changing the boot logo does require you to compile a new kernel.

1. Obtain and configure your kernel source. With a few small changes I follow the steps at http://alien.slackbook.org/dokuwiki/...[]=compile

NOTE: It is not neccessary to follow this exact order, but it makes life easier if the symbolic link below has already been set up. This is assumed below.
PHP Code:
linux -> linux-YOURKERNELVERSION 

2. After configuring your kernel, but prior to executing
PHP Code:
make bzImage modules 
rename the logo file that corresponds to your particular kernel configuration. This should work for the most common configurations
PHP Code:
mv /usr/src/linux/drivers/video/logo/logo_linux_clut224.ppm /usr/src/linux/drivers/video/logo/logo_linux_clut224.ppm.DEFAULT 
3. Obtain the image you wish to use as your customized logo.

4. Open the image with a graphical editor and scale/resize the image to 80x80 pixels and save the modified file as logo.png. I chose to save it to /home.

5. Open a terminal and cd to the directory containing your new logo.png file.
PHP Code:
cd /home 
6. Execute the following command to set the image to 224 colors and rename it. Then copy the outputted file back to /usr/src/linux/drivers/video/logo
PHP Code:
pngtopnm logo.png ppmquant -fs 223 pnmtoplainpnm logo_linux_clut224.ppm 
NOTE: the final part of this command assumes a kernel configuration that may not be yours, the output file should match the original name of the file you renamed in step 2 above, again, TO MATCH YOUR KERNEL CONFIGURATION/ARCHITECTURE.
7. If all has gone well you are now ready to return to the terminal where your configuration was taking place and resume building your kernel
PHP Code:
cd /usr/src/linux
make bzImage modules
make modules install 
if you are following the directions from the link posted above.

Last edited by damgar; 12-18-2009 at 03:29 PM.
 
Old 12-17-2009, 08:49 PM   #5
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
LOL! I wish I'd waited for that info.......2 bad builds later! LOL
 
Old 12-17-2009, 08:52 PM   #6
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
cd /home shouldn't it be just cd or cd ~/

Btw I just do make -j3 as "make bzImage modules" not required. Change -j3 to your no. of CPU+1, that is how many threads to run.

I created a Slackware ppm: http://wp.me/pBvUo-5l
Regards

Last edited by ~sHyLoCk~; 12-18-2009 at 05:38 AM.
 
Old 12-18-2009, 12:24 AM   #7
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
I'm sure there are a number of more elegant ways to do it (as well as type it up), but this worked for me. Hopefully it works for someone else as well. That is a very nice Slack ppm by the way. Thanks.

Last edited by damgar; 12-18-2009 at 12:26 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM Limits for Various Kernel Versions cram869 Linux - Kernel 1 02-23-2007 06:57 PM
limits are not working (limits.conf) PkerC Red Hat 3 06-22-2006 10:14 AM
slack 10.2 default 2.4 kernel and Ram limits ? mortal Slackware 2 11-16-2005 09:26 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
open file limits in 2.4 kernel/apache? eva2000 Linux - Newbie 8 07-29-2002 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration