I recently bought a pci multi io card to give my pc 2 parallel ports. For Linux, Moschip supply the source plus makefile and instructions. I ran make as root and got an error message
make: *** /lib/modules/2.6.31.12-0.2-desktop/build/: No such file or directory.
So I created a folder called build in /lib/modules/2.6.31.12-0.2-desktop but that isnt good enough as I still get an error cannot make target modules. So I assume there must be something in the build folder. So what packages do I have to install to get the correct environment to be able to build the driver?
Has anyone done this and can supply the driver for 11.2?
Hi
If you provide a link to the source I can build a KMP for you. Else you
generally need the kernel-source, kernel-syms, linux-kernel-headers,
make and gcc and the devel version for your running kernel (in your
case desktop).
Thanks,
I installed MCS9865-kmp-desktop and MCS9865-kmp-desktop-debuginfo using 1 click install and that worked ok. But do not know the next step to take tried following instructions in readme with MCS src but didnt work see below.
instructions were
rmmod lp
l# rmmod parport_pc
l# insmod /usr/lib/modules/2.6.15/kernel/drivers/parport_pc io=0xd0101000 irq=11
insmod: can’t read ‘/usr/lib/modules/2.6.15/kernel/drivers/parport_pc’: No such file or directory
So where are these drivers kept in opensuse?
Thanks for your help so far as I havent a clue what is going on
On 07/14/2010 06:16 PM, abat wrote:
>
> Thanks,
> I installed MCS9865-kmp-desktop and MCS9865-kmp-desktop-debuginfo using
> 1 click install and that worked ok. But do not know the next step to
> take tried following instructions in readme with MCS src but didnt work
> see below.
>
> instructions were
>
> # rmmod lp
> l# rmmod parport_pc
> l# insmod /usr/lib/modules/2.6.15/kernel/drivers/parport_pc
> io=0xd0101000 irq=11
> insmod: can’t read ‘/usr/lib/modules/2.6.15/kernel/drivers/parport_pc’:
> No such file or directory
>
> So where are these drivers kept in opensuse?
>
> Thanks for your help so far as I havent a clue what is going on
For drivers that are installed, modprobe makes an easy wrapper around insmod and
rmmod. As an ordinary user, use “sudo /sbin/modprobe -rv parport_pc”.
and are called mcs9865 and mcs9865-isa, you can find out information via
the modinfo command;
/sbin/modinfo mcs9865
/sbin/modinfo mcs9865-isa
You can also use the YaST software management tool to view the files,
there is also a file called MCS9865-1.0.0.6-7.1.i586.rpm which contains
the documentation down in /usr/share/doc/packages/MCS9865/
Thanks Malcolm, I have installed 11.3 and used 1 click install on MCS9865 seemed to install ok and patched my kernel. Prior to that (because I didnt read your message above closely enough, sorry was being a bit thick after spending an afternoon first installing ubuntu in parallel with opensuse I thought but it screwed up my system so thats when I decided to upgrade to 11.3. Have now ubuntu + 11.3 + xp running on same machine) Anyway I installed MCS9865-kmp-desktop first so now I am not sure but I seem to have two versions as lspci -v gives
0c:07.0 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 21
I/O ports at 5008 [size=8]
I/O ports at 5000 [size=8]
Memory at d0101000 (32-bit, non-prefetchable) [size=4]
Memory at d0100000 (32-bit, non-prefetchable) [size=4]
Capabilities: [48] Power Management version 2
Kernel driver in use: parport_pc
0c:07.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 18
I/O ports at 5018 [size=8]
I/O ports at 5010 [size=8]
Memory at d0103000 (32-bit, non-prefetchable) [size=4]
Memory at d0102000 (32-bit, non-prefetchable) [size=4]
Capabilities: [48] Power Management version 2
Kernel driver in use: parport_pc
Which is repeated twice where I was only expecting the first one Is this the case and if so how do I remove the second?
for info sudo /sbin/modinfo mcs9865
filename: /lib/modules/2.6.34-12-default/updates/mcs9865.ko
license: GPL
description: moschip 9865 serial driver module
srcversion: AE747C71EB64AE555BCAD22
depends:
vermagic: 2.6.34-12-default SMP mod_unload modversions
parm: test_mode:bool
but what is also throwing me is ls /dev/ttyD
ls: cannot access /dev/ttyD: No such file or directory
The Moschip doc tells me to expect to see ttyD0 and ttyD1 What am I still missing?
Also I looked at the doc about configuring the serial port but as I am only interested in the parallel ports I thought the defaults would do. But should we change the from RS232 ro RS422 I dont know.
Is there a command other than modprobe which will just list out just the active parallel ports.
Finally, this is just an explanation of why ubuntu + opensuse. I run a program called Emc which runs under ubuntu 8.04 with real time extensions to control some stepper motors. My dedicated pc blew up so I thought I might use my desktop pc which was only running opensuse 11.2. I would like to run Emc under opensuse (now 11.3) but that means adding the real time extensions to the kernel. Now that is another thread I am sure. Has anyone done this even for 11.2?
Hi Vincent
I have modified the spec file so it will build for SLE 11 SP1. Now the
OBS only uses the default kernel for builds, so if your running an
updated kernel you will need to build from the src rpm.