From owner-freebsd-net@FreeBSD.ORG Tue Sep 30 05:30:26 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3F1DB83D for ; Tue, 30 Sep 2014 05:30:26 +0000 (UTC) Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [IPv6:2607:f8b0:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE476C40 for ; Tue, 30 Sep 2014 05:30:25 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id hy4so2533555vcb.33 for ; Mon, 29 Sep 2014 22:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=JShsEUjAVaMPK715V7nqtpvBPRoVuxkIy/V3y+gmwK8=; b=NcoYfEUmMYiSsIQTGjGCMbTIzEnLdzSNOogsYmFaIydsKi6MCGX7h+2GvnE2FIlk3y 1obyTGOfd326QNky0r/ue4VuUIuu64dbDv9P5pZK5ePUdz5ltgNLfW0Wc9EE5Wc0Es/A M9m5TEk2VWIs0yV0NFv2iQFL3PpmCRguV3zWR8tzlyw2MuOKmJGh8pUqznNclE0qhit6 liVMjK4l/PuDMk8/V7MFIh6mcUQ+8qTEfP9bV/WC6LgGACjojUpcBk4PKZ4M368Yev9c rO3n3yZQIpxGFgg0h8um4CLWfObD6Exe0hjRfPk6Lj+4JkaCDyaU9SZdG9od0ldfekMZ Cz7w== X-Received: by 10.220.88.76 with SMTP id z12mr33855406vcl.14.1412055024847; Mon, 29 Sep 2014 22:30:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.167.193 with HTTP; Mon, 29 Sep 2014 22:29:54 -0700 (PDT) In-Reply-To: References: From: Long Tran Date: Tue, 30 Sep 2014 00:29:54 -0500 Message-ID: Subject: Re: Compiling netmap in Ubuntu 1.04 in VMWare To: Mahnaz Talebi Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "Gurkan, Deniz" , FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2014 05:30:26 -0000 Hi Mahnaz, Thank you. I just got it worked without drivers. Could you please explain how netmap can be used without drivers? I thought it required the NIC's driver to run. Thanks, Long. *Long Tran* Research Assistant MS in Network Communications and Technology Project Management University of Houston On Mon, Sep 29, 2014 at 2:04 AM, Mahnaz Talebi wrote: > I guess that all of your NICs use e1000 driver. You can check out this by > 'lsmod | grep e1000'. I have been faced this problem that arising from > incompatibility between netmap and your kernel. I guess that netmap doesn't > support your kernel. > > About patches: for example, diff--e1000e--20620--20623 support kernel > 2.6.20 to 2.6.23. > I use ubunto 12.4 and upgrade its kernel to 3.8.7 and can install and use > netmap successfully. > You can install netmap without drivers by 'make NODRIVERS=1'. > > On Mon, Sep 29, 2014 at 10:13 AM, Long Tran > wrote: > >> Hi Mahnaz, >> >> This is my kernel: 3.13.0-29-generic >> I don't know if this path contains the drivers that supported by my >> kernel: >> /lib/modules/3.13.0-29-generic/kernel/drivers/net/ethernet/intel/ >> >> These are what in side that path: >> e1000 e1000e e100.c e100.ko i40e i40evf igb igbvf ixgb ixgbe >> ixgbevf Kconfig Makefile >> >> In the patches directory, I found these: >> e1000 e1000e igb ixgbe >> >> So I guess my kernel has the drivers supported by netmap. >> >> Also, I forgot to include the error when I run the make command. Here it >> is: >> make -C /lib/modules/3.13.0-29-generic/build >> M=/home/kl/Workspaces/netmap/LINUX CONFIG_NETMAP=m CONFIG_E1000=m >> CONFIG_E1000E=m CONFIG_IXGBE=m CONFIG_IGB=m CONFIG_BNX2X=m CONFIG_MLX4=m >> CONFIG_VIRTIO_NET=m \ >> EXTRA_CFLAGS='-I/home/kl/Workspaces/netmap/LINUX >> -I/home/kl/Workspaces/netmap/LINUX/../sys >> -I/home/kl/Workspaces/netmap/LINUX/../sys/dev -DCONFIG_NETMAP >> -Wno-unused-but-set-variable' \ >> O_DRIVERS="e1000/ e1000e/ igb/ ixgbe/" modules >> make[1]: Entering directory `/usr/src/linux-headers-3.13.0-29-generic' >> >> >> >> >> >> *make[3]: *** No rule to make target >> `/home/kl/Workspaces/netmap/LINUX/e1000/e1000_main.o', needed by >> `/home/kl/Workspaces/netmap/LINUX/e1000/e1000.o'. Stop.make[2]: *** >> [/home/kl/Workspaces/netmap/LINUX/e1000] Error 2make[1]: *** >> [_module_/home/kl/Workspaces/netmap/LINUX] Error 2make[1]: Leaving >> directory `/usr/src/linux-headers-3.13.0-29-generic'make: *** [build] Error >> 2* >> >> The thing is my laptop has intel card, but I don't know if my VM (I am >> using VMWare) has that card. Right now, I create four NICs for my VM: host >> only, bridge to my host's ethernet, bridge to my wireless card, and two >> other private NICs that connect privately within different VMs. >> >> Do you think that is the problem VM, not netmap itself? >> Thank you, >> >> *Long Tran* >> Research Assistant >> MS in Network Communications and Technology Project Management >> University of Houston >> >> On Mon, Sep 29, 2014 at 12:07 AM, Mahnaz Talebi >> wrote: >> >>> What is your kernel? Are you check list of supported drivers to see if >>> your kernel's drivers are supported whit the your version of netmap? >>> Supported drivers are in folder patch and their name show their supported >>> kernels. >>> >>> On Sun, Sep 28, 2014 at 10:02 PM, Long Tran >>> wrote: >>> >>>> Hi Mahnaz, >>>> >>>> I installed the headers and sources using these commands: >>>> sudo apt-get install linux-headers-3.13.0-29 >>>> sudo apt-get install linux-source-3.13.0 >>>> >>>> Thanks, >>>> -- >>>> *Long Tran* >>>> Research Assistant >>>> MS in Network Communications and Technology Project Management >>>> University of Houston >>>> >>> >>> >> >