It seems Alexey N. Dokuchaev wrote:
> Hello!
> 
> I've been using FreeBSD 3.4 for quite a while, and my CDROM, being quite
> old and weird (NEC 260 model) was detected by both BIOS and FreeBSD.

Judging on the output it seems the NEC is one of the old devices that
doesn't say its a CDROM...

Try this patch:
Index: atapi-all.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/atapi-all.c,v
retrieving revision 1.51
diff -u -r1.51 atapi-all.c
--- atapi-all.c 2000/04/18 15:15:02     1.51
+++ atapi-all.c 2000/04/20 09:41:58
@@ -93,6 +93,7 @@
     switch (ATP_PARAM->device_type) {
 #if NATAPICD > 0
     case ATAPI_TYPE_CDROM:
+try_cdrom:
        if (acdattach(atp))
            goto notfound;
        break; 
@@ -100,7 +101,12 @@
 #if NATAPIFD > 0
     case ATAPI_TYPE_DIRECT:
        if (afdattach(atp))
+#if NATAPICD > 0
+           ATP_PARAM->device_type = ATAPI_TYPE_CDROM;
+           goto try_cdrom;
+#else
            goto notfound;
+#endif
        break; 
 #endif
 #if NATAPIST > 0


-Søren


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to