LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-06-2003, 09:07 AM   #1
Mr Wind-up Bird
LQ Newbie
 
Registered: Apr 2003
Posts: 1

Rep: Reputation: 0
Bootsplash Hint


I've put some information together (mainly from the Gentoo forum) into an LFS hint for a bootsplash screen. Do you think anyone would be interested in me improving it a submitting it to the LFS people? Here's the first draft:

Code:
TITLE:		Installing a bootsplash screen with progress bar
LFS VERSION:	3.3
AUTHOR:	        Bryan Gale <bryan@2dz.co.uk>

SYNOPSIS:
	How to hide kernel messages behind a splash screen and use a progress bar

HINT:

Required packages
-----------------

The SuSE bootsplash kernel patch (patch for 2.4.20 kernel also available)
ftp://ftp.suse.com/pub/people/stepan...8-vanilla.diff

The splashutils package
ftp://ftp.suse.com/pub/people/stepan...hutils.tar.bz2

A sample bootsplash theme
ftp://ftp.suse.com/pub/people/stepan...-Linux.tar.bz2

I shall presume these have been downloaded to /tmp


Patching the kernel
-------------------

Change to the directory containing your kernel sources and apply the patch:

	cd /usr/src/linux
	patch -p1 < /tmp/bootsplash-3.0.7-2.4.18-vanilla.diff

Configure the kernel

	make menuconfig

And select the following options

	Code maturity level options  --->
		Prompt for development and/or incomplete code/drivers
	Block devices  ---> RAM disk support
	Block devices  ---> Initial RAM disk (initrd) support
	Console drivers  ---> Video mode selection support
	Console drivers  ---> Frame-buffer support --->
		Support for frame buffer devices
		VESA VGA graphics console
		Use splash screen instead of boot logo

Each of these must be compiled into the kernel, not selected as modules

Now compile and install your kernel

	make dep &&
	make bzImage &&
	make modules &&
	make modules_install &&
	cp arch/i386/boot/bzImage /boot/lfskernel


Installing user space utilities
-------------------------------

Unpack splashutils.tar.bz2, compile and copy the splash utility to /bin

	cd /tmp &&
	tar xvjf splashutils.tar.bz2 &&
	cd splashutils &&
	make &&
	cp ./splash /bin

Create a direcory for your bootsplash themes and unpack the provided theme into
it

	mkdir -p /etc/bootsplash/themes &&
	cd /etc/bootsplash/themes &&
	cp /tmp/Theme-Linux.tar.bz2 ./ &&
	tar xvjf Theme-Linux.tar.bz2

Now you can create a ram disk image from the theme that will be used when the
kernel boots

	splash -s -f /etc/bootsplash/themes/Linux/config/bootsplash-1024x768.cfg > \
	/boot/initrd


Updating Lilo
-------------

Add the following lines to /etc/lilo.conf under your kernel
entry:

	vga=791
	initrd=/boot/initrd

The vga line is required so the resolution on boot matches the size of your boot
image

If you want all kernel messags to be hidden, rather than printed on top of your
splash screen, add the following also

	append="splash=silent"

Now run Lilo and reboot your computer

	lilo &&
	shutdown -r now

When your computer restart you shoud have a pretty splash screen


Using the progress bar
----------------------

If you selected to hide the kernel messages, you will see a progress bar. To
use this, you will need to make some changes to your startup scripts. Change to
the directory containing the scripts for the runlevel you start your computer
at:

	cd /etc/rc.d/rc5.d

Changing 5 to whatever runlevel you use. Edit these scripts, and wherever you
see:

	loadproc somecommand

Place the following line before it:

	echo "show XXXXX" > /proc/splash

Repalce XXXXX with how far allow the boot process is when somecommand is run,
out of 65534. It will take some trial and error to get a smooth progress bar


Using a different theme
-----------------------

Addtional themes can be found at http://www.bootsplash.org
To use a new theme, untar it somewhare and run

	splash -s -f [THEME CONFIG FILE] > /boot/initrd &&
	lilo

The theme configuration file is typically found in config/bootsplash-1024x768.cfg


Sources
-------

http://www.bootsplash.org
http://forums.gentoo.org/viewtopic.php?t=26494

Last edited by Mr Wind-up Bird; 04-06-2003 at 09:11 AM.
 
Old 04-06-2003, 10:15 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Yes it's a good idea.

I do suggest subscribing to the blfs-support mailinglist (or use the blfs.support newsgroups on the news.linuxfromscratch.org server) and bring it up there too. You'll have at least a good thousand people who are reading that list so a lot of people can give you some good feedback (other than people here of course).
 
Old 04-07-2003, 05:24 AM   #3
NGraphiX
Member
 
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154

Rep: Reputation: 30
Is there a way of doing it without downloading the pack'gs?
as in actually go through the code?
I know this is done by the kernel patch,
but it would be nice to do it yourself.
 
Old 06-05-2003, 11:02 PM   #4
centr0
Member
 
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134

Rep: Reputation: 15
"Code maturity level options --->
Prompt for development and/or incomplete code/drivers
Block devices ---> RAM disk support
Block devices ---> Initial RAM disk (initrd) support
Console drivers ---> Video mode selection support
Console drivers ---> Frame-buffer support --->
Support for frame buffer devices
VESA VGA graphics console
Use splash screen instead of boot logo"


when i 'make menuconfig' and check under the console drivers section it only has 2 choices
-VGA text console
-Video mode selection support

i got this kernel source 2.4.20 from kernel.org i never even tried installing bootsplash until im sure about this. where are the other options that im suppose to have?

upon installation i used bare.i kernel from slack cd. is there a way to extract the source bare.i to /usr/src/linux? i can just keep the config it has there and patch it right?

Last edited by centr0; 06-05-2003 at 11:05 PM.
 
Old 06-13-2003, 06:44 PM   #5
edok
LQ Newbie
 
Registered: Jun 2003
Distribution: LFS, RedHat, SuSE
Posts: 3

Rep: Reputation: 0
i followed every step that you have indicated.. but when i reached make bzImage . . . i got an error that has something to do with the video cards.. i tried changing the options for the video card.. i selected ATI Mach 64 because that is what my video card is.. but i still get the same error.. i forgot to include the error message here... but can you tell me which log file should i look into so that i could post the error?
 
  


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
canon i 255 hint! vande Linux - Hardware 0 09-30-2004 12:11 AM
Gaim notification hint cratos Slackware 0 09-29-2004 09:26 PM
lpi 101 hint ziox Linux - Certification 2 05-02-2004 05:32 AM
Shell script hint... AMMullan Linux - General 3 01-20-2004 09:36 PM
Someone please please give me a hint about the soundrecorder ejdeha Linux - Software 1 07-06-2003 01:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:41 PM.

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