Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Aspeed BMC USB Network Gadget Interface Renaming Rule
# Renames USB NCM gadget interface from usb0 to bmc0 for consistent naming

# Match USB NCM gadget interface with BMC MAC address and rename to bmc0
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="02:00:00:00:00:01", NAME="bmc0"

2 changes: 2 additions & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/99-switchCpu.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Micas M2-W6950-128OC BMC: map host CPU console /dev/ttyS2 to /dev/ttySwitchCpu0
SUBSYSTEM=="tty", KERNEL=="ttyS2", SYMLINK+="ttySwitchCpu0", MODE="0666"
2 changes: 2 additions & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/asic.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# BMC does not have switch ASIC, but SONiC expects NUM_ASIC >= 1
NUM_ASIC=1
6 changes: 6 additions & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/bmc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bmc_if_name": "bmc0",
"bmc_if_addr": "169.254.100.2",
"bmc_addr": "169.254.100.1",
"bmc_net_mask": "255.255.255.252"
}
1 change: 1 addition & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/default_sku
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
M2-W6950-128OC empty
7 changes: 7 additions & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/installer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Console configuration for AST27xx platform
CONSOLE_DEV=12
CONSOLE_SPEED=115200
EARLYCON="earlycon=uart8250,mmio32,0x14c33b00"
bootconf="micas-m2-w6950-128oc"
VAR_LOG_SIZE=512
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX=""
20 changes: 20 additions & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/platform.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"chassis": {
"name": "M2-W6950-128OC-BMC",
"thermal_manager": false,
"status_led": {
"controllable": true,
"colors": ["green", "amber", "off"]
},
"components": [
{
"name": "BIOS"
}
],
"fans": [],
"psus": [],
"thermals": [],
"sfps": []
},
"interfaces": {}
}
1 change: 1 addition & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aspeed
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"chassis": {
"M2-W6950-128OC": {
"component": {
"CPU_CPLD": { },
"BASE_CPLD": { },
"MAC_CPLDA": { },
"MAC_CPLDB": { },
"IO_CPLD": { },
"FAN_CPLD": { },
"MAC_FPGA": { },
"IO_FPGA": { },
"BIOS": { }
}
}
}
}
2 changes: 2 additions & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/platform_env.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# BMC platform environment for Micas AST27xx
switch_bmc=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"skip_thermalctld": false,
"skip_ledd": true,
"skip_xcvrd": true,
"skip_psud": true,
"skip_syseepromd": false,
"skip_pcied": true,
"skip_chassisd": false,
"skip_chassis_db_init": false,
"skip_fancontrol": true,
"include_sensormond": false,
"thermalctld": {
"thermal_monitor_initial_interval": 5,
"thermal_monitor_update_interval": 60,
"thermal_monitor_update_elapsed_threshold": 30
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Console configuration for Micas M2-W6950-128OC BMC
CONSOLE_BAUD_RATE=115200
CONSOLE_FLOW_CONTROL=0
CONSOLE_REMOTE_DEVICE=SwitchCpu
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": ["psu", "pdb", "fan", "asic"],
"user_defined_checkers": [],
"polling_interval": 300,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "amber_blink"
}
}
1 change: 1 addition & 0 deletions device/micas/arm64-micas_m2-w6950-128oc-r0/udevprefix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ttySwitchCpu
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,21 @@ elif echo "$MODEL" | grep -qi -e "AST2700-A1 Spc6" -e "AST2700-A2 Spc6"; then
PLATFORM="arm64-aspeed_nvidia_ast2700_bmc-r0"
MACHINE="aspeed_ast2700"
log "Detected NVIDIA SPC6 BMC platform"
elif echo "$COMPATIBLE" | grep -q "aspeed,ast2700-evb"; then
PLATFORM="arm64-aspeed_ast2700_evb-r0"
MACHINE="aspeed_ast2700"
log "Detected Aspeed AST2700 EVB platform"
elif echo "$COMPATIBLE" | grep -q "arista_goldfinch-r0"; then
PLATFORM="arm64-arista_goldfinch-r0"
MACHINE="aspeed_ast2700"
log "Detected Arista Goldfinch platform"
elif echo "$COMPATIBLE" | grep -q "micas,m2-w6950-128oc"; then
PLATFORM="arm64-micas_m2-w6950-128oc-r0"
MACHINE="aspeed_ast2700"
log "Detected Micas M2-W6950-128OC BMC platform"
elif echo "$COMPATIBLE" | grep -q "aspeed,ast2700-evb"; then
PLATFORM="arm64-aspeed_ast2700_evb-r0"
MACHINE="aspeed_ast2700"
log "Detected Aspeed AST2700 EVB platform"
else
log "ERROR: Unknown hardware. Compatible: $COMPATIBLE, model: $MODEL"
log "Supported platforms: nexthop-b27-r0, nvidia-spc6-bmc, aspeed_ast2700_evb, arista_goldfinch-r0"
log "Supported platforms: nexthop-b27-r0, nvidia-spc6-bmc, aspeed_ast2700_evb, arista_goldfinch-r0, micas-m2-w6950-128oc"
exit 1
fi

