Hi,

I'd love to play with the new IDE drivers, especially that I got an LS-120
drive, but... I can't mount my filesystems with it. I'm using today's
sources (kernel config file attached), and it fsck's them just ok, and
then just hangs. Keyboard works, though. If I boot with -v, it reports:

ad0: invalid primary partition table: no magic

and of course it just sits there...

The issue is, however, that old kernel booted just fine. I attached
relevant parts of dmesg with old drivers, and disklabel and fdisk output.

Any clues?

Andrzej Bialecki

//  <ab...@webgiro.com> WebGiro AB, Sweden (http://www.webgiro.com)
// -------------------------------------------------------------------
// ------ FreeBSD: The Power to Serve. http://www.freebsd.org --------
// --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ----
pci0: <PCI bus> on pcib0
chip0: <Intel 82439> at device 0.0 on pci0
isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
ide_pci0: <Intel PIIX3 Bus-master IDE controller> at device 7.1 on pci0
intel_piix_status: primary master sample = 3, master recovery = 1
intel_piix_status: primary master fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
intel_piix_status: primary slave sample = 3, slave recovery = 1
intel_piix_status: primary slave fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
ide_pci: busmaster 0 status: 04 from port: 00009002
intel_piix_status: secondary master sample = 3, master recovery = 1
intel_piix_status: secondary master fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
intel_piix_status: secondary slave sample = 3, slave recovery = 1
intel_piix_status: secondary slave fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
ide_pci: busmaster 1 status: 04 from port: 0000900a
fdc0: interrupting at irq 6
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> at fdc0 drive 0
wdc0 at port 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa0
intel_piix_dmainit: setting multiword DMA mode 2
wd0: wdsetmode() setting transfer mode to 22
intel_piix_status: primary master sample = 3, master recovery = 1
intel_piix_status: primary master fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
wdc0: unit 0 (wd0): <WDC AC22500L>, DMA, 32-bit, multi-block-16
wd0: 2441MB (4999680 sectors), 4960 cyls, 16 heads, 63 S/T, 512 B/S
wd0: ATA INQUIRE valid = 0003, dmamword = 0407, apio = 0003, udma = 0000
intel_piix_dmainit: setting multiword DMA mode 2
wd1: wdsetmode() setting transfer mode to 22
intel_piix_status: primary slave sample = 3, slave recovery = 1
intel_piix_status: primary slave fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
wdc0: unit 1 (wd1): <QUANTUM FIREBALL ST4.3A>, DMA, 32-bit, multi-block-16
wd1: 4110MB (8418816 sectors), 14848 cyls, 9 heads, 63 S/T, 512 B/S
wd1: ATA INQUIRE valid = 0007, dmamword = 0407, apio = 0003, udma = 0007
wdc0: interrupting at irq 14
wdc1 at port 0x170-0x177 irq 15 flags 0x80ff80ff on isa0
wdc1: unit 0 (atapi): <LS-120 VER4   06              UHD Floppy/0420M414>, 
removable, dma, iordy
wdc1: ATAPI Floppies not configured
wdc1: unit 1 (atapi): <CRD-8320B/1.22>, removable, accel, dma, iordis
wcd0: drive speed 171 - 5500KB/sec, 128KB cache
wcd0: supported read types: CD-R, CD-RW, CD-DA, packet track
wcd0: Audio: play, 255 volume levels
wcd0: Mechanism: ejectable tray
wcd0: Medium: no/blank disc inside, unlocked, lock protected
wdc1: interrupting at irq 15
atkbdc0: <keyboard controller (i8042)> at port 0x60 on isa0
atkbd0: <AT Keyboard> on atkbdc0
atkbd: the current kbd controller command byte 0065
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000
atkbd0: interrupting at irq 1
psm0: current command byte:0065
kbdc: TEST_AUX_PORT status:0000
kbdc: RESET_AUX return code:00fe
kbdc: RESET_AUX return code:00fe
kbdc: RESET_AUX return code:00fe
kbdc: DIAGNOSE status:0055
kbdc: TEST_KBD_PORT status:0000
psm0: failed to reset the aux device.
vga0: <Generic ISA VGA> on isa0
[...]
BIOS Geometries:
 0:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors
 1:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors
 2:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors
 3:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors
 4:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors
 5:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors
 6:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors
 7:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors
 0 accounted for
Device configuration finished.
Considering FFS root f/s.
changing root device to wd1s1a
wd1s1: type 0xa5, start 63, end = 6291431, size 6291369 
wd1s1: C/H/S end 391/158/63 (3926663) != end 6291431: invalid
wd1s2: type 0xa5, start 6291432, end = 8418815, size 2127384 
wd1s2: C/H/S start 391/159/1 (3926664) != start 6291432: invalid
wd1s2: C/H/S end 524/11/63 (5249663) != end 8418815: invalid
wd0s1: type 0x6, start 63, end = 1024127, size 1024065 : OK
wd0s2: type 0xa5, start 1024128, end = 3064319, size 2040192 : OK
wd0s3: type 0x63, start 3064320, end = 4079879, size 1015560 : OK
wd0s4: type 0xa5, start 4080384, end = 4999679, size 919296 : OK
ffs_mountfs: superblock updated for soft updates
ffs_mountfs: superblock updated for soft updates
ffs_mountfs: superblock updated for soft updates
wd0s1: type 0x6, start 63, end = 1024127, size 1024065 : OK
wd0s2: type 0xa5, start 1024128, end = 3064319, size 2040192 : OK
wd0s3: type 0x63, start 3064320, end = 4079879, size 1015560 : OK
wd0s4: type 0xa5, start 4080384, end = 4999679, size 919296 : OK
ffs_mountfs: superblock updated for soft updates
splash: image decoder found: warp_saver
******* Working on device /dev/rwd1 *******
parameters extracted from in-core disklabel are:
cylinders=840 heads=159 sectors/track=63 (10017 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=840 heads=159 sectors/track=63 (10017 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 63, size 6291369 (3071 Meg), flag 80 (active)
        beg: cyl 0/ sector 1/ head 1;
        end: cyl 391/ sector 63/ head 158
The data for partition 2 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 6291432, size 2127384 (1038 Meg), flag 0
        beg: cyl 391/ sector 1/ head 159;
        end: cyl 524/ sector 63/ head 11
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
# /dev/rwd1c:
type: ESDI
disk: wd1s1
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 9
sectors/cylinder: 567
cylinders: 11095
sectors/unit: 6291369
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:    81920        0    4.2BSD        0     0     0   # (Cyl.    0 - 144*)
  b:   262144    81920      swap                        # (Cyl.  144*- 606*)
  c:  6291369        0    unused        0     0         # (Cyl.    0 - 11095*)
  e:   163840   344064    4.2BSD        0     0     0   # (Cyl.  606*- 895*)
  f:  5783465   507904    4.2BSD        0     0     0   # (Cyl.  895*- 11095*)
#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information read the handbook part System Administration -> 
# Configuring the FreeBSD Kernel -> The Configuration File. 
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server 
# <URL:http://www.FreeBSD.ORG/>
#
# An exhaustive list of options and more detailed explanations of the 
# device lines is present in the ./LINT configuration file. If you are 
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
#       $Id: GENERIC,v 1.88 1997/03/13 19:03:58 bde Exp $

machine         "i386"
#cpu            "I486_CPU"
cpu             "I586_CPU"
ident           TUNE
maxusers        30

options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         MSDOSFS                 #MSDOS Filesystem
options         "CD9660"                #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem
options         MFS
options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP THIS!]
options         UCONSOLE                #Allow users to grab the console
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor
#options                CLK_USE_TSC_CALIBRATION
#options                USER_LDT
options         SYSVSHM
options         SYSVSEM
options         SYSVMSG
options         KTRACE
options         DDB
options         "AUTO_EOI_1"
options         "AUTO_EOI_2"
options         "VM86"
options         SOFTUPDATES

config          kernel  root on wd0 #swap on generic

controller      isa0 at nexus?
controller      pci0 at nexus?

controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2
disk            fd0     at fdc0 drive 0

#controller     wdc0    at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff
#disk           wd0     at wdc0 drive 0
#disk           wd1     at wdc0 drive 1

#controller     wdc1    at isa? port "IO_WD2" bio irq 15 flags 0x80ff80ff
#disk           wd2     at wdc1 drive 0
#disk           wd3     at wdc1 drive 1

#device         wcd0    #IDE CD-ROM

controller ata0
device          atadisk0
device          atapicd0
device          atapifd0


# atkbdc0 controlls both the keyboard and the PS/2 mouse
controller      atkbdc0 at isa? port IO_KBD tty
device          atkbd0  at atkbdc? tty irq 1
device          psm0    at atkbdc? tty irq 12

device          vga0    at isa? port ? conflicts

# splash screen/screen saver
pseudo-device   splash

# syscons is the default console driver, resembling an SCO console
device          sc0     at isa? tty
device          npx0    at nexus? port "IO_NPX" irq 13

device          sio0    at isa? port "IO_COM1" tty irq 4
device          sio1    at isa? port "IO_COM2" tty irq 3
device          sio2    at isa? port "IO_COM3" tty irq 9

controller pnp0
controller snd0
device gus0 at isa?
#device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 vector pcmintr

controller ppbus0
device lpt0 at ppbus?
device ppi0 at ppbus?

controller ppc0 at isa? port ? irq 7

device ed0 at isa? port 0x280 irq 10 vector edintr

pseudo-device   loop
pseudo-device   ether
pseudo-device   bpfilter        4
pseudo-device   speaker
pseudo-device   vn      4
pseudo-device   snp     2
pseudo-device   tun     4
pseudo-device   pty     16
pseudo-device   gzip            # Exec gzipped a.out's

Reply via email to