Merge branch 'master' of github.com:jnealtowns/OpenNetworkLinux

This commit is contained in:
Jeffrey Townsend
2015-12-18 13:49:56 -08:00
10 changed files with 80 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
comment: dummy package for ONLP on Wedge
packages:
- name: onlp-${platform}
summary: ONLP Package for the ${platform} platform.
changelog: initial version

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,16 @@
from onl.platform.base import *
from onl.vendor.accton import *
class OnlPlatform_x86_64_accton_wedge_16x_r0(OpenNetworkPlatformAccton):
def model(self):
return "Wedge-16X"
def platform(self):
return "x86-64-accton-wedge-16x-r0"
def baseconfig(self):
return True
def sys_oid_platform(self):
return ".16.1"