Drivers Lattice

This file installs the Silicon Image Serial ATA Raid 5 driver for the SiI 3132 controller NOTE: - Use this driver with the latest BASE BIOS to access non-RAID hard disk drives, CD-ROMs, CDRWs, DVD-ROMs, and DVD-RWs. Database Drivers. Windows is bundled with ODBC libraries; however, drivers for each database need to be installed separately. Windows ODBC drivers typically include an installer that must be run to install the drivers in the proper locations.

For Unix and MacOS, ODBC drivers should be compiled againstunixODBC. Drivers compiled against iODBCmay also work, but are not fully supported.

After installation of the driver manager and driver, you will have toregister the driver in a odbcinst.ini file for it to appear in odbc::odbcListDrivers().

Microsoft Windows

Database Drivers

Windows is bundled with ODBC libraries; however, drivers for each databaseneed to be installed separately. Windows ODBC drivers typically include aninstaller that must be run to install the drivers in the properlocations.

Administration

The ODBC Data Source Administratorapplication is used to manage ODBC data sources on Windows.

Apple MacOS

Installation

  1. Install homebrew to install database drivers easily on MacOS

  2. Install UnixODBC, which is required for all databases
  1. Install common DB drivers (optional)

Setting up database connections

See the section with the same name in the Linux section.

Linux Debian / Ubuntu

Installation

The apt-get command can be used to install databasedrivers easily on Linux distributions that support it, such as Debian and Ubuntu.

  1. Install UnixODBC, which is required for all databases
SiI3132 - PCI Express (1x) to 2 Port SATA300 (64-Bit)
  1. Install common DB drivers (optional)

Setting up database connections

Drivers

On MacOS and Linux, there are two separate text files that need to be edited.UnixODBC includes a command-line executable called odbcinst, which can be used toquery and modify the DSN files. However, these are plain text files youcan also edit by hand if desired.

There are two different files used to set up the DSN information:

  • odbcinst.ini defines driver options

  • odbc.ini defines connection options

odbcinst.ini

This file contains the driver information, particularly the name of the driver library.Multiple drivers can be specified in the same file.

odbc.ini

This file contains the connection information, particularly the username, password, databaseand host information. The Driver line corresponds to the driver defined inodbcinst.ini.

See also: unixODBC without the GUI for more information and examples.

Location

The DSN configuration files can be defined globally for all users of thesystem, often at/etc/odbc.ini or /opt/local/etc/odbc.ini. The file location depends onwhat option was used when compiling unixODBC; odbcinst -j can be used to findthe exact location. Alternatively, the ODBCSYSINI environment variable can beused to specify the location of the configuration files. Ex. ODBCSYSINI=~/ODBC

A local DSN file can also be used with the files ~/.odbc.ini and ~/.odbcinst.ini.

Connecting to a Database in R

Databases can be connected by specifying a connection string directly, or withDSN configuration files.

Connection Strings

Pass the connection parameters as arguments to the dbConnect() function.

For database-specific settings, go to the Databases section in the menu and look for the page that matches the desired database type.

DSN Configuration files

Drivers Lattice

ODBC configuration files are another option to specify connection parameters; theyallow you to use a Data Source Name (DSN) to make it easier to connect to a database.

For more information about how DSN can be used, check out the following articles in this site:

Lattice Diamond is a design software for Lattice FPGA architectures.

Arch Linux is not officially supported by Lattice Diamond, but as happens with other HDL suites like Xilinx ISE WebPACK or Xilinx Vivado, most of its features can be used with a bit of hacking.

Prerequisites

Lattice provides only 64-bit builds of the suite. So you will need a working 64-bit installation of Arch Linux.

Installation

Just install lattice-diamondAUR. Note that the installation size is big (around 4 GB), so generating the package might take some time due to the compression stage. If you want to shorten building the package, edit the PKGBUILD file to avoid compressing it.

Licensing

You can request a free license to Lattice Semiconductor (registration needed). These licenses are node-locked (tied to the MAC of your Ethernet card). Once you have the license file, copy it to /usr/local/diamond/3.11_x64/license/license.dat to be able to start the Diamond programs.

Note that in case one does have the relevant hardware or wants to uncouple Diamond from it, it is possible to create a dummy ethernet interface with an arbitrarily chosen MAC address. See MAC address spoofing#Manually, or add a new dummy interface like this:

Load the relevant kernel module and create the interface with the MAC address:

SiI3531 32-bit Windows SATARAID5 Drivers

Cleanup for after Diamond exits:

Troubleshooting

Place & Route fails

If Place & Route fails with message ERROR - par: Switch '-msgsegset' is not allowed., try deleting the promote.xml file in the root directory of your project and launch it again. It should now run normally.

Programming with FTDI cables doesn't work

Programming FPGAs with FTDI chip based cables will not work if ftdi_sio kernel module is loaded. After plugging the programmer run:

Now the programmer should work until you re-attach it again (so you must run the command above every time the programmer is plugged).

Diamond crashes when FTDI based serial interface exists on a Lattice starter kit

The 'Lattice Diamond 3.9 Installation Notice for Linux' document describes how to manually setup the serial driver but naming the udev rule as explained in that document does not work. Below are the instructions that work.

1. Find your username which is given in /etc/group file. Log out if required.For example :

username:x:1000:

2. Create a working file called 51-lattice.rules.

3. Add the following information to the 51-lattice.rules file:

SiI3132 - PCI Express (1x) To 2 Port SATA300 (64-Bit)

  • Lattice - from Lattice Diamond 3.9 Installation Notice for Linux p.20 and https://github.com/jandob/lattice-diamond-archlinux showing a higher number used for the .rules file
  • FTDI

Drivers Latitude 5490

Retrieved from 'https://wiki.archlinux.org/index.php?title=Lattice_Diamond&oldid=597681'