open-switch / opx-build

Build environment and scripts for OpenSwitch.
https://openswitch.net
Other
32 stars 32 forks source link

Compatibility to AS5712 #74

Open davidgengenbach opened 4 years ago

davidgengenbach commented 4 years ago

Switch: Accton AS5712-54x ONIE: 2015.11

I naively tried installing OPX using ONIE with the installer provided at https://archive.openswitch.net/installers/3.2.0/Dell-EMC/PKGS_OPX-3.2.0-installer-x86_64.bin

When installing using the onie-rescue mode, I only get the following output - after reboot, the system is unchanged:

Version   : 2015.11
Info: Mounting kernel filesystems... done.
scsi 6:0:0:0: Direct-Access     ATP      ATP IG eUSB      1100 PQ: 0 ANSI: 6
sd 6:0:0:0: [sda] 15720448 512-byte logical blocks: (8.04 GB/7.49 GiB)
sd 6:0:0:0: [sda] Write Protect is off
sd 6:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 6:0:0:0: [sda] Attached SCSI disk
Info: Mounting ONIE-BOOT on /mnt/onie-boot ...
Info: Using eth0 MAC address: cc:37:ab:62:f4:29
Info: eth0:  Checking link... up.
Info: Trying DHCPv4 on interface: eth0
ONIE: Using DHCPv4 addr: eth0: 10.167.6.51 / 255.255.255.0
Starting: dropbear ssh daemon... done.
Starting: telnetd... done.
discover: Rescue mode detected.  Installer disabled.

Please press Enter to activate this console. 
To check the install status inspect /var/log/onie.log.
Try this:  tail -f /var/log/onie.log

** Rescue Mode Enabled **
ONIE:/ # onie-nos-install http://archive.openswitch.net/installers/3.0.0/Dell-EM
C/PKGS_OPX-3.0.0-installer-x86_64.bin
discover: Rescue mode detected. No discover stopped.
Info: Fetching http://archive.openswitch.net/installers/3.0.0/Dell-EMC/PKGS_OPX-3.0.0-installer-x86_64.bin ...
Connecting to archive.openswitch.net (54.240.168.31:80)
installer            100% |*******************************|   403M  0:00:00 ETA
ONIE: Executing installer: http://archive.openswitch.net/installers/3.0.0/Dell-EMC/PKGS_OPX-3.0.0-installer-x86_64.bin
Initializing installer...OK
Verifying image checksum...OK
Unsupported machine: accton_as5712_54x
ONIE: NOS install successful: http://archive.openswitch.net/installers/3.0.0/Dell-EMC/PKGS_OPX-3.0.0-installer-x86_64.bin
ONIE: Rebooting...
ONIE:/ # discover: Rescue mode detected. No discover stopped.
Stopping: dropbear ssh daemon... done.
Stopping: telnetd... done.
Stopping: syslogd... done.
Info: Unmounting kernel filesystems
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL toRestarting system.
machine restart

I guess this build is only for DELL-EMC? Are there pre-built installers for the AS5712? How would I go about compiling it? I read that OpenSwitch was compatible with the AS5712 - is the same true for OPX? If not, where can I get the older versions, e.g. 1.0.0?

jghalam commented 4 years ago

Hi David, Here is the list of compatible hardware for OPX: https://www.openswitch.net/hardware/ https://www.openswitch.net/hardware/

As you can see on the compatibility list, the Edgecore (Acton) platform supported today is "AS7512-32X”. The platform you’re trying is not supported.

In general, onboarding a platform on OPX is not a very lengthy/difficult process, but it does require the manufacturers support and cooperation in forms of open sourcing some drivers and platform files.

Thanks, Joe

On Dec 18, 2019, at 3:05 AM, David notifications@github.com wrote:

Switch: Accton AS5712-54x ONIE: 2015.11

I naively tried installing OPX using ONIE with the installer provided at https://archive.openswitch.net/installers/3.2.0/Dell-EMC/PKGS_OPX-3.2.0-installer-x86_64.bin https://archive.openswitch.net/installers/3.2.0/Dell-EMC/PKGS_OPX-3.2.0-installer-x86_64.bin When installing using the onie-rescue mode, I only get the following output - after reboot, the system is unchanged:

