sonic-net / SONiC

Landing page for Software for Open Networking in the Cloud (SONiC) - https://sonic-net.github.io/SONiC/
2.27k stars 1.13k forks source link

Build opennsl fail, where can I get Opennsl source package ? #146

Open jimchen1027 opened 6 years ago

jimchen1027 commented 6 years ago

HI,

I follow Broadcom Opennsl and SAI Build guide to build Opennsl, there is a error message when I issue "fakeroot debian/rules -B binary"
/usr/bin/fakeroot: line 178: debian/rules: No such file or directory

I git clone Opennsl source form "https://github.com/Broadcom-Switch/OpenNSL/releases" Isn't it correct source path? or where can I get Opennsl source package ?

Please anyone advise where the package located, or did I miss anything?

yxieca commented 6 years ago

I will take a look at the github repo your pointed out when I have time.

I suspect:

  1. The tags doesn't necessarily match the version sonic is using. If you look at this file: https://github.com/Azure/sonic-buildimage/blob/master/platform/broadcom/sdk.mk, sonic is using opennsl 3.2.3.7, that doesn't seem to match any release tag on listed there.

  2. (This is what I am going to confirm), the zip file you download from that repo, might not contain the debian build files. Please unzip it, and check if you have debian folder at top level?

From what I understand, I think you need to contact Broadcom to obtain a certain version of opennsl with the debian make files, then you would be able to follow this wiki: https://github.com/Azure/SONiC/wiki/Build-Broadcom-Opennsl-and-SAI to build your opennsl.

Regards, Ying

jimchen1027 commented 6 years ago

Hi yxieca

Many thanks. The zip file not contain the debian build files at top level. I will try to contact Broadcom to obtain a version of opennsl with the debian make files.