Install optoe/OOM
Hi,
I'm working on a Mellanox switch SN2010. On top I have installed the last version of SONiC and then I looked for optoe driver that wasn't installed.
1)How can I install the optoe driver? where can i find an example for correctly compile the driver for this NOS? 2) optoe driver works on Mellanox SN2010?
Best regards
optoe should be built and delivered with SONiC, on all platforms. It will only be instantiated on platforms where the switch vendor has tested it and made it part of their supported SONiC configuration. So, there should be a built version available. You will have to instantiate it yourself.
To list all the available modules on your SONiC system:
modprobe –l
Look for optoe. Or, obviously, grep for it: modprobe –l | grep optoe
Install it:
modprobe optoe
The tricky part is instantiating it on the i2c devices. This is platform (switch) dependent, and I don't have any info on the Mellanox switch. You need to find the i2c buses that talk to the SFP/QSFP/CMIS devices. I've generally found them in /sys/bus/i2c/devices/i2c-*. There should be one of these for each slot, plus several more for other i2c devices in the system. If you have 64 transceiver slots on that system, look for 64 consecutively numbered i2c devices. They will probably all look the same, and likely will look different from other i2c buses in the system. For each i2c bus that connects to a module, add optoe as a new device for that bus:
echo optoe<flavor> 0x50 > /sys/bus/i2c/devices/i2c-<number>/new_device
There are 3 optoe flavors.
optoe1 supports QSFP devices, specifically devices conforming to sff-8636. These use one i2c address.
optoe2 supports SFP devices. They actually use two i2c addresses.
optoe3 supports CMIS devices. These are newer, higher speed modules with names like QSFP-DD and OSFP.
You have to correctly match the flavor to the devices you are using, the driver can't tell the difference and will not work the way you want if you get it wrong!
0x50 is the i2c address for all of these devices. You have to specify it for the new_device activation.
See oom/optoe/optoe_doc for the longer version of the above info.
Let me know if this works.
Don
From: Dscano [mailto:[email protected]] Sent: Friday, October 09, 2020 5:17 AM To: opencomputeproject/oom [email protected] Cc: Subscribed [email protected] Subject: [opencomputeproject/oom] Install optoe/OOM (#20)
Hi, I'm working on a Mellanox switch SN2010. On top I have installed the last version of SONiC and then I looked for optoe driver that wasn't installed. 1)How can I install the optoe driver? where can i find an example for correctly compile the driver for this NOS? 2) optoe driver works on Mellanox SN2010? Best regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi Don,
Thank you for your answer. I suppose that i can apply the same workflow on ONL, is it correct? My goal is install and try to use OOM, for reaching this goal I looked for some presentation and yt video. I understood that I have to install the optoe "module" on my NOS and then I can utilize OOM. Can i install OOM on SONiC? I triyed but seems not possible. For sure OOM works on ONL and Cumulus.
I think the same workflow will get optoe installed on ONL.
There is no youtube for installing OOM. I’m pretty old school :). I think the README file covers this, but here is a recipe I have saved for installing OOM:
Set up OOM
-
cd /usr/local; mkdir oom -
git clone <https://github.com/opencomputeproject/oom.git> https://github.com/opencomputeproject/oom.git
o if git is not on the system (‘command not found’), install it: ‘yum install git’
-
wget https://bootstrap.pypa.io/2.6/get-pip.py # get pip installer (includes setuptools)
o may fail if system date is off. Use: date –s “10 Feb 2020 12:15:00” to update the date
-
python get-pip.py # install pip installer -
pip install importlib -
cd /usr/local/oom; python setup.py clean --all install -
cd apps; python inventory.py
You might be able to skip the wget, get-pip, pip install steps. Those are necessary if your system isn’t ready for the standard python ‘setup.py’ install process.
The last line, inventory.py, is not part of the setup. It is a simple OOM script that lists the modules installed in your system. If it works, OOM is in good shape.
Don
From: Dscano [mailto:[email protected]] Sent: Monday, October 12, 2020 9:16 AM To: opencomputeproject/oom [email protected] Cc: donboll [email protected]; Comment [email protected] Subject: Re: [opencomputeproject/oom] Install optoe/OOM (#20)
Hi Don,
Thank you for your answer. I suppose that i can apply the same workflow on ONL, is it correct? My goal is install and try to use OOM, for reaching this goal I looked for some presentation and yt video. I understood that I have to install the optoe "module" on my NOS and then I can utilize OOM. Can i install OOM on SONiC? I triyed but seems not possible. For sure OOM works on ONL and Cumulus.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/opencomputeproject/oom/issues/20#issuecomment-707215022 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6VCJ4FZHJRWGMJP2SXTDDSKMTULANCNFSM4SKACH2A . https://github.com/notifications/beacon/AD6VCJ5TMHFCPVZAWCZH3T3SKMTULA5CNFSM4SKACH2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFITT5LQ.gif