* Re: [comp.os.linux.alpha,comp.os.linux.hardware] Re: cdrecord, Redhat 5.0 and Yamaha
1998-03-06 12:07 [comp.os.linux.alpha,comp.os.linux.hardware] Re: cdrecord, Redhat 5.0 and Yamaha Chris Saunderson
@ 1998-03-06 11:49 ` Martin Ostermann
1998-03-06 12:05 ` Hirsim{ki Mika
1 sibling, 0 replies; 3+ messages in thread
From: Martin Ostermann @ 1998-03-06 11:49 UTC (permalink / raw)
To: Chris Saunderson; +Cc: axp-list
Chris Saunderson <Chris.Saunderson@adelaide.maptek.com.au> 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
<tsbogend@alpha.franken.de> 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 <standard.h>
#include <align.h>
@@ -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 <standard.h>
#include <align.h>
@@ -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
^ permalink raw reply [flat|nested] 3+ messages in thread