Version : 2015.11 Info: Mounting kernel filesystems... done. scsi 6:0:0:0: Direct-Access ATP ATP IG eUSB 1100 PQ: 0 ANSI: 6 sd 6:0:0:0: [sda] 15720448 512-byte logical blocks: (8.04 GB/7.49 GiB) sd 6:0:0:0: [sda] Write Protect is off sd 6:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sd 6:0:0:0: [sda] Attached SCSI disk Info: Mounting ONIE-BOOT on /mnt/onie-boot ... Info: Using eth0 MAC address: cc:37:ab:62:f4:29 Info: eth0: Checking link... up. Info: Trying DHCPv4 on interface: eth0 ONIE: Using DHCPv4 addr: eth0: 10.167.6.51 / 255.255.255.0 Starting: dropbear ssh daemon... done. Starting: telnetd... done. discover: Rescue mode detected. Installer disabled.

Please press Enter to activate this console. To check the install status inspect /var/log/onie.log. Try this: tail -f /var/log/onie.log

Rescue Mode Enabled ONIE:/ # onie-nos-install http://archive.openswitch.net/installers/3.0.0/Dell-EM C/PKGS_OPX-3.0.0-installer-x86_64.bin discover: Rescue mode detected. No discover stopped. Info: Fetching http://archive.openswitch.net/installers/3.0.0/Dell-EMC/PKGS_OPX-3.0.0-installer-x86_64.bin ... Connecting to archive.openswitch.net (54.240.168.31:80) installer 100% |***| 403M 0:00:00 ETA ONIE: Executing installer: http://archive.openswitch.net/installers/3.0.0/Dell-EMC/PKGS_OPX-3.0.0-installer-x86_64.bin Initializing installer...OK Verifying image checksum...OK Unsupported machine: accton_as5712_54x ONIE: NOS install successful: http://archive.openswitch.net/installers/3.0.0/Dell-EMC/PKGS_OPX-3.0.0-installer-x86_64.bin ONIE: Rebooting... ONIE:/ # discover: Rescue mode detected. No discover stopped. Stopping: dropbear ssh daemon... done. Stopping: telnetd... done. Stopping: syslogd... done. Info: Unmounting kernel filesystems The system is going down NOW! Sent SIGTERM to all processes Sent SIGKILL toRestarting system. machine restart I guess this build is only for DELL-EMC? Are there pre-built installers for the AS5712? How would I go about compiling it? I read that OpenSwitch was compatible with the AS5712 - is the same true for OPX? If not, where can I get the older versions, e.g. 1.0.0?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/open-switch/opx-build/issues/74?email_source=notifications&email_token=ABOXSS6O2LLGXPGRGIA4WFDQZH7YFA5CNFSM4J4JIAY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IBJ2M7A, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOXSS5DTIMSPDCDONCIW2LQZH7YFANCNFSM4J4JIAYQ.

davidgengenbach commented 4 years ago

Thanks for your answer! Are there any (serious) efforts porting OPX for non-Dell hardware? From the 22 supported devices, 21 are from Dell. This seems like vendor lock-in again?

Regarding my second question: where can I find old releases of OpenSwitch (OPS not OPX)?

jghalam commented 4 years ago

Hi David, The procedure to onboard a platform is fairly straightforward as long as the NPU is the same or already supported. If the NPU is different, you need to contact Edgecore for the code since the NPU related code is always the biggest challenge to obtain. Here is the guide to port a new platform for OPX: https://github.com/open-switch/opx-docs/wiki/OPX-porting-guide

On you comment about “Vendor lock-in”, that’s definitely one way of looking at it. The reality is that Dell has been one of the only contributers that has stayed with the project for the last 4 years and continued to contribute code and hardware. If the project is still alive, it’s because of Dell.

The original openswitch code was archived for 3 years and based on a decision by The technical board and Linux Foundation, it was removed. I don’t know if there is a way to get access to it.

Thanks, Joe

On Sat, Dec 21, 2019 at 2:24 AM David notifications@github.com wrote:

Thanks for your answer! Are there any (serious) efforts porting OPX for non-Dell hardware? From the 22 supported devices, 21 are from Dell. This seems like vendor lock-in again?

Regarding my second question: where can I find old releases of OpenSwitch (OPS not OPX)?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/open-switch/opx-build/issues/74?email_source=notifications&email_token=ABOXSS2NEUSHTW627YXCVT3QZXVEVA5CNFSM4J4JIAY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHOZMKQ#issuecomment-568170026, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOXSS222MLDFZQKOLKR27DQZXVEVANCNFSM4J4JIAYQ .