Electronics

Setting up Quartus II

I installed the Quartus 2 software onto a clean install of Centos 5 32 bit (I.E. RHEL 5) on an olo laptop I had sitting around. I did this because I wanted to minimise problems. Here is a log of how I got along.

I had a bit of a job installing this software.

The first problem I had was the ISO image was too big to fit onto a DVD. If I had a dual-layer writer I guess it would be OK, but my single layer DVD would only hold 4.5 of the 7.2GB filesystem! Instead I downloaded it to the hard disk and mounted it as a loopback filesystem and started the installer.

Then I got the error:

quartus_map: error while loading shared libraries: <path to quartus/bin>/libcd_err.so: cannot
restore segment prot after reloc: Permission denied.

A quick look o t'internet revealed this was SELinux complaining about the shared librares and this Altera knowledgebase post gave the solution to the problem.

Then the install trundled on almost to the end and gave me this error:

*** Fatal Error: Illegal Instruction
Module: quartus
Stack Trace:
0x439d: safer_scalable_free + 0x260 (tbbmalloc.so.2)
0x91bb: __TBB_internal_free + 0x29 (tbbmalloc.so.2)
0xcf3: free + 0x1d (tbbmalloc_proxy.so.2)
0xaeb: mem_native_delete(void*) + 0x1b (ccl_mem_native)

The Altera installation FAQ gave no clues, and at first I found little on Google. I eventually found this post on the Altera forum that gave me a clue. To fix this I installed the Centos tbbmalloc package by installing dev-cpp/tbb. To be honest I cant remember exactly what I did, but I think I just used yum and it resolved the dependencies.

After installing this, I found the altera files in quartus/linux/libtbbmalloc* and moved them to a new directory quartus/linux/save . This meant that quartus 2 would look for them, not find them, and use the system libraries. I rebooted to make sure anything that managed to load was unloaded.

At this point Quartus II ran, and I was able to compile a simple design.

The final problem i discovered when I tried to program a device for the first time. It did not detect the USB Blaster when plugged in. Back to the Altera FAQ and I found a knowledgebase article to show you how to enable the Linux Driver.

Shortly after this I had programmed my first CPLD!

This whole process took FAR TOO LONG considering I was using a virgin install of the OS that Altera recommend. They really should have sorted the install process out.

Version 2 updated 24 Dec 2013, 11:58 a.m.