LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Linux or Windows, read and compare! (https://www.linuxquestions.org/questions/linux-hardware-18/linux-or-windows-read-and-compare-555498/)

rusmosav 05-21-2007 04:30 AM

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.

rkelsen 05-21-2007 05:10 AM

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

rusmosav 05-21-2007 05:34 AM

modprobe moxa
module moxa not found

rusmosav 05-21-2007 05:36 AM

modprobe moxa
Module moxa not found

rkelsen 05-21-2007 05:58 AM

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? :confused:

theYinYeti 05-21-2007 06:00 AM

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.

myviolet 05-26-2007 01:38 AM

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

lazlow 05-26-2007 10:46 AM

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


All times are GMT -5. The time now is 04:41 PM.