Subject: more PC164+NCR boot problems
To: None <port-alpha@netbsd.org>
From: Joerg Czeranski <jc@joerch.org>
List: port-alpha
Date: 07/29/1999 14:43:37
Hi,
with my custom SCSI_NCR_MAX_WIDE=0 install kernel I was finally able
to install NetBSD 1.4 on my IBM DDRS.  Booting the install kernel
from the DDRS only worked after a fresh newfs of rsd0a though, black
magic?
BTW, there are quite a few rough edges in sysinst, I'll summarize
them in another mail.

Anyway, I installed 1.4, booted 1.3.3 from an IDE disk, mounted the
1.4 stuff in /mnt, and built a kernel with SCSI_NCR_MAX_WIDE=0 and
SCSIVERBOSE in /mnt/sys with /mnt/usr/sbin/config.  Accessing the
DDRS from 1.3.3 works flawless (with SCSI_NCR_MAX_WIDE=0).

I can boot that kernel from the DDRS, but it says:

  [...]
  scsibus0 at ncr0: 16 targets, 8 luns per target
  probe(ncr0:0:0): Sense Error Code 0x0
  sd0 at scsibus0 targ 0 lun 0: <IBM, DDRS-34560D, DC1B> SCSI2 0/direct fixed
  sd0(ncr0:0:0): 10.0 MB/s (100 ns, offset 15)
  sd0: 4357MB, 8387 cyl, 5 head, 212 sec, 512 bytes/sect x 8925000 sectors
  probe(ncr0:0:1): Sense Error Code 0x0
  probe(ncr0:0:2): Sense Error Code 0x0
  probe(ncr0:0:3): Sense Error Code 0x0
  probe(ncr0:0:4): Sense Error Code 0x0
  probe(ncr0:0:5): Sense Error Code 0x0
  probe(ncr0:0:6): Sense Error Code 0x0
  probe(ncr0:0:7): Sense Error Code 0x0
  pciide0 at pci0 dev 11 function 0: CMD technology PCI0646
  [...]
  root on sd0a dumps on sd0b
  sd0(ncr0:0:0): Sense Error Code 0x0
  sd0(ncr0:0:0): Sense Error Code 0x0
  sd0(ncr0:0:0): Sense Error Code 0x0
  sd0(ncr0:0:0): Sense Error Code 0x0
  sd0(ncr0:0:0): Sense Error Code 0x0
  sd0(ncr0:0:0): Sense Error Code 0x0
  sd0(ncr0:0:0): Sense Error Code 0x0
  sd0(ncr0:0:0): Sense Error Code 0x0
  no file system for sd0 (dev 0x800)
  cannot mount root, error = 79
  root device (default sd0a):

The sense errors repeat if I choose sd0a as root.

Putting a kernel with "root on sd0a type ffs" on the IDE disk and booting
it via the 1.3.3 /boot changes the message to
  sd0(ncr0:0:0): Sense Error Code 0x0
  cannot mount root, error = 5

The message stays the same if I put the same kernel on the SCSI disk
and boot it via the 1.4 /boot.

(The number of "Sense Error Code 0x0" varies depending on the situation.)

The 5 seems to be the EIO returned by scsi_interpret_sense() in
dev/scsipi/scsipi_base.c.

What does "Sense Error Code 0x0" mean?  Any workarounds?
If there's anything else I can do to locate the error (more debug
output etc.), please tell me.

joerch, who doesn't give up the hope of running 1.4 some day :)