Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jan 2002 14:24:53 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Mikhail Teterin <mi@aldan.algebra.com>
Cc:        current@FreeBSD.org
Subject:   Re: today's current: boot/loader and console
Message-ID:  <XFMail.020104142453.jhb@FreeBSD.org>
In-Reply-To: <200201042203.g04M3rl10851@aldan.algebra.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 04-Jan-02 Mikhail Teterin wrote:
> On  3 Jan, John Baldwin wrote:
>> 
>> On 04-Jan-02 Mikhail Teterin wrote:
>>> After 25 days of  uptime I rebuilt the world, and  can no longer boot
>>> as usual.  Both boot/loader and  boot/loader.old (from Oct  30) flash
>>> the list of devices and immediately reset the computer.
>> 
>> Any chance you could setup a serial console and catch the output?
> 
> This is my only computer...

Are your loader and 4th files in sync?  There was a change to the 4th scripts
that I thought I sent a heads up about.  Anyways, do this to get the error
message: go into /sys/boot/i386/loader, edit main.c, and change the exit()
function to do a while(1); loop before callign __exit().  Compile a new loader
and install it and then see what message you get.

>>> My only way to bring it up is to press space at the right moment, get
>>> the Boot: prompt and load/boot kernel directly bypassing the loader.
>>>
>>> This works,  but there  is no  console output  (it goes  from spinner
>>> straight into the login prompt). I guess, the console output is being
>>> sent down  sio0, where there  is an  external modem now.  Turning the
>>> modem off does not change anything...
>>
>> No, you have  no console because you have no  hints. If you statically
>> compile your hints into your kernel, you will have a console again.
> 
> Why  did  it change  all  of  a sudden?  Did  hints  get blown  away  by
> installworld at's the point? Why is the serial console default?

Err, hints are normally loaded by the loader from /boot/device.hints.  boot2
doesn't load hints when it loads a kenrel, it just loads the kernel and boots. 
You don't have a seiral console, you have _no_ kernel console. :)  Since you
are booting from boot2 and not the loader, your hints aren't getting loaded, so
you aren't getting a kernel console.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020104142453.jhb>