Moxa Technologies user manual Industio CP-134U Series User’s Manual

Models: CP-134U

1 87
Download 87 pages 51.18 Kb
Page 58
Image 58
/* copies boot image to the correct position */

# mv mxser.c mxser.c.old

For Red Hat 7.x users, you must create a link:

#cd /usr/src

#ln -s linux-2.4 linux

2.Create link

#cd /usr/src/linux/drivers/char

#ln -s /moxa/mxser/driver/mxser.c mxser.c

3.Configure the kernel:

#cd /usr/src/linux

#make menuconfig

You will go into a menu-driven system. Please select [Character devices][Non-standard serial port support], enable the [Moxa SmartIO support] driver with "[*]" for built-in (not "[M]"), then select [Exit] to exit this program.

4.Rebuild kernel

The following instructions explain how to rebuild the Linux kernel, and are included here for your reference (for more details, refer to the Linux documentation in directory cd/usr/src/linux).

make clean

/* takes a few minutes */

make dep

/* takes a few minutes */

make bzImage

/* takes about 10-20 minutes */

make install

/* copies boot image to the correct position */

Make sure the boot kernel (vmlinuz) is in the correct position.

If you use the 'lilo' utility, you should check the /etc/lilo.conf 'image' item specified in the 'vmlinuz' path, or you will load the wrong (or old) boot kernel image (vmlinuz). After checking /etc/lilo.conf, run "lilo".

Note that if the result of "make bzImage" is ERROR, then you must go back to the Linux configuration setup. Type "make menuconfig" from directory /usr/src/linux.

5.Make tty device and special file

#cd /moxa/mxser/driver

#./msmknod

6.Make utility

#cd /moxa/mxser/utility

3-42 Industio CP-134U Series User’s Manual

Page 58
Image 58
Moxa Technologies user manual Industio CP-134U Series User’s Manual, copies boot image to the correct position