broadcom-switch / sai Goto Github PK
View Code? Open in Web Editor NEWSwitch Abstraction Interface Implementation
Switch Abstraction Interface Implementation
Hey :)
Im trying to build this Broadcom SAI implementation on switch on top of Open Network Linux right now, and build fails on point where it tries to find opennsl library
Since in readme info its mentioned that in order to build that stuff i will need OpenNSL, i downloaded it as well, found prebuilt version suitable for me, which contains couple kernel module files and one .so file, which is name libopennsl.so. Is it the one needed to build SAI or not? Cause I dont see any others
I tried to do it hard way, just renaming libopennsl into opennsl but still got same build failure
So which library do i actually need and where do i get it?
Thx in advance
in sonic-buildimage\platform\broadcom, there are sai.mk, SONiC will use the .deb. How can i get libsaibcm_X.X.X.X_amd64.deb? or how can i make libsaibcm_X.X.X.X_amd64.deb?
Hello,
I am Balaselvi, working for Inventec.
Can you please let us know when can we get the sai deb package that supports Tomahawk2 board for SONiC?
If it is not official release to SONiC even an intermediate package is good.
Thank you.
Thanks and regards,
Bala
HI,
Can anyone kindly tell me , which protocols are supported by Broadcom SAI enables switches?
Also, is it possible to define new protocol header field(like P4) through this?
I consulted SONiC if Tomahawk supports 2x50G or 4x25G breakout, and their answer is no as BRCM SAI does not support it. See here.
When will that feature be supported?
Dear Sirs,
Can you please confirm that the Broadcom (SAI) Switch Abstraction layer supports the Trident 2+ BCM56864.
I've tried to use SONiC and the SAI support does not appear to be working.
I've looked and can see this chipset is support in OpenNSL so Iโm hopeful it is supported.
https://github.com/Broadcom-Switch/OpenNSL/search?q=BCM56864
Thanks,
we have a swith with bcm56340 helix4, met coredump questions on SAI, we want to know if SAI 3.7 still support bcm56340 now ?
Hi,
I want to use a more modern kernel than the bundled 3.16 kernel. In OpenNSL I can simply build the .ko files for the kernel I want - does the same apply for SAI?
The release notes for the latest SAI release says it is using OpenNSL 3.4.1.11 but only v3.4.1.6 was released publicly as far as I can tell. Will the same kernel drivers work?
Hello Team,
Can you please help me know about the extent of support for BCM88470 chipset.
I see that qumran is listed in (https://github.com/Azure/SONiC/wiki/Supported-Devices-and-Platforms) wanted confirmation and extent of support.
Can you also please point me to the procedure to access source code - Only headers seems to be available on master branch.
Thanks,
Bhuvan
We see over past release, support for XGS line of Chips getting added. Would you folks plan to add support for Dune line of Chips as well in this process. Anytime timeline related details would be helpful.
I'm new to SONiC and in the middle of going through the image build. I'm up to the part where I can select ARM32 or ARM64. I'm trying to find documentation on Broadcom's site as well. Does anyone if this truly matters in term of whether or not it will work properly?
Hello,
I am Balaselvi.
I using broadcom libsai version 0.9.4 and we are configuring SONiC for our board.
If I configure logical ports lesser than 120, things work perfectly fine, I can test traffic.
If I use logical ports more than 120, I face a crash in the libsai during switch initialization.
Logs below:
Apr 27 16:40:34 sonic NOTICE syncd: :- handleCmdLine: profile map file: /usr/share/sonic/hwsku/sai.profile
Apr 27 16:40:34 sonic NOTICE syncd: :- isVeryFirstRun: First Run: True
Apr 27 16:40:34 sonic NOTICE syncd: :- main: starting initializing ASIC
Apr 27 16:40:34 sonic NOTICE syncd: :- loadRedisScript: lua script loaded, sha: e70c5f65367f8b9fed2deb3daa5ee4ba40f90c58
Apr 27 16:40:34 sonic NOTICE fpmsyncd: :- loadRedisScript: lua script loaded, sha: e70c5f65367f8b9fed2deb3daa5ee4ba40f90c58
Apr 27 16:40:35 sonic INFO rsyslogd: [orsegfault at 91 ip 00007f1de327492f sp 00007ffc9ad14e50 error 6 in libsai.so.1.0[7f1de3218000+94000]
Apr 27 16:40:43 sonic NOTICE dsserve: child exited status: 139
Can you guide me whether the maximum logical port setting is an issue, or I can change it with any configuration?
I checked the Opennsl "Customizing OpenNSL Platform" but i can't resolve this issue with any settings.
I feel this is a issue with libsai or libopennsl.
Any pointers or suggestion will really help me.
Thank you.
Thanks and regards,
Bala
Hi,
I am trying to build SAI with OpenNSL SDK for Dell switch, but there is no package.cfg file for build. Error message is as follow:
Makefile:19: package.cfg: No such file or directory
How can I solve this problem?
Thanks~
Hi
For TH/TH2/TD/TD2 port led, the port status register has 2 bit for port speed:
[4:3] Speed 00=10 Mbps, 01=100 Mbps, 10=1000 Mbps
But for 10G/25G/40G/50G/100G port, different port led need be lighted for different port speed. Then the register bits aren't enough.
I have two proposals for this issue.
The SAI provides a new API, the API will encapsulate soc_pci_wirte/read function, then the port speed information can be sent to the RAM field of port led. When the port led is lighted, it can get the port speed information.
Apply a patch in SDK process, SDK will send the port speed information to RAM of port led, Then the port can distinguish the different port speed in port led light. the patch as the attachment.
Can you help to check which is better? then integrate the related change to SAI or SDK.
Thanks,
Bo
led_patch.zip
Hi,
I am working on SONiC for a couple of months and encountered a few issues.
With SAI v1.0, there is error with function brcm_sai_create_switch() as below:
Sep 19 13:54:00.229279 sonic INFO supervisord: syncd Common SDK init completed#015#015
Sep 19 13:54:00.241195 sonic CRIT syncd: brcm_sai_create_switch:335 set dscp ecn mode failed with error -1.
Sep 19 13:54:00.241195 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_INIT_SWITCH: true
Sep 19 13:54:00.241195 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_FDB_EVENT_NOTIFY: 0x418270
Sep 19 13:54:00.241195 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_PORT_STATE_CHANGE_NOTIFY: 0x418400
Sep 19 13:54:00.241220 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_SHUTDOWN_REQUEST_NOTIFY: 0x418580
Sep 19 13:54:00.241220 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_SRC_MAC_ADDRESS: 00:8C:FA:C7:AC:F8
Sep 19 13:54:00.241235 sonic ERR syncd: :- processEvent: failed to execute api: create, key: SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000, status: SAI_STATUS_FAILURE
Sep 19 13:54:00.241308 sonic ERR syncd: :- main: Runtime error: :- processEvent: failed to execute api: create, key: SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000, status: SAI_STATUS_FAILURE
With SAI v0.94, there are 2 errors as below:
Error from function translate_rid_to_vid() -
Sep 13 17:43:02.0 sonic NOTICE syncd: :- main: before onSyncdStart
Sep 13 17:43:02.0 sonic NOTICE syncd: :- cli_thread_function: accepting connections for cli
Sep 13 17:43:02.0 sonic INFO supervisord: syncd Hit enter to get drivshell prompt..#15
Sep 13 17:43:03.0 sonic ERR syncd: :- translate_rid_to_vid: sai_object_type_query returned NULL type for RID 0xffffffffbbbbbbbb
Sep 13 17:43:03.0 sonic NOTICE syncd: :- exit_and_notify: sending switch_shutdown_request notification to OA
Error from API opennsl_cosq_gport_attach() with 4-lane 40G port -
Oct 20 10:43:32.0 sonic ERR syncd: _brcm_sai_switch_port_lls_init:1469 opennsl_cosq_gport_attach returned error: -4#015
Oct 20 10:43:32.0 sonic ERR syncd: _brcm_sai_mmu_gport_init:1746 ERROR(-4) while configuring port 49
Oct 20 10:43:32.0 sonic CRIT syncd: brcm_sai_initialize_switch:264 initializing lls gport tree failed with error Invalid parameter (0xfffffffc).
Oct 20 10:43:32.0 sonic NOTICE syncd: :- main: finished initializing ASIC
Oct 20 10:43:32.0 sonic ERR syncd: :- main: fail to sai_initialize_switch: -5
There is no issue with 40G port fan-out to be 4 10G ports.
I am not sure if these are SAI lib issues or it's due to the platform BCM56854_A2 I have is not supported. For any info related will be helpful. Thanks!
Thanks and Regards,
Alan Fan
Will Broadcom SAI implementation ever be built with native SDK API? or it is forever tied with OpenNSL?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.