On 17 August 2005 18:22, John Dangler wrote:
> Uwe~
> Yes, please share!  I'd be interested to see how this goes together

Alright, it took me less time than I thought. ;-)

Here it goes:

1.
Cd to /etc/splash. Create a subdirectory with the name of your theme. That's 
"sysex" in my case because that's the name of my company for which I have 
done it (just to squash any snide remarks before the come my way: It's SysEx 
rather than SySex). Inside that subdirectory, you create another one by the 
name "images".

2.
Use an existing images or create one with your favourite program for that. I 
used an existing one and edited with The Gimp. Actually, you need two 
matching ones, one for the "silent" screen, one for the "verbose" screen. The 
silent one is for the splash screen showing a progress bar and hiding all 
boot-up messages. The verbose one is for hitting "F2" during the boot process 
and for the virtual text consoles. At this stage, you have to decide which 
resolution you can use with your video card. I only use 1024x758, so I skip 
all the other resolutions. If you want all of them (like in emergence you 
have to create them all but you don't need to. Resize the images in The Gimp 
to 1024x768 (or whatever resolution you want and can use) and save them as 
"silent-1024x768.jpg" and "verbose-1024x768.jpg". Copy them over 
to /boot/grub/.

3.
Create a file with this content:

--- start file ---

# Copyright 2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
# 
*****************************************************************************
# Gentoo-Emergence - a sample gensplash theme, bootsplash compatibility mode
# This file should be placed in /etc/splash/emergence/
# 
*****************************************************************************

bgcolor=0

tx=25
ty=28   
tw=979
th=728

text_x=204
text_y=544
text_size=26
text_color=0xeef4ff

pic=/etc/splash/sysex/images/verbose-1024x768.jpg
silentpic=/etc/splash/sysex/images/silent-1024x768.jpg
#pic256=/etc/splash/emergence/images/verbose-1024x768-240.png
#silentpic256=/etc/splash/emergence/images/silent-1024x768-256.png

box silent noover       204 582 820 612 #04045498
box silent inter        204 583 204 611 #ffff00 #ffff00 #526bb0 #526bb0
box silent              204 583 820 611 #ffffff #ffffff #526bb0 #526bb0

box silent      204 582 820 582 #313234
box silent      204 612 820 612 #eef4ff
box silent      204 582 204 612 #313234
box silent      820 582 820 612 #eef4ff

box noover      20 20 1004 750 #04045498

--- end file ---

Save it to /etc/splash/sysex/1024x768.cfg. Replace any occurrence fo "sysex" 
by the name you call your theme.

4.
Create another matching image with very few colours. Save it as sysex.jpg. If 
you haven't emerge ImageMagick yet do it now. Use "convert -colors 16 -depth 
8 sysex.jpg sysex.xpm". Gnuzip "sysex.xpm" (gzip sysex.xpm) and copy 
"sysex.xpm.gz" to /boot/grub/".

5.
Assuming your /usr/src/linux points to your current kernel sources, do a 
"genkernel --menu-config --gensplash=sysex --gensplash-res=1024x768 all". 
Replace "sysex" by your theme name and "1024x768" by your resolution. When 
the kernel configuration comes up, go to "Device Drivers" --> "Graphics 
Support". Enable "VESA VGA Graphics Support", and in there also "vesafb-tng". 
Also enable "Support for framebuffer splash". Do whatever else configuration 
you need. Let everything build.

6.
This should generate "/boot/kernel-genkernel-x86-2.6.12-gentoo-r6" 
and /boot/initramfs-genkernel-x86-2.6.12-gentoo-r6", or whatever other kernel 
you are using. If not so, well, you made a mistake somewhere along the line. 
(or I mistyped something ;-)

7.
Create an entry in your /boot/grub/grub.conf like this:

--- start config file ----

default 0
timeout 10
splashimage=(hd0,1)/boot/grub/sysex.xpm.gz

title= NOS - The Namibian Office Solution by SysEx (Pty) Ltd.
root (hd0,1)
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r6 root=/dev/ram0 
init=/linuxrc ramdisk=8192 real_root=/dev/hda2 udev quiet CONSOLE=/dev/tty1 
video=vesafb:ywrap,mtrr,1024x768-16 splash=silent,theme:sysex
initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r6

--- end config file ---

Obviously, you have to edit everything "sysex" and the harddisk to fit your 
system. Also the kenel version. If your boot partition is on SCSI you 
probably also have to add the option "doscsi" to the kernel options.



Compared to the recommended HOWTO somewhere on Gentoo, this gives you a splash 
screen that kicks in far earlier and does hardware recognition far superior.

Uwe
 

-- 
95% of all programmers rate themselves among the top 5% of all software 
developers. - Linus Torvalds

http://www.uwix.iway.na (last updated: 20.06.2004)
-- 
gentoo-user@gentoo.org mailing list

Reply via email to