Linux-Development-Sys Digest #770, Volume #7 Fri, 14 Apr 00 16:13:15 EDT
Contents:
Re: Win32 Drivers running under Linux (Pjtg0707)
install problems (customer)
Printers and interrupts ("Peter B. West")
Launching User App from a Kernel Driver module: How to? ("Sean Bose")
Re: Win32 Drivers running under Linux (Alan Donovan)
Re: Launching User App from a Kernel Driver module: How to? (Alan Donovan)
Re: Launching User App from a Kernel Driver module: How to? (Mathias Waack)
Re: Going postal over "lp: no devices found" (Ulrich Eckhardt)
Re: catching signals for bad stack (Kaz Kylheku)
Re: 2.3.99-4-2: Kernel panic: VFS: Unable to mount root fs on .... (Mario Klebsch)
Re: Q: is there a free secure network filesystem for Linux? (Mario Klebsch)
Re: can't find rawmemchar (Don)
Re: fork and pipe (Mario Klebsch)
Help -- make a patch (Weiguang Shi)
Re: how to link to a module? (Marc SCHAEFER)
Re: Win32 Drivers running under Linux (Marc SCHAEFER)
Re: how to link to a module? (Kaz Kylheku)
Re: Help -- make a patch (Weiguang Shi)
high resolution timers ??? (Badrinath Venkatachari)
Re: GUS PnP and Linux 2.2+ (Steve Harrington)
Building bzImage with 2.3.99-pre3 fails ("Uli Joergens")
Re: Q: is there a free secure network filesystem for Linux?
([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Pjtg0707)
Subject: Re: Win32 Drivers running under Linux
Reply-To: [EMAIL PROTECTED]
Date: Fri, 14 Apr 2000 13:51:35 GMT
On Fri, 14 Apr 2000 12:45:02 +0100, Alan Donovan <[EMAIL PROTECTED]> wrote:
>David Findlay wrote:
>>
>> Seeing that there are virtually no drivers for linux by manufacturers,
>
>Not so: many companies now routinely write drivers or provide technical
>(and sometimes financial) assistance to freelance linux driver writers.
>Linux drivers have to be open source in order to withstand kernel
>changes, so "binary-only" drivers are discouraged.
This is strictly not true. Only the kernel code is under GPL. A driver
can be released as binary if the originator chooses to do so, and in
many instances, the developer of the drivers may only be able to release
the drivers as binary due to some prior corporate agreements.
------------------------------
From: customer <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux
Subject: install problems
Date: Fri, 14 Apr 2000 13:59:00 GMT
When I am trying to install linux redhat 6.1 off of a single cd from
cheapbytes.com, the install program boots off of the cd and begins the
hardware check. After this though the screen goes completley white,
and freezes. Can someone please help me with this problem.
------------------------------
From: "Peter B. West" <[EMAIL PROTECTED]>
Subject: Printers and interrupts
Date: Sat, 15 Apr 2000 00:18:36 +1000
Can someone give me advice about setting up a printer with interrupts.
I have a Redhat 6.0 system with the 6.1 versions of the kernel and
glibc. Reading /usr/src/linux/drivers/char/lp.c, I find a dicsussion of
the TRUST_IRQ mode. It mentions a -T argument to tunelp. When I issue
tunelp /dev/lp0
I get
/dev/lp0 using IRQ -1
As far as I can tell, this means that th driver is using TRUST_IRQ
mode. However, the driver, according to /var/log/messages, is set up in
polling mode. Further, the lp IRQ does not show up in
/proc/interrupts. When I try to use tunelp to set the interrupt for the
driver, I get
tunelp: ioctl: Invalid argument
/dev/lp0 using IRQ -1
There seems to be a catch. My version of tunelp does not know about the
-T switch, and tunelp has disappeared from the 6.2 Redhat distribution.
What is the best place to get in touch with any of the guys who are
working on, or have worked on, the printer driver?
Yours faithfully,
--
__ /__ Peter B. West [EMAIL PROTECTED]
/ http://www.powerup.com.au/~pbwest
/ "Lord, to whom shall we go?"
------------------------------
From: "Sean Bose" <[EMAIL PROTECTED]>
Subject: Launching User App from a Kernel Driver module: How to?
Date: Fri, 14 Apr 2000 10:29:08 -0400
Hi
I am trying to launch a user application from a kernel driver module.
Can someone please help me with hints.
thanks
Sean
__________________________
Sean Bose
[EMAIL PROTECTED]
------------------------------
From: Alan Donovan <[EMAIL PROTECTED]>
Subject: Re: Win32 Drivers running under Linux
Date: Fri, 14 Apr 2000 15:43:23 +0100
Pjtg0707 wrote:
>
> On Fri, 14 Apr 2000 12:45:02 +0100, Alan Donovan <[EMAIL PROTECTED]> wrote:
> >David Findlay wrote:
> >>
> >> Seeing that there are virtually no drivers for linux by manufacturers,
> >
> >Not so: many companies now routinely write drivers or provide technical
> >(and sometimes financial) assistance to freelance linux driver writers.
> >Linux drivers have to be open source in order to withstand kernel
> >changes, so "binary-only" drivers are discouraged.
>
> This is strictly not true. Only the kernel code is under GPL. A driver
> can be released as binary if the originator chooses to do so, and in
> many instances, the developer of the drivers may only be able to release
> the drivers as binary due to some prior corporate agreements.
I used the word "discouraged", not "forbidden" or "impossible". But you
are otherwise right.
alan
--
========================================================================
Alan Donovan [EMAIL PROTECTED] http://www.imerge.co.uk
Imerge Ltd. +44 1223 875265
------------------------------
From: Alan Donovan <[EMAIL PROTECTED]>
Subject: Re: Launching User App from a Kernel Driver module: How to?
Date: Fri, 14 Apr 2000 15:44:32 +0100
Sean Bose wrote:
>
> Hi
> I am trying to launch a user application from a kernel driver module.
> Can someone please help me with hints.
I don't think it can be done. Which is usually to say that there is a
better approach to the problem. Can you not write a daemon which
communicates with your driver and starts the app as required?
alan
--
========================================================================
Alan Donovan [EMAIL PROTECTED] http://www.imerge.co.uk
Imerge Ltd. +44 1223 875265
------------------------------
From: Mathias Waack <[EMAIL PROTECTED]>
Subject: Re: Launching User App from a Kernel Driver module: How to?
Date: Fri, 14 Apr 2000 16:46:15 +0200
Sean Bose wrote:
> I am trying to launch a user application from a kernel driver module.
> Can someone please help me with hints.
No docs, but an example:
#include <linux/ptrace.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <asm/uaccess.h>
#define __KERNEL_SYSCALLS__
#include <linux/unistd.h>
char* argv[] = { "sim/link_sim", NULL };
set_fs(KERNEL_DS);
if((pid = execve("sim/link_sim", argv, NULL)) < 0) {
int err = errno;
DEBUG("start of simu-thread failed because %d\n",err);
return -err;
This code is executed from a kernel thread, started by calling
pid = kernel_thread(thr_simu, &daemon_pid, 0);
thr_simu is a function pointer, daemon_pid a void ptr which will
provided to the function:
void* thr_simu(void *p) {
...
}
HTH
Mathias
--
Mathias Waack | [EMAIL PROTECTED]
Tel.: +49 621 181 2717 Fax.: +49 621 181 2713
------------------------------
From: Ulrich Eckhardt <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux
Subject: Re: Going postal over "lp: no devices found"
Date: Fri, 14 Apr 2000 12:14:55 +0200
Steven R. Robertson wrote:
> I'm trying to get my printer recognized by a Linux system I'm building
> from scratch.
> I keep getting "lp: no devices found" I've compiled parallel port
> support into the kernel (2.2.14).
Unless you have broken Hardware, you should be able to 'cat
sometext>/dev/lp0'.
> I've also tried appending parport=0x378, parport=auto
> and lp=parport0 and lp=auto and various combinations thereof to my Lilo
> configuration and still no luck
My printer works (almost, that is) though I never touched lilo.conf nor
modules.conf .
> When I reboot the same machine back to my SuSe system the printer
> works fine.
> I've read parport text in the kernel source docs but I must be missing
> something.
I�m afraid there�s not only winmodems but also gdiprinters .... :-(
> Any one have any ideas before I go postal?
postal ? You mean asking the manufacturer for linux-drivers ? Do so, even
if you get it to work without !
CU
Uli
--
remove "nospam." when replying directly
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: catching signals for bad stack
Reply-To: [EMAIL PROTECTED]
Date: Fri, 14 Apr 2000 15:43:54 GMT
On Fri, 14 Apr 2000 12:59:44 +0100, Henning <[EMAIL PROTECTED]> wrote:
>> sigaltstack
>I've tried
>------------------snip------------------
> pcSigStack = (void*)malloc(SIGSTKSZ);
> sigAltStack.ss_sp = pcSigStack;
> sigAltStack.ss_size = SIGSTKSZ;
> sigAltStack.ss_flags = 0;
> i = sigaltstack(&sigAltStack, &sigOldStack);
>------------------snap------------------
>but the alternate signal stack is not used.
You have to turn on the use of the alternate stack for a given signal using
sigaction.
--
#exclude <windows.h>
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: linux.dev.kernel
Subject: Re: 2.3.99-4-2: Kernel panic: VFS: Unable to mount root fs on ....
Date: Fri, 14 Apr 2000 11:51:38 +0200
Ivan De Saedeleer <[EMAIL PROTECTED]> writes:
>In linux.dev.kernel Christian J�nsson <[EMAIL PROTECTED]> wrote:
>> VFS: Mounted root (ext2 filesystem).
>> kmod: failed to exec /sbin/modprobe -s -k block-major-3, errno = 2
>> VFS: Cannot open root device "306" or "03:06"
>> Please append a correct "root=" boot option
>> Kernel panic: VFS: Unable to mount root fs on 03:06.
>Same problem here, i don't have found the solution yet...
The sollution is obvious:
>> kmod: failed to exec /sbin/modprobe -s -k block-major-3, errno = 2
^^^^^^^^ ^^^^^^^^^^^^^
The Kernel tries to load the driver for block device major number
3. Why? see later...
>> VFS: Cannot open root device "306" or "03:06"
^^
It expects its root filesystem on block device with major number 3. To
access the filesystem on this device, the kernel needs ... the driver
for block device major number 3.
The sollution is to include the driver for block device major number 3
into the kernel. Alternatively, you can include this driver on your
initial ramdisk. In this case, you also have to include /sbin/modprobe
and /etc/conf.modules. Block device majro 3 is the IDE hard disk
driver (on my system).
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: Q: is there a free secure network filesystem for Linux?
Date: Fri, 14 Apr 2000 11:57:33 +0200
[EMAIL PROTECTED] (Matthew Palmer) writes:
>Michael Pronath is of the opinion:
>>Is there a network filesystem, that has useful security features (i.e. not
>>NFS), and is free and open source available for Linux (i.e. not AFS) ?
>>What would you use for a small LAN, Home Office or so? Samba?
>For a home/office thing, stick with NFS between Unix hosts and Samba for
>the windows boxes.
BTW is secure NFS available for Linux?
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
------------------------------
From: Don <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat,linux.redhat.rpm
Subject: Re: can't find rawmemchar
Date: Fri, 14 Apr 2000 11:02:29 -0400
I have found a partial solution to this problem.
I can run netscape if I run the netscpae binary directly.
(/usr/lib/netscape-comunicator).
When you run "netscape" a script runs. The libraries it chooses may not be
present since I upgraded, and the dependecies are not in the RPM. This may
be the problem, and if I upgrade everything it might go away.
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: fork and pipe
Date: Fri, 14 Apr 2000 12:03:33 +0200
"Celestial Wizard" <[EMAIL PROTECTED]> writes:
>i need to create a program that will fork n times and open pipes between the
>processes so they can act as a ring.
I would create the processes recursively. To create the ring, you just
fork one process inheriting two pipes, one for each end of the ring.
The forked process creates a new pipe and inherits one end of the new
pipe plus one of the two inhereted ends of the pipes to its parent to
its new child. The process itself acts on the remaining ends of the
pipes. If you pass the number of missing ring elemnts to the child
process, you recursion will stop, if all elements are created.
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
------------------------------
From: Weiguang Shi <[EMAIL PROTECTED]>
Subject: Help -- make a patch
Date: Fri, 14 Apr 2000 10:57:24 -0600
Hi, there:
I got trouble making a new patch against the original 2.0.38 source.
I used the following command to make the patch file:
diff -c -r -N ./linux /usr/src/linux>pat1
where ./linux is a newly un-tar-ed 2.0.38 kernel and /usr/src/linux is my
modified and working kernel.
However, I can not get the patch file which includes all the changes. I
can see that by searching the "pat1" file generated -- several new files
in /usr/src/linux/include/linux/fs are obviously not there.
Is there anything missing in my command?
Thanks very much.
Weiguang
------------------------------
From: Marc SCHAEFER <[EMAIL PROTECTED]>
Subject: Re: how to link to a module?
Date: 14 Apr 2000 09:11:53 GMT
Josef Moellers <[EMAIL PROTECTED]> wrote:
: 1) the module supports the standard access methods of drivers, i.e.
: read/write/ioctl, or
: 2) the module has an interface through /proc.
: Other than that ... no chance.
Alternatively: a new system call.
The ioctl() way on a character device is my preferred.
------------------------------
From: Marc SCHAEFER <[EMAIL PROTECTED]>
Subject: Re: Win32 Drivers running under Linux
Date: 14 Apr 2000 09:11:06 GMT
David Findlay <[EMAIL PROTECTED]> wrote:
: Seeing that there are virtually no drivers for linux by manufacturers, would
Note that it is sometimes a very good thing. For example, the open-source
independant driver for the SYM53c8xx chips is much better than
the open source driver from Tekram, for example.
Linux is a different beast, where cooperative voluntary efforts usually
give better results.
: it be possible to use Wine to run Win32 drivers under Linux. It might not be
I would think it is not possible, except maybe for some software drivers
such as printer drivers. Running MS-DOS drivers with DOSEMU
is possible. Running Windows drivers with VMware is possible.
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: how to link to a module?
Reply-To: [EMAIL PROTECTED]
Date: Fri, 14 Apr 2000 17:25:13 GMT
On 14 Apr 2000 09:11:53 GMT, Marc SCHAEFER <[EMAIL PROTECTED]> wrote:
>Josef Moellers <[EMAIL PROTECTED]> wrote:
>: 1) the module supports the standard access methods of drivers, i.e.
>: read/write/ioctl, or
>: 2) the module has an interface through /proc.
>: Other than that ... no chance.
>
>Alternatively: a new system call.
>
>The ioctl() way on a character device is my preferred.
An ioctl wrapped behind a suitable library function is, effectively, a new
system call. The programmer using the library function can't tell the
difference.
--
#exclude <windows.h>
------------------------------
From: Weiguang Shi <[EMAIL PROTECTED]>
Subject: Re: Help -- make a patch
Date: Fri, 14 Apr 2000 11:37:27 -0600
Never mind. It's due to my indiscretion. Sorry about that.
Weiguang
------------------------------
From: Badrinath Venkatachari <[EMAIL PROTECTED]>
Subject: high resolution timers ???
Date: Fri, 14 Apr 2000 13:51:18 -0700
Hi,
I have this mechanism in the kernel where I Q up read requests when
they
come in and make the processes that issued the requests sleep on a
wait_queue. Then the idea is to have a timer driven function dQ them at
regular intervals, issue the requests dQed and wake up the processes
waiting for the request servicing.
Currently, I have this timer getting woken up at millisecond precision
(basically using jiffies with add_timer()). I would however, like to use
a
higher resolution timer for this purpose (microseconds). Is there one
available ???
thanks a lot in advance
regards
badri
------------------------------
From: [EMAIL PROTECTED] (Steve Harrington)
Subject: Re: GUS PnP and Linux 2.2+
Date: 14 Apr 2000 18:40:37 GMT
Toby Haynes <[EMAIL PROTECTED]> writes:
>!! "Steve" == <[EMAIL PROTECTED]> writes:
> Steve> Specifically, following the
> Steve> linux/Documentation/sound/ultrasound documentation I get the
> Steve> following error:
> Steve> /lib/modules/2.2.14/misc/gus.o: init_module: Device or
> Steve> resource busy
> Steve> when I try to load the sound module.
>This is a long shot, since I don't have a GUS card, but is your PnP OS
>enabled in your BIOS? If it is, boot your machine into it's BIOS
>configuration utility (check your machine manual for how to do this)
>and turn it off. Then try again - it's possible you are ending up with
>some device contention. I've seen this sort of error message when
>trying to set up my Aureal card under Linux and the PnP OS had to be
>off before it went away.
That fixed the resource busy error. However, now the card produces no
sound under any conditions. Sounds like a hardware problem but at least
I'm one step closer (I hope).
Thanks.
Steve
[EMAIL PROTECTED]
------------------------------
From: "Uli Joergens" <[EMAIL PROTECTED]>
Subject: Building bzImage with 2.3.99-pre3 fails
Date: Fri, 14 Apr 2000 20:42:03 +0200
Hi,
I'm trying to build a linux 2.3.99 kernel. Everything compiles fine but
building the boot image fails:
gcc -E -D__KERNEL__ -I/usr/src/linux/include -D__BIG_KERNEL__ -traditional -
DSVGA_MODE=NORMAL_VGA bootsect.S -o bbootsect.s
as -o bbootsect.o bbootsect.s
bbootsect.s: Assembler messages:
bbootsect.s:735: Error: base/index register must be 32 bit register
bbootsect.s:742: Error: base/index register must be 32 bit register
bbootsect.s:743: Error: base/index register must be 32 bit register
bbootsect.s:744: Error: base/index register must be 32 bit register
bbootsect.s:997: Error: base/index register must be 32 bit register
make[1]: *** [bbootsect.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/boot'
make: *** [bzImage] Error 2
Does anybody have an idea what's going wrong?
Thanks
Uli
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Q: is there a free secure network filesystem for Linux?
Date: Fri, 14 Apr 2000 20:21:01 +0100
Michael Pronath <[EMAIL PROTECTED]> wrote:
: Is there a network filesystem, that has useful security features (i.e. not
: NFS), and is free and open source available for Linux (i.e. not AFS) ?
: What would you use for a small LAN, Home Office or so? Samba?
NFS over Secure RPC is a possibility. We have used it
here successfully to tunnel NFS over long distances (the
NFS traffic travels inside an SSH TCP tunnel). If you
want to pursue this, mail me privately and I'll send you
the patches and so on we use.
However, this is still only really useful if you trust the
kernel on the client end (ie. it doesn't change the basic
insecurity of NFS - just allows you to send it over the
Internet with fewer worries).
If you don't trust the clients, try NFS with Kerberos.
Rich.
--
[EMAIL PROTECTED] | Free email for life at: http://www.postmaster.co.uk/
BiblioTech Ltd, Unit 2 Piper Centre, 50 Carnwath Road, London, SW6 3EG.
+44 171 384 6917 | Click here to play XRacer: http://xracer.annexia.org/
--- Original message content Copyright � 2000 Richard Jones ---
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************