-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathREADME
85 lines (51 loc) · 2.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
* How to get MuL code ?
1) Clone latest repo using git :
$ git clone [email protected]:openmul/openmul.git
* How to build MuL Controller on Ubuntu ?
1. Get necessary packages
a) For Ubuntu 10.04.3 LTS, the following packages should be installed :
$ sudo apt-get install flex bison libwxgtk2.6-dev build-essential
expect g++-multilib tofrodos zlib1g-dev gawk libffi-dev gettext
Not verified with recent ubuntu versions but should work fine.
For CentOS 6 and above, the following packages should be installed :
(Please replace 64-bit packages with corresponding 32-bit ones if
underlying platform is 32-bit)
$ yum install flex bison gettext wxGTK-devel.x86_64 wxGTK.x86_64 make
autoconf automake expect libstdc++-devel.x86_64 libstdc++.x86_64
zlib-devel.x86_64 zlib.x86_64 gawk libffi-devel.x86_64
b) Install core packages glib-2.0 (>= 2.32) and libevent (>= 2.0.18):
i) There is a utility script which should configure and build these
packages(but will not install), just, do enough for mul compilation :
$ cd SCRIPTS
$ ./configure_ext_libs
OR,
ii) One can also download and build/install them separately or by apt-get.
2. Configure MuL
a) Run :
$ cd <top-mul-dir>
$ ./autogen.sh
b) If you used built-in script to download core packages, then one can
use the following:
$ ./configure --with-glib=`pwd`/common-libs/3rd-party/glib-2.32.0/
--with-libevent=`pwd`/common-libs/3rd-party/libevent-2.0.21-stable/
c) If you build and install glib and libevent separately, we can simply use:
$ ./configure ## Pass LDFLAGS and CFLAGS if these are installed in non-
## standard directories.
3. Build MuL
$ make
4. Executable will be built as <top-mul-dir>/mul/mul
- You need to run using sudo or as admin.
Options to use -
mul -d : Daemon mode
-S <n> : Num of switch threads
-A <n> : Num of app threads
5. [Optional if you opt for modules to run as a separate process]
$ cd application/l2switch/
Executable : mull2sw
Same thing applies to other apps
6. How to run ?
Mul provides an utility startup script for various use cases :
$ cd <top-mul-dir>
$ ./mul.sh start l2switch ## Run in l2switch mode
OR,
$ ./mul.sh start fabric ## Run in fabric