mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 01:37:04 +00:00
Initial support for Quanta LY6 Rangeley platform
This commit is contained in:
@@ -0,0 +1 @@
|
||||
include $(ONL)/make/pkg.mk
|
||||
@@ -0,0 +1 @@
|
||||
include $(ONL)/make/pkg.mk
|
||||
@@ -0,0 +1 @@
|
||||
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=x86 VENDOR=quanta PLATFORM=x86-64-quanta-ly6-rangeley-r0
|
||||
@@ -0,0 +1,22 @@
|
||||
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-x86_64 console=ttyS1,115200n8 onl_platform=x86-64-quanta-ly6-ran
|
||||
geley-r0
|
||||
initrd /initrd-amd64
|
||||
}
|
||||
|
||||
# Menu entry to chainload ONIE
|
||||
menuentry ONIE {
|
||||
search --no-floppy --label --set=root ONIE-BOOT
|
||||
echo 'Loading ONIE ...'
|
||||
chainloader +1
|
||||
}
|
||||
@@ -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
|
||||
@@ -0,0 +1,16 @@
|
||||
############################################################
|
||||
# <bsn.cl fy=2013 v=none>
|
||||
#
|
||||
# Copyright 2013, 2014 BigSwitch Networks, Inc.
|
||||
# Copyright 2015 Quanta Computer Inc.
|
||||
#
|
||||
#
|
||||
#
|
||||
# </bsn.cl>
|
||||
############################################################
|
||||
# Platform data goes here.
|
||||
|
||||
platform_installer() {
|
||||
# Standard isntallation to an available GPT partition
|
||||
installer_standard_gpt_install /dev/sda
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
from onl.platform.base import *
|
||||
from onl.platform.accton import *
|
||||
|
||||
class OnlPlatform_x86_64_quanta_ly6_rangeley_r0(OnlPlatformAccton):
|
||||
|
||||
def model(self):
|
||||
return "LY6-Rangeley"
|
||||
|
||||
def platform(self):
|
||||
return "x86-64-quanta-ly6-rangeley-r0"
|
||||
|
||||
def sys_oid_platform(self):
|
||||
return ".6.1"
|
||||
|
||||
def baseconfig(self):
|
||||
try:
|
||||
files = os.listdir("%s/etc/init.d" % self.platform_basedir())
|
||||
for file in files:
|
||||
src = "%s/etc/init.d/%s" % (self.platform_basedir(), file)
|
||||
dst = "/etc/init.d/%s" % file
|
||||
os.system("cp -f %s %s" % (src, dst))
|
||||
os.system("/usr/sbin/update-rc.d %s defaults" % file)
|
||||
except:
|
||||
pass
|
||||
|
||||
# make ds1339 as default rtc
|
||||
os.system("ln -snf /dev/rtc1 /dev/rtc")
|
||||
os.system("hwclock --hctosys")
|
||||
|
||||
# set system led to green
|
||||
os.system("%s/sbin/systemled green" % self.platform_basedir())
|
||||
|
||||
return True
|
||||
Reference in New Issue
Block a user