toshi's blog

Quartus Prime Lite on Debian9 memo

Quartus Prime Lite does not officially support Debian though...

Download 'Quartus-lite-', expand tar file and execute can be done on Debian9.  However, /opt/intelFPGA_lite/17.0/quartus/linux64/quartus cannot be started due to no found.  After hours of web search, I've found it can be downlaod .deb package for Ubuntu and it worked.


CUDA 9 issue: Got an error '__CUDACC_VER__ is no longer supported.' while compiling QtPlatz

I've prepared new debian 9 install on HP 640 Workstation equipped with Quadro M4000 GPU.  Install CUDA 9 RC (, and all dependent software for QtPlatz build.  I got an error while compiling as "__CUDACC_VER__ is no longer supported." message.  After few hours search, I've figured out it came from include/boost/config/compiler/nvcc.hpp.

Just dirty hack, comment out the line, then cuda compilation went through.



Kernel module build on DE0-nano-SoC and/or Sodia

Copy corrensponging linux source to /usr/src, then configure kernel.

After we have .config, then 

make modules_prepare

Don't forget

DE0-nano-SoC: CAN Netowrk should be disabled




Debian install to Sodia board from Macnica

Debian install to Sodia board from Macnica


Create an SD Dard Image for Debian on Sidia Macnica

Create an SD Dard Image for Debian on Sidia Macnica


Build linux 4.4.52 kernel and debian 8 root file system based on this page.

Extract boot loader & u-boot from sodia image file

Our goal is to make a minimum debian system on Sodia board for fast data acquisition system development.  It can be re-used for boot process files by copy from provided file.


Quartus Prime Lite USB-Blaster install on Debian Jessie

USB Driver permissions

Edit /etc/udev/rules.d/51-usbblaster.rules as following;

# Altera USB-Blaster for Quartus FPGA Software
ACTION=="add|change", SUBSYSTEM=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6010|6810",TAG+="uaccess"

Then run:

$ sudo udevadm control --reload

Execute jtagconfig

 $ jtagconfig
1) DE-SoC [3-1.1]
  4BA00477   SOCVHPS
  02D010DD   5CSE(BA4|MA4)/5CSXFC4C6


Kill jtagd if already running, then run jtagd in debug mode


CUDA 8.0 Sample Compile (on Debian 8.6)

sudo apt-get install freeglut3-dev

Goto NVIDIA_CUDA-8.0_Samples directory, run make as following; 

GLPATH=/usr/lib/x86_64-linux-gnu make

OpenCV Install Memo



NVIDIA/caffe build memo

Here is the brief memo where I've installed NVIDIA/DIGITS and Caffe


  • Make sure boost.python is built
  • Don't mix protobuf 2.x and 3.x.  It works with protobuf-3.1.0 as long as relevant modules are using 3.1.0 version consistantly.
  • Dependency.cmake under caffe/cmake directory mssing ${HDF5_HL_LIBRARIES} at line 28 that leads link error as described bellow.
  • nccl module need to be built for multi-GPU enabled.  See

Setting up Debian Jessie desktop

This is the memo when install debian on my working machine.



Subscribe to RSS - toshi's blog

User login