Merge pull request #12 from sonoble/as7512-32x

As7512 32x Platform Support
This commit is contained in:
Jeffrey Townsend
2015-12-22 09:56:40 -08:00
8 changed files with 79 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,19 @@
variables:
platform: x86-64-accton-as7512-32x-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.
files:
builds/lib/$BUILD_DIR/x86_64-linux-gnu/bin/libonlp-${platform}.so : ${install}/lib/
builds/onlpdump/$BUILD_DIR/x86_64-linux-gnu/bin/onlpdump : ${install}/lib/bin/
changelog: Change changes changes.,

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-as7512-32x-r0

View File

@@ -0,0 +1,21 @@
serial --port=0x2f8 --speed=115200 --word=8 --parity=no --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
linux /kernel-3.2-deb7-x86_64-all nopat console=ttyS1,115200n8 onl_platform=x86-64-accton-as7512-32x-r0
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,5 @@
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,16 @@
from onl.platform.base import *
from onl.platform.accton import *
class OnlPlatform_x86_64_accton_as7512_32x_r0(OnlPlatformAccton):
def model(self):
return "AS7512-32X"
def platform(self):
return "x86-64-accton-as7512-32x-r0"
def sys_oid_platform(self):
return ".7512.32"
def baseconfig(self):
return True