Subject: Re: Mistery moved..
To: None <kstailey@owl.dol-esa.gov>
From: Gerard J van der Grinten <Gerard.vdGrinten@wldelft.nl>
List: current-users
Date: 07/20/1995 15:22:27
Hello Kenneth, 
> > It must have something to do with the lba addressing I guess...
> 
> This may be a -current problem.
> 
> Try using a NetBSD/i386 1.0 bootfloppy + install floppy to setup your disks.
> 
> I know I had to do this for my SCSI system.  I can't remember how I
> did my IDE.  NetBSD/i386 1.0 is known to work, nothing is guarenteed
> about -current.
> 
> I run a box with both types of IDE drives:
> 
> Jul 11 17:55:47 owl /netbsd: wdc0 at isa0 port 0x1f0-0x1f7 irq 14
> Jul 11 17:55:47 owl /netbsd: wd0 at wdc0 drive 0: 516MB, 1120 cyl, 16 head, 
> 59 sec, 512 bytes/sec <QUANTUM LPS540A>
> Jul 11 17:55:47 owl /netbsd: wd0: using 8-sector 16-bit pio transfers, chs 
> addressing
> Jul 11 17:55:47 owl /netbsd: wd1 at wdc0 drive 1: 1222MB, 2484 cyl, 16 head, 
> 63 sec, 512 bytes/sec <WDC AC31200F>
> Jul 11 17:55:47 owl /netbsd: wd1: using 16-sector 16-bit pio transfers, lba 
> addressing
> 
> owl% disklabel wd0
> # /dev/rwd0d:
> type: ESDI
> disk: qplps540a
> label: 
> flags:
> bytes/sector: 512
> sectors/track: 63
Strange, kernel reports 59 sectors........
> tracks/cylinder: 16
> sectors/cylinder: 1008
> cylinders: 1024
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # milliseconds
> track-to-track seek: 0  # milliseconds
> drivedata: 0 
> 
> 5 partitions:
> #        size   offset    fstype   [fsize bsize   cpg]
>   a:    32256   999936    4.2BSD      512  4096    16   # (Cyl.  992 - 1023)
>   c:    32256   999936    unused        0     0         # (Cyl.  992 - 1023)
>   d:  1032192        0    unused        0     0         # (Cyl.    0 - 1023)
>   e:   999873       63     MSDOS                        # (Cyl.    0*- 991*)
> 
My boot messages:
Jul 20 08:39:37 bimbo /netbsd: NetBSD 1.0A (BIMBO) #5: Fri Jul 14 19:28:01 MET DST 1995
Jul 20 08:39:37 bimbo /netbsd:     root@bimbo:/usr/src/sys/arch/i386/compile/BIMBO
Jul 20 08:39:37 bimbo /netbsd: CPU: i486DX (486-class CPU)
Jul 20 08:39:37 bimbo /netbsd: real mem  = 7995392
Jul 20 08:39:37 bimbo /netbsd: avail mem = 5971968
Jul 20 08:39:37 bimbo /netbsd: using 123 buffers containing 503808 bytes of
memory
Jul 20 08:39:37 bimbo /netbsd: isa0 (root)
Jul 20 08:39:37 bimbo /netbsd: com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or
ns16450, no fifo
Jul 20 08:39:37 bimbo /netbsd: com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a,
working fifo
Jul 20 08:39:37 bimbo /netbsd: com2 at isa0 port 0x2e8-0x2ef irq 5: ns8250 or
ns16450, no fifo
Jul 20 08:39:37 bimbo /netbsd: lpt0 at isa0 port 0x378-0x37f irq 7
Jul 20 08:39:37 bimbo /netbsd: aha0 at isa0 port 0x330-0x333 irq 11 drq 5
Jul 20 08:39:37 bimbo /netbsd: scsibus0 at aha0
Jul 20 08:39:37 bimbo /netbsd: aha0 targ 0 lun 0: <IBM, 62RW100, G S> SCSI2 0/
direct fixed
Jul 20 08:39:38 bimbo /netbsd: : 817MB, 817 cyl, 64 head, 32 sec, 512 bytes/sec
Jul 20 08:39:38 bimbo /netbsd: aha0 targ 4 lun 0: <EXABYTE, EXB-8200, 2618>
SCSI1 1/sequential removable
Jul 20 08:39:38 bimbo /netbsd: st1 at scsibus0: drive empty
Jul 20 08:39:38 bimbo /netbsd: aha0 targ 6 lun 0: <ARCHIVE, VIPER 150  21247,
-005> SCSI1 1/sequential removable
Jul 20 08:39:38 bimbo /netbsd: st0 at scsibus0: rogue, drive empty
Jul 20 08:39:38 bimbo /netbsd: wdc0 at isa0 port 0x1f0-0x1f7 irq 14
Jul 20 08:39:38 bimbo /netbsd: wd0 at wdc0 drive 0: 1033MB, 2100 cyl, 16 head,
63 sec, 512 bytes/sec <WDC AC31000F>
Jul 20 08:39:38 bimbo /netbsd: wd0: using 16-sector 16-bit pio transfers,
lba addressing
Jul 20 08:39:38 bimbo /netbsd: wd1 at wdc0 drive 1: 516MB, 1120 cyl, 16 head,
59 sec, 512 bytes/sec <QUANTUM LPS540A>
Jul 20 08:39:38 bimbo /netbsd: wd1: using 8-sector 16-bit pio transfers,
lba addressing
Jul 20 08:39:38 bimbo /netbsd: ed0 at isa0 port 0x280-0x28f iomem 0xcc000-
0xcdfff irq 9: address 02:60:8c:7a:f7:ce, type 3c503 (16-bit) bnc
Jul 20 08:39:38 bimbo /netbsd: vt0 at isa0 port 0x60-0x6f irq 1: wd90c00,
80 col, color, 4 scr, mf2-kbd, [R3.00]
Jul 20 08:39:38 bimbo /netbsd: fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
Jul 20 08:39:38 bimbo /netbsd: fd0 at fdc0 drive 0: 1.2MB 80 cyl, 2 head, 15 sec
Jul 20 08:39:38 bimbo /netbsd: root device eisa not configured
Jul 20 08:39:38 bimbo /netbsd: root device pci not configured
Jul 20 08:39:38 bimbo /netbsd: biomask 4840 netmask 200 ttymask 3a

You got chs addressing and I get lba addressing. I don't know how.
(It is found by probing the drive.)
Substituting with a wd 540 Mb drive works flawlessly.
What jumpers do you have set on your drive ?? (I have none, = secondary)

It is clear to me that the drive cannot handle the lba addressing but found
no way to disable it. The drive works flawless with kernels before lba
addressing was added.

Regards, Gerard.
--
Gerard J van der Grinten           pa0gri@net.pa0gri.ampr.org [44.137.1.1]
Elzenlaan 8                        gerard.vdgrinten@wldelft.nl (temp. qrl)
3467 TJ Driebruggen                gvdg%net.pa0gri.ampr.org@uhm.ampr.org (home)
Netherlands  
Phone  -   Home:   (+031)-3487-1606 (per 10-10-95 0348 501606)
       -   Office: (+031)-15-569353 (per 10-10-95 015-2569353)