From 4bcfacd66d5fdfd2e3752155698ddc5a7585a0de Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Thu, 22 Sep 2016 11:03:28 +0200 Subject: [PATCH] Fake EDID on odroid images Add tct/prepare/hdmi_force.sh Author of this script: Andrzej Hajda Any change to this file may break this hack. Add install_hdmi_force to tct/prepare/prepare.sh Change-Id: Ie08f234c2dc8c5f1973d64e933e10e371dbcadc6 Signed-off-by: Aleksander Mistewicz --- tct/odroid_prepare_flash_conf.sh | 1 + tct/prepare/hdmi_force.sh | Bin 0 -> 512 bytes tct/prepare/prepare.sh | 9 +++++++++ 3 files changed, 10 insertions(+) create mode 100755 tct/prepare/hdmi_force.sh diff --git a/tct/odroid_prepare_flash_conf.sh b/tct/odroid_prepare_flash_conf.sh index 11b17bb..d7f4a24 100755 --- a/tct/odroid_prepare_flash_conf.sh +++ b/tct/odroid_prepare_flash_conf.sh @@ -50,6 +50,7 @@ unpack_image "${BOOT_IMAGE}" "${IMAGE}" "${IMAGE_UNPACKED}" mount_image "${IMAGE_UNPACKED}/rootfs.img" "${IMAGE_MOUNTPOINT}" install_iserial "${SDMUX}" "${IMAGE_MOUNTPOINT}" +install_hdmi_force "${IMAGE_MOUNTPOINT}" unmount_image "${IMAGE_MOUNTPOINT}" echo "### flash ###" diff --git a/tct/prepare/hdmi_force.sh b/tct/prepare/hdmi_force.sh new file mode 100755 index 0000000000000000000000000000000000000000..971384aa542a16afc99abf76f254c55ef62df37e GIT binary patch literal 512 zcmY#Z)KALH(@#n)&fwxoNm0m5vsE!r$WOD?FRm=s&rU7MOU=q7r+N~wZ$lRbQUcvQl;^GjWnQHt2A$#996#6$F zXk=(?n98v7z-9(UMkcEUi9!oqhX@^4h6PbTZE|UfVXFcecY-{NFslf&kb&jggQW62oxy_1d8Nogd$ux4FHu2ZFc|w literal 0 HcmV?d00001 diff --git a/tct/prepare/prepare.sh b/tct/prepare/prepare.sh index 5c7a24c..76302eb 100755 --- a/tct/prepare/prepare.sh +++ b/tct/prepare/prepare.sh @@ -36,6 +36,15 @@ install_iserial() { "${IMAGE_MOUNTPOINT}/etc/systemd/system/multi-user.target.wants/iserial.service" } +install_hdmi_force() { + test -n "${TESTLAB_SCRIPTS}" || die "Missing env: testlab_scripts!" + IMAGE_MOUNTPOINT="$1" + test -n "${IMAGE_MOUNTPOINT}" || die "Missing argument: image_mountpoint!" + sudo cp "${TESTLAB_SCRIPTS}/prepare/hdmi_force.sh" "${IMAGE_MOUNTPOINT}/usr/sbin/" + sudo sed -i 's|^ExecStart|ExecStartPre=/usr/sbin/hdmi_force.sh\nExecStart|' \ + "${IMAGE_MOUNTPOINT}/usr/lib/systemd/system/display-manager.service" +} + unpack_image() { test $# -ge 2 || die "Too few arguments!" eval DESTINATION=\$$# -- 2.7.4