Date: Tue, 20 Apr 1999 19:51:35 +0800 From: William Liao <william@tale.net> To: freebsd-current@freebsd.org Subject: Having trouble with the new ATAPI driver Message-ID: <19990420195135.A69626@tale.net>
next in thread | raw e-mail | index | archive | help
Hi,
I did a CVSUP and make world at 4/15, then I decided to try the
new ATAPI driver on my box. So I made some necessary changes to
my kernel config and made a new kernel.
But after boot, it always hangs on mounting disks.
The message is: swapon: /dev/wd0s1b: Device not configured
Then I tried to boot into single user mode and mount the slices
manually. Unfortunately, same thing happened again when I tried
to mount my /home, /var, etc.
Mount replied: /dev/wd2s1e: Device not configured.
Did I miss anything?... Thanks for your help.
FYI, my BSD box mixes using SCSI and IDE disks, the /kernel and
main system files are all on the old 1G SCSI disk.
Oh yes, I forgot to comment out the old wd driver at first time,
so the boot made some corrupt to the file system, will that hurt?..
(Of course, I fscked)
Following is my dmesg output, kernel config, and fstab.
=======
dmesg
=======
Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #0: Mon Apr 19 15:42:08 CST 1999
root@dns.te.fcu.edu.tw:/usr/src/sys/compile/LEMON
Timecounter "i8254" frequency 1193182 Hz
CPU: Pentium/P55C (200.46-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x543 Stepping=3
Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory = 100663296 (98304K bytes)
avail memory = 95027200 (92800K bytes)
Preloaded elf kernel "kernel.ata" at 0xc02b3000.
Probing for devices on PCI bus 0:
chip0: <Intel 82439TX System Controller (MTXC)> rev 0x01 on pci0.0.0
chip1: <Intel 82371AB PCI to ISA bridge> rev 0x01 on pci0.7.0
ata-pci0: <Intel PIIX4 IDE controller> rev 0x01 on pci0.7.1
ata-pci0: Busmastering DMA supported
ata0 at 0x01f0 irq 14 on ata-pci0
ata1 at 0x0170 irq 15 on ata-pci0
chip2: <Intel 82371AB Power management controller> rev 0x01 on pci0.7.3
vga0: <S3 868 graphics accelerator> rev 0x00 int a irq 4 on pci0.11.0
ahc0: <Adaptec 2940 SCSI adapter> rev 0x00 int a irq 9 on pci0.13.0
ahc0: aic7870 Single Channel A, SCSI Id=7, 16/255 SCBs
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x08 int a irq 10 on pci0.15.0
fxp0: Ethernet address 00:90:27:57:c6:34
Probing for PnP devices:
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <8 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 8250
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
ata-isa1: already registered as ata0
ata1 not found at 0x1f0
ata-isa2: already registered as ata1
ata2 not found at 0x170
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
Intel Pentium detected, installing workaround for F00F bug
IP packet filtering initialized, divert enabled, rule-based forwarding disabled, logging limited to 20 packets/entry
ata0: master: settting up UDMA2 mode on PIIX4 chip OK
ad0: <IBM-DHEA-38451/HP8OA20C> ATA-3 disk at ata0 as master
ad0: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S
ad0: piomode=4, dmamode=2, udmamode=2
ad0: 16 secs/int, 0 depth queue, DMA mode
ata0: slave: settting up WDMA2 mode on PIIX3/4 chip OK
ad1: <QUANTUM BIGFOOT_CY4320A/A03.0800> ATA-? disk at ata0 as slave
ad1: 4134MB (8467200 sectors), 8960 cyls, 15 heads, 63 S/T, 512 B/S
ad1: piomode=4, dmamode=2, udmamode=-1
ad1: 16 secs/int, 0 depth queue, DMA mode
ata1: master: settting up WDMA2 mode on PIIX3/4 chip OK
ad2: <QUANTUM FIREBALL540A/A1M.0900> ATA-? disk at ata1 as master
ad2: 519MB (1064448 sectors), 1056 cyls, 16 heads, 63 S/T, 512 B/S
ad2: piomode=4, dmamode=2, udmamode=-1
ad2: 8 secs/int, 0 depth queue, DMA mode
afd0: <IOMEGA ZIP 100 ATAPI/23.D> rewriteable drive at ata1 as slave
afd0: 96MB (196608 sectors), 32 cyls, 64 heads, 96 S/T, 512 B/S
afd0: Unknown media (0x0)
Waiting 3 seconds for SCSI devices to settle
changing root deviceda0 at ahc0 bus 0 target 1 lun 0
da0: <FUJITSU M1606S-512 6234> Fixed Direct Access SCSI-2 device
da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da0: 1041MB (2131992 512 byte sectors: 255H 63S/T 132C)
to da0s2a
cd0 at ahc0 bus 0 target 2 lun 0
cd0: <PIONEER CD-ROM DR-U12X 1.06> Removable CD-ROM SCSI-2 device
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present
==============
kernel config
==============
#
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.501 1998/11/06 20:32:22 msmith Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
# this file as required.
#
#
# This directive is mandatory; it defines the architecture to be
# configured for; in this case, the 386 family based IBM-PC and
# compatibles.
#
machine "i386"
ident LEMON
maxusers 32
options FAILSAFE
config kernel root on da0
#cpu "I386_CPU"
#cpu "I486_CPU"
cpu "I586_CPU" # aka Pentium(tm)
cpu "I686_CPU" # aka Pentium Pro(tm)
options "COMPAT_43"
options SYSVSHM
options SYSVSEM
options SYSVMSG
options "VM86"
#options DDB
#options DDB_UNATTENDED
#options GDB_REMOTE_CHAT
#options KTRACE #kernel tracing
#options DIAGNOSTIC
options UCONSOLE
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options INET #Internet communications protocols
pseudo-device ether #Generic Ethernet
pseudo-device loop #Network loopback device
pseudo-device bpfilter 4 #Berkeley packet filter
pseudo-device snp 3 #Snoop device - to look at pty/vty/etc..
options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE #print information about
options "IPFIREWALL_VERBOSE_LIMIT=20" #limit verbosity
options IPDIVERT #divert sockets
options FFS #Fast filesystem
options NFS #Network File System
options "CD9660" #ISO 9660 filesystem
options MSDOSFS #MS DOS File System
options PROCFS #Process filesystem
options FFS_ROOT #FFS usable as root device
options NFS_ROOT #NFS usable as root device
options SOFTUPDATES
options QUOTA #enable disk quotas
#options CODA #CODA filesystem.
#pseudo-device vcoda 4 #coda minicache <-> venus comm.
controller scbus0 #base SCSI code
device da0 #SCSI direct access devices (aka disks)
device cd0 #SCSI CD-ROMs
#device pass0 #CAM passthrough driver
pseudo-device pty 64 #Pseudo ttys - can go as high as 256
pseudo-device speaker #Play IBM BASIC-style noises out your speaker
pseudo-device gzip #Exec gzipped a.out's
# Size of the kernel message buffer. Should be N * pagesize.
options "MSGBUF_SIZE=40960"
controller isa0
options "AUTO_EOI_1"
# options "MAXMEM=(96*1024)"
controller pnp0
controller atkbdc0 at isa? port IO_KBD tty
device atkbd0 at isa? tty irq 1
#options XSERVER # support for running an X server.
device vga0 at isa? port ? conflicts
device sc0 at isa? tty
pseudo-device splash
options MAXCONS=8 # number of virtual consoles
device npx0 at isa? port IO_NPX iosiz 0x0 flags 0x0 irq 13
device apm0 at isa? disable flags 0x31 # Advanced Power Management
#controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0x00ff8004
#disk wd0 at wdc0 drive 0
#disk wd1 at wdc0 drive 1
#controller wdc1 at isa? port "IO_WD2" bio irq 15 flags 0x00ff8004
#disk wd2 at wdc1 drive 0
#device wfd0
controller ata0
device atadisk0
device atapifd0
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2
disk fd0 at fdc0 drive 0
controller ppbus0
device lpt0 at ppbus?
device sio0 at isa? port "IO_COM1" tty flags 0x10 irq 4
device sio1 at isa? port "IO_COM2" tty irq 3
controller pci0
controller ahc0
options AHC_ALLOW_MEMIO
options SCSI_DELAY=3000
device fxp0
#options "NSFBUFS=1024"
==========
fstab
==========
# Device Mountpoint FStype Options Dump Pass#
/dev/wd0s1b none swap sw 0 0
/dev/wd2s1b none swap sw 0 0
/dev/wd1s1b none swap sw 0 0
/dev/da0s2a / ufs rw 1 1
/dev/wd0s1h /ftp ufs rw,noatime 1 1
/dev/wd2s1e /home ufs rw 1 1
/dev/da0s2e /usr ufs rw 1 1
/dev/wd0s1e /usr/local/news ufs rw,noatime 1 1
/dev/wd0s1g /usr/obj ufs rw 1 1
/dev/wd1s1e /usr/local/www ufs rw 0 1 1
/dev/da0s2f /usr/src ufs rw 1 1
/dev/wd0s1f /var ufs rw 1 1
/dev/wd1s1f /bak ufs rw,noatime 0 1
proc /proc procfs rw 0 0
/dev/cd0a /cdrom cd9660 ro,noauto 0 0
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990420195135.A69626>
