Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I make yaboot prettier?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
paperwings
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 137
Location: Boston, MA

PostPosted: Tue Dec 07, 2004 7:35 pm    Post subject: Can I make yaboot prettier? Reply with quote

I just installed a nice dualboot setup on my brand spankin' new 1.33 GHz Powerbook (still got that new laptop smell *sniiiiiifffff* ah). To paraphrase from an AA meeting, "Long time linux-user, first-time ppc linux-user".

Anyway, with the exception of the framebuffer splash, which I get the impression is broken for now, unless I use an older kernel, everything's great. Of course, that means one thing...time to talk eye candy. I wanted to know if there was any way to improve (*subjective-term-alert!!!*) the appearance of the yaboot selection screen. It's so boring, and so tiny.

Is there a way? I mean I know of course, that I can change the fg and bg colors, but I want more...
_________________
I RTFM already, damnit, and the manual writer needs to be smacked.
Back to top
View user's profile Send private message
porodzila
Guru
Guru


Joined: 22 May 2004
Posts: 307
Location: Terrapin Station

PostPosted: Tue Dec 07, 2004 11:20 pm    Post subject: Reply with quote

never heard of anybody doing that before. I'd like to have the yaboot (firmware?) font on my console all the time.
_________________
ubi primum potero, me hinc subduco.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Wed Dec 08, 2004 6:48 pm    Post subject: Reply with quote

You can create a file /etc/yaboot.msg. Whatever you put in there will be displayed on the top of the yaboot screen as a welcome message.

I use it to display a coloured "gentoo" ASCII-art and thus make my kernel selection screen a bit prettier... It looks somewhat like this:

Code:
     .vir.                                d$b
  .d$$$$$$b.    .cd$$b.     .d$$b.   d$$$$$$$$$$$b  .d$$b.      .d$$b.
  $$$$( )$$$b d$$$()$$$.   d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b.  .$$$$$$$b.
  Q$$$$$$$$$$B$$$$$$$$P"  d$$$PQ$$$$b.   $$$$.   .$$$P' `$$$ .$$$P' `$$$
    "$$$$$$$P Q$$$$$$$b  d$$$P   Q$$$$b  $$$$b   $$$$b..d$$$ $$$$b..d$$$
   d$$$$$$P"   "$$$$$$$$ Q$$$     Q$$$$  $$$$$   `Q$$$$$$$P  `Q$$$$$$$P
  $$$$$$$P       `"""""   ""        ""   Q$$$P     "Q$$$P"     "Q$$$P"
  `Q$$P"                                  """
+--------------------------------------------------------- l  i  n  u  x 


To get colours you will need to use standard bash-type colour code escapes, the same ones you use to make a coloured prompt.

hth,
disk
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Thu Dec 09, 2004 5:12 am    Post subject: Reply with quote

That is the coolest thing I have seen for a while. Great Idea.

Michael
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Thu Dec 09, 2004 5:34 am    Post subject: Reply with quote

Yeah hehe...

I forgot you need to put this line in your /etc/yaboot.conf as well:
Code:
message=/etc/yaboot.msg


This is what the yaboot.conf manpage has to say about this:
Code:
message=message_filename
              Specifies a file containing a message that is  displayed  before
              the  boot  prompt.   You may specify either a plain pathname, in
              which case the default device and partition will be derived from
              the  device=  and  partition=  lines  in  the  global section of
              yaboot.conf, or you can specify a full OpenFirmware device path,
              the file may be on any yaboot(8) supported filesystem.  The mes-
              sage file must be plain ASCII text with  UNIX  newlines.   Note:
              only the first 2000 bytes of this file will be read.

And this is my personal yaboot.msg with the proper colour codes, the "gentoo" comes out in gentoo-purple, the "linux" in white and the prompt below in green. Copy, paste & have fun :)
Code:


^[[0;35;40m                                            .
^[[0;35;40m     .vir.                                d$b
^[[0;35;40m  .d$$$$$$b.    .cd$$b.     .d$$b.   d$$$$$$$$$$$b  .d$$b.      .d$$b.
^[[0;35;40m  $$$$( )$$$b d$$$()$$$.   d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b.  .$$$$$$$b.
^[[0;35;40m  Q$$$$$$$$$$B$$$$$$$$P"  d$$$PQ$$$$b.   $$$$.   .$$$P' `$$$ .$$$P' `$$$
^[[0;35;40m    "$$$$$$$P Q$$$$$$$b  d$$$P   Q$$$$b  $$$$b   $$$$b..d$$$ $$$$b..d$$$
^[[0;35;40m   d$$$$$$P"   "$$$$$$$$ Q$$$     Q$$$$  $$$$$   `Q$$$$$$$P  `Q$$$$$$$P
^[[0;35;40m  $$$$$$$P       `"""""   ""        ""   Q$$$P     "Q$$$P"     "Q$$$P"
^[[0;35;40m  `Q$$P"                                  """
^[[0;37;40m+--------------------------------------------------------- l  i  n  u  x
^[[0;32;40m



I got the logo with linux_logo -L 3 (emerge linux-logo). If anyone makes more gentoo-related ASCII-art please post it here! :P
Back to top
View user's profile Send private message
paperwings
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 137
Location: Boston, MA

PostPosted: Thu Dec 09, 2004 2:37 pm    Post subject: Reply with quote

Thanks, that's pretty cool.
_________________
I RTFM already, damnit, and the manual writer needs to be smacked.
Back to top
View user's profile Send private message
paperwings
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 137
Location: Boston, MA

PostPosted: Thu Dec 09, 2004 9:31 pm    Post subject: Reply with quote

hmm, I tried this, and the color shows up as the escape codes. It might be mistyping on my part, but the other big this is that it only shows up when booting to linux. I was hoping it would appear above the boot menu. It only shows up above the boot prompt when linux is chosen...
_________________
I RTFM already, damnit, and the manual writer needs to be smacked.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Thu Dec 09, 2004 10:00 pm    Post subject: Reply with quote

paperwings wrote:
hmm, I tried this, and the color shows up as the escape codes.

Try this file.

paperwings wrote:
I was hoping it would appear above the boot menu. It only shows up above the boot prompt when linux is chosen...

Yeah this is for the secondary boot prompt only. The first stage boot is a CHRP bootscript written in Forth that you can find in /usr/lib/yaboot/ofboot. With a bit of hacking I am sure you can improve upon the looks of that one as well, but I'm not sure if it's really worth it. You can certainly easily change the text strings though. OpenFirmware and Forth manuals are easily found on google if you are interested.

In any case yaboot is currently being completely rewritten with yaboot 2.0 (see http://penguinppc.org/bootloaders/yaboot/) so maybe there will be some new features in the cosmetic department as well in the future :)
Back to top
View user's profile Send private message
paperwings
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 137
Location: Boston, MA

PostPosted: Fri Dec 10, 2004 2:02 pm    Post subject: Reply with quote

oh yeah...to quote the page you linked to...
Quote:
Work is currently progressing on rewriting yaboot from scratch for a 2.0 release. This release will include several user visible improvements such as a shell similar to the GNU GRUB shell.

_________________
I RTFM already, damnit, and the manual writer needs to be smacked.
Back to top
View user's profile Send private message
paperwings
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 137
Location: Boston, MA

PostPosted: Tue Feb 01, 2005 5:44 pm    Post subject: Reply with quote

I was just poking around that site again, and if you navigate to the unstable (1.99) version directory on ftp.penguinppc.org, it looks like the last modifications are almost a year old (!) and the one before that is a half a year before. Is this just because they moved to tla, or has development stalled?
_________________
I RTFM already, damnit, and the manual writer needs to be smacked.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Tue Feb 01, 2005 6:53 pm    Post subject: Reply with quote

Well if you look at the yaboot-devel mailing list you will find that the project is currently dead:

Ethan Benson wrote:
until someone volunteers to help code prom-libc and finish that, there
will be no progress towards 2.0, nor any new features.

nobody will help, and I don't have the time.
[...]
see list archives of several lists, ive tried to recruit help before,
to no avail.
[...]
the yaboot 1.x code is complete and utter crap. its totally
unmaintainable.

there is nothing at all simple about doing a splash screen.

So looks like we won't be getting nice splash screens and powerful GRUB-like shells from yaboot2 anytime soon.

But on the other hand GRUB 2 seems to be coming along nicely and already includes very rudimentary PPC support (but only for loading linux, you can't load MacOS yet). Check out this message on the grub-devel archive:
http://lists.gnu.org/archive/html/grub-devel/2004-07/msg00038.html

Marco Gerards wrote:
1) Make a CVS checkout of GRUB 2.

2) ./configure && make

3a) Copy grubof to your HFS[+] boot partition. This is the same
partition yaboot uses.

3b) Copy grubof to your tftp directory. Setup bootp to load this
kernel.

4a) Boot your mac into the open firmware console and boot the grubof
ELF.
4b) Boot from network.

5) GRUB is started. You can load and boot GNU/Linux using (for example):

linux (hd,10)/vmlinux root=/dev/hda11
boot

6) Or instead of booting just play a bit. Try to access files and
find bugs. :)


Sounds like fun... I'll probably try messing around with it next weekend :)
But don't expect any 32bit OpenGL animated bootscreens yet :lol:
Back to top
View user's profile Send private message
paperwings
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 137
Location: Boston, MA

PostPosted: Tue Feb 01, 2005 9:24 pm    Post subject: Reply with quote

oh wow. I didn't even bother to read those messages because I assumed that such a ubitquitous code was being actively developed, and that it must have been me who was mistaken.

The grub 2 prospect seems promising, though.
_________________
I RTFM already, damnit, and the manual writer needs to be smacked.
Back to top
View user's profile Send private message
Hydraulix
Guru
Guru


Joined: 12 Dec 2003
Posts: 447
Location: Baltimore, Maryland

PostPosted: Wed Feb 02, 2005 2:37 pm    Post subject: Reply with quote

Thank god. I hate yaboot. It's the worst bootloader I've ever seen.
_________________
It is the fate of operating systems to become free.
- Neal Stephenson

If only You and Dead people can read hex, how many people can read hex?
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


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

PostPosted: Wed Feb 02, 2005 4:29 pm    Post subject: Reply with quote

Quote:
Thank god. I hate yaboot. It's the worst bootloader I've ever seen.

Why?!?!? only becasue it don't have a menu!??! bah.... :x
_________________
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
Hydraulix
Guru
Guru


Joined: 12 Dec 2003
Posts: 447
Location: Baltimore, Maryland

PostPosted: Thu Feb 03, 2005 6:48 am    Post subject: Reply with quote

silian87 wrote:
Quote:
Thank god. I hate yaboot. It's the worst bootloader I've ever seen.

Why?!?!? only becasue it don't have a menu!??! bah.... :x


No because from start to finish I didn't like it. I didn't like the way I had to install it. I don't like the lack of options. And I don't like the way it looks. Not to mention I can't change anything about it. That's why I don't like Yaboot. Even the author knows it's shit.
_________________
It is the fate of operating systems to become free.
- Neal Stephenson

If only You and Dead people can read hex, how many people can read hex?
Back to top
View user's profile Send private message
twstd3bc
Apprentice
Apprentice


Joined: 07 Feb 2003
Posts: 289
Location: Los Angeles, USA

PostPosted: Fri Feb 11, 2005 8:17 pm    Post subject: Reply with quote

Hydraulix wrote:
silian87 wrote:
Quote:
Thank god. I hate yaboot. It's the worst bootloader I've ever seen.

Why?!?!? only becasue it don't have a menu!??! bah.... :x


No because from start to finish I didn't like it. I didn't like the way I had to install it. I don't like the lack of options. And I don't like the way it looks. Not to mention I can't change anything about it. That's why I don't like Yaboot. Even the author knows it's shit.


I don't like Yaboot because you have to do a "ybin" everytime you update yaboot.conf, ala LILO. I used to despise LILO though, so I'm prejudiced. Anyway, it's my first time seeing the splash screen at the top of this thread, and damn, that is some cool shit. MUCH better than those "pretty" splash screens. Very l33t!
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
Page 1 of 1

 
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