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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-06-2003, 09:07 AM
|
#1
|
LQ Newbie
Registered: Apr 2003
Posts: 1
Rep:
|
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.
|
|
|
04-06-2003, 10:15 PM
|
#2
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
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).
|
|
|
04-07-2003, 05:24 AM
|
#3
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Rep:
|
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.
|
|
|
06-05-2003, 11:02 PM
|
#4
|
Member
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134
Rep:
|
"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.
|
|
|
06-13-2003, 06:44 PM
|
#5
|
LQ Newbie
Registered: Jun 2003
Distribution: LFS, RedHat, SuSE
Posts: 3
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 07:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|