Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Howto] Using Bootsplash on PPC in 9 easy steps
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
pinguinoferoce
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2003
Posts: 147

PostPosted: Sun Aug 29, 2004 1:54 pm    Post subject: Reply with quote

you are very lucky .....
My bootsplash don' t work .....
I can' t set my fb resolution (with rivafb ..... geforce4mx on imac) ....
if i set a resolution on append at yaboot , the sistem don' t run .........
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Sun Aug 29, 2004 3:21 pm    Post subject: Reply with quote

Quote:
Use silian87's config for 1280x854 file that he/she posted on the first page. You have to edit it so it has the right location of the image (jpg) you are using (thanks silan87).


thk :wink:

I talk with lu_zero, and probably he will include my 2 scripts (and perhaps other 1280x854 version) in new bootsplash package.
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Sun Aug 29, 2004 3:29 pm    Post subject: Reply with quote

mmm I find the resize lib: /usr/lib/bootsplash/bootsplash_resizer.pl

Code:

#!/usr/bin/perl
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Author: Michal Januszewski <spock@gentoo.org>

# Usage: bootsplash_resizer <old_config> <new_config> <old_res> <new_res>

# This is a helper script which parses Bootsplash config files and does
# what is necessary to create a config for a new resolution.

# $Header: /var/cvsroot/gentoo-src/bootsplash/core/misc/bootsplash_resizer.pl,v 1.3 2004/08/05 11:24:12 spock Exp $

$max_cfg = $ARGV[0];
$new_cfg = $ARGV[1];
$max_res = $ARGV[2];
$res = $ARGV[3];

open IN,"<$max_cfg";
open OUT,">$new_cfg";

$max_res =~ /(\d+)x(\d+)/; $old_x = $1; $old_y = $2;
$res =~ /(\d+)x(\d+)/; $new_x = $1; $new_y = $2;

while(<IN>) {

   if (/^\s*tx=(\d+)/ || /^\s*tw=(\d+)/ || /^\s*text_x=(\d+)/) {
      $t = int(($1/$old_x)*$new_x);
      s/=\d+/=$t/;
   } elsif (/^\s*ty=(\d+)/ || /^\s*th=(\d+)/ || /^\s*text_y=(\d+)/) {
      $t = int(($1/$old_y)*$new_y);
      s/=\d+/=$t/;
   } elsif (/^\s*text_size=(\d+)/) {
      $t = int(($1/$old_y)*$new_y);
      s/=\d+/=$t/;
   } elsif (/^\s*box [a-zA-Z ]*(\d+) (\d+) (\d+) (\d+)/) {
      $x0 = int(($1/$old_x)*$new_x);
      $x1 = int(($3/$old_x)*$new_x);
      $y0 = int(($2/$old_y)*$new_y); 
      $y1 = int(($4/$old_y)*$new_y);
      s/box ([a-zA-Z ]*)\d+ \d+ \d+ \d+ (.*)/box $1 $x0 $y0 $x1 $y1 $2/;
   } elsif (/^\s*jpeg=(.*)\n/ || /^\s*silentjpeg=(.*)\n/) {
      
      $src = $1;
      
      if ($src =~ /$max_res/) {
         $dest = $src;
         $dest =~ s/$max_res/$res/g;
      } else {
         $dest = $src;
         $dest =~ s/\.[^\.]+$//g;
         $dest .= "-$res.jpeg";
      }
         
      `/usr/bin/convert -resize $res $src $dest`;
      if (/silentjpeg/) {
         $_ = "silentjpeg=$dest\n";
      } else {
         $_ = "jpeg=$dest\n";
      }
   }

   s/$max_res/$res/g;

   print OUT $_;
}

close IN;
close OUT;


I think that if you put "size" intead of "resize" here:
Code:
`/usr/bin/convert -resize $res $src $dest`;


And other small things mainy this script will work better...
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Sun Aug 29, 2004 3:32 pm    Post subject: Reply with quote

perhaps no size, but scale, now i try
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Sun Aug 29, 2004 3:40 pm    Post subject: Reply with quote

I find it... resample :-)

Code:
`/usr/bin/convert -resample $res $src $dest`;


I don't think it is enought for scale the image...
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Sun Aug 29, 2004 4:04 pm    Post subject: Reply with quote

is too slow! It will be interesting to know how gimp resixe an immage using: Tool->transform-tool->scale

If someone tell me what is the command (I hope it is in a gimp ilbrary), I try to put it into the bootsplash_resize script.
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
neon
l33t
l33t


Joined: 04 Aug 2003
Posts: 759
Location: Catania, Italy, Europe

PostPosted: Sun Sep 05, 2004 4:05 pm    Post subject: Reply with quote

