Skip to content

Commit 9874fe3

Browse files
committed
meta-evb: meta-evb-arm: use kernel mctp stack
create mctp-local.service to - configure serial parameters for /dev/ttyAMA1 - create the link with 'mctp' command - configure local and remote EID for the link - setup the endpoint with mctpd Tested: pldm commands work and response is received from the MCP Change-Id: If924376c4775229c1701924e154894e4eaefa362 Signed-off-by: Alexander Hansen <[email protected]>
1 parent b698c50 commit 9874fe3

File tree

5 files changed

+38
-3
lines changed

5 files changed

+38
-3
lines changed

meta-evb/meta-evb-arm/meta-evb-fvp-base/conf/machine/fvp.conf

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include fvp-config.inc
66

77
require conf/distro/include/phosphor-mmc.inc
88
require conf/machine/include/arm/arch-armv8-4a.inc
9+
require conf/distro/include/mctp.inc
910
require conf/distro/include/pldm.inc
1011
require conf/machine/include/obmc-evb-common.inc
1112
require conf/machine/include/obmc-bsp-common.inc
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[Unit]
2+
Description=MCTP configuration for serial ttyAMA1
3+
After=mctpd.service
4+
Before=pldmd.service
5+
BindTo=mctpd.service
6+
7+
[Service]
8+
Type=simple
9+
ExecStartPre=stty -F /dev/ttyAMA1 115200 litout -crtscts -ixon -echo raw
10+
ExecStart=mctp link serial /dev/ttyAMA1
11+
ExecStartPost=sleep 3
12+
ExecStartPost=mctp link set mctpserial0 up
13+
ExecStartPost=mctp addr add 8 dev mctpserial0
14+
ExecStartPost=mctp route add 18 via mctpserial0
15+
ExecStartPost=busctl call xyz.openbmc_project.MCTP /xyz/openbmc_project/mctp au.com.CodeConstruct.MCTP SetupEndpoint say mctpserial0 0
16+
17+
[Install]
18+
WantedBy=mctpd.service
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2+
3+
SRC_URI:append = " \
4+
file://mctp-local.service \
5+
"
6+
7+
SYSTEMD_SERVICE:${PN} += "mctp-local.service"
8+
9+
do_install:append() {
10+
install -m 0644 ${WORKDIR}/mctp-local.service ${D}${systemd_system_unitdir}/
11+
}
12+
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0
1+
18

meta-evb/meta-evb-arm/meta-evb-fvp-base/recipes-phosphor/pldm/pldm_%.bbappend

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
22

3+
# increase the timeouts for our use-case,
4+
# refer to this layer's README.md
5+
36
EXTRA_OEMESON:append = " \
4-
-Doem-ibm=disabled \
5-
"
7+
-Dresponse-time-out=4800 \
8+
-Ddbus-timeout-value=10 \
9+
"
610

711
SRC_URI:append = " file://host_eid "
812

0 commit comments

Comments
 (0)