Date: Tue, 2 May 2000 10:08:20 -0400 (EDT) From: Trevor Johnson <trevor@jpj.net> To: Kent Stewart <kstewart@3-cities.com> Cc: "Dan O'Connor" <dan@mostgraveconcern.com>, Scott <sbarron@ansic.net>, freebsd-questions@FreeBSD.ORG Subject: Re: ATAPI CDR's in 4.0-RELEASE Message-ID: <Pine.BSI.4.21.0005021002570.3808-300000@blues.jpj.net> In-Reply-To: <390A6CD4.4270734B@3-cities.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] > It will be interesting to see what the fix is. There was one message > about adding "sleep(10);" in burncd.c right after where it writes the > message about > if (!quiet) > fprintf(stderr, "fixating CD, please wait..\n"); > sleep(10); > > In the messages I read, it shouldn't matter but it also worked for me. I tried doing that, but it didn't help. I have an 8100. I've attached the patches that Soren Schmidt (sos@freebsd.org) sent me. He said he'd be tidying them up and committing them to -CURRENT, then MFCing them, but that it was okay to pass them along. Note that they're two patches to the same file. -- Trevor Johnson http://jpj.net/~trevor/gpgkey.txt [-- Attachment #2 --] Index: dev/ata/atapi-cd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/atapi-cd.c,v retrieving revision 1.56 diff -u -r1.56 atapi-cd.c @@ -1458,6 +1460,7 @@ static int32_t acd_close_track(struct acd_softc *cdp) { +#if 0 int8_t ccb1[16] = { ATAPI_SYNCHRONIZE_CACHE, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; int32_t error; @@ -1466,6 +1469,12 @@ if (error) return error; return atapi_wait_ready(cdp->atp, 5*60); +#else + int8_t ccb1[16] = { ATAPI_SYNCHRONIZE_CACHE, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 }; + + return atapi_queue_cmd(cdp->atp, ccb1, NULL, 0, 0, 60, NULL, NULL); +#endif } static int32_t [-- Attachment #3 --] Index: atapi-cd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/atapi-cd.c,v retrieving revision 1.56 diff -u -r1.56 atapi-cd.c --- atapi-cd.c 2000/04/15 05:53:31 1.56 +++ atapi-cd.c 2000/04/25 09:42:17 @@ -1365,6 +1367,7 @@ static int32_t acd_close_disk(struct acd_softc *cdp) { +#if 0 int8_t ccb[16] = { ATAPI_CLOSE_TRACK, 0x01, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; int32_t error; @@ -1373,6 +1376,12 @@ if (error) return error; return atapi_wait_ready(cdp->atp, 10*60); +#else + int8_t ccb[16] = { ATAPI_CLOSE_TRACK, 0, 0x02, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 }; + + return atapi_queue_cmd(cdp->atp, ccb, NULL, 0, 0, 5*60, NULL, NULL); +#endif } static int32_thelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.4.21.0005021002570.3808-300000>
