Subject: Re: kern/26007: i386 bootstrap fails on via epia 5000 in 2.0/-current
To: None <rumble@ephemeral.org, netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 06/23/2004 21:08:21
> >Synopsis:       i386 bootstrap fails on via epia 5000 in 2.0/-current

> For some reason the new boot code present in 2.0 and -current
> fails to function properly on my VIA Epia 5000 mini-itx board.
> While 1.6 works fine, the present code causes the monitor to
> attempt to resync like crazy, followed by either an eventual
> reboot, or a hard hang. 
> 
> The screen blanks quickly, but the issue appears to occur either
> late in bootxx (past the boot1() function return) or early in boot2.

Unfortunately this is impossible to debug without access to the
failing hardware.  Even then it may be difficult - as the problem
could easily be a bios bug.

If you are getting out of boot1 (make it return an error if it actually
finds /boot) then a lot of things aren't wrong!

Once the code is running in boot2() (or rather in C code from /boot)
it runs with the real-mode %sp != %esp.  The %ss segment is fixedup
on entry/exit real mode so that this all works.  But it could easily
have unexpected side effects (the pxe code doesn't do this).

Since there isn't a massive space problem in the boot2 code (not
when %ss != %ds) debugging is only mildly painful!

If you find out exactly when it dies, I might have some suggestions...

	David

-- 
David Laight: david@l8s.co.uk