Hello Casey,

I was trying to delete DPDK files manually (because i installed DPDK 19 at
first, and it doesnt have an uninstall method), and accidentally crashed my
OS (it was my fault, deleted something important). After reinstalling
Ubuntu, i installed everything again and the error was gone. Reinstalling
everything took like 3-4 hours, i spent much more trying the fix the error.
I also faced a few more errors in next steps, i mention them below, might
be useful for some people.

1) It was something about invalid elf headers. DPDK tries to compile
everything in the uhf.conf - dpdk_driver location. In my case,
"/usr/local/lib/x86_64-linux-gnu/dpdk/pmds-18.11" file had only librte_pmd
and librte_mempool dynamic libraries, so using this address fixed the error.
2) DPDK was not able to find the device, because i used capital letters in
the mac address of uhd.conf. They should be lowercase.

3) "[ERROR] [RFNOC::GRAPH] IO Error during GSM initialization.
EnvironmentError: IOError: Timed out getting recv buff for management
transaction". I realized this error occurs with or without using DPDK, and
rarely it was working correctly (but mostly didnt work). I changed fpga
image to default (HG or 1 GbE, and 10 GbE sfp+), also reinstalled embedded
linux with mender. The problem was gone. Then, i installed dual 10 GbE sfp+
image (XG), and haven't faced the same problem.

My new problem is that DPDK is slower than without using DPDK. I sent a new
mail about it today, still waiting for suggestions. GL with your setup, i
have spent my whole week to get DPDK working.


Berkay S.

On Thu, 10 Jun 2021 at 20:56, Wolsieffer, Carl L. ERDC-RDE-CRL-NH CIV <
carl.l.wolsief...@erdc.dren.mil> wrote:

> Hi Berkay,
>
>
>
> I’m actually having this exact same issue. We have pretty much all the
> same hardware/software/Ubuntu etc and after using meson and ninja I was
> able to get to this point you are at here. Did you ever figure out how to
> resolve this? Much appreciated!
>
>
>
> Casey
>
>
>
> PS I tried sending this reply via the archives webpage which didn’t seem
> to be working, so apologies if this is being sent 2 or 3 times
>
>
>
> *From:* Berkay SAYGILI <zuhasd...@gmail.com>
> *Sent:* Thursday, May 27, 2021 5:06 AM
> *To:* Wade Fife <wade.f...@ettus.com>
> *Cc:* usrp-users <usrp-users@lists.ettus.com>
> *Subject:* [USRP-users] Re: DPDK setup with UHD 4.0
>
>
>
> Hello again,
>
>
>
> Using meson and ninja made dpdk recognized by uhd cmake. I initially used
> the instructions from "
> Blockedhttps://doc.dpdk.org/guides-18.11/linux_gsg/build_dpdk.htmlBlocked";.
> However, when i tried to complete the uhd installation with make command,
> another problem was occurred (given below). Just to let you know, i
> couldn't make "CONFIG_RTE_BUILD_SHARED_LIB=y" with meson build (i dont know
> if it is necessary).
>
>
>
> [ 51%] Linking CXX shared library libuhd.so
> [ 51%] Built target uhd
> Scanning dependencies of target usrp_list_sensors
> [ 51%] Building CXX object
> examples/CMakeFiles/usrp_list_sensors.dir/usrp_list_sensors.cpp.o
> [ 51%] Linking CXX executable usrp_list_sensors
> /usr/bin/ld: ../lib/libuhd.so.4.0.0: undefined reference to `lcore_config'
> /usr/bin/ld: ../lib/libuhd.so.4.0.0: undefined reference to
> `rte_eal_get_configuration'
> collect2: error: ld returned 1 exit status
> make[2]: *** [examples/CMakeFiles/usrp_list_sensors.dir/build.make:95:
> examples/usrp_list_sensors] Error 1
> make[1]: *** [CMakeFiles/Makefile2:1038:
> examples/CMakeFiles/usrp_list_sensors.dir/all] Error 2
> make: *** [Makefile:163: all] Error 2
>
>
>
> I use Ubuntu 20.04.1, and have an X520-DA2 card. I am at the "Installing
> UHD" part in
> Blockedhttps://kb.ettus.com/Getting_Started_with_DPDK_and_UHDBlocked, so
> i dont have the uhd.conf file in root. In addition, i downloaded ixgbe
> driver at first, then switched it to vfio-pci
>
>
>
>
>
> Best Regards
>
>
>
> Berkay S.
>
>
>
> On Thu, 27 May 2021 at 00:05, Wade Fife <wade.f...@ettus.com> wrote:
>
> Hi Berkay,
>
>
>
> I also had a lot of trouble getting DPDK to be recognized. It could be a
> lot of things, so I can only speculate what the problem is in your case. In
> my case, I had hyphens instead of underscores in my uhd.conf file. I think
> I also had some issues with specifying the correct location of the DPDK
> driver. Hopefully you've already read through the KB on how to set it up.
>
>
>
> Blockedhttps://kb.ettus.com/Getting_Started_with_DPDK_and_UHDBlocked
>
>
>
> There are also some driver dependencies and, depending on your Ethernet
> card, some flags may be needed when building DPDK.
>
>
>
> Maybe you could share some additional details about your setup, such as
> which card you're using, which driver/version, how you built DPDK, etc.
>
>
>
> Looking at my notes, I built DPDK using the following steps. I'm using a
> Mellanox CX516A.
> cd dpdk-stable-18.11.11/
> meson build
> cd build
> ninja
> sudo ninja install
> sudo ldconfig
>
>
>
> My /root/.uhd/uhd.conf pretty much matches the one in the KB under UHD
> 4.0, although I commented some things out.
>
> [use_dpdk=1]
> dpdk_mtu=9000
> dpdk_driver=/usr/local/lib/
> dpdk_corelist=2,3,4
> ;dpdk_num_mbufs=4095
> ;dpdk_mbuf_cache_size=315
>
> [dpdk_mac=XX:XX:XX:XX:XX:XX]
> dpdk_lcore = 3
> dpdk_ipv4 = 192.168.10.1/24
>
> ;[dpdk_mac=XX:XX:XX:XX:XX:XX]
> ;dpdk_lcore = 4
> ;dpdk_ipv4 = 192.168.20.1/24
>
>
>
> Wade
>
>
>
> On Wed, May 26, 2021 at 3:56 AM Berkay SAYGILI <zuhasd...@gmail.com>
> wrote:
>
> Hello,
>
>
>
> I've been trying to use dpdk with UHD 4.0 on our newly purchased N320, but
> it is shown as disabled component when i cmake uhd. First, i used "apt-get
> install dpdk dpdk-dev", then realized it installed wrong version,
> afterwords i downloaded dpdk 18.11. from the source and compiled. Another
> mistake was not enabling shared library build, so i rebuilded it with share
> libraries enabled (i can .so files now in the lib). But, still cmake shows
> that dpdk is disabled. I added cmakecache.txt file to this mail, maybe it
> can be useful. Btw, i completed all other steps like enabling hugepages,
> adding drivers, etc. Do you have any solution to this problem?
>
>
>
>
>
> Best regards
>
>
>
> Berkay S.
>
>
>
> _______________________________________________
> USRP-users mailing list -- usrp-users@lists.ettus.com
> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
>
>
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to