* Adventures with xcdroast on Linux/Alpha
@ 1998-03-21 21:30 Michal Jaegermann
1998-03-22 14:20 ` Thomas Bogendoerfer
0 siblings, 1 reply; 5+ messages in thread
From: Michal Jaegermann @ 1998-03-21 21:30 UTC (permalink / raw)
To: axp-list; +Cc: tn
I tried recently xcdroast-0.96d-beta4; still the latest one I believe
on Linux machine running "patched up" Red Hat 5.0 distribution.
It requires tcl/tk 8.0p2 but luckily this is no longer a problem.
In summary - it works, but...
Here is one show stopper. With this distribution are included
sources for cdrecord-1.6a11. Patches for cdrecord, posted earlier
in this group by Martin Ostermann, are incorrect accordingly to
the cdrecord author. Indeed, he is likely right. In some situations
functions fillbytes() and movebytes() are called with negative counts,
on purpose or by a mistake, and replacing these functions with
memset() and memmove() is then not a very good idea (converted into
unsigned long values these counts are becoming pretty big :-).
On the other hand some macros from a generated header "align.h"
are applied to addresses which are casted, inside these macros, to
'int's. Ouch! Bombs caused by that are most interesting if not
entirely unfamiliar. Patch included below.
The other problem is that cdrecord does not want to run on Alpha with
a default fifo size of 4 Megs. I did not have a time to track down
what is a reall culprit but a call to shmget returns complaining
about an invalid argument. Could be a library bug. I do not know
at this moment nor have means, temporary - I think, to check it out.
Dropping this size to somewat smaller value 4000k works. Unfortunately
xcdroast does not have means to set this. Not all is lost. This value,
and several others, can be passed to cdrecord via environment variables.
In order not to type that every time I want to start xcdroast
I replaced it with the following shell script:
#!/bin/sh
#
# A minor hack which seem to be required by cdrecord-1.6 on Alpha
# A default 4m value for CDR_FIFOSIZE causes errors in shmget;
# somewhat lower 4000k works fine at the moment
#
CDR_FIFOSIZE=4000k ; export CDR_FIFOSIZE
exec xcdroast.bin
where 'xcdroast.bin' is, obviously enough, a renamed original xcdroast
executable. Works very well.
With these two changes I mastered and wrote, using xcdroast interface,
so far five different CDs without spoiling yet a single one. I did not
try yet "a file system direct to CD" option in cdrecord. All writes
were from pre-mastered images.
Happy roasting,
Michal
begin 644 cdrecord.align.fix.gz
M'XL("%DP%#4"`V-D9@"-D-%*PS`4AJ_3ISA,D!RR;$MT<ZT,NAM%M-[,2V&D
M;38+-96F`T'QV<VZ*5MM<2$0SB'??[Z$<PY)6NJD*%,N!A,EQ##/XJ'*L[59
M5MI6@^2+1(6!&QV#F+@=2!E<CD'X_M1CC/V+DZ>7#42J=`3(43#V`R%V=!@"
MEQ=7_2FPW1&&'KR5F:E>56(I>O"QKU>T]VQZ>.WQG_(LU:O,:/)>C](I57VP
M2`AUR]U`JA#AW+5@-H,18!<N#_BXCJ!'$9^P+V)L"V2G^&R,K7N0%V;=8<9.
M-6L)VSHVVNVVC<^$YDS[.]*9'[YD_G!W^[A<1//%/7:Q1[Y;OO&`OQG?KB@1
%"7T"````
`
end
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Adventures with xcdroast on Linux/Alpha
1998-03-21 21:30 Adventures with xcdroast on Linux/Alpha Michal Jaegermann
@ 1998-03-22 14:20 ` Thomas Bogendoerfer
1998-03-22 21:44 ` Christoph Zens
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Bogendoerfer @ 1998-03-22 14:20 UTC (permalink / raw)
To: axp-list
On Sat, Mar 21, 1998 at 02:30:51PM -0700, Michal Jaegermann wrote:
> Here is one show stopper. With this distribution are included
> sources for cdrecord-1.6a11. Patches for cdrecord, posted earlier
> in this group by Martin Ostermann, are incorrect accordingly to
> the cdrecord author. Indeed, he is likely right. In some situations
> functions fillbytes() and movebytes() are called with negative counts,
> on purpose or by a mistake, and replacing these functions with
that's something I didn't notice (and I would call that a bug rather
than a feature). But fillbytes() and movebytes() are now 64bit clean.
> The other problem is that cdrecord does not want to run on Alpha with
> a default fifo size of 4 Megs. I did not have a time to track down
You must increase the maximum allowed shm segment size in your kernel.
To do this you have to change SHMMAX. Mine looks like this:
#define SHMMAX 0x2000000 /* max shared seg size (bytes) */
Just for the record, since cdrecord-1.6a11 my JVC writer is able to burn
CDs on my Alpha machine. Older versions of cdrecord the fixiating stage
didn't terminate.
Thomas.
--
See, you not only have to be a good coder to create a system like Linux,
you have to be a sneaky bastard too ;-)
[Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Adventures with xcdroast on Linux/Alpha
1998-03-22 14:20 ` Thomas Bogendoerfer
@ 1998-03-22 21:44 ` Christoph Zens
0 siblings, 0 replies; 5+ messages in thread
From: Christoph Zens @ 1998-03-22 21:44 UTC (permalink / raw)
To: axp-list
> that's something I didn't notice (and I would call that a bug rather
> than a feature). But fillbytes() and movebytes() are now 64bit clean.
>
> > The other problem is that cdrecord does not want to run on Alpha with
> > a default fifo size of 4 Megs. I did not have a time to track down
>
> You must increase the maximum allowed shm segment size in your kernel.
The first version of cdrecord I tried to use was 1.6a7 and as you know,
it was very buggy concerning other than intel platforms...
I reduced SHM usage to 2 MB, rewrote these strange fill- and movebytes
completely and used HZ instead of 100 (ticks per second) to correct for
the wrong calculation of SCSI timeouts.
Also rewrote the swap code (which should really be called "swap" instead
of "swab" all the time) but that was more an aesthetic concern.
Since then (last december) it runs very reliable.
I had a look on version 1.6a11 an found most of my changes implemented,
but as there are no major new features, I didn´t try it.
--
_
_ //
\X/ Christoph Zens <e9126506@student.tuwien.ac.at>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Adventures with xcdroast on Linux/Alpha
@ 1998-03-25 9:30 Ralph Gillen
1998-03-26 22:58 ` Thomas Bogendoerfer
0 siblings, 1 reply; 5+ messages in thread
From: Ralph Gillen @ 1998-03-25 9:30 UTC (permalink / raw)
To: axp-list, tsbogend
Thomas Bogendoerfer wrote:
> You must increase the maximum allowed shm segment size in your kernel.
> To do this you have to change SHMMAX. Mine looks like this:
>
> #define SHMMAX 0x2000000 /* max shared seg size (bytes) */
>
> Just for the record, since cdrecord-1.6a11 my JVC writer is able to burn
> CDs on my Alpha machine. Older versions of cdrecord the fixiating stage
> didn't terminate.
So, I recompiled my kernel (2.0.30, RH5.0) with this change, compiled
cdrecord-1.6a11 (and cdrecord-1.6a12), and everything I get from cdrecord is a
crash when calling it.
Please, could somebody (Thomas?) help me and give me some more information on
which kernel, libc etc. version you use? I´m fighting with this for two weeks
now and I really don´t like the idea to put my CDR into a PC 8-(
Thanks a lot!
Ralph
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Adventures with xcdroast on Linux/Alpha
1998-03-25 9:30 Ralph Gillen
@ 1998-03-26 22:58 ` Thomas Bogendoerfer
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Bogendoerfer @ 1998-03-26 22:58 UTC (permalink / raw)
To: Ralph Gillen; +Cc: axp-list
On Wed, Mar 25, 1998 at 10:30:45AM +0100, Ralph Gillen wrote:
> So, I recompiled my kernel (2.0.30, RH5.0) with this change, compiled
> cdrecord-1.6a11 (and cdrecord-1.6a12), and everything I get from cdrecord is a
> crash when calling it.
>
> Please, could somebody (Thomas?) help me and give me some more information on
> which kernel, libc etc. version you use? I´m fighting with this for two weeks
> now and I really don´t like the idea to put my CDR into a PC 8-(
you have three options to solve your problem:-)
1. Upgrade to a newer kernel 2.0.32 or 2.0.33 will do the trick.
2. Uncomment the mprotect() call in cdrecord
3. Use the patch below (taken from patch-2.0.31).
I also had to upgrade the NCR driver, because my JVC CDR didn't work with
version 1.12 (included in < 2.0.31).
Thomas.
diff -u --recursive --new-file v2.0.30/linux/mm/mlock.c linux/mm/mlock.c
--- v2.0.30/linux/mm/mlock.c Wed Sep 11 07:57:19 1996
+++ linux/mm/mlock.c Wed Oct 15 15:58:46 1997
@@ -124,9 +124,9 @@
pages = -pages;
vma->vm_mm->locked_vm += pages;
- if (newflags & VM_LOCKED)
+ if ((newflags & VM_LOCKED) && (newflags & VM_READ))
while (start < end) {
- char c = get_user((char *) start);
+ int c = get_user((int *) start);
__asm__ __volatile__("": :"r" (c));
start += PAGE_SIZE;
}
--
See, you not only have to be a good coder to create a system like Linux,
you have to be a sneaky bastard too ;-)
[Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-03-26 23:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-21 21:30 Adventures with xcdroast on Linux/Alpha Michal Jaegermann
1998-03-22 14:20 ` Thomas Bogendoerfer
1998-03-22 21:44 ` Christoph Zens
-- strict thread matches above, loose matches on Subject: below --
1998-03-25 9:30 Ralph Gillen
1998-03-26 22:58 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox