Hi, First of all, any problem making this thread visible on the lng-odp list? Second, have you checked the mailing list? Here is a thread that should help you: http://lists.linaro.org/pipermail/lng-odp/2014-June/001140.html
To give you even more details, this is the commit id: https://code.google.com/p/netmap/source/detail?r=ca3cb7d9a4fe6b08d1b63be7ea0c77c815821eb2 ODP will NOT compile netmap for you. That's too much of a custom job to be done by ODP and it doesn't fit with the overall autoconf way of doing things. You need to compile netmap before attempting to compile ODP. Check that thread to see the way I did it (by copying the ethernet driver sources to the linux-headers). After you've compiled netmap, you need to copy the netmap include files from sys/dev/net to some standard include path (/usr/include/net for example). Also, the way you obtained the odp_pktio_netmap executable is hacky, the reason it "worked" was that you compiled odp without netmap the first time, and after you reconfigured with --enable-netmap, the odp library didn't need to be built anymore. But that still had no netmap support. So in the future, if you are going to reconfigure, start fresh by removing everything. I will be in vacation Thursday and Friday, I hope this information will get you going with your task. Regards, /Ciprian On Wed, Aug 13, 2014 at 5:34 PM, Tushar Jagad <[email protected]> wrote: > Hi Ciprian, > > In continuation to our hangout session today we tried building odp with the > following parameters to the configure script. > > $ ./configure --host=aarch64_be-linux-gnu --prefix=`pwd`/install > --enable-netmap > > If we start from a clean build we get the following error. > > [ start of build snippet .... ] > CC odp_packet_io.lo > In file included from ./include/odp_packet_io_internal.h:24:0, > from odp_packet_io.c:8: > ./include/odp_packet_netmap.h:13:24: fatal error: net/netmap.h: No such file > or directory > #include <net/netmap.h> > ^ > compilation terminated. > make[2]: *** [odp_packet_io.lo] Error 1 > make[2]: Leaving directory > `/opt/shared/tjagad/projects/linaro/repos/odp/platform/linux-generic' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/opt/shared/tjagad/projects/linaro/repos/odp/platform' > make: *** [all-recursive] Error 1 > [ end of build snippet .... ] > > I guess we should add another parameter for example > --with-netmap=<path-to-netmap-sources> or > --enable-netmap=<path-to-netmap-sources> which will aid in cross compiling > odp. > > So we started fresh by removing the --enable-netmap parameter and the build > was succesfull. Without clean up we again ran the configure script but this > time we pass the --enable-netmap parameter and we get odp_pktio_netmap > binary. This too fails to run. Kindly find the execution log below. > > [ Start of execution log for odp_pktio_netmap ... ] > root@mustangbe:~/install/bin# ./odp_pktio_netmap -i eth2 > > Buffer pool init global > pool_entry_s size 192 > pool_entry_t size 192 > odp_buffer_hdr_t size 120 > > Queue init ... done > Queue init global > struct queue_entry_s size 192 > queue_entry_t size 192 > > Schedule init ... done > Timer thread starts > > ODP system info > --------------- > ODP API version: 0.0.1 > CPU model: UNKNOWN > CPU freq (hz): 1400000000 > Cache line size: 64 > Core count: 8 > > Running ODP appl: "odp_pktio_netmap" > ----------------- > IF-count: 1 > Using IFs: eth2 > Mode: > > Pool info > --------- > pool 1 > name packet_pool > pool base 0x7f8755a000 > buf base 0x7f8755a000 > pool size 0x100000 > buf size 1856 > buf align 64 > hdr size 160 > alloc size 2048 > offset to hdr 192 > num bufs 496 > free bufs 496 > > First chunk > [0] addr 0x7f8764a8c0, id 481 > [1] addr 0x7f8764b0c0, id 482 > [2] addr 0x7f8764b8c0, id 483 > [3] addr 0x7f8764c0c0, id 484 > [4] addr 0x7f8764c8c0, id 485 > [5] addr 0x7f8764d0c0, id 486 > [6] addr 0x7f8764d8c0, id 487 > [7] addr 0x7f8764e0c0, id 488 > [8] addr 0x7f8764e8c0, id 489 > [9] addr 0x7f8764f0c0, id 490 > [10] addr 0x7f8764f8c0, id 491 > [11] addr 0x7f876500c0, id 492 > [12] addr 0x7f876508c0, id 493 > [13] addr 0x7f876510c0, id 494 > [14] addr 0x7f876518c0, id 495 > [15] addr 0x7f8764a0c0, id 480 > Next chunk > addr 0x7f876420c0, id 464 > > odp_packet_io.c:198:odp_pktio_open(): Invalid pktio type: 04 > odp_pktio_netmap.c:277:main(): [00] Err: pktio create > [ end of execution log for odp_pktio_netmap ... ] > > It would be helpful if you could help us in getting the basic odp-netmap > stuff going. > > Also, could you also send the SHA on the netmap git which is used to test > odp-netmap test. > > Thanks. > -- > Regards, > Tushar _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
