LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-17-2006, 11:20 PM   #1
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Rep: Reputation: 15
Improving the look of my Bootsplash???


Hello all,
Believe it or not I've actually got the latest Bootsplash package from Linuxpackages.net to work on my frambuffer console. However, the only problem I've run into is that the colors look all messed up. Now I found on the Bootsplash website FAQ page that in the situation with an ATI Rage 128 framebuffer, a patch is required. The problem I ran into when I tried to apply the patch...
Code:
root@slackware:/usr/src/linux# patch -p1 < /home/southpaw76/aty128-bootsplash.diff
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/drivers/video/aty128fb.c.orig        2002-11-14 12:33:31.000000000 +0100
|+++ linux/drivers/video/aty128fb.c     2002-11-14 12:45:16.000000000 +0100
--------------------------
File to patch: 
Skip this patch? [y] n
File to patch:  linux/drivers/video/aty128fb.c
linux/drivers/video/aty128fb.c: No such file or directory
Skip this patch? [y] n
File to patch: linux/drivers/video/aty128fb.c.orig
linux/drivers/video/aty128fb.c.orig: No such file or directory
...does anyone know if there is an updated patch for this??? This is the one I downloaded...
Code:
 --- linux/drivers/video/aty128fb.c.orig	2002-11-14 12:33:31.000000000 +0100
+++ linux/drivers/video/aty128fb.c	2002-11-14 12:45:16.000000000 +0100
@@ -2406,6 +2406,44 @@
             aty128_st_pal(i, i, i, i, info);
     }
 
+#ifdef CONFIG_FBCON_SPLASHSCREEN
+
+    /* splash-screen needs true-color */
+
+    switch (info->current_par.crtc.depth) {
+    case 8:
+	aty128_st_pal(palreg, red, green, blue, info);
+	break;
+#ifdef FBCON_HAS_CFB16
+    case 15:
+	info->fbcon_cmap.cfb16[regno] =
+		((red   & 0xf8) <<  7) |
+		((green & 0xf8) <<  2) |
+		((blue  & 0xf8) >>  3);
+	break;
+    case 16:
+	info->fbcon_cmap.cfb16[regno] =
+		((red   & 0xf8) <<  8) |
+		((green & 0xfc) <<  3) |
+		((blue  & 0xf8) >>  3);
+	break;
+#endif
+#ifdef FBCON_HAS_CFB24
+    case 24:
+	info->fbcon_cmap.cfb24[regno] =
+		(red << 16) | (green << 8) | blue;
+	break;
+#endif
+#ifdef FBCON_HAS_CFB32
+    case 32:
+	info->fbcon_cmap.cfb32[regno] =
+		(red << 16) | (green << 8) | blue;
+	break;
+#endif
+    }
+
+#else
+
     /* initialize palette */
 
     palreg = regno;
@@ -2448,6 +2486,7 @@
         }
 #endif
 	}
+#endif /* CONFIG_FBCON_SPLASHSCREEN */
     return 0;
 }
...as usual any ideas or suggestions would be much appreciated, thanx...
 
Old 12-18-2006, 01:14 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,749

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
The patch is for the sources, not the installable binary package. You'll need to apply that to the sources and recompile.
 
Old 12-18-2006, 04:44 AM   #3
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
@gnashlay: he tries to apply the patch to the kernel sources as the directory states...
(if this really are only the headers, install the complete kernel source first)

then to solve your problem:
either apply the patch in directory /usr/src or use -p2 instead of -p1

HTH,
Flo
 
Old 12-18-2006, 05:00 PM   #4
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Original Poster
Rep: Reputation: 15
Yeah I tried that with both p1 and p2 but it didn't work. Also yes, I did install the full vanilla sources of the Linux-2.6.17.13 kernel when I originally installed Slackware ....
 
Old 12-18-2006, 05:11 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,190

Rep: Reputation: Disabled
In my 2.6.17.3 kernel sources, that file aty128fb.c is one directory deeper down than the patch file expects:
Code:
/usr/src/linux-2.6.17.13/drivers/video/aty/aty128fb.c
Eric
 
