ONL and Broadcom SDK

720 views
Skip to first unread message

dujion...@gmail.com

unread,
Mar 20, 2017, 1:25:50 PM3/20/17
to opennetworklinux
Hi All,
   I try to run ONL on EdgeCore-7712, so i downloaded ONL precompiled binary from opennetlinux.org and installed it by ONIE successfully.  But i find the ONL does not contain drivers for the data plane ports, which is available from the switch vendor, in form of OF-DPA or OpenNSL packages for ONL.(i assume it is right)

  I'm confused with the problems below now.
  1. ONL source code contains a lot of script and .mk, and i haven't found any .h/.c. In addition, during the build stage, it pulled a large image from Docker Hub. So i think we can not get the source code, i.e. .h/.c like linux kernel source code.
  2. Where the Broadcom(Tomahawk) SDK running? it is a library in user space or .ko module? What's the relationship between the SDK and the ONL?
  3. If i get the source code of Broadcom SDK and i want to modify it or add some new properties, Should i modify the ONL at the same time and where?
  4. How to integrate or install OpenNSL(Broadcom SDK) with ONL? I haven't found some detailed information or manual about it.

  Thanks, any help will be very much appreciated.

 

Steven Noble

unread,
Mar 20, 2017, 2:07:39 PM3/20/17
to dujion...@gmail.com, opennetworklinux
Hi,

Inline

March 20, 2017 at 10:25 AM
Hi All,
   I try to run ONL on EdgeCore-7712, so i downloaded ONL precompiled binary from opennetlinux.org and installed it by ONIE successfully.  But i find the ONL does not contain drivers for the data plane ports, which is available from the switch vendor, in form of OF-DPA or OpenNSL packages for ONL.(i assume it is right)

That is correct, the base ONL build does not contain any data plane drivers.  OpenNSL for the wedge 100, as6712, as5712 but not the as7712 are on the download page http://opennetlinux.org/binaries/OpenNSL .


  I'm confused with the problems below now.
  1. ONL source code contains a lot of script and .mk, and i haven't found any .h/.c. In addition, during the build stage, it pulled a large image from Docker Hub. So i think we can not get the source code, i.e. .h/.c like linux kernel source code.
The docker image that is pulled down can be built by using the DockerFile found here https://github.com/opencomputeproject/OpenNetworkLinux/tree/master/docker/images/builder8/1.5 . The code for kernels and other parts is pulled down during the build.  If you did an amd64 build, you would find the kernel files here: OpenNetworkLinux/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/builds/linux-3.16.39 .  If you did a powerpc or arm build you will find them in their respective directories.

  2. Where the Broadcom(Tomahawk) SDK running? it is a library in user space or .ko module? What's the relationship between the SDK and the ONL?
It is not running, you will need to get it from Edge-Core as it is not part of the standard OpenNSL release. The systems that are included can be found here in the public release of OpenNSL from Broadcom : https://github.com/Broadcom-Switch/OpenNSL/tree/master/bin


  3. If i get the source code of Broadcom SDK and i want to modify it or add some new properties, Should i modify the ONL at the same time and where?
If you want to modify OpenNSL/OF-DPA/SDK then you can compile it against the kernel I have listed above.

  4. How to integrate or install OpenNSL(Broadcom SDK) with ONL? I haven't found some detailed information or manual about it.
The Edge-Core packages do a good job of integrating OpenNSL into the systems and has support for the AS7712.  Since we cannot redistribute someone else's distribution you will need to get it from Edge-core/Accton.  They have supported the 7712 since at least 3.0 :

This version support these Accton hardware platforms:
- AS7712-32X   (amd64)

  Thanks, any help will be very much appreciated.

 
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yangd...@gmail.com

unread,
Mar 21, 2017, 9:42:33 AM3/21/17
to opennetworklinux, dujion...@gmail.com
Thanks Steven
I am still puzzling about how the data plane works. I mean, when i got the EdgeCore-7712, what should i do to drive or use the switch data plane? just install OF-DPA or OpenNSL on ONL? but how the Broadcom SDK works? Does OpenNSL contains SDK's binary executable file?
Appreciated your help.

在 2017年3月21日星期二 UTC+8上午2:07:39,Steven Noble写道:

Arne Goetje

unread,
Mar 21, 2017, 10:45:13 PM3/21/17
to yangd...@gmail.com, opennetworklinux, dujion...@gmail.com

Hi,

 

The OF-DPA and OpenNSL packages contain the Broadcom SDK in binary form, as well as open source header files which you can use to call the respective functions in your application.

 

Cheers

Arne

Reply all
Reply to author
Forward
0 new messages