-
Notifications
You must be signed in to change notification settings - Fork 140
LiveDVDInstall
Adam edited this page Jan 16, 2013
·
2 revisions
The LiveDVD provides an easier method for setting up a new system. It installs Fedora 13, the NetFPGA packages, and the necessary package dependencies. The LiveDVD does not install the CAD tools (eg. Xiliinx ISE, Modelsim) -- these must be done separately after installation of the LiveDVD.
The LiveDVD can be downloaded here: Fedora Core 13 with NetFPGA
- Boot from LiveDVD
- Wait for automatic login or click 'login'
- Click Desktop Icon "Install to Hard Drive"
- Click 'Next'
- Select Language
- Choose the storage devices ("Basic Storage Devices" is usually okay)
- Basic Storage Devices instructions:
- select the hard drive to use
- Enter a host name
- Select Time timezone/nearest city
- Enter root passwd
- Select installation type -- use all space for new installation
- Write changes to disk
- Click 'Close'
- Reboot
- Click 'Forward'
- Click 'Forward'
- Create user -- recommend creating an account 'tutorial'
- Date and time -- recommend sync date and time over network
- Click 'Forward' for NetFPGA Grub update
- Click 'Finish'
- Click 'OK' to reboot
The network interfaces are often ordered incorrectly after installation from the LiveDVD. For systems with a network interface on-board the motherboard and a dual-port PCI Express NIC, we recommend that the ports be ordered as follows:
- eth0: on-board interface
- eth1: PCI Express NIC
- eth2: PCI Express NIC
- Log in as 'tutorial' -- assuming you have an account named tutorial for the tutorial users
- Open terminal window
- Become root: su -
- Edit /etc/udev/rules.d/70-persistent-net.rules The file will look something like the example below -- of importance are the MAC address and name listed for each interface.
# This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x10de:0x0269 (forcedeth) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:92:b8:dc:b9", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x105e (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:20:bb:2a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x8086:0x105e (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:20:bb:2b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
Steps to follow only if the names assigned to any of the interfaces is incorrect:
- Change the NAME section on each line to place the interfaces in the correct order.
- Save and exit the editor.
- Migrate to the network-scripts directory: cd /etc/sysconfig/network-scripts
- Edit each of the files corresponding to the interfaces in the 70-persistent-net.rules file above (in this case: ifcfg-eth0, ifcfg-eth1, ifcfg-eth2)
- Each file should contain a line that specifies the hardware address. eg.: HWADDR=00:1A:92:B8:DC:B9 Set the hardware address in each file to the MAC address of the of the network interface to be used.
- Reboot the system
- Download the ISE 10.1 install (http://www.xilinx.com/csi/dlc-tab-10_1.htm)
- Unzip or untar the files
- Obtain License from Xilinx (http://www.xilinx.com/getlicense)
- Run setup
- Make sure to install updates (SP3 and IP3) when asked
- Install PCI32 core license for simulations (http://www.xilinx.com/products/ipcenter/DO-DI-PCI32-SP.htm)
- (Assuming the install path is /cad/xilinx/ise10.1/) Add the following to /etc/profile
# Xilinx version to use XILINX_ISE=10.1 # Source the Xilinx settings32.sh if [ -f /cad/xilinx/ise$XILINX_ISE/ISE/settings32.sh ] ; then unset LMC_HOME . /cad/xilinx/ise$XILINX_ISE/ISE/settings32.sh fi
- Login as 'tutorial' -- assuming you have an account named tutorial for the tutorial users
- Open terminal window
- Become root: su -
- Disable sshd for root. (SSH logins for root may be a security risk. Enable it only at your own risk):
- Edit /etc/ssh/sshd_config
- Add the line: PermitRootLogin no
- Run visudo and perform the following edits:
- Add Defaults env_delete -= ="PERL5LIB PYTHONPATH"=
- Add Defaults env_keep += ="NF_ROOT NF_DESIGN_DIR"=
- Change Defaults requiretty to Defaults <literal>!</literal> requiretty
- Add tutorial user privileges (assuming the user name is 'tutorial'): tutorial ALL=NOPASSWD: /home/tutorial/netfpga/projects/tutorial_router/sw/tut_router_gui.pl, /home/tutorial/netfpga/projects/tutorial_router/sw/tut_adv_router_gui.pl, /usr/bin/iperf, /home/tutorial/netfpga/lib/scripts/tutorial_setup/tutorial_setup.pl
- Install sample videos into /var/www/html/video
- Exit out of root back to local user
- Run: /usr/local/netfpga/lib/scripts/user_account_setup/user_account_setup.pl
- Run: sudo /usr/local/netfpga/lib/scripts/tutorial_setup/tutorial_setup.pl
- cd into ~/netfpga and Run: make
- Reboot