Mark,
grep cpint /proc/devices => "253 cpint"
John Taylor
Date: Fri, 30 Sep 2005 14:43:44 -0400
Reply-To: Linux on 390 Port <[email protected]
<mailto:[email protected]>>
Sender: Linux on 390 Port <[email protected]
<mailto:[email protected]>>
From: "Post, Mark K" <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
Subject: Re: New Version of CPINT
What do you get if you do this:
grep cpint /proc/devices
?
Mark Post
-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
<mailto:Linux%20on%20390%20Port%20%5Bmailto:[EMAIL PROTECTED]>
John P Taylor
Sent: Thursday, September 29, 2005 11:00 AM
To: [email protected]
Subject: Re: New Version of CPINT
Mark,
that was helpful, the "make -C /lib/modules/`uname -r`/build
M=3D3D`pwd` SUBDIRS=3D3D`pwd` module" ran ok with a link from
/usr/src/kernel-source-2.6.8 to /lib/modules/2.6.8-2-s390/build, that
allows me to get a module that will force load. The next stumbling block
is the dynamic creation of the devices when running a command e.g "hcp q
t":
open("/dev/cpcmd", O_RDWR) =3D -1 ENOENT (No such file or
directory)
looking at the code I think it may fails here:
register_chrdev(cpint_major, "cpint", &cpint_fops);
where cpint_major is set to 0
but if I make a device /dev/cpcmd at major node 253, minor node 0, then
it gets a bit further:
and now fails like this:
write(3, "q t ", 4) =3D -1 EINVAL (Invalid argument)
I'm guessing some buffer is not big enough?
Any thoughts or help appreciated.
John Taylor
Not having a 2.6 system (of any flavor) running at the moment, I'm=20
tempted to say that the kernel-headers package won't be sufficient. I=20
believe that in order to be able to do a "make modules" command, you're
going to need the entire kernel source package. Trying to do that with
just the kernel headers doesn't make any sense to me.
If Neale weren't in Australia at the moment, I know he'd be clarifying=20
all this for us.
Mark Post
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390