Old 12-18-2006, 06:59 PM   #6
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Original Poster
Rep: Reputation: 15
Okay, so here's what happened upon digging a little deeper...
Code:
root@slackware:/usr/src/linux/drivers/video/aty# patch -p1 < /home/southpaw76/aty128-bootsplash.diff
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/drivers/video/aty128fb.c.orig        2002-11-14 12:33:31.000000000 +0100
|+++ linux/drivers/video/aty128fb.c     2002-11-14 12:45:16.000000000 +0100
--------------------------
File to patch: /usr/src/linux/drivers/video/aty/aty128fb.c   
patching file /usr/src/linux/drivers/video/aty/aty128fb.c
Hunk #1 FAILED at 2406.
Hunk #2 FAILED at 2486.
2 out of 2 hunks FAILED -- saving rejects to file /usr/src/linux/drivers/video/aty/aty128fb.c.rej
....so now I'm trying to figure out what is going wrong...
 
Old 12-19-2006, 12:30 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,749

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
Maybe the patch was meant for 2.4 sources?
 
Old 12-19-2006, 01:58 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,190

Rep: Reputation: Disabled
Quote:
root@slackware:/usr/src/linux/drivers/video/aty# patch -p1 < /home/southpaw76/aty128-bootsplash.diff
You should have run
Code:
root@slackware:/usr/src/linux/drivers/video/aty# patch -p3 < /home/southpaw76/aty128-bootsplash.diff
Eric
 
Old 12-19-2006, 05:06 PM   #9
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Original Poster
Rep: Reputation: 15
Okay Bob, now I did like you said...
Code:
root@slackware:/usr/src/linux/drivers/video/aty# 
patch -p3 < /home/southpaw76/aty128-bootsplash.diff
...and after I issued a -p3 instead of a -p1 or a -p2, like you suggested but this is what happened...
Code:
patching file aty128fb.c
Hunk #1 FAILED at 2406.
Hunk #2 FAILED at 2486.
2 out of 2 hunks FAILED -- saving rejects to file aty128fb.c.rej
...I'm still not understanding the errors .
 
Old 12-20-2006, 05:17 PM   #10
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Original Poster
Rep: Reputation: 15
Does anybody know if I can manually patch the file by cutting and pasting from one diff to another???
 
Old 12-21-2006, 01:51 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,749

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
Sure you can paste from the diff into the source file -just be sure to remove the *+' signs at the beginning of the lines. Make sure to create backup copies of each file modified before beginning.
 
Old 12-21-2006, 04:12 AM   #12
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
simply find the correct positions in your original file and patch manually, if you can ensure you won't break any new code (that will surely be there, as else the patch could apply...)
 
Old 12-24-2006, 03:23 PM   #13
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Original Poster
Rep: Reputation: 15
Well I figured out hoe to get the bootsplash to work with progressbar and all . First off, being that I had my /home directory on a seperate partition, I reinstalled Slackware on my / (root) partition. Why, you ask? Because after having messed up my kernel with the whole "aty128fb" patch and such. After that I tried using Spock's Splashutils package which is used with Gentoo, but no luck there . So, I reinstalled Slackware, did my usual post installation configuration procedure, finally I installed the Bootsplash package from linuxpackages.net, which btw works beautifully .

After, installing the package using "installpkg", I read the well written (IMO) documentation provided. The difference being that when I compiled my kernel, instead of enabling ATI Rage128 directly, I compiled it as a module and Vesa directly. After that I changed the line in my /etc/lilo.conf from this...
Code:
append = "video=aty128fb:ywrap,mtrr splash=silent"
to this...
Code:
append = "video=vesafb:ywrap,mtrr splash=silent"
...after that, I configured the rc.S, rc.M, rc.6, and rc.local files as it is recommended for the progressbar to work. I also downloaded a few different splash screens from the bootsplash website. And after having done this, I am happy to report that the bootsplash screen works . Thanx again for all of your help..........
 
  


Reply

Tags
bootsplash, solution


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Anyone up for Improving Lsongs? dissonanz Linux - Software 1 10-26-2004 06:24 PM
Help improving a textfile blubbfish Linux - Newbie 2 06-22-2004 08:02 AM
improving 3d performance ababkin Linux - Hardware 1 04-08-2004 11:33 PM
Improving hd performance psyklops Linux - General 2 08-21-2003 08:19 PM
Improving Security RadarG Linux - Security 3 07-18-2003 07:21 PM


All times are GMT -5. The time now is 11:05 PM.

Main Menu
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