ATAPI CDROM Help needed: "atapi0.1: unknown phase"

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Kelvin » Mon, 28 Oct 1996 03:00:00



I'm still having trouble getting my IDE CDROM to become a device that I
can mount.  Does anyone know what I need to do when I get this message on
startup?  

wdc0: unit 1 (atapi): <NEC                 CD-ROM DRIVE:282/3.04>, removable, dma, iordy
atapi0.1: unknown phase

Enclosed below this message is the rest of the "dmesg" output in case it
helps!

As far as I can tell, i have both IDE Hard Disk and CDROM on the same
controller configured correctly.  The original setup was HD on controller
0, and CDROM on controller 1.  I moved the CDROM to controller 0, and
jumpered it as a slave.  I'm assuming that the HD is a master because NT
and DOS still recognize them when I dual boot.

Should I include my kernel configuation file???
Thanks for any help!

Kelvin

dmesg output:
------------------------------------------------------------------------------

FreeBSD 2.1.5-RELEASE #0: Fri Oct 18 00:32:17  1996

CPU: 133-MHz Pentium 735\\90 or 815\\100 (Pentium-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping=12
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 33554432 (32768K bytes)
avail memory = 30547968 (29832K bytes)
pcibus_setup(1):        mode1res=0x80000000 (0x80000000), mode2res=0xff (0x0e)
pcibus_setup(2):        mode1res=0x80000000 (0x80000000)
pcibus_check:   device 0 is there (id=122d8086)
Probing for devices on PCI bus 0:
        configuration mode 1 allows 32 devices.
chip0 <Intel 82437 PCI cache memory controller> rev 2 on pci0:0
        CPU Inactivity timer:  clocks
        Peer Concurrency: disabled
        CPU-to-PCI Write Bursting: enabled
        PCI Streaming: enabled
        Bus Concurrency: enabled
        Cache: 256K pipelined-burst secondary; L1 enabled
        DRAM: no memory hole, 66 MHz refresh
        Read burst timing: x-2-2-2/x-3-3-3
        Write burst timing: x-3-3-3
        RAS-CAS delay: 3 clocks
chip1 <Intel 82371 PCI-ISA bridge> rev 2 on pci0:7:0
        I/O Recovery Timing: 8-bit 3 clocks, 16-bit 2 clocks
        Extended BIOS: disabled
        Lower BIOS: disabled
        Coprocessor IRQ13: enabled
        Mouse IRQ12: disabled
        Interrupt Routing: A: disabled, B: disabled, C: disabled, D: disabled
                MB0: disabled, MB1:
chip2 <Intel 82371 Bus-master IDE controller> rev 2 on pci0:7:1
        mapreg[20] type=1 addr=0000ffa0 size=0010.
        I/O Base Address: %#lx
        Primary IDE: enabled
        Secondary IDE: disabled
vga0 <VGA-compatible display device> rev 0 int a irq 11 on pci0:16
        mapreg[10] type=0 addr=ff000000 size=800000.
pci0: uses 8388608 bytes of memory from ff000000 upto ff7fffff.
pci0: uses 16 bytes of I/O space from ffa0 upto ffaf.
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 not found at 0x280
ed1 not found at 0x300
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
sio2: disabled, not probed.
sio3: disabled, not probed.
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
lpt1 not found at 0xffffffff
psm0 at 0x60-0x63 irq 12 on motherboard
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <WDC AC21000H>
wd0: 1033MB (2116800 sectors), 2100 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <NEC                 CD-ROM DRIVE:282/3.04>, removable, dma, iordy
atapi0.1: unknown phase
wdc1 not found at 0x170
sea0 not found
wt0 not found at 0x300
mcd0: timeout getting status
mcd0 not found at 0x300
matcdc0 not found at 0x230
scd0 not found at 0x230
1 3C5x9 board(s) on ISA found at 0x300
ep0 at 0x300-0x30f irq 10 on isa
ep0: utp[*UTP*] address 00:c0:4f:d7:4f:77
lnc0 not found at 0x280
npx0 on motherboard
npx0: INT 16 interface
sb0 at 0x220 irq 7 drq 1 on isa
sb0: <SoundBlaster 16 4.13>
sbmidi0 not found at 0x330
Device configuration finished.
Considering FFS root f/s.
Configuring root and swap devs.
configure() finished.
BIOS Geometries:
 0:020b3f3f 0..523=524 cylinders, 0..63=64 heads, 1..63=63 sectors
 1:01300311 0..304=305 cylinders, 0..3=4 heads, 1..17=17 sectors
 0 accounted for
wd0s1: type 0x6, start 63, end = 822527, size 822465 : OK
wd0s2: type 0xa5, start 822528, end = 2048255, size 1225728 : OK
wd0s3: type 0xa5, start 2048256, end = 2116799, size 68544 : OK
fd0c: hard error writing fsbn 4 of 4-6 (ST0 40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 5)
fd0c: hard error writing fsbn 13 of 13-15 (ST0 40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 14)
fd0c: hard error writing fsbn 1531 (ST0 40<abnrml> ST1 2<write_protect> ST2 0 cyl 42 hd 1 sec 2)

 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Burton Sample » Mon, 28 Oct 1996 03:00:00



> I'm still having trouble getting my IDE CDROM to become a device that I
> can mount.  Does anyone know what I need to do when I get this message on
> startup?

> wdc0: unit 1 (atapi): <NEC                 CD-ROM DRIVE:282/3.04>, removable, dma, iordy
> atapi0.1: unknown phase

I had a similar problem.  I was attemping to load FBSD 2.1.5 from the
Walnut Creek CDROM.  I spoke to Jorden Harbert (Please forgive me if I
mis-spelled your name Jorden).  When I told him that I would get the
message "unknown phase" he said FBSD could not "read/use" my cdrom.  I
had a cheap 2X IDE (generic brand) cdrom.  My solution was to purchase a
new IDE cdrom.  I found a Sony CDU311 8X EIDE cdrom for about $105.00
USD at a local computer shop.  That solved the problem.  I hope this
helps.  Oh, one other thing, make sure the cdrom drive is the slave
drive.  I've heard this is the only way FBSD can use an IDE cdrom (don't
quote me on this fact, as I have no proof this is true)

