Linux-Development-Sys Digest #419, Volume #8 Tue, 16 Jan 01 00:13:11 EST
Contents:
Linux Mandracke The Expirience of Frederik now on SJC visit
http://start.sjc-gent.be/real/ ("Jurgen Roels")
Re: Problems with MINORS in Device Driver Writing ([EMAIL PROTECTED])
Re: Printer Not Working - 2.4.0 ("Karl Heyes")
Re: What causes these parse errors when compiling kernel module? ("Brian Wagener")
Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x) (Jerry
Peters)
Re: double to byte stream convert (Chris Friesen)
Problems compiling programs with new 2.4 kernel (Josh Liechty)
Stats on what kernel people are running (Harald Tveit Alvestrand)
Problem w/ tty modes? (Kaelin Colclasure)
mmap() does not call my driver function ("Paul Passarelli")
----------------------------------------------------------------------------
From: "Jurgen Roels" <[EMAIL PROTECTED]>
Subject: Linux Mandracke The Expirience of Frederik now on SJC visit
http://start.sjc-gent.be/real/
Date: Mon, 15 Jan 2001 20:22:28 +0100
Linux Mandracke The Expirience of Frederik now on SJC visit
http://start.sjc-gent.be/real/
--
=================================================================
Jurgen Roels
SJC Webmaster
http://www.sjc-gent.be
http://start.sjc-gent.be
http://chat.sjc-gent.be
e-mail [EMAIL PROTECTED]
=================================================================
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Problems with MINORS in Device Driver Writing
Date: Mon, 15 Jan 2001 19:48:16 GMT
Hi Ellis, Ninja, Kasparov,
After screwing around with my code for a few days, I think something
pretty "basic" is screwed with my kernel driver. I've been able to
acertain that MINOR(inode->i_rdev) does work when I open my device,
however, any additional methods calls (i.e. read or write) returns
inodes/file pointers that contain empty data in the i_rdev field or
buffers. It's like the filesystem is not responding to my method calls
properly.
Anyhow rather than wasting your time, I'd like to ask if any of you
have a working skeleton kernel driver that compiles on 2.2.14 or know
where to find one that uses minor devices and tries to send/recieve data
through file system handles (i.e./dev/*). O'Reilly's web site has some
simple drivers for 2.1 but they are a bitch to compile on 2.2.14 (I get
some pretty difficult to fix compile time errors).
Anyhow thanks for your time and any code bits would be helpful.
Once again I really appreciate all your help.
Luke Ng
Grad Student
University of Waterloo
Sent via Deja.com
http://www.deja.com/
------------------------------
From: "Karl Heyes" <[EMAIL PROTECTED]>
Subject: Re: Printer Not Working - 2.4.0
Date: Mon, 15 Jan 2001 20:17:33 +0000
In article <SAx86.62536$[EMAIL PROTECTED]>,
"mpierce" <[EMAIL PROTECTED]> wrote:
> System Mandrake 7.2, kernel 2.4.0, cups1.1.4-7.1
>
> Printer is not printing because the kernel is not ready
>
> [mpierce@localhost mpierce]$ /usr/sbin/lpc status
> lp:
> printer is on device 'parallel' speed -1 queuing is disabled
> printing is disabled no entries daemon present
> [mpierce@localhost mpierce]$
>
> Does anyone know how to make the daemon restart?
>
Check for the lp module, try a modprobe lp then restart the printer
system. the lp.o may not be loading as it maybe in a directory not
being searched. You could move the
/lib/modulaes/x.x.x/kernel/drivers/char/lp.o
into another directory like misc (with a depmod -a) and retry.
karl.
------------------------------
From: "Brian Wagener" <[EMAIL PROTECTED]>
Subject: Re: What causes these parse errors when compiling kernel module?
Date: Mon, 15 Jan 2001 20:28:43 GMT
I fixed it by adding -I/usr/include, why isn't /usr/include a default place
to look? How do I make it one?
Thanks.
--
Brian Wagener
ForceConstant
http://force.ath.cx
http://shoptalk.tunacan.net
"Brian Wagener" <[EMAIL PROTECTED]> wrote in message
news:zPE86.7912$[EMAIL PROTECTED]...
> I don't know if I need it, though I was able to get rid of a lot of the
> errors by not including linux/proc_fs.h even though I am using the proc
fs.
> But I still get errors like "struct file" declared inside parameter list,
> and parse error before size_t. So I proabably need linux/proc_fs.h . If
I
> include it I get errors like below.
>
> In file included from /usr/include/linux/sched.h:13,
> from /usr/include/linux/mm.h:4,
> from /usr/include/linux/slab.h:14,
> from /usr/include/linux/malloc.h:4,
> from /usr/include/linux/proc_fs.h:5,
> from brian.c:5:
> /usr/include/linux/times.h:5: parse error before `clock_t'
> /usr/include/linux/times.h:5: warning: no semicolon at end of struct or
> union
> /usr/include/linux/times.h:6: warning: data definition has no type or
> storage class
> /usr/include/linux/times.h:7: parse error before `tms_cutime'
> /usr/include/linux/times.h:7: warning: data definition has no type or
> storage class
> /usr/include/linux/times.h:8: parse error before `tms_cstime'
> /usr/include/linux/times.h:8: warning: data definition has no type or
> storage class
> In file included from /usr/include/linux/timex.h:142,
> from /usr/include/linux/sched.h:14,
> from /usr/include/linux/mm.h:4,
> from /usr/include/linux/slab.h:14,
> from /usr/include/linux/malloc.h:4,
> from /usr/include/linux/proc_fs.h:5,
> from brian.c:5:
> /usr/include/linux/time.h:10: parse error before `time_t'
> /usr/include/linux/time.h:10: warning: no semicolon at end of struct or
> union
> /usr/include/linux/time.h:12: parse error before `}'
> /usr/include/linux/time.h: In function `timespec_to_jiffies':
> /usr/include/linux/time.h:32: dereferencing pointer to incomplete type
> /usr/include/linux/time.h:33: dereferencing pointer to incomplete type
> /usr/include/linux/time.h: In function `jiffies_to_timespec':
> /usr/include/linux/time.h:45: dereferencing pointer to incomplete type
> /usr/include/linux/time.h:46: dereferencing pointer to incomplete type
> /usr/include/linux/time.h: At top level:
> /usr/include/linux/time.h:51: parameter `a' has incomplete type
>
> --
> Brian Wagener
>
> ForceConstant
> http://force.ath.cx
> http://shoptalk.tunacan.net
> "Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Brian Wagener wrote:
> > >
> > > Well I am getting closer to making some kernel module code, well I
made
> some
> > > code to setup use of input/output of a node in the proc directory. I
> > > compile with gcc -D__KERNEL__ -DMODULE -c module.c but I get a whole
lot
> of
> > > errors like "Parse error before time_t" and clock_t, and such. What
am
> I
> > > forgetting?
> > > Thanks.
> > >
> > > --
> > > Brian Wagener
> > >
> > > ForceConstant
> > > http://force.ath.cx
> > > http://shoptalk.tunacan.net
> >
> > I think you have forgotten to include some header files
> > which is needed, or you have included some header files
> > which cannot be used in kernel code.
> >
> > What is the files and the lines where the errors are
> > reported?
> >
> > --
> > Kasper Dupont
>
>
------------------------------
From: Jerry Peters <[EMAIL PROTECTED]>
Subject: Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x)
Date: Mon, 15 Jan 2001 22:02:11 GMT
"Marcus J�ger" <[EMAIL PROTECTED]> wrote:
> Help!
> I just installed Suse Linux 7.0 on my 80486 166 MHz 24 MB RAM box.
> Installation worked fine, but after reboot system locked at tihs point:
> "> request_module[block-major -3] root fs not mounted
>> VFS: Cannot open root device "sda4" or xx:xx
>> Please append a correct "root=" boot option
>> Kernel panic: VFS: Unable to mount root fs on 03:01"
> Booting from the linstall cd, loading the module for my scsi-adaptor
> (ncr53c8x) and mounting root on /dev/sda4 works.
> I downloaded the 2.4.0 kernel and tried to compile a kernel with this
> special sccsi-mdoule. at first the make zImage said "system too large,
> error1" and on the second try "error ksym..."
> what are i'm doing wrong?
> please help me.
Unless you want to get into the intricacies of initrd, don't build
anything needed to mount your root FS as modules.
make bzImage note that instead of zImage, this builds bzImage, as
its name implies.
Jerry
------------------------------
From: Chris Friesen <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: double to byte stream convert
Date: Mon, 15 Jan 2001 23:17:05 GMT
Grant Edwards wrote:
> I would recommend converting to/from IEEE double format in
> network byte order. The platforms I've used with non-IEEE
> floating-point formats all had very efficient routines for
> converting to/from IEEE format.
Seconded. IEEE in network order.
Chris
------------------------------
From: Josh Liechty <[EMAIL PROTECTED]>
Subject: Problems compiling programs with new 2.4 kernel
Date: Mon, 15 Jan 2001 18:16:45 -0500
Please forgive me if this is not the right place to post this, but I
think this is a kernel question, and I think this is a / the Linux
kernel group :-)
When I try to compile the Lucent Winmodem driver under the 2.4 kernel,
it complains that it can't find
/usr/src/linux/include/linux/modversions.h and serial_compat.h . It also
complained about autoconf.h, but I copied autoconf*.h from the Linux
kernel 2.2.14 files, and now that works ok, but it still is complaining
about modversions.h and serial_compat.h . Previously, it would complain
about asm/*.h not existing, but after symlinking asm to asm-i386, this
error went away. Do you knowledgeable kernel people have any idea what
is up here? FYI, I'm using the kernel that can be downloaded from
www.kernel.org in .bz2 format.
Thank you,
Josh Liechty
------------------------------
From: Harald Tveit Alvestrand <[EMAIL PROTECTED]>
Subject: Stats on what kernel people are running
Date: Tue, 16 Jan 2001 00:57:54 +0100
Reply-To: @cisco.com
I have set up a Web page where people can mail in what kernel they are
running (among other things), and see what other people do.
It is http://counter.li.org/reports/systemstats.php
Very much a work in progress - but of the 286 machines who have updated
info during the last 60 days, 24 (8.4%) are running 2.4.0.....only
2.2.13 to 2.2.17 have more.
It is part of the Linux Counter Project.
Posting it here, in case someone enjoys it....
------------------------------
From: Kaelin Colclasure <[EMAIL PROTECTED]>
Subject: Problem w/ tty modes?
Date: 15 Jan 2001 16:52:05 -0800
Greetings,
I recently upgraded my system at work to RH6.2 and now I am seeing what
appears to be a problem with my tty mode settings. bash, emacs and
other programs that "cook" raw key data are unaffected, but as soon as
I run any program that's just reading from stdin, none of the "normal"
delete or backspace keys behave as I'm used to.
In elden times I used to occasionally do `stty sane' to correct this
type of issue (when dialed in to a SunOS or DEC Unix box). I tried it,
but it had no perceptable effect on my Linux machine. Anyone else run
into this issue? And have a fix?
-- Kaelin
------------------------------
From: "Paul Passarelli" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.suse
Subject: mmap() does not call my driver function
Date: Mon, 15 Jan 2001 22:30:25 -0500
I'v written a PCI device for a PLX 9080 card. The open() call does hit my
driver, and the mmap() and release() are both correct in the file_operations
structure. However, when the mmap() function is called in the application
program, my dev_mmap() does not get called. The app considers this a
failure, so it closes the file, calling my dev_release() function. I'm at a
loss... The app does seem to hit occasionally, but not consistently.
I'm hoping to increase my basic understanding of what's happening, or not
happening. I'm developing under SuSE 7.0
Thanks,
--Paul
[EMAIL PROTECTED]
please follow up to e-mail, no usenet at work
thanks again
------------------------------
** 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 by posting to the
comp.os.linux.development.system newsgroup.
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
******************************