netmos 9865 pci serial port card

General conversations about MIB project
Forum rules
Image
Before you post, please read forum rules:
Software requests - How to
Tag [SOLVED] in topics
Post Reply
User avatar
forrestw517
Utente junior
Utente junior
Posts: 80
Joined: 22 August 2009, 2:38
OpenMandriva: 2010.2 x86_64
Kernel: 2.6.36.4-desktop-69m
Desktop: kde 4.5.5 mib
Contact:

netmos 9865 pci serial port card

Post by forrestw517 »

can you assist with this issue I have tried numerous times to build this driver with out success.
http://www.iocrest.com/products.php?SY- ... 1b13f2dc94 there is a link to a zip file inside is a linux folder with the files needed to compile but keep getting errors.

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: netmos 9865 pci serial port card

Post by MauRice »

Forrestw517,

You have installed everything to compile a kernel-module?

Try to compile with the latest source-code: http://www.moschip.com/mcs9865_downloads.php

If it still give errors. Then you have to find the patches for the latest kernel-version.


Found the patch-file: http://izto.org/mcs9865/mcs9865-2.6.31.6.patch

Good Luck,
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
forrestw517
Utente junior
Utente junior
Posts: 80
Joined: 22 August 2009, 2:38
OpenMandriva: 2010.2 x86_64
Kernel: 2.6.36.4-desktop-69m
Desktop: kde 4.5.5 mib
Contact:

Re: netmos 9865 pci serial port card

Post by forrestw517 »

I have tried all methods. current kernel is 2.6.33.5-desktop-69mib 2010.0 x86_64 I have the kernel headers and source installed. I applied the patch to the driver files and get this error
[root@forrestw MCS9865_Linux]# make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/2.6.33.5-desktop-69mib/build/ SUBDIRS=/home/fwhite/Downloads/MCS9865_Linux modules
make[1]: Entering directory `/usr/src/linux-2.6.33.5-desktop-69mib'
CC [M] /home/fwhite/Downloads/MCS9865_Linux/mcs9865.o
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c: In function ‘serial9865_start_tx’:
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c:498: error: ‘struct uart_port’ has no member named ‘info’
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c: In function ‘check_modem_status’:
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c:611: error: ‘struct uart_port’ has no member named ‘info’
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c: In function ‘receive_chars’:
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c:623: error: ‘struct uart_port’ has no member named ‘info’
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c: In function ‘transmit_chars’:
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c:712: error: ‘struct uart_port’ has no member named ‘info’
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c: In function ‘transmit_chars_dma_stop_done’:
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c:757: error: ‘struct uart_port’ has no member named ‘info’
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c: In function ‘transmit_chars_dma_done’:
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c:773: error: ‘struct uart_port’ has no member named ‘info’
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c: In function ‘receive_chars_dma_done’:
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c:857: error: ‘struct uart_port’ has no member named ‘info’
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c: In function ‘serial9865_handle_port’:
/home/fwhite/Downloads/MCS9865_Linux/mcs9865.c:966: error: ‘struct uart_port’ has no member named ‘info’
make[2]: *** [/home/fwhite/Downloads/MCS9865_Linux/mcs9865.o] Error 1
make[1]: *** [_module_/home/fwhite/Downloads/MCS9865_Linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.33.5-desktop-69mib'
make: *** [default] Error 2
If I make a change in the make file by adding PWD= $ just below the line
KDIR:=/lib/modules/$(shell uname -r)/build/
I get this error
[root@forrestw MCS9865_Linux]# make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/2.6.33.5-desktop-69mib/build/ SUBDIRS= modules
make[1]: Entering directory `/usr/src/linux-2.6.33.5-desktop-69mib'
make[3]: Nothing to be done for `silentoldconfig'.
make[3]: *** No rule to make target `arch/x86/crypto/fpu.c', needed by `arch/x86/crypto/fpu.o'. Stop.
make[2]: *** [arch/x86/crypto] Error 2
make[1]: *** [arch/x86] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.33.5-desktop-69mib'
make: *** [default] Error 2

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: netmos 9865 pci serial port card

Post by MauRice »

Forrestw517,