Burton Sampley

 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Vineet Pancho » Tue, 29 Oct 1996 04:00:00


I get exactly the same msg. I am just ignoring it... I have been able
to mount the cdrom... It has been working fine for me. I would also
like to know if I could rectify this msg.

Regards,

Vineet.

K> I'm still having trouble getting my IDE CDROM to become a device that I
K> can mount.  Does anyone know what I need to do when I get this message on
K> startup?  
K>  
K> wdc0: unit 1 (atapi): <NEC                 CD-ROM DRIVE:282/3.04>, removable, dma, iordy
K> atapi0.1: unknown phase
K>
K> Enclosed below this message is the rest of the "dmesg" output in case it
K> helps!
K>
K> As far as I can tell, i have both IDE Hard Disk and CDROM on the same
K> controller configured correctly.  The original setup was HD on controller
K> 0, and CDROM on controller 1.  I moved the CDROM to controller 0, and
K> jumpered it as a slave.  I'm assuming that the HD is a master because NT
K> and DOS still recognize them when I dual boot.
K>
K> Should I include my kernel configuation file???
K> Thanks for any help!

--
-Vineet
* Vineet Pancholi           * Microchip Technology Inc. * Voice:(602)786-7461 *
* Product Test Engineer     * 2355 W. Chandler Blvd.    * Fax  :(602)917-4107 *

 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Patrick Leu » Tue, 29 Oct 1996 04:00:00


: message "unknown phase" he said FBSD could not "read/use" my cdrom.  I
: had a cheap 2X IDE (generic brand) cdrom.  My solution was to purchase a

That's because not all IDE drives are fully ATAPI compatible, even if it
says ATAPI, especially drives that are below 4X.

The newer IDE CD roms, 4X and 8X tend to follow to ATAPI standard more
closely than the old ones.  That's why you will have a better chance of
getting a new CD drive to work than an old one.

: new IDE cdrom.  I found a Sony CDU311 8X EIDE cdrom for about $105.00
: USD at a local computer shop.  That solved the problem.  I hope this
: helps.  Oh, one other thing, make sure the cdrom drive is the slave
: drive.  I've heard this is the only way FBSD can use an IDE cdrom (don't

I also have my cdrom mounted as slave.

 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Andrew Atren » Tue, 29 Oct 1996 04:00:00



> I'm still having trouble getting my IDE CDROM to become a device that I
> can mount.  Does anyone know what I need to do when I get this message on
> startup?

> wdc0: unit 1 (atapi): <NEC                 CD-ROM DRIVE:282/3.04>, removable, dma, iordy
> atapi0.1: unknown phase

I've got a NEC 4X atapi drive and it works quite well under the 2.2 SNAP
release, to
be honest I haven't tried it with 2.1.5.  

In your kernel config file, make sure you've disabled wd1 ( second hard
disk, first
IDE controller ) or it will fight with the wcd0 driver for control of
the CDROM:

# comment me out!
# disk            wd1     at wdc0 drive 1

Hope this helps,

