* 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
* 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: Hirsim{ki Mika @ 1998-03-06 12:05 UTC (permalink / raw)
To: axp-list; +Cc: axp-list
> 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.
I had buffer size related problems as well with 1.6a10.
Option fs=4000k seems to work fine, while many smaller
buffers caused core dumps. The default buffer size
(i.e. the one you get when you omit the fs-option)
didn't work either.
--
Mika Hirsimaki
^ permalink raw reply [flat|nested] 3+ messages in thread
* [comp.os.linux.alpha,comp.os.linux.hardware] Re: cdrecord, Redhat 5.0 and Yamaha
@ 1998-03-06 12:07 Chris Saunderson
1998-03-06 11:49 ` Martin Ostermann
1998-03-06 12:05 ` Hirsim{ki Mika
0 siblings, 2 replies; 3+ messages in thread
From: Chris Saunderson @ 1998-03-06 12:07 UTC (permalink / raw)
To: axp-list
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2566 bytes --]
This is a copy of an article I just posted to comp.os.linux.{alpha,hardware}.
Seeing as you guys have a few clues in the alpha area, I thought I'd throw
it out here to see if anything jogged loose :)
------- Start of forwarded message -------
From: Chris Saunderson <Chris.Saunderson@adelaide.maptek.com.au>
Newsgroups: comp.os.linux.alpha,comp.os.linux.hardware
Subject: Re: cdrecord, Redhat 5.0 and Yamaha
Date: 06 Mar 1998 22:35:01 +1030
Organization: Maptek Pty Ltd - Adelaide
Message-ID: <4u4t1cf2j6.fsf@fermi.adelaide.maptek.com.au>
References: <4upvk3dj7k.fsf@fermi.adelaide.maptek.com.au>
To: schilling@fokus.gmd.de
Chris Saunderson <Chris.Saunderson@adelaide.maptek.com.au> writes:
> [saundo@fermi unknown-linux-cc]# ./cdrecord -scanbus
> Cdrecord release 1.6a10 Copyright (C) 1995-1998 Jörg Schilling
> scsibus0:
> 0) 'DEC ' 'RZ26L (C) DEC' '442D' Disk
> 1) *
> 2) *
> 3) 'SEAGATE ' 'ST32155N ' '0318' Disk
> 4) 'DEC ' 'RRD43 (C) DEC ' '1084' Removable CD-ROM
> 5) 'YAMAHA ' 'CDR200t ' '1.00' Removable CD-ROM
> 6) *
> 7) *
> [saundo@fermi unknown-linux-cc]#
>
>
> But the moment I attempt to use cdrecord as I've become accustomed to
> on the Intel/Linux platform, seg fault.
A followup to this.
I have been tinkering away at this for the last couple of days, and here's
the status so far.
Kernel version:
I compiled up (after some "duh"'s) the 2.0.33 kernel, which appears to
have fixed the shmget problem, as well as the mlockall() problem.
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 :-)
Cheers
Saundo
--
Chris "Saundo" Saunderson Chris.Saunderson@adelaide.maptek.com.au
Technical Support Engineer Telephone: (08) 8379 7333
Maptek Pty Ltd Fax: (08) 8379 7377
Powered by Linux, Jolt and the Orb.
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-03-06 12:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox