This document describ how to build and install
the MOXA Smartio/Industio UART driver for UC

Following steps describe how to build and install the serial device dirver for UC-74XX

1. Pre-request:
    a. MOXA XSale cross compile tool chain
    b. Linux kernel source code for UC
	
2. How to build the serial driver

    a. Install the MOXA XSale tool chain
        
        # rpm -ivh mxscaleb-3.3.2-6.i386.rpm
        
    b. Un-compress the Linux kernel source code
        
        # tar xzvf kernel.tar.bz2
        
    c. Check directory settings in files makefile and Edit them to fit your need.
       In this case, we put the kernel source code in the parent directory.
    
        KERNELSRC = ../kernel/include
        
    d. Build the serial driver
        
        # make
        
2. How to install the serial driver

    a. After building the serial driver, you can upload the serial driver to UC by FTP or NFS.
    
    b. put the serial driver to the following directory (replace the old one)
       When you reboot UC, the serial driver will be loaded into kernel automatically.
       ( The serial driver is probe at /etc/init.d/rcS )
    
        /lib/modules/2.4.18_mvl30-ixdp425/kernel/drivers/serial/
    
3. How to load and unload the serial driver into kernel without reboot?
   
    a. list all modules in kernel
       You can see the 'mxser' loaded in kernel
       
        # lsmod

    b. Unload the serial driver from kernel
    
        # rmmod mxser
        
       After that, list all modules in kernel you can see 'mxser' is disappeared
   
    c. Load the serial driver into kernel
    
        # modprobe mxser