I can't get framebuffer to work on a pbook 12" (nvidia chipset)

I have openfirmware fb compiled in kernel...

dmesg says:
Code:

Kernel command line: root=/dev/hda6 ro video=ofonly:1024x768-32 splash=silent
[...] (i've even tried video=rivafb)
Using unsupported 1024x768 NVDA,Display-A at a0008000, depth=8, pitch=1024
fb0: Open Firmware frame buffer device on /pci@f0000000/NVDA,Parent@10/NVDA,Disp
lay-A@0
[...]
bootsplash 3.1.4-2004/02/19-spock-0.1: looking for picture....<6>bootsplash: err
or while decompressing picture: depth mismatch (15)
bootsplash 3.1.4-2004/02/19-spock-0.1: looking for picture....<6>bootsplash: err
or while decompressing picture: depth mismatch (15)
bootsplash 3.1.4-2004/02/19-spock-0.1: looking for picture....<6>bootsplash: err
or while decompressing picture: depth mismatch (15)
[...] (etc etc)


any hint?
_________________
Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson

LINEE GUIDA DEL FORUM
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Sun Sep 05, 2004 4:28 pm    Post subject: Reply with quote

I don't have any ideas, but I had the same problem on an 800MHz iBook a month or so ago. I gave up, and tried again this time with a new kernel, and the latest bootsplash and it worked. I don't know if it was the kernel, kernel config, bootsplash code, or my yaboot.conf that was goofy before, but I tried everything I could think of and nothing helped. :-)

~Micahel
Back to top
View user's profile Send private message
linuxopjemac
n00b
n00b


Joined: 23 Aug 2004
Posts: 35
Location: The Hague, The Netherlands

PostPosted: Tue Sep 07, 2004 7:05 am    Post subject: Reply with quote

Does anyone know if it works on older TiBooks, like my 400 MHz one, with 1152x768 resolution. I tried a lot of things but I cannot get it to work.
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 630
Location: New Zealand

PostPosted: Tue Sep 07, 2004 7:14 am    Post subject: Reply with quote

neon_it wrote:
I can't get framebuffer to work on a pbook 12" (nvidia chipset)

I have openfirmware fb compiled in kernel...

dmesg says:
Code:

