Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.