public inbox for blinux-list@redhat.com
 help / color / mirror / Atom feed
* Beeping LILO (Was: Re: Booting Linux)
@  John M. Mills
   ` T. V. Raman
   ` T. V. Raman
  0 siblings, 2 replies; 4+ messages in thread
From: John M. Mills @  UTC (permalink / raw)
  To: blinux-list; +Cc: kjahds

With regard to LILO completing its prompt with a "beep":

I suggested:

old:
ospc:	.ascii	"O"
	.byte	32,0
                 ^ ^-- null byte terminates the string
                 +---- ASCII <space>
new:
ospc:	.ascii	"O"
	.byte	7,7,32,0
                ^ ^ -- two ascii <BEL> ('\a') characters
One of these is enough for me.

I dug out lilo.<ver>.tar.gz matching my installation, made the change,
and it worked.  Here is what I did (hope I didn't miss anything).

As 'su'-- _carefully_:

1) unpack lilo.<ver>.tar.gz into /usr/src/lilo  [in my Slackware box]
2) 'cd /usr/src/lilo'
3) edit second.S for the desired number of "beeps"
4) 'make' or 'make boot.b' -- this is the boot sector which will be installed
5) 'mv /boot/boot.b /boot/boot.b.orig' -- paranoia patch - my SOP
6) 'cp boot.b /boot/boot.b'
7) '/etc/lilo/install' if you just did 'make boot.b', or './lilo' if you
   did 'make'

If you did 'make', but didn't use a matching version of lilo, you get
a nastigram which will tell you what version you _should_ have used.  You
may then choose to find the right version, or do a full re-installation
of your shiny new lilo.  You're on your own for that route.  I was lazy.

John M. Mills, Senior Research Engineer   --   john.m.mills@gtri.gatech.edu
   Georgia Tech Research Institute, Georgia Tech, Atlanta, GA 30332-0853
        Phone contacts: 770.528.3258 (voice), 770.528.7083 (FAX)
                    "ACLOG welcomes you to Atlanta"


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Beeping LILO (Was: Re: Booting Linux)
   Beeping LILO (Was: Re: Booting Linux) John M. Mills
@  ` T. V. Raman
   ` T. V. Raman
  1 sibling, 0 replies; 4+ messages in thread
From: T. V. Raman @  UTC (permalink / raw)
  To: John M. Mills; +Cc: blinux-list, kjahds

Sometimes I get the feeling that people on this list are not taking time to
absorb the answers people have already given.

The "making lilo beep" thread is a case in point.

I'm reposting an excellent message on this topic (not posted by me originally
--credits go to original author) that in my opinion should have been the end
of story on this issue.

From: doyons@JSP.UMontreal.CA (Stephane Doyon)
To: Chris Foote <cabot@ee.mcgill.ca>, blinux-list@goldfish.cube.net
Subject: Re: Booting Linux
Date: Thu, 25 Jul 1996 23:05:07 -0400

Some hints about booting Linux and reading boot messages

- Finding out when the LILO boot prompt is on: It is easy to just hold down
the left shift key when the computer boots, but the only way to make sure
you have reached the "boot" prompt is to listen to the HD and wait. Well
here are two tricks.

One of the things LILO can do, is print a customized message before giving
the prompt (that is the "boot" prompt, not the "LILO" prompt). Just put a
line in your lilo.conf that looks like:
message = /boot/message
and put your customized message in /boot/message. The interesting thing is
that if that file contains an ASCII 7 character (control-G), you will here a
short beep when the message is actually printed by LILO. So when you hear
that beep, you know you can release the shift key and type in your command
line.

Another thing LILO can do, is print all its stuff to a com port, so you can
read it on an attached serial terminal. Just put a line in your lilo.config
like
serial = 1,9600n8

- Reading kernel boot-time messages:

On a running system, pretty much every thing is in the log in
/var/adm/something... But for a buggy system, or for installing a new
system, that's another story. Two things you can do.

First, you can, as someone suggested, redirect the console to a serial port,
and read all messages on an attached serial terminal. I have done it in the
past (a long time ago though). Here's how to do it, if I remember correctly.
On your Linux partition or on your root disk, do:
cd /dev
rm console
mknod console c 4 64 # 4,64 are the major and minor for ttyS0
#alternatively: mknod console c 4 65 # for ttyS1.

I haven't done that in quite a while, so I might be forgetting something, or
getting something wrong. I don't remember if it will come at you at 9600 or
38400... Perhaps someone would care to try it out...

