How To Install xc3sprog on Kali Linux

In this tutorial we learn how to install xc3sprog on Kali Linux. xc3sprog is JTAG flashing tool for FPGAs, CPLDs and EEPROMs

Introduction

In this tutorial we learn how to install xc3sprog on Kali Linux.

What is xc3sprog

xc3sprog is:

xc3sprog is a suite of utilities for programming Xilinx FPGAs, CPLDs, and EEPROMs with the Xilinx Parallel Cable and other JTAG adapters under Linux. xc3sprog runs as a command-line application.

The main features include:

  • Reading a .BIT file from Xilinx design tools and programming it into an FPGA.
  • Reading a JEDEC file and programming it into a CPLD.
  • Programming a .BIT file into an on-board configuration PROM.
  • Programming a binary image into on-board SPI flash memory.
  • Reading the contents of a PROM chip back to a file.
  • Programming AVR microcontrollers.

The functionality of xc3sprog is similar to that of Xilinx IMPACT. There are also similarities with other free JTAG tools, such as UrJTAG. However, xc3sprog has a number of advantages:

  • xc3sprog is free software.
  • It is a command-line tool.
  • It works on Linux without the need to install binary “cable-drivers”. (Although some types of JTAG cables need to load firmware.)
  • It uses an optional configuration file to recognize new JTAG devices.
  • It contains programming algorithms for the supported devices, enabling the direct use of binary files (.BIT / JEDEC) from design tools (as opposed to intermediate SVF/STAPLE files).

There are three methods to install xc3sprog on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install xc3sprog Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install xc3sprog using apt-get by running the following command:

sudo apt-get -y install xc3sprog

Install xc3sprog Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xc3sprog using apt by running the following command:

sudo apt -y install xc3sprog

Install xc3sprog Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install xc3sprog using aptitude by running the following command:

sudo aptitude -y install xc3sprog

How To Uninstall xc3sprog on Kali Linux

To uninstall only the xc3sprog package we can use the following command:

sudo apt-get remove xc3sprog

Uninstall xc3sprog And Its Dependencies

To uninstall xc3sprog and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove xc3sprog

Remove xc3sprog Configurations and Data

To remove xc3sprog configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge xc3sprog

Remove xc3sprog configuration, data, and all of its dependencies

We can use the following command to remove xc3sprog configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xc3sprog

Dependencies

xc3sprog have the following dependencies:

References

Summary

In this tutorial we learn how to install xc3sprog package on Kali Linux using different package management tools: apt, apt-get and aptitude.