Install the Adlink C518 or C588 RS232 card

From SubfireWiki

Jump to: navigation, search

Download and Install the driver

  • This driver is particularly ugly to install. Their install script doesn't seem to completely work, and it also does some very odd things. I have extracted the important parts of the script and list them here.
  1. Download the driver from http://www.adlinktech.com/PD/Download/PD_Driver.php?PDNo=249
    • You will need to give them your email address
    • Choose the Kernel 2.4.18 version
  2. Create a folder called adlink-c588 in the drivers directory and extract the contents of the downloaded Linux.zip
    • This should leave you with a folder called 'Linux' which contains a text file and a file called alnxsrc.Z
  3. Move the Linux.zip file into the downloaded_drivers folder.
  4. Rename alnxsrc.Z to alnxsrc.tar.Z
  5. Right click on it and choose "Extract Here"
  6. To keep the paths short, move the rayon folder in the newly created 'etc' to the adlink-c588 folder.
  7. Open a terminal and execute these commands:
    1. cd drivers/adlink-c588/rayon
    2. gedit source/pciport/pciport.v407.c
      • Use the "Search/Go to Line... " option to go to line 2287
      • Replace "tty->count" with atomic_read(&tty->count)
    1. gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -march=i486 -mcpu=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -DCPU=586 -DMODULE -c -o pciport.o source/pciport/pciport.v407.c
    2. su -c 'for ((DEV=0; DEV<8; DEV++)); do mknod /dev/adlinkttyS${DEV} c 19 $((16+DEV)); chgrp hwtester /dev/adlinkttyS${DEV}; chmod g+w /dev/adlinkttyS${DEV}; done'
  8. The drivers have now been built. Proceed to loading them.

Loading the driver

  • Manually:
    1. Open a terminal and execute these commands
      1. cd drivers/adlink-c588/rayon
      2. su -c 'insmod pciport.o'
  • Automatically:
    1. Add "insmod /home/hwtester/drivers/adlink-c588/rayon/pciport.o" to the /etc/rc.local file.

Testing the card

  • No procedure yet, but the serial_test program in csiproject/src should do some run some tests at some point.
Personal tools