Kernel command line: root=/dev/hda6 ro video=ofonly:1024x768-32 splash=silent
[...] (i've even tried video=rivafb)
Using unsupported 1024x768 NVDA,Display-A at a0008000, depth=8, pitch=1024
fb0: Open Firmware frame buffer device on /pci@f0000000/NVDA,Parent@10/NVDA,Disp
lay-A@0
[...]
bootsplash 3.1.4-2004/02/19-spock-0.1: looking for picture....<6>bootsplash: err
or while decompressing picture: depth mismatch (15)
bootsplash 3.1.4-2004/02/19-spock-0.1: looking for picture....<6>bootsplash: err
or while decompressing picture: depth mismatch (15)
bootsplash 3.1.4-2004/02/19-spock-0.1: looking for picture....<6>bootsplash: err
or while decompressing picture: depth mismatch (15)
[...] (etc etc)


any hint?


You are trying to get a 32bit depth for color, but the
openfirmware frame buffer is only working in 8. When the picture
is decompressed it is in a higher color depth, that's what
your log are saying. Use the rivafb framebuffer if you want more
than 256 colors. I personnally have banned openfb from my
kernel config :wink:.
I admit that it is possible that newer kernel may have improved openfb,
but I am still running a 2.4 kernel.
Back to top
View user's profile Send private message
nesnimda
n00b
n00b


Joined: 05 Sep 2004
Posts: 33
Location: my own little world ^^

PostPosted: Sat Sep 11, 2004 7:06 am    Post subject: Reply with quote

hmm... has anyone gotten this to work with kernel 2.6.8 r3? I want my pretty bootsplash scren ^_^
Oh... and if I have a 1920x1200 monitor and I set video=radeonfb:1280x1024 or w/e that resolution is, will it perminantly affect my resolution, or when I load X11, will it read that my kernel says my monitor can go up to 1920x1200?

Thank you guys sooooo much for your help ^_^
_________________
an apple a day keeps the blue screen away ^_^
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sat Sep 11, 2004 7:24 am    Post subject: Reply with quote

nesnimda wrote:
hmm... has anyone gotten this to work with kernel 2.6.8 r3?

Yes, the patch for 2.6.8.1 is included in the latest bootsplash ebuild (can be found under /usr/share/bootsplash/bootsplash-3.1.4-sp3-2.6.8.1.diff)
Back to top
View user's profile Send private message
nesnimda
n00b
n00b


Joined: 05 Sep 2004
Posts: 33
Location: my own little world ^^

PostPosted: Tue Sep 14, 2004 11:18 pm    Post subject: Reply with quote

please excuse my ignorance, how do I use the file?
_________________
an apple a day keeps the blue screen away ^_^
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Wed Sep 15, 2004 12:09 am    Post subject: Reply with quote

nesnimda wrote:
please excuse my ignorance, how do I use the file?

Just run the /sbin/bootsplash_patch script. As long as /usr/src/linux is pointing to your current kernel it will take care of the patching.
Back to top
View user's profile Send private message
nesnimda
n00b
n00b


Joined: 05 Sep 2004
Posts: 33
Location: my own little world ^^

PostPosted: Wed Sep 15, 2004 2:16 am    Post subject: Reply with quote

DiskBreaker wrote:
nesnimda wrote:
please excuse my ignorance, how do I use the file?

Just run the /sbin/bootsplash_patch script. As long as /usr/src/linux is pointing to your current kernel it will take care of the patching.


Code:
sed: can't read /usr/src/linux/Makefile: Nosuch file or directory
/sbin/bootsplash_patch: line 19: die: command not found
* Patching the kernel (branch: .) in /usr/src/linux ...
Sorry, this kernel branch is not supported

=-/
_________________
an apple a day keeps the blue screen away ^_^
Back to top
View user's profile Send private message
nesnimda
n00b
n00b


Joined: 05 Sep 2004
Posts: 33
Location: my own little world ^^

PostPosted: Wed Sep 15, 2004 3:43 am    Post subject: Re: [Howto] Using Bootsplash on PPC in 9 easy steps Reply with quote

DiskBreaker wrote:

- If you just downloaded a new theme you can check it out immediately on your console by running:
Code:
#  splash -s -u 0 /etc/bootsplash/mytheme/config/bootsplash-1024x768.cfg



I get the following response:
Code:

/proc/splash: No such file or directory

which, I imagine, is the root of my problem... how do I fix this?
the 2.6.8-r3 kernel of gentoo-dev-sources doesn't quite have the same option for framebuffer splash, instead it has Device Drivers --> Graphics Support --> Support for the framebuffer splash
(which I enabled, of course) should that be enough??

*sigh* I wish I could figure out why neither this nor gensplash work.. -_-
_________________
an apple a day keeps the blue screen away ^_^
Back to top
View user's profile Send private message
gino_rotormind
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2003
Posts: 79

PostPosted: Tue Oct 05, 2004 7:31 am    Post subject: gentoo-dev-sources-2.6.8-r6 Reply with quote

I just upgraded to the above kernel (as it has now become stable) on my 15" AlBook and now my bootsplash no longer works. It worked fine on 2.6.7-r14. The main problem prohibiting me from fixing this myself is that the error message is displayed very early in the boot process (something about the radeon driver) and i dont have time to read it. Furthermore when I look at dmesg it isn't mentioned and as I type on the keyboard dmesg fills with the following useful information:


evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 32, Value: 1
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 32, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 50, Value: 1
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 50, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 18, Value: 1
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 18, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 31, Value: 1
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 31, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 34, Value: 1
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 34, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 28, Value: 1
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0

Firstly, is there a way to disable this output in my dmesg so that i can read the actual error?? and has anyone also experienced this problem in the upgrade process and come up with a solution??

many thanks in advance
Back to top
View user's profile Send private message
gfs
n00b
n00b


Joined: 31 Jul 2004
Posts: 39

PostPosted: Tue Oct 05, 2004 2:46 pm    Post subject: Reply with quote

gino, To disable the messages, in your kernel config, disable event debugging (I dont recall where it is at the moment,try somewhere under device drivers).Its basically just spitting out what keys your typing.

As for the upgrade issue..well i cant get bootsplash to work under 2.6.7 or 2.6.8 so i cant help there :/ .
Back to top
View user's profile Send private message
joaopft
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 82
Location: Lisbon, Portugal

PostPosted: Thu Oct 07, 2004 1:48 pm    Post subject: Re: gentoo-dev-sources-2.6.8-r6 Reply with quote

gino_rotormind wrote:
I just upgraded to the above kernel (as it has now become stable) on my 15" AlBook and now my bootsplash no longer works. It worked fine on 2.6.7-r14.


I have read the info in the kernel documentation in [kernel-dir]/Documentation/fb/splash.txt
It says very little... It only tells us that we should install splashutils. Kernel 2.6.7 works with the bootsplash package instead.

Anyway (and unlike bootsplash) splashutils is not even keyworded with ~ppc. Also, it is dependent on baselayout-1-10.4 (which is keyworded ~ppc). There's no way I am going to emerge a ~ppc baselayout, so I will be waiting for one of you brave guys to report with the good news :wink:
Back to top
View user's profile Send private message
terry
n00b
n00b


Joined: 27 Jul 2002
Posts: 64
Location: Korea Seoul

PostPosted: Sat Oct 09, 2004 12:31 pm    Post subject: Reply with quote

CDLM wrote:
working on a iBook 600CD (g3 dual usb) - switching the fbdriver to radeonfb got it working for me...

- Dave -

I also work on iBook 600DVD (g3 dual usb)
but in mycase
I had to switch fbdriver to aty128fb.
with 2.6.7-gentoo-r14 kernel


Last edited by terry on Sun Oct 10, 2004 8:21 am; edited 1 time in total
Back to top
View user's profile Send private message
terry
n00b
n00b


Joined: 27 Jul 2002
Posts: 64
Location: Korea Seoul

PostPosted: Sun Oct 10, 2004 8:20 am    Post subject: Re: [Howto] Using Bootsplash on PPC in 9 easy steps Reply with quote

Thanks for good Howto,
There is a little my opion.
DiskBreaker wrote:

Code:
#  splash -s -f /etc/bootsplash/default/config/bootsplash-1024x768.cfg >> /boot/initrd-1024x768


I think ">" more better than ">>"
like this
Code:
#  splash -s -f /etc/bootsplash/default/config/bootsplash-1024x768.cfg > /boot/initrd-1024x768
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Mon Oct 11, 2004 6:37 am    Post subject: Re: [Howto] Using Bootsplash on PPC in 9 easy steps Reply with quote

terry wrote:
Thanks for good Howto,
I think ">" more better than ">>"

You're right, I've fixed it now. Thanks!
Back to top
View user's profile Send private message
g026r
n00b
n00b


Joined: 22 Oct 2004
Posts: 3

PostPosted: Fri Oct 22, 2004 3:52 am    Post subject: Reply with quote

Ok, here's my problem:

I've got a Rev. B iMac (ATI Rage Pro video card with 6MB VRAM). According to Apple's specs, I should be able to pull off 1024x768 at 32bit. I've managed to compile a kernel (2.6.8.1) with the bootsplash patch installed, and I've got the initrd file set up correctly. Sounds fine, doesn't it? Well, this is where the problems start.

I can't set the resolution of the framebuffer. If I try to append anything to the video option other than just the framebuffer driver (atyfb), I run into problems. The machine gives me the yaboot prompt, decompresses the kernel, flashes to the white OF screen briefly, and then... nothing. The monitor goes into low-power mode, and that's it. According to the dmesg output, bootsplash worked perfectly, I just can't see it.

What's more, it does the same thing regardless of resolution. (I tested it by appending the resolution to 640x480 at 8bits, with the same result.) This wouldn't be such a big deal, except for the fact that the colour depth is wrong, resulting in the "bootsplash: error while decompressing picture: depth mismatch (15)" error on boot.

Other than that, it seems to be fine. Anyone got any ideas?
Back to top
View user's profile Send private message
g026r
n00b
n00b


Joined: 22 Oct 2004
Posts: 3

PostPosted: Tue Oct 26, 2004 7:18 pm    Post subject: Reply with quote

Well, getting a little closer to it working.

The atyfb doesn't seem to like video:atyfb:XxY-D format, instead you need to use vmode: and cmode: to do selections (for an iMac Rev. B the appropriate choice is vmode:17, which corresponds to 1024x768 @ 75Hz)

Unfortunately, the moment I try to add cmode it stops working again.

video=atyfb:vmode:17 works fine, but video=atyfb:vmode:17,cmode:16 starts sending me invalid vmode kernel messages. (Although cmode:8 works, but bootsplash needs at least cmode:16.)

I'd still appreciate any help anyone can give me, as all old info from LinuxPPC states that cmode:16 or cmode:24 should work with that vmode. (Perhaps it's caused by a change to the kernel driver between then and now? For the record: I'm using a vanilla 2.6.8.1 kernel with just the bootsplash patch applied.)
Back to top
View user's profile Send private message
g026r
n00b
n00b


Joined: 22 Oct 2004
Posts: 3

PostPosted: Wed Oct 27, 2004 2:32 am    Post subject: Reply with quote

Feckity feck feck feck.

The problem's not in atyfb, the problem's in bootsplash itself. I'd forgotten that I hadn't tried my stock 2.6.9 kernel with the cmode options (I'd tried it with the 1024x768-16 option earlier, but without success), and lo-and-behold, it worked.


That can only mean that it's bootsplash itself that's responsible for the screen blanking (Further digging seems to reveal that the reason seems to be that it tries to set the refresh to 60Hz, and the iMac monitor doesn't like anything other than 75Hz for 1024x768).

Well, looks like this is a no-go for the time being then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum