From 619ca8b2a8d6be971cc5360366782516435ba4e6 Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Fri, 12 Dec 2025 11:49:14 +0100 Subject: [PATCH] Revert "cccs: ccimx6ul: drop exception for `data` partition and client certificates" If a target's DRM certificate is lost/erased before registering said target, the CCCS server will reject all connection attempts from the target. This can happen during development, as our installer scripts format the data partition where the certificate is stored by default (see commit c17af3fd4754). Since the ccimx6ul uses sysvinit, we respawn the cccsd daemon via inittab if process ends unexpectedly (see commit b154154a7ee8). When the server always rejects connections due to a missing certificate, the cccsd daemon is constantly respawning and terminating prematurely. Said daemon is very CPU-intensive during initialization, so this causes the overall system's performance to be hindered. For now, to avoid this situation, use the CCCS endpoint that doesn't require a certificate in order to ensure stable connections even if the data partition gets formatted. https://onedigi.atlassian.net/browse/DEL-9892 https://onedigi.atlassian.net/browse/DEL-9894 This reverts commit 4f8ed2d4348d9b2c08de43fb46490f9e304a5c88. Signed-off-by: Gabriel Valcazar --- meta-digi-dey/recipes-digi/cccs/cccs_git.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-digi-dey/recipes-digi/cccs/cccs_git.bb b/meta-digi-dey/recipes-digi/cccs/cccs_git.bb index 7e623890c..dc62ab2a0 100644 --- a/meta-digi-dey/recipes-digi/cccs/cccs_git.bb +++ b/meta-digi-dey/recipes-digi/cccs/cccs_git.bb @@ -87,6 +87,13 @@ do_install() { fi } +do_install:append:ccimx6ul() { + if [ -z "${CCCS_CONF_PATH}" ]; then + sed -i "/url = \"edp12.devicecloud.com\"/c\url = \"remotemanager.digi.com\"" ${D}${sysconfdir}/cccs.conf + sed -i "/client_cert_path = \"\/mnt\/data\/drm_cert.pem\"/c\client_cert_path = \"\/etc\/ssl\/certs\/drm_cert.pem\"" ${D}${sysconfdir}/cccs.conf + fi +} + pkg_postinst_ontarget:${PN}-daemon() { # If dualboot is enabled, change the CCCSD download path and set on the fly to yes on the first boot if [ "$(fw_printenv -n dualboot 2>/dev/null)" = "yes" ]; then