platform files for Accton Wedge 16x

This commit is contained in:
Steven Noble
2015-12-17 00:23:52 +00:00
parent cebbbaf9c4
commit 872ee5d821
10 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1,15 @@
variables:
platform: x86-64-accton-wedge-16x-r0
install: /lib/platform-config/${platform}/onl
common:
version: 1.0.0
arch: amd64
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onlp-${platform}
summary: ONLP Package for the ${platform} platform.
changelog: Change changes changes.,

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=accton PLATFORM=x86-64-accton-wedge-16x-r0

View File

@@ -0,0 +1,22 @@
serial --unit=0 --speed=57600 --word=8 --parity=0 --stop=1
terminal_input serial
terminal_output serial
set timeout=5
# boot onl
menuentry OpenNetworkLinux {
search --no-floppy --label --set=root ONL-BOOT
echo 'Loading Open Network Linux ...'
insmod gzio
insmod part_msdos
# grub options copied from Wedge's grub.conf; did not verify which were necessary
linux /kernel-3.2-deb7-x86_64-all nopat console=ttyS1,57600n8 onl_platform=x86-64-accton-wedge-16x-r0 rd_NO_MD rd_NO_LUKS intel_iommu=off
initrd /initrd-amd64
}
# Menu entry to chainload ONIE
menuentry ONIE {
search --no-floppy --label --set=root ONIE-BOOT
echo 'Loading ONIE ...'
chainloader +1
}

View File

@@ -0,0 +1,7 @@
echo "pci0000:00/0000:00:14.0 ma1" >/etc/onl/net
cp /dev/null /etc/onl/mounts
echo "LABEL=FLASH * flash" >> /etc/onl/mounts
echo "LABEL=FLASH2 * flash2" >> /etc/onl/mounts

View File

@@ -0,0 +1,15 @@
############################################################
# <bsn.cl fy=2013 v=none>
#
# Copyright 2013, 2014 BigSwitch Networks, Inc.
#
#
#
# </bsn.cl>
############################################################
# Platform data goes here.
platform_installer() {
# Standard isntallation to an available GPT partition
installer_standard_gpt_install /dev/sda
}

View File

@@ -0,0 +1,31 @@
from onl.platform.base import *
from onl.vendor.accton import *
class OpenNetworkPlatformImplementation(OpenNetworkPlatformAccton):
def model(self):
return "Wedge"
def platform(self):
return "x86-64-accton-wedge-16x-r0"
def _plat_info_dict(self):
return {
platinfo.LAG_COMPONENT_MAX : 24,
platinfo.PORT_COUNT : 16,
platinfo.ENHANCED_HASHING : True,
platinfo.SYMMETRIC_HASHING : True,
}
def sys_init(self):
pass
def sys_oid_platform(self):
# FIXME
return ".16.1"
def baseconfig(self):
return os.system(os.path.join(self.platform_basedir(), "boot", "x86-64-accton-wedge-r0-devices.sh")) == 0
if __name__ == "__main__":
print OpenNetworkPlatformImplementation()