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

Models: CP-134U

1 87
Download 87 pages 51.18 Kb
Page 60
Image 60
Custom configuration

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" in directory /usr/src/linux.

6.Make tty device and special file

#cd /moxa/mxser/driver

#./msmknod

7.Make utility

#cd /moxa/mxser/utility

#make clean; make install

8.Reboot

Custom configuration

Although this driver already provides you with a default configuration, you can still change the device name and major number. The instructions for changing these parameters are given below.

Change Device name

If you'd like to use other device names instead of default naming conventions, all you need to do is modify the internal code within the shell script "msmknod". First, you have to open "msmknod" with vi. Locate all lines that contain "ttyM" and "cum" and change them to the device name of your choice. "msmknod" creates the device names that will be used the next time executed.

Change Major number

If the major numbers 30 and 35 are already being used, you will need to select 2 free major numbers for this driver. There are 3 steps required to change major numbers.

1.Find free major numbers

Look in /proc/devices to find all major numbers used by the system. Select 2 major numbers that are available: e.g., 40, 45.

2.Create special files

Run /moxa/mxser/driver/msmknod to create special files with the specified major numbers.

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

Page 60
Image 60
Moxa Technologies user manual Custom configuration, Industio CP-134U Series User’s Manual