Ctrl key doesn't interrupt boot

2022-11-14 Thread Harald Dunkel

Hi folks,

according to boot(8) holding the Ctrl key is supposed to interrupt
boot before /etc/boot.conf is read. But it doesn't. I see boot's
message on VGA that it switches over to serial (as mentioned in
boot.conf), and then it doesn't boot for a reason I would like to
investigate. The screen stays black.

I am sure that console redirection is turned off in the BIOS.
OpenBSD is version 7.2. USB Keyboard.

Every helpful hint is highly appreciated.


Harri



Re: Ctrl key doesn't interrupt boot

2022-11-14 Thread Nick Holland

On 11/14/22 06:40, Harald Dunkel wrote:

Hi folks,

according to boot(8) holding the Ctrl key is supposed to interrupt
boot before /etc/boot.conf is read. But it doesn't. I see boot's
message on VGA that it switches over to serial (as mentioned in
boot.conf), and then it doesn't boot for a reason I would like to
investigate. The screen stays black.

I am sure that console redirection is turned off in the BIOS.
OpenBSD is version 7.2. USB Keyboard.

Every helpful hint is highly appreciated.


Harri



Wild guess, but I suspect that your BIOS isn't setting the marker
that /boot uses to see the pressing of the CTRL key on your system
with a USB keyboard.  /boot is pretty much dependent upon your
system BIOS doing The Right Thing, as the OS hasn't loaded yet.
So other than looking at Other Things, I'm not sure there's an
OpenBSD fix for this.

Does your machine accept a PS/2 keyboard?  If so, does CTRL work
as expected there?

Nick.



Re: Ctrl key doesn't interrupt boot

2022-11-14 Thread Harald Dunkel

On 2022-11-14 13:54:18, Nick Holland wrote:


Wild guess, but I suspect that your BIOS isn't setting the marker
that /boot uses to see the pressing of the CTRL key on your system
with a USB keyboard.  /boot is pretty much dependent upon your
system BIOS doing The Right Thing, as the OS hasn't loaded yet.
So other than looking at Other Things, I'm not sure there's an
OpenBSD fix for this.


Do you think it would be possible to introduce a 3sec timeout to press
the fabulous "any" key on pc0 to avoid that boot switches over to com0?
Apparently boot can read the USB keyboard if the boot prompt is not
redirected to com0.



Does your machine accept a PS/2 keyboard?  If so, does CTRL work
as expected there?



No PS/2 socket. Its an Axiomtek network appliance.


Regards

Harri



Re: Ctrl key doesn't interrupt boot

2022-11-14 Thread Stuart Henderson
On 2022-11-14, Harald Dunkel  wrote:
> Hi folks,
>
> according to boot(8) holding the Ctrl key is supposed to interrupt
> boot before /etc/boot.conf is read. But it doesn't. I see boot's
> message on VGA that it switches over to serial (as mentioned in
> boot.conf), and then it doesn't boot for a reason I would like to
> investigate. The screen stays black.
>
> I am sure that console redirection is turned off in the BIOS.
> OpenBSD is version 7.2. USB Keyboard.

Timing for this is extremely touchy on some machines. You may do better
if you tap it repeatedly starting from a little before the time the bios
hands over to the boot loader.

-- 
Please keep replies on the mailing list.