Sorry, I am old-fashion.
I use the 2.6.31.13 kernel x86_64.
With this kernel no problem to compile.
[maurizio@Mandy64-Dev MCS9865_Linux]$ uname -r
2.6.31.13-desktop-1mnb
[maurizio@Mandy64-Dev MCS9865_Linux]$ ls
Makefile mcs9865-2.6.31.6.patch mcs9865.h mcs9865-isa.h readme
mcs9865 mcs9865.c mcs9865-isa.c MCS9865_Linux_UM_Ver1.1.doc ReleseNotes
[maurizio@Mandy64-Dev MCS9865_Linux]$ patch <mc
mcs9865 mcs9865.c mcs9865-isa.c
mcs9865-2.6.31.6.patch mcs9865.h mcs9865-isa.h
[maurizio@Mandy64-Dev MCS9865_Linux]$ patch <mcs9865-2.6.31.6.patch
patching file mcs9865.c
[maurizio@Mandy64-Dev MCS9865_Linux]$ make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/2.6.31.13-desktop-1mnb/build/ SUBDIRS=/home/maurizio/src/Testing/SY-PCI15002/Linux/MCS9865_Linux modules
make[1]: Entering directory `/usr/src/linux-2.6.31.13-desktop-1mnb'
CC [M] /home/maurizio/src/Testing/SY-PCI15002/Linux/MCS9865_Linux/mcs9865.o
/home/maurizio/src/Testing/SY-PCI15002/Linux/MCS9865_Linux/mcs9865.c:751: warning: ‘transmit_chars_dma_stop_done’ defined but not used
CC [M] /home/maurizio/src/Testing/SY-PCI15002/Linux/MCS9865_Linux/mcs9865-isa.o
Building modules, stage 2.
MODPOST 2 modules
CC /home/maurizio/src/Testing/SY-PCI15002/Linux/MCS9865_Linux/mcs9865-isa.mod.o
LD [M] /home/maurizio/src/Testing/SY-PCI15002/Linux/MCS9865_Linux/mcs9865-isa.ko
CC /home/maurizio/src/Testing/SY-PCI15002/Linux/MCS9865_Linux/mcs9865.mod.o
LD [M] /home/maurizio/src/Testing/SY-PCI15002/Linux/MCS9865_Linux/mcs9865.ko
make[1]: Leaving directory `/usr/src/linux-2.6.31.13-desktop-1mnb'
[maurizio@Mandy64-Dev MCS9865_Linux]$ ls
Makefile mcs9865.h mcs9865-isa.mod.c MCS9865_Linux_UM_Ver1.1.doc Module.markers ReleseNotes
mcs9865 mcs9865-isa.c mcs9865-isa.mod.o mcs9865.mod.c modules.order
mcs9865-2.6.31.6.patch mcs9865-isa.h mcs9865-isa.o mcs9865.mod.o Module.symvers
mcs9865.c mcs9865-isa.ko mcs9865.ko mcs9865.o readme
[maurizio@Mandy64-Dev MCS9865_Linux]$
You use kernel 2.6.33.5
You have to find a patch for the kernel 2.6.33.5
Or get kernel 2.6.34 or higher: http://www.kernel.org/pub/linux/kernel/ ... Log-2.6.34
commit ac6ec5b1de5d1d5afcbe88d73c05df71dca0ac39
Author: Ira W. Snyder <iws@ovro.caltech.edu>
Date: Mon Dec 21 16:26:45 2009 -0800

serial: 8250_pci: add support for MCS9865 / SYBA 6x Serial Port Card

This patch is heavily based on an earlier patch found on the linux-serial
mailing list [1], written by Darius Augulis.

The previous incarnation of this patch only supported a 2x serial port
card. I have added support for my SYBA 6x serial port card, and tested on
x86.

[1]: http://marc.info/?l=linux-serial&m=124975806304760

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Cc: Darius Augulis <augulis.darius@gmail.com>
Cc: Greg KH <greg@kroah.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: netmos 9865 pci serial port card

Post by MauRice »

Forrestw517,

Read this topic:
http://www.linuxquestions.org/questions ... ld-746569/

Ad the end of page 2:
Driver 1.0.0.6 with no carriage returns can be found here:
http://filebin.ca/prdjxz/MCS9865_V1.0.0.6_noCR.tgz
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
forrestw517
Utente junior
Utente junior
Posts: 80
Joined: 22 August 2009, 2:38
OpenMandriva: 2010.2 x86_64
Kernel: 2.6.36.4-desktop-69m
Desktop: kde 4.5.5 mib
Contact:

Re: netmos 9865 pci serial port card

Post by forrestw517 »

I have tried everything on that page. I am not a programmer and have no idea how to create a patch file. I will just order a serial port card more supported in linux.

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: netmos 9865 pci serial port card

Post by MauRice »

Forrestw517,

Are you a member of http://www.linuxquestions.org/ ?
I'm pretty sure that you can compile with kernel 2.6.33.5 and the patch below.
File Type: txt mcs9865_patch_2.6.32-rc5.txt (3.2 KB, 63 views)
had to change more for 2.6.32-rc5. i have done a short test and it worked fine

also this card worked with xen hypervisor, referring to earlier dmesg |grep ttyD output I added the following on the xen grub line
com1=19200,8n1,0xe480,17 console=com1
Attached Files
File Type: txt mcs9865_patch_2.6.32-rc5.txt (3.2 KB, 63 views)
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

Post Reply