
5 Linux Driver
1. In “/boot/grub/menu.lst” is a (Comment-) line with “kopt=”-Entry and text “8250.nr_uarts”.
This line shall remain there as a comment, the new value should be “8250.nr_uarts=32”. Or
any number appropriate for the new configuration.
2. Run update-grub. After that check if the above parameter is available as Kernel Entry in
the file “menu.lst”. The entries from the kopt-line shall appear as extension after running
update-grub.
3. Copy “vscardcfg64” for 64 bit systems to “/usr/local/bin”.
4. Program “/usr/local/bin/vscardcfg64” is added to “/etc/rc.local”, to run it at boot time.
You may add an “echo” to show an explaining text when the system boots.
On 32 bit systems the program is ’vscardcfg’ of course. Additionaly steps 3 and 4 are only required
if ’serial’ does not identify the card. Most models have been submitted as patch information to
’serial’, later models will get direct support later.
5.4 Card Hardware Parameters
This is a list of all VScom cards available at time of writing. The given values will show how to
identify the model, get the configuration of the card and thus extract the parameters of the serial
ports.
For example in “/proc/pci” you’ll find information about a VScom 800L UPCI card like this:
Bus 0, device 11, function 0:
Serial controller: Unknown vendor Unknown device (rev 0).
Vendor id=14d2. Device id=8080.
Medium devsel. Fast back-to-back capable. IRQ 10.
I/O at 0xb000. [BAR0]
I/O at 0xa800. [BAR1]
I/O at 0xa400. [BAR2]
I/O at 0xa000. [BAR3]
I/O at 0x9c00. [BAR4]
The text in brackets is added here as a comment. Please note Vendor- and Device-ID, as well as
the IRQ. I/O addresses are given as BAR<n>, where <n> is from 0 to 5, depending on the model
of the card. Serial ports are supported via I/O ranges, and all ports on one card share the same
IRQ.
Each BAR may represent several serial ports, or none at all. If there is one serial port, the given
address is the address of the port. If there are more serial ports, they are located at the given
address, plus an offset of 8 from port to port. In this example of VScom 800L UPCI the serial
ports are located at 0xA800, 0xA400, 0x9C00, 0x9C08, 0x9C10, 0x9C18, 0x9C20 and 0x9C28. The
IRQ is 10, obviously.
In the table below this is given like BAR1, BAR2, BAR4:6. The table lists the card name, Vendor-
and Device-ID (14d2:8080 here) and the uart model. For all VScom PCI cards baud_base is 921600,
unless this is explicitely configured otherwise (chapter 3).
July 2011 VScom Industrial Card User Manual 44
Comentarios a estos manuales