Subject: port-sparc/1052: panic: boot device not known
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: netbsd-bugs
Date: 05/15/1995 16:20:03
>Number:         1052
>Category:       port-sparc
>Synopsis:       panic: boot device not known
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 15 16:20:01 1995
>Originator:     der Mouse
>Organization:
	Not if I can help it!
>Release:        -current as of about May 7th
>Environment:
	SPARC IPC
>Description:
	The matching between SCSI disks and boot device strings is
	incorrect (I think it compares SCSI IDs in the boot device
	string with the sd disk index, which works only if you populate
	your SCSI chains starting with ID 0 and not skipping any).
	This pr is mostly intended to make sure this problem doesn't
	fall through the cracks; it is already known.
>How-To-Repeat:
	Build a kernel with "config ... swap generic".  Boot it on a
	machine with (eg) disks on SCSI IDs 1 and 3, booting from SCSI
	ID 1.  Watch it panic with "boot device not known".
>Fix:
	As a workaround, don't use "swap generic" when building kernels
	for such a system, or if you must use such a kernel, boot with
	-a so you can specify the root device.  A proper fix would of
	course entail looking up the SCSI ID for each sd and comparing
	that against the number from the boot string.

					der Mouse

			    mouse@collatz.mcrcim.mcgill.edu
>Audit-Trail:
>Unformatted: