Start working with Netronome 10G smart nic and Programmer Studio

301 views
Skip to first unread message

soroush aalibagi

unread,
Aug 3, 2022, 12:58:32 PM8/3/22
to open-nfp
Hello all,

Here I have a simple question!

I installed a 10G Netronome SmartNIC on a linux pc and installed the SDK using the ./sdk6_rte_install.sh install command. I also installed the Programmer Studio on a windows pc, and connected them via a regular Ethernet cable. The SmartNIC ports are unused; I just used regular NICs to connect the windows pc to the linux pc.
Now, I have a compiled simple P4 program in the Programmer Studio. But I do not know how I can deploy it to the SmartNIC and install the P4 application on it. I have taken a look on Netronome Docs and watched videos on the open-nfp website. But I could not find an end-to-end example to run my first P4 app. I wonder if there is a document I am missing!

I also tried to debug my P4 app in Programmer Studio (I configured the hardware options and put my linux pc IP in it). But when I start debugging, it says: Communication failure with RPC server.
p.s. when I run systemctl command on the linux pc, I see that nfp-sdk6-rte.service and sdk6-rte-debug.service are failed.
Would someone please help me with running my first P4 app?

Sincerely,
Soroush

Octavio Herrera-Ruiz

unread,
Aug 4, 2022, 1:24:20 PM8/4/22
to open-nfp
With regard to the second portion of your inquiry (the RTE and RTE-debug services failing), the most common issue is that the system is not configured in SDK mode. Please read the following article for further details: https://help.netronome.com/support/solutions/articles/36000152964-problems-starting-rte-service

soroush aalibagi

unread,
Aug 4, 2022, 7:24:42 PM8/4/22
to Octavio Herrera-Ruiz, open-nfp
Hello Weilai and Octavio,

Thanks for your reply.
I did not understand what you mean by executing the command in nfp-sdk6-rte.service manually.
By the way, when I run the ./sdk6_rte_install.sh install_rte_only command after ./sdk6_rte_install.sh install command, the sdk6-rte-debug.service will be activated, and the debug in the Programmer Studio works. But, I do not know if it is right to run the ./sdk6_rte_install.sh install_rte_only command or not.

Moreover, do you know where I can find a thorough tutorial or example that teaches how to run a P4_16 program using netronome smart nics and programmer studio? The Open-NFP videos are good but they have preconfigured linux servers with smart nics and traffic generators. I need an example that I can run with my PCs in our lab. (Obviously, I do not have deep knowledge and experience about smart nics and how they work with programmer studio.)

Sincerely,
Soroush

--
You received this message because you are subscribed to a topic in the Google Groups "open-nfp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/open-nfp/SpUNW_sxV9U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to open-nfp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-nfp/bbffaac2-b41c-4958-b31b-0acc10d1c86fn%40googlegroups.com.

soroush aalibagi

unread,
Aug 5, 2022, 2:18:13 AM8/5/22
to Rick Zhong, open...@googlegroups.com
Hello Rick,

Thanks for your consideration.
As I stated in my last email, I could activate the sdk6-rte-debug.service by running the ./sdk6_rte_install.sh install_rte_only command after ./sdk6_rte_install.sh install command. Is it right to run the  ./sdk6_rte_install.sh install_rte_only command? Or running just the ./sdk6_rte_install.sh install command should be enough and I do not need other commands?

Sincerely,
Soroush Aalibagi

On Thu, 4 Aug 2022 at 21:11, Rick Zhong <zhaoyon...@corigine.com> wrote:

Hello Aalibagi,

 

Thanks for reaching out on Open-NFP. Regarding to your questions, would you please provide the following information?

 

1)    Part number of your Netronome Smart NIC (it is printed on the hardware, something like this ‘AMDA0096-0001’)

2)    Software version of your Programmer Studio and P4C SDK

3)    Distribution and version of your Linux

4)    List of the ‘nfp-bsp*’ packages which are installed on the Linux and output of the modinfo nfp

5)    Output of the ‘journalctl -xe -u nfp-sdk6-rte’ when the service nfp-sdk6-rte failed

 

Best Regards,

Rick Zhong

 

soroush aalibagi

unread,
Aug 5, 2022, 10:37:47 AM8/5/22
to Rick Zhong, open...@googlegroups.com
Thank you for your reply.

So, I think I have to undo the ./sdk6_rte_install.sh install_rte_only command and only run the ./sdk6_rte_install.sh install command, and I should be good to use the debugger in the Programmer Studio; Right? And if I could not run the debugger, I will give you the information you asked me in your first email.

Additionally, I will be grateful if you can share some material (e.g., github project, youtube video, pdf document) with me; so I can follow the steps to setup everything and run a P4_16 application on the smart NIC. (Sorry, there are many materials on the open-nfp and netronome websites and I found them a little vague!)

On Fri, 5 Aug 2022 at 02:34, Rick Zhong <zhaoyon...@corigine.com> wrote:

Hi Soroush,

 

Generally, you need to run ./sdk6_rte_install.sh install command the first time when you setup the Linux env. Both nfp-bsp and rte software are installed.

 

Please aware that you may choose to activate either sdk6-rte-debug.service or sdk6-rte.service. Not both.

 

Best Regards,

Rick Zhong

 

发件人: soroush aalibagi <aalibagi...@gmail.com>
发送时间: 202285 14:18
收件人: Rick Zhong <zhaoyon...@corigine.com>
抄送: open...@googlegroups.com
主题: Re: Start working with Netronome 10G smart nic and Programmer Studio

Octavio Herrera-Ruiz

unread,
Aug 5, 2022, 10:51:13 PM8/5/22
to open-nfp
Within the SDK installation directory there is a README file describing how to start manually the  RTE/Debug services. Please review it and comment on whatever results you get upon using that method.
The purpose of some of the suggestions/request that Rick is doing is to determine what components you have installed in your system and whether any are missing or even which ones may need to be removes in order to have your SDK setup completed. For instance, if you execute 'apt list | grep "agilio\|nfp"' and you have any Netronome firmware package already installed (e.g., BasicNIC firmware) it will interfere with the SDK setup.

Reply all
Reply to author
Forward
0 new messages