Changes between Version 37 and Version 38 of Internal/OpenFlow/HostSetup
- Timestamp:
- Jun 1, 2010, 10:43:16 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/HostSetup
v37 v38 6 6 7 7 '''Linux distro:''' [[BR]] 8 Ubuntu Server 10.04, w/ xfce4 WM [[BR]]8 Ubuntu Server 10.04, w/ xfce4 WM, openssh-server [[BR]] 9 9 kernel: 2.6.32-21-generic-pae 10 10 … … 19 19 === Installing Ubuntu. === 20 20 21 1. set boot priority of CD drive to 1st 22 2. If desktop edition, boot as a live CD and install from there. Trying direct install just result ed in the system starting up BusyBox (9.10) or justproceeding to live CD Mode (10.04). Server edition can be installed directly w/out issues.21 1. set boot priority of CD drive to 1st in BIOS 22 2. If desktop edition, boot as a live CD and install from there. Trying direct install just results in the system proceeding to live CD Mode (10.04). Server edition can be installed directly w/out issues. 23 23 24 24 === Setup: NetFPGA drivers. === 25 '''1. dependencies.'''[[BR]] 25 ==== 1. dependencies. ==== 26 26 There is an updated dependency list: 27 27 … … 37 37 * libpcap0.8-dev 38 38 39 in 10.04, sun-java6-jre, jdk are obsoleted and moved to the partner repository. This repository can be added w/ the following (ref: https://help.ubuntu.com/community/Repositories/CommandLine):39 '''Installing java packages.''' In 10.04, sun-java6-jre, jdk are obsoleted and moved to the partner repository. This repository can be added w/ the following (ref: https://help.ubuntu.com/community/Repositories/CommandLine): 40 40 41 1. copy "deb http://archive.canonical.com/ lucid partner" sans quotes to /etc/apt/sources.list41 1. copy "deb !http://archive.canonical.com/ lucid partner" sans quotes to /etc/apt/sources.list 42 42 1. run apt-get update. 43 43 1. run apt-get as usual for the packages. 44 44 45 '''2. Kernel memory allocation. '''[[BR]] 45 ==== 2. Kernel memory allocation. ==== 46 46 Ubuntu versions beyond 8.04 (assume anything w/ kernels beyond v 2.6.28) use GRUB 2. GRUB 2 gets rid of menu.lst, so kernel memory must be allocated via the following method (ref. http://ohioloco.ubuntuforums.org/showthread.php?p=8229620): 47 47 48 Add "vmalloc=512m" to the following linein /etc/default/grub so it looks like this:48 Add "vmalloc=512m" to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub so it looks like this: 49 49 {{{ 50 50 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vmalloc=512m" 51 51 }}} 52 52 Then run `update-grub` to regenerate /boot/grub/grub.cfg with the new parameter (you never want to modify grub.cfg directly). 53 [[BR]]54 '''3. Symlinks.'''[[BR]][[BR]]55 The steps are the same as before...Make sure to slap things into /usr/lib before linking.56 53 57 '''4. Edit files.''' 54 ==== 3. Symlinks. ==== 55 The steps are the same as before. Download libpcap.so.0.9.4, found below. Make sure to slap it into /usr/lib before linking. 56 {{{ 57 ln /usr/bin/lspci /sbin/lspci 58 ln /usr/bin/setpci /sbin/setpci 59 ln -s /usr/lib/libpcap.so.0.9.4 /usr/lib/libpcap.so.0.9 60 ln -s /usr/lib/libpcap.so.0.9.4 /usr/lib/libpcap.so.0 61 ln -s /usr/lib/libpcap.so.0.9.4 /usr/lib/libpcap.so 62 }}} 63 64 ==== 4. Edit files. ==== 58 65 * edit "usleep 250" to "sleep 0.00025" in /test_loopback_drop/run.pl 59 66 * edit /home/netfpga/NF2/projects/router_kit/sw/rkd.cc to include limits.h 60 67 61 '''5. Setting Variables.'''[[BR]] 68 ==== 5. Setting Variables. ==== 62 69 Scripts seemed broken, so manually export'd all of them. Specifics of variables pulled from README in base package root directory. 63 70 {{{ … … 67 74 }}} 68 75 69 '''6. Moment of truth.'''[[BR]] 70 `make` then `make install clean`. 71 72 check for nf2 module with `lsmod | grep nf2`: 76 ==== 6. Moment of truth. ==== 77 `make` then `make install`. [[BR]] 78 Then, check for nf2 module with `lsmod | grep nf2`: 73 79 {{{ 74 80 nf2 13425 0