Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2000 14:04:16 -0700
From:      Peter Wemm <peter@netplex.com.au>
To:        John Polstra <jdp@polstra.com>
Cc:        alpha@FreeBSD.ORG
Subject:   Re: Console problems on alpha with -current 
Message-ID:  <200008302104.e7UL4GG94187@netplex.com.au>
In-Reply-To: <200008301749.KAA40081@vashon.polstra.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
John Polstra wrote:
> In article <200008301629.JAA39892@vashon.polstra.com>, John Polstra
> <jdp@polstra.com> wrote:
> 
> > It seems you are right about the cause of the problem.  I have now
> > built a kernel with the hints compiled in statically using the
> > "hints" directive in the config file.  The console works fine in
> > that kernel.
> 
> Stranger and stranger.  I have two kernels which are identical, except
> that one of them has the hints compiled in statically and the other
> one doesn't.  I boot each kernel verbosely and grab the dmesg output.
> The two kernels are finding the exact same hints, but in different
> orders.
> 
> Using /boot/device.hints (bad console):
>     Setting atkbd 0 at to atkbdc (string)
>     Setting atkbd 0 irq to 1 (int)
>     Setting atkbdc 0 at to isa (string)
>     Setting atkbdc 0 port to 96 (int)
>     Setting fd 0 at to fdc0 (string)
>     Setting fd 0 drive to 0 (int)
>     Setting fdc 0 at to isa (string)
>     Setting fdc 0 drq to 2 (int)
>     Setting fdc 0 irq to 6 (int)
>     Setting fdc 0 port to 1008 (int)
>     Setting mcclock 0 at to isa (string)
>     Setting mcclock 0 port to 112 (int)
>     Setting psm 0 at to atkbdc (string)
>     Setting psm 0 irq to 12 (int)
>     Setting sc 0 at to isa (string)
>     Setting sio 0 at to isa (string)
>     Setting sio 0 irq to 4 (int)
>     Setting sio 0 port to 1016 (int)
>     Setting sio 1 at to isa (string)
>     Setting sio 1 flags to 80 (int)
>     Setting sio 1 irq to 3 (int)
>     Setting sio 1 port to 760 (int)
>     Setting vga 0 at to isa (string)
> 
> Using static hints (good console):
>     Setting mcclock 0 at to isa (string)
>     Setting mcclock 0 port to 112 (int)
>     Setting atkbdc 0 at to isa (string)
>     Setting atkbdc 0 port to 96 (int)
>     Setting atkbd 0 at to atkbdc (string)
>     Setting atkbd 0 irq to 1 (int)
>     Setting psm 0 at to atkbdc (string)
>     Setting psm 0 irq to 12 (int)
>     Setting vga 0 at to isa (string)
>     Setting sc 0 at to isa (string)
>     Setting fdc 0 at to isa (string)
>     Setting fdc 0 port to 1008 (int)
>     Setting fdc 0 irq to 6 (int)
>     Setting fdc 0 drq to 2 (int)
>     Setting fd 0 at to fdc0 (string)
>     Setting fd 0 drive to 0 (int)
>     Setting sio 0 at to isa (string)
>     Setting sio 0 port to 1016 (int)
>     Setting sio 0 irq to 4 (int)
>     Setting sio 1 at to isa (string)
>     Setting sio 1 port to 760 (int)
>     Setting sio 1 irq to 3 (int)
>     Setting sio 1 flags to 80 (int)
> 
> This in turn affects the probe order, judging from the dmesg output.
> The ultimate effect is this difference:
> 
>     bad:    sc0: VGA <16 virtual consoles, flags=0x0>
>     good:   sc0: VGA <16 virtual consoles, flags=0x200>
> 
> which I suspect is the reason the console isn't working right.  The
> 0x200 flag (actually stored in the "config" field of the softc struct)
> is SC_KERNEL_CONSOLE.

*blink*...

It seems that the loader sorts the variables that it passes through to the
kernel.   Why this makes a difference is puzzling me somewhat.  However,
the Alpha console probe code is totally different to the i386 console probe
code.  I suspect that is the root cause of it.

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5



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




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