Install the Adlink C518 or C588 RS232 card
From SubfireWiki
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.
- 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
- 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
- Move the Linux.zip file into the downloaded_drivers folder.
- Rename alnxsrc.Z to alnxsrc.tar.Z
- Right click on it and choose "Extract Here"
- To keep the paths short, move the rayon folder in the newly created 'etc' to the adlink-c588 folder.
- Open a terminal and execute these commands:
- cd drivers/adlink-c588/rayon
- 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)
- 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
- 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'
- The drivers have now been built. Proceed to loading them.
Loading the driver
- Manually:
- Open a terminal and execute these commands
- cd drivers/adlink-c588/rayon
- su -c 'insmod pciport.o'
- Automatically:
- 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.