Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Ralph Gillen <gillen@theochem.uni-duesseldorf.de>
Cc: axp-list@redhat.com
Subject: Re: Adventures with xcdroast on Linux/Alpha
Date: Thu, 26 Mar 1998 23:58:29 +0100	[thread overview]
Message-ID: <19980326235829.13639@alpha.franken.de> (raw)
In-Reply-To: <199803250930.KAA09350@protium.theochem.uni-duesseldorf.de>; from Ralph Gillen on Wed, Mar 25, 1998 at 10:30:45AM +0100

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>]


  reply	other threads:[~1998-03-26 23:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-25  9:30 Adventures with xcdroast on Linux/Alpha Ralph Gillen
1998-03-26 22:58 ` Thomas Bogendoerfer [this message]
1998-03-30 13:55   ` NIC ports on UDB (aka Multia) Jerry Feldman
1998-03-30 14:13     ` Chris Price
  -- strict thread matches above, loose matches on Subject: below --
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
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox