NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/49470: NetBSD 9.0 RC1 reboots after bootloader (HP Compaq 6005 Pro / AMD Phenom II)


On Fri, Dec 13, 2019 at 11:40:22AM +0100, Matthias Petermann wrote:

> occur (I assume this is intended and caused by the beeps). So it seems to
> not even enter the kernel. You mentioned you might have some hint how to
> apply the debugging code to the boot loader, which I would like to come back
> to now.

I would start looking at exec_netbsd() in sys/arch/i386/stand/lib/exec.c. 
This is used by both i386 and amd64.  Presumably the failure is occuring at
some point during the execution of this function.

exec_netbsd() ends up calling startprog() which is defined in
lib/startprog.S, which incidentally would be a good place to put the code
for dobeep().

You could use printf() in the boot loader just as easily, but if it's
resetting and clearing the screen instantaly perhaps dobeep() is a better

It has been 10+ years since I built the bootloader by hand but I think it's
a case of running "make" in sys/arch/i386/stand or some variation thereof,
and if I remember correctly the executable you're looking for is "boot".


Home | Main Index | Thread Index | Old Index