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 | |
| 269 | Untarring the package will create the directory NF2. |
| 270 | |
| 271 | 2. Edit files/ symlinks as per compatibility page [[BR]] |
| 272 | |
| 273 | Create links: |
| 274 | {{{ |
| 275 | ln /usr/bin/lspci /sbin/lspci |
| 276 | ln /usr/bin/setpci /sbin/setpci |
| 277 | ln -s /usr/lib/libpcap.so.0.8 /usr/lib/libpcap.so.0.8.3 |
| 278 | }}} |
| 279 | |
| 280 | test_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 | |
| 282 | NF2/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 | |
| 287 | 3. Edit and run user_account_setup.pl [[BR]] |
| 288 | The 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 | |
| 292 | The easiest thing to do is to edit the script to contain the exact path to your NF2 directory and bashrc_addon: |
| 293 | {{{ |
| 294 | else |
| 295 | { |
| 296 | print "Copying the NF2 directory to your user account\n"; |
| 297 | `cp -r /home/netfpga/NF2 ~`; |
| 298 | } |
| 299 | |
| 300 | print "Adding the NetFPGA Enviornment Variables to your .bashrc\n"; |
| 301 | `cat /home/netfpga/NF2/bashrc_addon >> ~/.bashrc\n`; |
| 302 | }}} |
| 303 | Then 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 |
| 306 | Adding the NetFPGA Enviornment Variables to your .bashrc |
| 307 | }}} |
| 308 | |