Only problem is, of course, now you might not have any screen output anymore
(I don't think I ever had a sighted person tell me what happens), so it
might be hard to put it back. Before you try this, make sure you can login
safely either from a network or from the other com port.

To put back the console device, just
cd /dev
rm console
ls -l tty0 # it's the same as console, so you can find the numbers there
           # if you forget
mknod console c 4 0
chmod 622 console

It's useful when you really have to find out what it says on the screen. Of
course you have to be able to get to /dev and have rm and mknod and ls and
such working. But it can be useful when you prepare a root disk to install a
new machine.

FInally, I'd like to point out that any access program that works by
grabbing the screen contents from the console driver (interfacing through
the /dev/vcs* devices) can potentially allow you to read all messages
printed to the screen since boot, even the initial BIOS print out!

BRLTTY uses this scheme, so I know it can be done because I have done it
several times. BRLTTY runs in user space, so I have to wait for it to be
started (from my rc.S). But once it's there, I can use the scrollback
feature of the console driver, which is available if you have extra RAM on
your video card (like any SVGA card). Just press shift+pgup and shift+pgdn
to skim through the buffer. Unless the buffer has overflowed from all boot
messages (which has never been the case for me) you can scroll back up even
before the console driver starts. You'll see the LILO prompt and above it
the BIOS initial print out.

Hope any of this helps

-- 

Stephane Doyon
  Bacc. specialise en informatique                    doyons@IRO.umontreal.ca
  Universite de Montreal                              doyons@JSP.umontreal.ca

       A quote from StarTrek:

Virtue is a relative term.
    -- Spock, "Friday's Child," stardate 3499.1.


-- 
Best Regards,
--raman

      Adobe Systems                 Tel: 1 (415) 962 3945   (B-1 115)
      Advanced Technology Group     Fax: 1 (415) 962 6063 
      (E 1-160) 1585 Charleston Road       Email: raman@adobe.com 
      Mountain View, CA 94039 -7900  raman@cs.cornell.edu
      http://www-atg/People/Raman.html (Internal To Adobe)
      http://www.cs.cornell.edu/Info/People/raman/raman.html  (Cornell)
Disclaimer: The opinions expressed are my own and in no way should be taken
            as representative of my employer, Adobe Systems Inc.
____________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Beeping LILO (Was: Re: Booting Linux)
   Beeping LILO (Was: Re: Booting Linux) John M. Mills
   ` T. V. Raman
@  ` T. V. Raman
     ` Kris Van Hees
  1 sibling, 1 reply; 4+ messages in thread
From: T. V. Raman @  UTC (permalink / raw)
  To: blinux-list; +Cc: blinux-list, kjahds

Sometimes I get the feeling that people on this list are not taking time to
absorb the answers people have already given.

The "making lilo beep" thread is a case in point.

I'm reposting an excellent message on this topic (not posted by me originally
--credits go to original author) that in my opinion should have been the end
of story on this issue.

From: doyons@JSP.UMontreal.CA (Stephane Doyon)
To: Chris Foote <cabot@ee.mcgill.ca>, blinux-list@goldfish.cube.net
Subject: Re: Booting Linux
Date: Thu, 25 Jul 1996 23:05:07 -0400

Some hints about booting Linux and reading boot messages

- Finding out when the LILO boot prompt is on: It is easy to just hold down
the left shift key when the computer boots, but the only way to make sure
you have reached the "boot" prompt is to listen to the HD and wait. Well
here are two tricks.

One of the things LILO can do, is print a customized message before giving
the prompt (that is the "boot" prompt, not the "LILO" prompt). Just put a
line in your lilo.conf that looks like:
message = /boot/message
and put your customized message in /boot/message. The interesting thing is
that if that file contains an ASCII 7 character (control-G), you will here a
short beep when the message is actually printed by LILO. So when you hear
that beep, you know you can release the shift key and type in your command
line.

Another thing LILO can do, is print all its stuff to a com port, so you can
read it on an attached serial terminal. Just put a line in your lilo.config
like
serial = 1,9600n8

- Reading kernel boot-time messages:

On a running system, pretty much every thing is in the log in
/var/adm/something... But for a buggy system, or for installing a new
system, that's another story. Two things you can do.

First, you can, as someone suggested, redirect the console to a serial port,
and read all messages on an attached serial terminal. I have done it in the
past (a long time ago though). Here's how to do it, if I remember correctly.
On your Linux partition or on your root disk, do:
cd /dev
rm console
mknod console c 4 64 # 4,64 are the major and minor for ttyS0
#alternatively: mknod console c 4 65 # for ttyS1.

I haven't done that in quite a while, so I might be forgetting something, or
getting something wrong. I don't remember if it will come at you at 9600 or
38400... Perhaps someone would care to try it out...

Only problem is, of course, now you might not have any screen output anymore
(I don't think I ever had a sighted person tell me what happens), so it
might be hard to put it back. Before you try this, make sure you can login
safely either from a network or from the other com port.

To put back the console device, just
cd /dev
rm console
ls -l tty0 # it's the same as console, so you can find the numbers there
           # if you forget
mknod console c 4 0
chmod 622 console

It's useful when you really have to find out what it says on the screen. Of
course you have to be able to get to /dev and have rm and mknod and ls and
such working. But it can be useful when you prepare a root disk to install a
new machine.

FInally, I'd like to point out that any access program that works by
grabbing the screen contents from the console driver (interfacing through
the /dev/vcs* devices) can potentially allow you to read all messages
printed to the screen since boot, even the initial BIOS print out!

BRLTTY uses this scheme, so I know it can be done because I have done it
several times. BRLTTY runs in user space, so I have to wait for it to be
started (from my rc.S). But once it's there, I can use the scrollback
feature of the console driver, which is available if you have extra RAM on
your video card (like any SVGA card). Just press shift+pgup and shift+pgdn
to skim through the buffer. Unless the buffer has overflowed from all boot
messages (which has never been the case for me) you can scroll back up even
before the console driver starts. You'll see the LILO prompt and above it
the BIOS initial print out.

Hope any of this helps

-- 

Stephane Doyon
  Bacc. specialise en informatique                    doyons@IRO.umontreal.ca
  Universite de Montreal                              doyons@JSP.umontreal.ca

       A quote from StarTrek:

Virtue is a relative term.
    -- Spock, "Friday's Child," stardate 3499.1.


-- 
Best Regards,
--raman

      Adobe Systems                 Tel: 1 (415) 962 3945   (B-1 115)
      Advanced Technology Group     Fax: 1 (415) 962 6063 
      (E 1-160) 1585 Charleston Road       Email: raman@adobe.com 
      Mountain View, CA 94039 -7900  raman@cs.cornell.edu
      http://www-atg/People/Raman.html (Internal To Adobe)
      http://www.cs.cornell.edu/Info/People/raman/raman.html  (Cornell)
Disclaimer: The opinions expressed are my own and in no way should be taken
            as representative of my employer, Adobe Systems Inc.
____________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Beeping LILO (Was: Re: Booting Linux)
   ` T. V. Raman
@    ` Kris Van Hees
  0 siblings, 0 replies; 4+ messages in thread
From: Kris Van Hees @  UTC (permalink / raw)
  To: raman; +Cc: blinux-list, kjahds


**********************************************************

Moderators note:

Dear "beep thread" contributors,

since the beep thread seems to become the ignition spark of a
nice new flame war, please bring this thread to an end. It is
real unproductive and only eats bandwith. There should be 
more important issues to improve Linux blind support.

If you want to discuss this beeping issue further,
please use email. New mails concerning the "beeping"
issue after this one will be forwarded to the CC: email 
adressess.

Thank you for your understanding

Hans


With the following mail the "beeping" war will be finished :)


**********************************************************




> Sometimes I get the feeling that people on this list are not taking time to
> absorb the answers people have already given.

It is not very useful on a discussion like this to complain about eachother on
a frequent basis, but I have to diagree with the above, on two points: first of
all it is quite impolite to suggest what other people do or not do.  From the
discussion so far it seems like quite proper attention is given to postings.

Second, I believe that the idea to have multiple beeps at LILO to signal the
4 different phases in the startup is quite different from anything mentioned
before (and it was not yet given before either).  Having an indication of the
phases can help in diagnosing a problem, though fixing it may be alot harder.
The printing of LILO is steps was made to provide information to the sighted
user, so why not provide the same information to a visually impaired user?

The idea to put BELL character in a message file is a nice idea, but is not
the same issue as LILO progress indication.

Kris


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Beeping LILO (Was: Re: Booting Linux) John M. Mills
 ` T. V. Raman
 ` T. V. Raman
   ` Kris Van Hees

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).