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 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=3D`pwd` SUBDIRS=3D`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) = -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) = -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 >tempted to say that the kernel-headers package won't be sufficient. I >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 >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 ---------------------------------------------------------------------- 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
