Subject: port-i386/36524: "quit" at the bootloader's "> " prompt fails to reboot if booted from a CD-ROM
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Greg A. Woods <woods@planix.com>
List: netbsd-bugs
Date: 06/22/2007 18:20:01
>Number: 36524
>Category: port-i386
>Synopsis: "quit" at the bootloader's "> " prompt fails to reboot if booted from a CD-ROM
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 22 18:20:00 +0000 2007
>Originator: Greg A. Woods
>Release: netbsd-4 2007/06/19
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 4.0BETA2
Architecture: i386
Machine: i386
>Description:
typing "quit" at the bootloader's "> " prompt fails to
successfully reboot the machine if it was booted from a CD-ROM,
e.g. from a bootable installation CD:
(hand copied from the screen)
> quit
Exiting...
Boot from ATAPI CD-ROM : Failure ...
DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER
as shown below it does work OK if booting from the main drive,
but you'll note it does a soft boot, not a cold boot:
console=com0[0x3f8] @38400 baud
>> NetBSD/i386 BIOS Boot, Revision 3.3
>> (woods@once, Tue Jun 12 16:53:27 EDT 2007)
>> Memory: 629/146832384 k
Press return to boot now, any other key for boot menu
booting hd0a:netbsd - starting in 0
type "?" or "help" for help.
> quit
Exiting...
console=com0[0x3f8] @38400 baud
>> NetBSD/i386 BIOS Boot, Revision 3.3
>> (woods@once, Tue Jun 12 16:53:27 EDT 2007)
>> Memory: 629/146832384 k
Press return to boot now, any other key for boot menu
booting hd0a:netbsd - starting in 0
type "?" or "help" for help.
>
>How-To-Repeat:
interrupt the boot loader and then enter the "quit" command.
>Fix:
ideally sys/arch/i386/stand/lib/biosreboot.S should force a cold
boot, not just a soft reboot. That should always fix the problem.
I'm not sure how to do that any more, though IIRC it required
clearing some values in BIOS private storage.
>Unformatted: