If you are using OpenSUSE 11.3, you usually won't need to install any driver at all. Serial ports probably are located at
/dev/ttyS4 and /dev/ttyS5. In order to access them, you should be member of group 'dialout'.
If you are using the kernel module mcs9865 version >= 18.104.22.168 from MosChip™ you won't need this patch. However, section Using the mcs9865 kernel module with SUSE Linux 11.1 might be of interest for you.
MCS9865 Linux kernel module patch
History / Motivation
Some days ago, I bought a serial port device providing two additional serial ports (manufacturer MosChip™).
Installation of the the Linux software, provided by MosChip™ on a CD, failed with two basic errors:
Error #1: error: ‘struct uart_info’ has no member named ‘tty’ (3 times)
Error #2: error: ‘SA_SHIRQ’ undeclared (first use in this function) (1 time)
A driver download from http://driver-downloads.com, document DL-0234903, as recommended in the manual, did not solve the problem (same driver version).
Note: This patch comes without any warranty, and, furthermore, it is completely unofficial. I've tested it with version 1.0 of the mcs9865 kernel module and it appears to work well with kernel 22.214.171.124-0.1-default x86_64. I'm not the first one who found the solution, please look and search for "Razorblade". He obviously had patched the file, I spent some hours to find my own solution, and both turned out to be basically equal. The only difference would be that this version could be used with earlier kernel versions.
In order to apply the patch,
- rename your mcs9865.c file into, let's say, mcs9865_old.c.
- Copy mcs9865.patch into the same directory.
- Open a linux console, cd to this directory and type "
patch mcs9865_old.c -i mcs9865.patch -o mcs9865.c".
If you are using later versions of the MCS9865 (currently, you can download version 126.96.36.199 from http://www.moschip.com/ , please take a look at the time stamp beneath the first heading on the beginning of this page), this patch might work as well. A message like "Hunk #4 FAILED at ..." from patch means that the last error message (SA_SHIRQ) already has been fixed by the manufacturer.
Patched file mcs9865.c (ver 1.0)
- First of all, I think it is worth mentioning that you'll need to install the package kernel-source in order to compile the modules
- Follow the instructions in the manual (MCS9865_Linux_UM_Ver1.1.doc).
- After having installed the modules, you need to enable the mcs9865 module in the runlevels. This task can easily be performed with yast: