Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions device/celestica/x86_64-cel_seastone_2-r0/installer.conf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
CONSOLE_DEV=0
CONSOLE_SPEED=115200
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="earlycon=uart8250,mmio,0xdf37b000"
3 changes: 2 additions & 1 deletion platform/broadcom/one-image.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(DELL_S6000_PLATFORM_MODULE) \
$(QUANTA_IX1B_32X_PLATFORM_MODULE) \
$(MITAC_LY1200_32X_PLATFORM_MODULE) \
$(ALPHANETWORKS_SNH60A0_320FV2_PLATFORM_MODULE) \
$(ALPHANETWORKS_SNH60B0_640F_PLATFORM_MODULE)
$(ALPHANETWORKS_SNH60B0_640F_PLATFORM_MODULE) \
$(CEL_SEASTONE2_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_DOCKERS += $(SONIC_INSTALL_DOCKER_IMAGES)
SONIC_INSTALLERS += $(SONIC_ONE_IMAGE)
12 changes: 9 additions & 3 deletions platform/broadcom/platform-modules-cel.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Celestica DX010 and Haliburton Platform modules
# Celestica platform modules

CEL_DX010_PLATFORM_MODULE_VERSION = 0.9
CEL_HALIBURTON_PLATFORM_MODULE_VERSION = 0.9
CEL_DX010_PLATFORM_MODULE_VERSION = 1.0
CEL_HALIBURTON_PLATFORM_MODULE_VERSION = 1.0
CEL_SEASTONE2_PLATFORM_MODULE_VERSION = 1.0

export CEL_DX010_PLATFORM_MODULE_VERSION
export CEL_HALIBURTON_PLATFORM_MODULE_VERSION
export CEL_SEASTONE2_PLATFORM_MODULE_VERSION

CEL_DX010_PLATFORM_MODULE = platform-modules-dx010_$(CEL_DX010_PLATFORM_MODULE_VERSION)_amd64.deb
$(CEL_DX010_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-cel
Expand All @@ -16,4 +18,8 @@ CEL_HALIBURTON_PLATFORM_MODULE = platform-modules-haliburton_$(CEL_HALIBURTON_PL
$(CEL_HALIBURTON_PLATFORM_MODULE)_PLATFORM = x86_64-cel_e1031-r0
$(eval $(call add_extra_package,$(CEL_DX010_PLATFORM_MODULE),$(CEL_HALIBURTON_PLATFORM_MODULE)))

CEL_SEASTONE2_PLATFORM_MODULE = platform-modules-seastone2_$(CEL_SEASTONE2_PLATFORM_MODULE_VERSION)_amd64.deb
$(CEL_SEASTONE2_PLATFORM_MODULE)_PLATFORM = x86_64-cel_seastone_2-r0
$(eval $(call add_extra_package,$(CEL_DX010_PLATFORM_MODULE),$(CEL_SEASTONE2_PLATFORM_MODULE)))

SONIC_STRETCH_DEBS += $(CEL_DX010_PLATFORM_MODULE)
2 changes: 1 addition & 1 deletion platform/broadcom/sonic-platform-modules-cel/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
platform drivers for Celestica DX010 and Haliburton for the SONiC project
platform drivers of Celestica network switchs for the SONiC project
6 changes: 6 additions & 0 deletions platform/broadcom/sonic-platform-modules-cel/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
sonic-cel-platform-modules (1.0) unstable; urgency=low

* Introduce seastone2 platform module.

-- Pradchaya Phucharoen <pphuchar@celestica.com> Tue, 9 Apr 2019 17:27:29 +0800

sonic-cel-platform-modules (0.9) unstable; urgency=low

* Add haliburton platform module.
Expand Down
7 changes: 5 additions & 2 deletions platform/broadcom/sonic-platform-modules-cel/debian/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Source: sonic-cel-platform-modules
Section: main
Priority: extra
Maintainer: Abhisit Sangjan <asang@celestica.com>
Maintainer: Wirut Getbamrung <wgetbumr@celestica.com>
Build-Depends: debhelper (>= 8.0.0), bzip2
Standards-Version: 3.9.3

Expand All @@ -10,8 +10,11 @@ Architecture: amd64
Depends: linux-image-4.9.0-8-amd64
Description: kernel modules for platform devices such as fan, led, sfp


Package: platform-modules-haliburton
Architecture: amd64
Depends: linux-image-4.9.0-8-amd64
Description: kernel modules for platform devices such as fan, led, sfp

Package: platform-modules-seastone2
Architecture: amd64
Description: kernel modules for platform devices such as fan, led, sfp
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

### BEGIN INIT INFO
# Provides: setup-board
# Required-Start: $portmap
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Setup seastone2 board.
### END INIT INFO

case "$1" in
start)
echo -n "Setting up board... "

# Add driver to support HW
modprobe i2c-dev
modprobe baseboard_cpld
modprobe switchboard_fpga
modprobe mc24lc64t

# Add driver to support TLV - EEPROM
for devnum in 0 1; do
devname=`cat /sys/bus/i2c/devices/i2c-${devnum}/name`
if [[ $devname == 'SMBus iSMT adapter at '* ]]; then
echo 24lc64t 0x56 > /sys/bus/i2c/devices/i2c-${devnum}/new_device
break
fi
done
sleep 1
echo "done."
;;

stop)
echo "done."
;;

force-reload|restart)
echo "Not supported"
;;

*)
echo "Usage: /etc/init.d/platform-modules-seastone2.init {start|stop}"
exit 1
;;
esac

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
seastone2/cfg/seastone2-modules.conf etc/modules-load.d
seastone2/systemd/platform-modules-seastone2.service lib/systemd/system
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
depmod -a
systemctl enable platform-modules-seastone2.service
systemctl start platform-modules-seastone2.service
2 changes: 1 addition & 1 deletion platform/broadcom/sonic-platform-modules-cel/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export INSTALL_MOD_DIR:=extra
KVERSION ?= $(shell uname -r)
KERNEL_SRC := /lib/modules/$(KVERSION)
MOD_SRC_DIR:= $(shell pwd)
MODULE_DIRS:= dx010 haliburton
MODULE_DIRS:= dx010 haliburton seastone2

%:
dh $@
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

i2c-i801
i2c-isch
i2c-ismt
i2c-dev
i2c-mux
i2c-smbus

i2c-mux-gpio
i2c-mux-pca954x

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
KBUILD_CFLAGS+=-DSEASTONE2
obj-m := mc24lc64t.o baseboard_cpld.o switchboard_fpga.o
Loading