Subject: port-i386/10365: biosboot does not work
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@emmas.up-vision.de>
List: netbsd-bugs
Date: 06/14/2000 10:13:13
>Number:         10365
>Category:       port-i386
>Synopsis:       current biosboot does not work for me
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 14 10:14:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        June 14
>Organization:
UP-Vision Computergraphik GmbH
>Environment:
	
System: NetBSD emmas.up-vision.de 1.4ZA NetBSD 1.4ZA (EMMAS) #0: Tue Jun 13 11:07:00 CEST 2000 martin@wilhelminas:/usr/src/sys-i4b/arch/i386/compile/EMMAS i386
(the system is slightly older, but biosboot was build from sources updated
via cvs today.)

>Description:

When installing current bootblocks, my system won't boot from harddisk.
The biosboot (Revision 2.7)  loads, saying it will start to boot
fd0a:netbsd in 5 seconds (note the fd0a!). When stopped and told to use
hd0a it hangs.

This is very similar to a bug fixed a few weeks ago when a pointer to another
copy of the partition table was examined.

An older version of biosboot (Revision 2.6, build on March 15 by tron, from
a -current snapshot some time ago) works just fine.

This disk is brand new and only ever has seen NetBSD. I installed it by
plugging it into another NetBSD machine and using disklabel. No other OS or
tool was involved.

Here is the dmesg output relevant to disks:

pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC WD205AA>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 19569 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40079088 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
wd1 at pciide0 channel 1 drive 0: <IBM-DTTA-371440>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 13783 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 28229040 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: secondary channel interrupting at irq 15
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)

And here the disklabel of wd0:

# /dev/rwd0d:
type: ESDI
disk: WDC WD205AA     
label: emmas drive0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 40079088
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0 

5 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:  4000000        0     4.2BSD     1024  8192    16   # (Cyl.    0 - 3968*)
  b:  1000000  4000000       swap                        # (Cyl. 3968*- 4960*)
  c: 40079088        0     unused        0     0         # (Cyl.    0 - 39760)
  d: 40079088        0     unused        0     0         # (Cyl.    0 - 39760)
  e: 35079088  5000000     4.2BSD     1024  8192    16   # (Cyl. 4960*- 39760)

The output of fdisk is:

NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

BIOS disk geometry:
cylinders: 1023 heads: 255 sectors/track: 63 (16065 sectors/cylinder)

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: sysid 169 (NetBSD)
    start 0, size 16 (0 MB), flag 0x80
	beg: cylinder    0, head   0, sector  1
	end: cylinder    0, head   0, sector 16


>How-To-Repeat:
s.a.
>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: