LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-21-2007, 04:30 AM   #1
rusmosav
LQ Newbie
 
Registered: May 2007
Posts: 5

Rep: Reputation: 0
Linux or Windows, read and compare!


We are using online programs on OS/2 system.
(OS/2 has problems with new equipments)
Now we decided to replace with a new one. For us it is important to support MOXA serial adapter C320T/PCI.

1)It has been said that Linux more suitable, stable, durable.
We have never used Linux before.
We installed MOXA's serial adapter C320T/PCI under Red Hat 9 according to manual of the equipment.(Red hat is second try after unsuccessful action with Mandriva) But without success. Then asked Moxa Linux support team to help solving the problem. They also could not help. After that I posted this problem in the several linux forums. And followed some member's advice, downloaded kernel-source and built it.
Received error again during MOXA installation:

[root@localhost driver]# make install
gcc -c -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer-pipe -march=i486 -I/usr/src/linux-2.4/include -I/usr/src/linux/include -DMODVERSIONS moxa.c
In file included from moxa.c:36:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from /usr/include/linux/module.h:10,
from moxa.c:38:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from moxa.c:44:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
moxa.c:46:22: linux/mm.h: No such file or directory
In file included from /usr/include/linux/signal.h:4,
from moxa.c:49:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:14,
from moxa.c:50:
/usr/include/linux/timex.h:148: error: field `time' has incomplete type
moxa.c:51:25: linux/timer.h: No such file or directory
In file included from /usr/include/linux/interrupt.h:9,
from moxa.c:52:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from moxa.c:52:
/usr/include/linux/interrupt.h:12:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:13:25: asm/softirq.h: No such file or directory
moxa.c:54:28: linux/tty_flip.h: No such file or directory
moxa.c:59:26: linux/string.h: No such file or directory
In file included from moxa.c:63:
/usr/include/linux/tty_driver.h:130: error: field `init_termios' has incompletetype
moxa.c:64:25: linux/delay.h: No such file or directory
In file included from moxa.c:67:
/usr/include/asm/io.h:4:2: warning: #warning <asm/io.h> is deprecated, use <sys/io.h> instead
moxa.c:94:25: asm/uaccess.h: No such file or directory
moxa.c:202: error: field `normal_termios' has incomplete type
moxa.c:203: error: field `callout_termios' has incomplete type
moxa.c:208: error: syntax error before "wait_queue_head_t"
moxa.c:208: warning: no semicolon at end of struct or union

For twenty days I'm trying to install this device.

2) After hardware installation Windows detected the device and installed all nessisary drivers. All ports are operational. I did nothing more.
 
Old 05-21-2007, 05:10 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,768

Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by rusmosav
We installed MOXA's serial adapter C320T/PCI under Red Hat 9 according to manual of the equipment.
RedHat 9 is now a digital antique. Why anyone whould pick it as a starting point for using Linux these days is beyond me.
Quote:
Originally Posted by rusmosav
After that I posted this problem in the several linux forums. And followed some member's advice, downloaded kernel-source and built it.
Building your own kernel under RedHat is not recommended unless you really know what you're doing.
Quote:
Originally Posted by rusmosav
Received error again during MOXA installation:
...
For twenty days I'm trying to install this device.
Is it so hard to type:

modprobe moxa

???

If you had done that, it would have worked for you without even needing to install a driver. Support for this device has been in the kernel for quite some time.
Quote:
Originally Posted by rusmosav
2) After hardware installation Windows detected the device and installed all nessisary drivers. All ports are operational. I did nothing more.
Is that machine mission critical? You have my sympathies (in advance) if it is.
 
Old 05-21-2007, 05:34 AM   #3
rusmosav
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
modprobe moxa
module moxa not found
 
Old 05-21-2007, 05:36 AM   #4
rusmosav
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
modprobe moxa
Module moxa not found
 
Old 05-21-2007, 05:58 AM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,768

Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by rusmosav
modprobe moxa
Module moxa not found
Try a newer/better distro.

Edit: If you built your own kernel, why didn't you include support for the device?

Last edited by rkelsen; 05-21-2007 at 06:00 AM.
 
Old 05-21-2007, 06:00 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
With Mandriva 2007:
Code:
[root@mandriva ~]# modinfo moxa
filename:       /lib/modules/2.6.17-5mdv/kernel/drivers/char/moxa.ko.gz
author:         William Chen
description:    MOXA Intellio Family Multiport Board Device Driver
license:        GPL
vermagic:       2.6.17-5mdv SMP mod_unload 686 gcc-4.1
depends:
alias:          pci:v00001393d00002180sv*sd*bc*sc*i*
alias:          pci:v00001393d00003200sv*sd*bc*sc*i*
alias:          pci:v00001393d00002040sv*sd*bc*sc*i*
parm:           verbose:bool
parm:           ttymajor:int
parm:           numports:array of int
parm:           baseaddr:array of int
parm:           type:array of int
HTH

Yves.
 
Old 05-26-2007, 01:38 AM   #7
myviolet
LQ Newbie
 
Registered: Mar 2007
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by theYinYeti
With Mandriva 2007:
Code:
[root@mandriva ~]# modinfo moxa
filename:       /lib/modules/2.6.17-5mdv/kernel/drivers/char/moxa.ko.gz
author:         William Chen
description:    MOXA Intellio Family Multiport Board Device Driver
license:        GPL
vermagic:       2.6.17-5mdv SMP mod_unload 686 gcc-4.1
depends:
alias:          pci:v00001393d00002180sv*sd*bc*sc*i*
alias:          pci:v00001393d00003200sv*sd*bc*sc*i*
alias:          pci:v00001393d00002040sv*sd*bc*sc*i*
parm:           verbose:bool
parm:           ttymajor:int
parm:           numports:array of int
parm:           baseaddr:array of int
parm:           type:array of int
HTH

Yves.
i had the same problem with MOXA NPORT5410
Below is what i did to resolve:

reinstall REDHAT 9, Make sure you select customize installation, and then select "install everything"

then install your MOXA 1.13 driver, it should work
 
Old 05-26-2007, 10:46 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Centos 5 is a free clone of Redhat(basically logos removed). Running Redhat 9 is like running Windows 98.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php read from file and compare. xushi Programming 11 07-14-2005 01:10 PM
Is Licensed copy of Unix or Linux needs cash? pls compare with licensed windows.... nazib Linux - General 11 02-13-2005 03:20 PM
Windows vs Linux - complainers read AndyOz Linux - Newbie 35 11-25-2003 09:09 PM
Why application on linux running slow compare on Windows? garyura Linux - General 15 08-28-2002 05:12 PM


All times are GMT -5. The time now is 10:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration