Changes between Version 12 and Version 13 of Internal/OpenFlow/HostSetup


Ignore:
Timestamp:
Jan 24, 2010, 10:42:18 PM (14 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/HostSetup

    v12 v13  
    215215The goal of this project is to set up two NetFPGA hosts as !OpenFlow switches capable of tunneling. The hosts we are going to be using are the NetFPGA pre-built quad-core rack PCs ([http://www.accenttechnologyinc.com/product_info.php?products_id=5 found here]). Although the PC's come with CentOS pre-installed with the proper drivers needed for the NetFPGAs, we want to use Ubuntu. This section will document the steps needed to build a host running Ubuntu 9.10 Server Edition.
    216216
    217 We saved the HDD w/ CentOS that came with the PC.
     217Note: We saved the HDD w/ CentOS that came with the PC.
    218218
    219219=== References ===
     
    255255  * libpcap0.8-dev
    256256
    257 === 2. Installing NetFPGA Drivers === 
    258  
     257== 2. Installing NetFPGA Drivers ==
     258Steps described by the NetFPGA tunneling page:
     259 1. Install base package
     260 2. Install !OpenFlow components
     261
     262=== 1. Installing base package ===
     263
     2641. Download the tarballs from http://netfpga.org/beta/distributions/  [[BR]]
     265For this you need a !FosWiki account (register [http://www.netfpga.org/foswiki/bin/view/System/UserRegistration?skin= here]). Download the newest netfpga_base_beta package (currently 2.0.0). Untar:
    259266   
    260  * FosWiki account (for downloading tarballs): register [http://www.netfpga.org/foswiki/bin/view/System/UserRegistration?skin= here] 
    261  
    262 
    263  * packages (you need a !FosWiki account): http://netfpga.org/beta/distributions/
    264 
    265 
    266  
    267  
     267 tar -xvf netfpga_base_beta_2_0_0.tar.gz
     268   
     269Untarring the package will create the directory NF2. 
     270
     2712. Edit files/ symlinks as per compatibility page [[BR]]
     272
     273Create links:
     274{{{
     275ln /usr/bin/lspci /sbin/lspci
     276ln /usr/bin/setpci /sbin/setpci
     277ln -s /usr/lib/libpcap.so.0.8 /usr/lib/libpcap.so.0.8.3
     278}}}
     279
     280test_loopback_drop/run has been renamed run.pl in the most recent package. In this file you just need to change 'usleep 250' to 'sleep 0.00025'. 
     281
     282NF2/lib/C/kernel/Makefile is already in working condition - you don't need to modify it.
     283
     284*Stopped at this point: The IRQF_SHARED flag is deprecated in kernels greater than 2.6.24. Instead, the SA_SHIRQ flag is used in include/linux/interrupt.h . in Ubuntu compatibility page**   
     285
     286
     2873. Edit and run user_account_setup.pl [[BR]]
     288The script sets environmental variables. It is located under /NF2/lib/scripts/user_account_setup/ . Running it as is will throw an error saying
     289
     290 cat: /usr/local/NF2/bashrc_addon: No such file or directory   
     291 
     292The easiest thing to do is to edit the script to contain the exact path to your NF2 directory and bashrc_addon:
     293{{{
     294else
     295{
     296  print "Copying the NF2 directory to your user account\n";
     297  `cp -r /home/netfpga/NF2 ~`;
     298}
     299
     300print "Adding the NetFPGA Enviornment Variables to your .bashrc\n";
     301`cat /home/netfpga/NF2/bashrc_addon >> ~/.bashrc\n`;
     302}}}
     303Then it will run correctly (here NF2 is already in the home directory)
     304{{{
     305$ ./user_account_setup.pl NF2 directory already exists copy has been canceled
     306Adding the NetFPGA Enviornment Variables to your .bashrc
     307}}}
     308