Changes between Version 37 and Version 38 of Internal/OpenFlow/HostSetup


Ignore:
Timestamp:
Jun 1, 2010, 10:43:16 PM (14 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/HostSetup

    v37 v38  
    66
    77'''Linux distro:''' [[BR]]
    8 Ubuntu Server 10.04, w/ xfce4 WM [[BR]]
     8Ubuntu Server 10.04, w/ xfce4 WM, openssh-server [[BR]]
    99kernel: 2.6.32-21-generic-pae
    1010
     
    1919=== Installing Ubuntu. ===
    2020
    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 resulted in the system starting up BusyBox (9.10) or just proceeding to live CD Mode (10.04). Server edition can be installed directly w/out issues.   
     211. set boot priority of CD drive to 1st in BIOS
     222. 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.   
    2323
    2424=== Setup: NetFPGA drivers. ===
    25 '''1. dependencies.'''[[BR]]
     25==== 1. dependencies. ====
    2626There is an updated dependency list:
    2727
     
    3737  * libpcap0.8-dev
    3838
    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):
    4040
    41  1. copy "deb http://archive.canonical.com/ lucid partner" sans quotes to /etc/apt/sources.list
     41 1. copy "deb !http://archive.canonical.com/ lucid partner" sans quotes to /etc/apt/sources.list
    4242 1. run apt-get update.
    4343 1. run apt-get as usual for the packages.
    4444
    45 '''2. Kernel memory allocation. '''[[BR]]
     45==== 2. Kernel memory allocation. ====
    4646Ubuntu 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):
    4747
    48 Add "vmalloc=512m" to the following line in /etc/default/grub so it looks like this:
     48Add "vmalloc=512m" to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub so it looks like this:
    4949{{{
    5050GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vmalloc=512m"
    5151}}}
    5252Then 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.
    5653
    57 '''4. Edit files.'''
     54==== 3. Symlinks. ====
     55The 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{{{
     57ln /usr/bin/lspci /sbin/lspci
     58ln /usr/bin/setpci /sbin/setpci
     59ln -s /usr/lib/libpcap.so.0.9.4 /usr/lib/libpcap.so.0.9
     60ln -s /usr/lib/libpcap.so.0.9.4 /usr/lib/libpcap.so.0
     61ln -s /usr/lib/libpcap.so.0.9.4 /usr/lib/libpcap.so
     62}}}
     63
     64==== 4. Edit files. ====
    5865 * edit "usleep 250" to "sleep 0.00025" in /test_loopback_drop/run.pl
    5966 * edit /home/netfpga/NF2/projects/router_kit/sw/rkd.cc to include limits.h
    6067
    61 '''5. Setting Variables.'''[[BR]]
     68==== 5. Setting Variables. ====
    6269Scripts seemed broken, so manually export'd all of them. Specifics of variables pulled from README in base package root directory. 
    6370{{{
     
    6774}}}
    6875
    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]]
     78Then, check for nf2 module with `lsmod | grep nf2`:
    7379{{{
    7480nf2                    13425  0