Skip to content

Commit

Permalink
datapath: Resolve external module dependencies.
Browse files Browse the repository at this point in the history
The Open vSwitch kernel module now has dependencies on symbols
exported by other kernel modules (currently just for GRE). In
order for it to load, the dependencies must be correctly resolved
ahead of time. This runs depmod as part of the module installation
process and updates the installation instructions.

Reported-by: Justin Pettit <[email protected]>
Signed-off-by: Jesse Gross <[email protected]>
  • Loading branch information
jessegross committed Jun 28, 2013
1 parent 07f265e commit ffd6065
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 4 additions & 9 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,15 @@ Prerequisites section, follow the procedure below to build.
6. Run "make install" to install the executables and manpages into the
running system, by default under /usr/local.

7. If you built kernel modules, you may load them with "insmod", e.g.:
7. If you built kernel modules, you may install and load them, e.g.:

% insmod datapath/linux/openvswitch.ko
% make modules_install
% /sbin/modprobe openvswitch

You may need to specify a full path to insmod, e.g. /sbin/insmod.
To verify that the modules have been loaded, run "/sbin/lsmod" and
check that openvswitch is listed.

If the "insmod" operation fails, look at the last few kernel log
If the "modprobe" operation fails, look at the last few kernel log
messages (e.g. with "dmesg | tail"):

- The message "openvswitch: exports duplicate symbol
Expand Down Expand Up @@ -264,11 +264,6 @@ Prerequisites section, follow the procedure below to build.
you do not understand what this means or do not know if your driver
will work, do not set this.

Once you verify that the kernel modules load properly, you should
install them:

% make modules_install

8. Initialize the configuration database using ovsdb-tool, e.g.:

% mkdir -p /usr/local/etc/openvswitch
Expand Down
1 change: 1 addition & 0 deletions datapath/linux/Makefile.main.in
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ default:

modules_install:
$(MAKE) -C $(KSRC) M=$(builddir) modules_install
depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' $(KSRC)/include/generated/utsrelease.h`
endif

# Much of the kernel build system in this file is derived from Intel's
Expand Down

0 comments on commit ffd6065

Please sign in to comment.