| 128 | === installing !OpenFlow on NetFPGA === |
| 129 | |
| 130 | General directions are found here: http://netfpga.org/netfpgawiki/index.php/OpenFlow-NetFPGA-090 |
| 131 | |
| 132 | In order to install !OpenFlow on the FPGA you need both the netFPGA !OpenFlow switch driver and the actual !OpenFlow software. |
| 133 | * netFPGA-OpenFLow-switch package : http://netfpga.org/beta/distributions/netfpga_openflow_switch.0_9_0-1.tar.gz (you need an account to access it) |
| 134 | * !OpenFlow : use git (directions below) |
| 135 | |
| 136 | Don't bother with the ./install.sh stuff under the '' Usage '' section of the directions found at netfpga.org, since they are custom-fitted for CentOS. Instead, the directions found at [http://openflowswitch.org/wk/index.php?title=CentOS_Install openflowswitch.org] should be referenced. The directions need to be modified slightly for Ubuntu: |
| 137 | |
| 138 | 1. ''' Install Dependencies ''' |
| 139 | |
| 140 | The following are needed to install everything properly (you should be able to `apt-get install` these): |
| 141 | * git-core (recommended) |
| 142 | * curl - dependency for Git that does not get installed properly due to a known bug in some versions of Ubuntu |
| 143 | * autoconf |
| 144 | * automake |
| 145 | * libtool |
| 146 | * gcc |
| 147 | * pkg-config |
| 148 | |
| 149 | The stuff needed to build kernel modules: |
| 150 | * linux-kernel-devel |
| 151 | * kernel-package |
| 152 | * linux-libc-dev |
| 153 | |
| 154 | |
| 155 | 2. ''' Install ''' [[BR]] |
| 156 | |
| 157 | The commands, as per the CentOS install page at openflow.org: |
| 158 | {{{ |
| 159 | git clone git://openflowswitch.org/openflow |
| 160 | cd openflow |
| 161 | ./boot.sh |
| 162 | }}} |
| 163 | Reboot the machine, then build the kernel modules: |
| 164 | {{{ |
| 165 | ./configure --with-l26=/lib/modules/`uname -r`/build |
| 166 | make |
| 167 | sudo make install |
| 168 | }}} |
| 169 | |
| 170 | 3. ''' Check that all is well/ the kernel modules exist: ''' |
| 171 | |
| 172 | the command |
| 173 | {{{ |
| 174 | ls <path-to-your-openflow-directory>/datapath/linux-2.6 | grep ofdatapath |
| 175 | }}} |
| 176 | should bring up the following 2 things: |
| 177 | * ofdatapath.ko |
| 178 | * ofdatapath_netfpga.ko |
| 179 | |