LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Blogs > ~sHyLoCk~
User Name
Password

Notices



Rating: 2 votes, 5.00 average.

Patch and Compile Kernel with Custom Boot Logo

Posted 12-18-2009 at 05:54 AM by ~sHyLoCk~
Updated 12-21-2009 at 12:08 PM by ~sHyLoCk~

Originally Posted in my BLOG.


Unlike every other distro, Slackware doesn't brand anything. Everything is vanilla. So when you boot, you see the original linux penguin logo at the top of your screen.

Download the latest kernel source from kernel.org. I'll be using here kernel 2.6.32 source and 2.6.32.1 patch. So you understand that you don't need to download the whole kernel source every-time a new kernel version is released. If you have the previous source or a kernel source which is older, say 2.6.31, then you will need all the subsequent incremental patches from 2.6.31.1 to 2.6.32.1 and you will need to apply them one by one to the kernel source. I'll just be showing one.

First download the source from kernel.org and the subsequent incremental patches. I just need patch 2.6.32.1. Now get root privilege using "su" or if you prefer to use "sudo" then put that in front of every code. Move the downloaded kernel source to /usr/src. I have been hearing people say that this old method of kernel compiling at /usr/src is outdated and frowned upon, usually /home is preferred nowadays, well not for me. I like the traditional way.

Code:
mv /path/to/linux-version.tar.bz2 /usr/src

tar xvjf linux-version.tar.bz2

rm -r linux  [if any]

ln -s linux-version linux

mv /path/to/patch-version.bz2 /usr/src/linux

bunzip2 patch-version.bz2

patch -p1 < patch-version
Note: Replace the "version" accordingly. An useful tip: Use tab completion to save time typing.

Now, it's time to get the logo. I'm going to upload a ready-made logo for the fellow Slackers, but if you want some other logo then download/create a png image.

Step 1: Open the image in gimp or wherever.

Step 2: Scale the image to 80x80

Step 3: Save the image back to png format. Name it logo.png.

Now open terminal and type:

Code:
pngtopnm logo.png | ppmquant -fs 223 | pnmtoplainpnm > logo_linux_clut224.ppm

cp logo_linux_clut224.ppm /usr/src/linux/drivers/video/logo/
As promised for the Slackers, you may use this one and just copy it over as shown above.
Another Slack-tux logo.

Now the usual compiling. In my previous guides I showed you how to compile kernel and create an initrd image, this time let's do it without one.

Code:
cd /usr/src/linux

make mrproper

make menuconfig
In General Setup -> Local version - you can use your nick or anything, I use -pdg and then select below "Automatically append version information to the version string".

Choose Kernel compression mode as LZMA for a smaller kernel size but slower compression.

Processor type and features ---> Processor family -> Mine is Core 2, choose yours accordingly.

File systems ---> Build in (*) the root partition, if its ext4 then build in ext4, if it's XFS, build in XFS. Don't build as modules (M).

Device Drivers ---> Graphics Support -->

* Support for frame buffer devices
* VESA VGA graphics support
* Video mode selection support
* Framebuffer Console support
* Select compiled-in fonts
* VGA 8x16 font
* Bootup logo
* Standard 224-color Linux logo

Now save and exit. Time to compile.

Code:
make -j3
Use no. of CPUs+1, for Core 2 Duo it's 2+1 = 3

After it's done:

Code:
make modules_install

cp arch/x86/boot/bzImage /boot/kernel-version-localversion
Change version-localversion accordingly.

Code:
cp System.map /boot/System.map-version-localversion

cp .config /boot/config-version-localversion

cd /boot

rm vmlinuz

ln -s kernel-version-localversion vmlinuz

rm System.map

ln -s System.map-version-localversion System.map

ln -s config-version-localversion config

nano /etc/lilo.conf
Now see if there is an entry:

Quote:
image = /boot/vmlinuz
root = /dev/hda2
label = Linux
read-only
If not, add it.

Code:
/sbin/lilo
Now reboot and enjoy your new boot logo.

Regards
Posted in Slackware
Views 7355 Comments 3
« Prev     Main     Next »
Total Comments 3

Comments

  1. Old Comment
    interesting. you know, in fact, this blog looks much nicer than one you have outside. =)
    Posted 12-19-2009 at 01:14 AM by Web31337 Web31337 is offline
  2. Old Comment
    Wouldn't this be more appropriate for Slackware?

    http://connie.slackware.com/~msimons...dobbslack1.jpg
    Posted 12-21-2009 at 06:53 AM by brianL brianL is offline
  3. Old Comment
    Quote:
    Originally Posted by brianL View Comment
    Wouldn't this be more appropriate for Slackware?

    http://connie.slackware.com/~msimons...dobbslack1.jpg
    Heh true. Ok I'll add that as well. Thanks
    Posted 12-21-2009 at 10:00 AM by ~sHyLoCk~ ~sHyLoCk~ is offline
 

  



All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration