Skip to content

Instantly share code, notes, and snippets.

@addisonElliott
Last active October 26, 2017 15:25
Show Gist options
  • Save addisonElliott/761735591b1f11584aecb1292c449840 to your computer and use it in GitHub Desktop.
Save addisonElliott/761735591b1f11584aecb1292c449840 to your computer and use it in GitHub Desktop.
On October 26th 2017, I gave a presentation at SIUE regarding compiling and running a program on the DE10 Nano SoC. This contains notes and information regarding that.

Windows

  • Make sure to run Cygwin with Administrator permissions! To get a list of partitions, run: cat /proc/partitions

It should list off your partitions. It will map them to the letter drives so you can find out which device is yours. In my case, my drive was /dev/sdc1.

For Cygwin, check if fdisk is installed: fdisk --help. If it is not found, you will probably need to add /usr/sbin to your path in Cygwin. You can do this by adding export PATH="/sbin:/usr/sbin:$PATH" to .bash_profile (vi is installed by default on Cygwin). Running fdisk --help now should work.

Linux

To get a list of partitions, run: cat /proc/partitions

For Linix, it is better to use fdisk to analyze the disk. Run fdisk /dev/sd[a/b/x] where the letter is the letter of your drive. If you are not aware, then take a guess. Press i to get information about a partition and then press a partition number.

To get the Linux partition type, you can do file -sL /dev/sd[a/b]*

When building the header files, make sure you add this to your path. If sopc-create-header-files is not found, then it is probably because you don't have it in your path export PATH=/cygdrive/c/intelFPGA_lite/16.1/quartus/sopc_builder/bin:$PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment