Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Linux Desktop Install

Linux Desktop Install



If you are new to Linux, it is suggested that you start with Centos5 i386 32bit distro.You may find a step by step guide on Linux installation and usage from Redhat's doc or Centos' doc.

Install the required development packages on your Linux desktop, as root or sudo,

RHEL5/Centos5

For RHEL5/Centos5, enable EPEL at https://fedoraproject.org/wiki/EPEL.

# for RHEL5/Centos5 only

wget http://mirror.metrocast.net/fedora/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -Uvh epel-release-5-4.noarch.rpm


# for RHEL5/Centos5

yum install git-all git-gui tcsh make gcc ncurses-devel bison libglade2-devel \

byacc flex gawk gettext ccache zlib-devel gtk2-devel lzo-devel pax-utils e2fsprogs e2fsprogs-devel


#get the initial git files - This gets a bunch of tar files so they are not too big...

wget ftp://ftp.altera.com/outgoing/nios2-linux/20120802/* .


#check that they are right

md5sum --check files.md5sum


#extract the files - they will extract into a directory called nios2-linux

for i in $(ls nios2-linux-*.tgz); do tar -xzvf $i;done


#This should download the following

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/files.md5sum

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-3c120_default-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-base-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-binutils-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-boards-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-elf2flt-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-gcc3-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-glibc-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-insight-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-linux-2.6-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-openip-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-toolchain-build-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-toolchain-mmu-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-tools-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-u-boot-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-uClibc-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-uClinux-dist-20120802.tgz



# For mmu-less nios2 uCLinux, download the precompiled toolchain as well

wget ftp://ftp.altera.com/outgoing/nios2-linux/nios2gcc-20080203.tgz


#this extracts to nios2-gcc3, so if you want it in the nios2-linux dir add -C ./nios2-linux to the extract command

tar -xzvf nios2gcc-20080203.tgz



Fedora

#for Fedora

yum install git-all git-gui tcsh make gcc ncurses-devel bison libglade2-devel \

byacc flex gawk gettext ccache zlib-devel gtk2-devel lzo-devel pax-utils libuuid libuuid-devel



#get the initial git files - This gets a bunch of tar files so they are not too big...

wget ftp://ftp.altera.com/outgoing/nios2-linux/20120802/* .

#check that they are right

md5sum --check files.md5sum


#extract the files - they will extract into a directory called nios2-linux

for i in $(ls nios2-linux-*.tgz); do tar -xzvf $i;done


#This should download the following

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/files.md5sum

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-3c120_default-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-base-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-binutils-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-boards-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-elf2flt-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-gcc3-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-glibc-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-insight-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-linux-2.6-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-openip-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-toolchain-build-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-toolchain-mmu-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-tools-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-u-boot-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-uClibc-20120802.tgz

# ftp://ftp.altera.com/outgoing/nios2-linux/20120802/nios2-linux-uClinux-dist-20120802.tgz



# For mmu-less nios2 uCLinux, download the precompiled toolchain as well

wget ftp://ftp.altera.com/outgoing/nios2-linux/nios2gcc-20080203.tgz


#this extracts to nios2-gcc3, so if you want it in the nios2-linux dir add -C ./nios2-linux to the extract command

tar -xzvf nios2gcc-20080203.tgz



Fedora 17 USB Blaster udev rule

save this to /etc/udev/rules.d/51-usbblaster.rules

# USB-Blaster

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="0666", SYMLINK+="usbblaster-%k"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6002", MODE="0666", SYMLINK+="usbblaster-%k"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6003", MODE="0666", SYMLINK+="usbblaster-%k"


#USB-Blaster II

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6010", MODE="0666", SYMLINK+="usbblasterii-%k"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6810", MODE="0666", SYMLINK+="usbblasterii-%k"


Updated for Fedora 18 -


SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="0666", SYMLINK+="usbblaster/%k"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6002", MODE="0666", SYMLINK+="usbblaster/%k"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6003", MODE="0666", SYMLINK+="usbblaster/%k"


# USB-Blaster II

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6010", MODE="0666", SYMLINK+="usbblaster2/%k"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6810", MODE="0666", SYMLINK+="usbblaster2/%k"


Also see How to set up OpenSUSE11.2 for NIOS2 Linux.

Next step: Download Linux distribution for the Nios II processor


 

Version history
Revision #:
1 of 1
Last update:
‎06-25-2019 11:30 PM
Updated by:
 
Contributors