Andrew Atrens,
( opinions mine, not Nortel's )

 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Milton Nga » Wed, 30 Oct 1996 04:00:00




> > I'm still having trouble getting my IDE CDROM to become a device
> > that I can mount.  Does anyone know what I need to do when I get
> > this message on startup?

> > wdc0: unit 1 (atapi): <NEC                 CD-ROM DRIVE:282/3.04>,
> > removable, dma, iordy
> > atapi0.1: unknown phase

> I had a similar problem.  I was attemping to load FBSD 2.1.5 from
> the Walnut Creek CDROM.  I spoke to Jorden Harbert (Please forgive
> me if I mis-spelled your name Jorden).  When I told him that I would
> get the message "unknown phase" he said FBSD could not "read/use" my
> cdrom.  I had a cheap 2X IDE (generic brand) cdrom.  My solution was
> to purchase a new IDE cdrom.  I found a Sony CDU311 8X EIDE cdrom
> for about $105.00 USD at a local computer shop.  That solved the
> problem.  I hope this helps.  Oh, one other thing, make sure the
> cdrom drive is the slave drive.  I've heard this is the only way
> FBSD can use an IDE cdrom (don't quote me on this fact, as I have no
> proof this is true)

  This problem is caused by older "cheap" CD-ROM Drives, but there is
  a work around. I submitted a patch to the author of the driver. I am
  not sure if it has made its way in to the FreeBSD tree yet. If
  people want it. I can post it.

  Basically it is a timing problem. The CD-ROM indicates that it has
  something for your computer, but it doesn't set the phase correctly
  until a little while after. So a simple delay loop until the phase
  gets itself sorted out works wonders. There are other problems with
  the audio support, but it has nothing to do with this :)

M.

 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Kelvin » Wed, 30 Oct 1996 04:00:00


Hmmmm....  The CDROM I have is a newer one.  Either a 6 or 8x by NEC.  I
can't seem to ignore the phase problem though because I can't find a
device for it.  When I try to mount wd1, it says that it's not
configured.  What's the correct device name assuming that I can ignore
the phase problem?

thanks!
kelvin

 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Burton Sample » Wed, 30 Oct 1996 04:00:00




> : message "unknown phase" he said FBSD could not "read/use" my cdrom.  I
> : had a cheap 2X IDE (generic brand) cdrom.  My solution was to purchase a

> That's because not all IDE drives are fully ATAPI compatible, even if it
> says ATAPI, especially drives that are below 4X.

I wouldn't be too quick to blame the cheap 2X cdrom for not being ATAPI
compliant.  It worked perfect for loading and using Linux 1.2.13 from
the Slackware 3.0 CDROM.
 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Kelvin » Thu, 31 Oct 1996 04:00:00


I've temporarily given up on my NEC CDROM that came with the Dell and took
my Mitsumi off my Micron Pentium Pro just to see if it was the CDROM
itself and not my configs, wiring, or jumpers that gave me the problems.
It appears to be working perfectly now.  The only problem is that I don't
want my 8x CDROM sitting in my experimental Dell where I plan to do UNIX
stuff that isn't multimedia strained.

It would be great if you could post the patch.  Is it difficult to insert
the patch?  So I would have to recompile the kernel?

thanks in advance,
Kelvin

:   This problem is caused by older "cheap" CD-ROM Drives, but there is
:   a work around. I submitted a patch to the author of the driver. I am
:   not sure if it has made its way in to the FreeBSD tree yet. If
:   people want it. I can post it.

:   Basically it is a timing problem. The CD-ROM indicates that it has
:   something for your computer, but it doesn't set the phase correctly
:   until a little while after. So a simple delay loop until the phase
:   gets itself sorted out works wonders. There are other problems with
:   the audio support, but it has nothing to do with this :)

: M.

 
 
 

ATAPI CDROM Help needed: "atapi0.1: unknown phase"

Post by Kelvin » Thu, 31 Oct 1996 04:00:00


Actually leaving in wd1 is fine so far.  It just probes it after the
wcd0 is configured.  I guess my next question is since both CD-ROM and HD
are sharing the same EIDE controller bus, is there going to be much of a
performance degradation with bus arbitration, or is the bus pretty quiet
when one device isn't doing anything?  I can't imagine how DMA figures
into the complexity of all of this.

Explanations!??

Kelvin

: In your kernel config file, make sure you've disabled wd1 ( second hard
: disk, first
: IDE controller ) or it will fight with the wcd0 driver for control of
: the CDROM:

: # comment me out!
: # disk            wd1     at wdc0 drive 1

: Hope this helps,

: Andrew Atrens,
: ( opinions mine, not Nortel's )