From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22181 invoked from network); 6 Mar 1998 11:49:36 -0000 Received: from zruty.comnets.rwth-aachen.de (137.226.4.16) by mail2.redhat.com with SMTP; 6 Mar 1998 11:49:36 -0000 Received: from dilbert.comnets.rwth-aachen.de (dilbert [137.226.4.242]) by zruty.comnets.rwth-aachen.de (8.8.5/8.8.5) with ESMTP id MAA02271; Fri, 6 Mar 1998 12:49:08 +0100 (MET) Received: (ost@localhost) by dilbert.comnets.rwth-aachen.de (8.6.12/COMNETS-1.0) id MAA19295; Fri, 6 Mar 1998 12:49:05 +0100 Sender: ost@comnets.rwth-aachen.de To: Chris Saunderson Cc: axp-list@redhat.com Subject: Re: [comp.os.linux.alpha,comp.os.linux.hardware] Re: cdrecord, Redhat 5.0 and Yamaha References: <4u1zwgf2f1.fsf@fermi.adelaide.maptek.com.au> Reply-To: Martin Ostermann x-no-archive: yes From: Martin Ostermann Date: 06 Mar 1998 12:49:05 +0100 In-Reply-To: Chris Saunderson's message of 06 Mar 1998 22:37:30 +1030 Message-ID: <43ra4ghwem.fsf@comnets.rwth-aachen.de> X-Mailer: Gnus v5.3/Emacs 19.34 Chris Saunderson writes: > Cdrecord: > > I compiled up both 1.6a10 and 1.6a11. By giving the following command: > > ./cdrecord fs=0 -v -dummy dev=5,0 speed=2 image.cd > > > I have been able to do a test dummy burn but not to fixate the disk. The > test burn works, but it just sits there telling me "Fixating...." and > the CD unit appears to drop off the chain. (cdrecord -inq 5,0 or > cdrecord -scanbus just hang at detecting the Yamaha CDR200t). > > Note the fs=0 option. Using other numbers just caused a core dump. Using > 0 I would presume defaults back to the kernel defined shared memory > value. > > Any bright ideas? I really don't want to have to go back to my Intel > based machine :-) I am using cdrecord-1.5 with a patch supplied by Thomas Bogendoerfer for v1.6.a5. I tried cdrecord-1.6a5, but that didn't work for me. Immedieate core dumps when the drive is exammined. I got a Philips DCC2600. Maybe you want to try 1.5 as well. Martin (just ignore the fifo.c patch, fifo.c didn't exist in version 1.5) diff -ru orig/cdrecord-1.6/cdrecord/fifo.c cdrecord-1.6/cdrecord/fifo.c --- orig/cdrecord-1.6/cdrecord/fifo.c Wed Nov 5 17:43:41 1997 +++ cdrecord-1.6/cdrecord/fifo.c Sun Nov 16 01:25:15 1997 @@ -62,7 +62,7 @@ #define EDEBUG(a) #endif -#define palign(x, a) (((char *)(x)) + ((a) - 1 - (((unsigned)((x)-1))%(a)))) +#define palign(x, a) (((char *)(x)) + ((a) - 1 - (((unsigned long)((x)-1))%(a)))) typedef enum faio_owner { owner_none, diff -ru orig/cdrecord-1.6/cdrecord/scsi-linux-sg.c cdrecord-1.6/cdrecord/scsi-linux-sg.c --- orig/cdrecord-1.6/cdrecord/scsi-linux-sg.c Tue Nov 4 10:35:03 1997 +++ cdrecord-1.6/cdrecord/scsi-linux-sg.c Sun Nov 16 14:18:33 1997 @@ -312,9 +312,9 @@ int f; int tmo; { - tmo *= 100; + tmo *= HZ; if (tmo) - tmo += 50; + tmo += HZ/2; if (ioctl(f, SG_SET_TIMEOUT, &tmo) < 0) comerr("Cannot set SG_SET_TIMEOUT.\n"); diff -ru orig/cdrecord-1.6/include/standard.h cdrecord-1.6/include/standard.h --- orig/cdrecord-1.6/include/standard.h Sun Jan 26 12:49:31 1997 +++ cdrecord-1.6/include/standard.h Sun Nov 16 01:41:15 1997 @@ -182,7 +182,7 @@ extern int wait_chld __PR((int)); extern int geterrno __PR((void)); extern void raisecond __PR((const char *, long)); -extern int snprintf __PR((char *, unsigned, const char *, ...)); +/* extern int snprintf __PR((char *, unsigned, const char *, ...)); */ /*extern int sprintf __PR((char *, const char *, ...)); ist woanders falsch deklariert !!!*/ extern char *strcatl __PR((char *, ...)); extern int streql __PR((const char *, const char *)); diff -ru orig/cdrecord-1.6/lib/fillbytes.c cdrecord-1.6/lib/fillbytes.c --- orig/cdrecord-1.6/lib/fillbytes.c Sun Feb 4 18:40:33 1996 +++ cdrecord-1.6/lib/fillbytes.c Sun Nov 16 14:15:19 1997 @@ -19,6 +19,21 @@ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef __alpha__ +/* the fillbytes() below doesn't work on machines with sizeof(long) != 4 */ +/* and at least on Linux/Alpha memset does a better job */ +#ifdef PROTOTYPES +char *fillbytes(void *tov, int cnt, char val) +#else +char *fillbytes(tov, cnt, val) + void *tov; + int cnt; + char val; +#endif +{ + memset (tov, val, cnt); +} +#else #include #include @@ -83,3 +98,4 @@ } while (--n > 0); return (to); } +#endif diff -ru orig/cdrecord-1.6/lib/movebytes.c cdrecord-1.6/lib/movebytes.c --- orig/cdrecord-1.6/lib/movebytes.c Sun Feb 4 18:40:34 1996 +++ cdrecord-1.6/lib/movebytes.c Sun Nov 16 14:14:57 1997 @@ -19,6 +19,17 @@ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef __alpha__ +/* the movebytes() below doesn't work on machines with sizeof(long) != 4 */ +/* and at least on Linux/Alpha memmove() does a better job */ +char *movebytes(fromv, tov, cnt) + const void *fromv; + void *tov; + int cnt; +{ + memmove (tov, fromv, cnt); +} +#else #include #include @@ -117,3 +128,4 @@ return (ep); } } +#endif -- Martin Ostermann | mailto:ost+sig0@comnets.rwth-aachen.de Communication Networks | http://www.comnets.rwth-aachen.de/~ost Aachen University of Technology | phone: ++49/241/807917 Germany | fax: ++49/241/8888242