diff --git a/layers/meta-opentrons/recipes-graphics/wayland/files/imx-nxp-bsp/increase-cma.conf b/layers/meta-opentrons/recipes-graphics/wayland/files/imx-nxp-bsp/increase-cma.conf new file mode 100644 index 00000000..eb860536 --- /dev/null +++ b/layers/meta-opentrons/recipes-graphics/wayland/files/imx-nxp-bsp/increase-cma.conf @@ -0,0 +1,3 @@ +# increase the amount of contiguous memory area for buffer allocations +[Service] +ExecStartPre=/bin/echo '671088640' > /sys/module/galcore/parameters/contiguousSize diff --git a/layers/meta-opentrons/recipes-graphics/wayland/weston-init.bbappend b/layers/meta-opentrons/recipes-graphics/wayland/weston-init.bbappend index 234aeb9c..b92a0ce4 100644 --- a/layers/meta-opentrons/recipes-graphics/wayland/weston-init.bbappend +++ b/layers/meta-opentrons/recipes-graphics/wayland/weston-init.bbappend @@ -1,8 +1,12 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:" -SRC_URI += " file://manage-users.conf" +SRC_URI += " file://manage-users.conf file://increase-cma.conf" do_install:append() { install -D -p -m0644 ${WORKDIR}/manage-users.conf ${D}${systemd_system_unitdir}/weston.service.d/manage-users.conf + install -D -p -m0644 ${WORKDIR}/increase-cma.conf ${D}${systemd_system_unitdir}/weston.service.d/increase-cma.conf } -FILES:${PN} += " ${systemd_system_unitdir}/weston.service.d ${systemd_system_unitdir}/weston.service.d/manage-users.conf" +FILES:${PN} += " \ + ${systemd_system_unitdir}/weston.service.d ${systemd_system_unitdir}/weston.service.d/manage-users.conf \ + ${systemd_system_unitdir}/weston.service.d ${systemd_system_unitdir}/weston.service.d/increase-cma.conf \ +" diff --git a/layers/meta-opentrons/recipes-robot/opentrons-robot-app/files/opentrons-robot-app.service.in b/layers/meta-opentrons/recipes-robot/opentrons-robot-app/files/opentrons-robot-app.service.in index 3efd57ae..4f7e70a4 100644 --- a/layers/meta-opentrons/recipes-robot/opentrons-robot-app/files/opentrons-robot-app.service.in +++ b/layers/meta-opentrons/recipes-robot/opentrons-robot-app/files/opentrons-robot-app.service.in @@ -12,6 +12,7 @@ ExecStopPost=/bin/systemctl start opentrons-loading.service TimeoutStartSec=30 ExitType=cgroup NotifyAccess=all +Restart=on-failure [Install] WantedBy=multi-user.target