Expand All @@ -77,4 +81,3 @@ cat "$MACHINE_CONF" | tee -a "$LOG_FILE"
log "Machine configuration initialization complete"

exit 0

4 changes: 3 additions & 1 deletion platform/aspeed/one-image.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(ASPEED_NEXTHOP_B27_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(ASPEED_NVIDIA_AST2700_BMC_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(ARISTA_PLATFORM_MODULE_ALL)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(NOKIA_BMC_H6_128_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(MICAS_COMMON_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(ASPEED_MICAS_M2_W6950_128OC_PLATFORM_MODULE)

$(SONIC_ONE_IMAGE)_DOCKERS = $(DOCKER_DATABASE) $(DOCKER_GNMI) $(DOCKER_PLATFORM_MONITOR) $(DOCKER_LLDP) $(DOCKER_TELEMETRY) $(DOCKER_SYSMGR) $(DOCKER_SONIC_REDFISH)
SONIC_INSTALLERS += $(SONIC_ONE_IMAGE)
SONIC_INSTALLERS += $(SONIC_ONE_IMAGE)
8 changes: 8 additions & 0 deletions platform/aspeed/platform-modules-micas.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
MPATH := $($(MICAS_COMMON_PLATFORM_MODULE)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) platform/aspeed/platform-modules-micas.mk platform/aspeed/platform-modules-micas.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
DEP_FILES += $(addprefix $(MPATH)/,$(shell cd $(MPATH) && git ls-files))

$(MICAS_COMMON_PLATFORM_MODULE)_CACHE_MODE := GIT_CONTENT_SHA
$(MICAS_COMMON_PLATFORM_MODULE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(MICAS_COMMON_PLATFORM_MODULE)_DEP_FILES := $(DEP_FILES)
14 changes: 14 additions & 0 deletions platform/aspeed/platform-modules-micas.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Micas Platform modules
#

# Common package - contains shared utilities for Micas Aspeed-based BMC cards
MICAS_COMMON_PLATFORM_MODULE = sonic-platform-aspeed-micas-common_1.0_arm64.deb
$(MICAS_COMMON_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-micas
$(MICAS_COMMON_PLATFORM_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
$(MICAS_COMMON_PLATFORM_MODULE)_PLATFORM = arm64-micas-common
SONIC_DPKG_DEBS += $(MICAS_COMMON_PLATFORM_MODULE)

# M2-W6950-128OC platform package
ASPEED_MICAS_M2_W6950_128OC_PLATFORM_MODULE = sonic-platform-aspeed-micas-m2-w6950-128oc_1.0_arm64.deb
$(ASPEED_MICAS_M2_W6950_128OC_PLATFORM_MODULE)_PLATFORM = arm64-micas_m2-w6950-128oc-r0
$(eval $(call add_extra_package,$(MICAS_COMMON_PLATFORM_MODULE),$(ASPEED_MICAS_M2_W6950_128OC_PLATFORM_MODULE)))
1 change: 1 addition & 0 deletions platform/aspeed/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include $(PLATFORM_PATH)/aspeed-platform-services.mk
include $(PLATFORM_PATH)/nvidia-hw-mgmt.mk
include $(PLATFORM_PATH)/platform-modules-arista.mk
include $(PLATFORM_PATH)/platform-modules-nokia.mk
include $(PLATFORM_PATH)/platform-modules-micas.mk
include $(PLATFORM_PATH)/one-image.mk
include $(PLATFORM_PATH)/recipes/installer-tftp.mk

Expand Down
Loading
Loading