Update, 2011-02-27

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'.

Update, 2010-02-04

If you are using the kernel module mcs9865 version >= 1.0.0.6 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

2010-02-02

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).

Details

Patch for mcs9865.c, version 1.0, Date 18-4-2008

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 2.6.27.42-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,

  1. rename your mcs9865.c file into, let's say, mcs9865_old.c.
  2. Copy mcs9865.patch into the same directory.
  3. Open a linux console, cd to this directory and type "patch mcs9865_old.c -i mcs9865.patch -o mcs9865.c".

Later versions

If you are using later versions of the MCS9865 (currently, you can download version 1.0.0.5 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)


Using the mcs9865 kernel module with SUSE Linux 11.1

runlevel.jpg