From patchwork Wed Sep 11 15:07:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3430 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D91123F263 for ; Wed, 11 Sep 2024 17:07:49 +0200 (CEST) Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-5356aaecdf6sf7206988e87.2 for ; Wed, 11 Sep 2024 08:07:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726067269; cv=pass; d=google.com; s=arc-20240605; b=H+PCJUQRZQJ90uvODfxi9jwnh8913GkaOio29wF3kUYLGd1dq31JYrn7OCx8RURKex dIuS/YD9M+pvcd6QssqBs05Y2/Be39XMGuB9suEubEO7HJlxDHn6plNNh5Mn6CiLNztz 9UkgMCmvepHCG2cWItmJEUTuUOtFzFRYkjfKS+3KcnXBgrkXWYqdfl134u+EkOR3LvF2 EJb9AaaT++ZVRawe0mb3eCswDx8D5F55e9pegLRgwvRxWj5AFZiTbeUyq0v00nQvVjbB c27q2LomBoMEme14mk6hy/vAuC3n0Aj4nxEKsfEqkTSSr7NhEXgEBpi6L0+TJdZlRYB1 Kg/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=7MdNrY5V7Ge0c8EqTLQfSWVH2l8E1aXDv7VxtRJTHMg=; fh=6n7D3F4uJxIAwHLlCcm9QIng9FADxz9O6aBckc3b5R4=; b=P4AY1QawaSwpycZjo6sWC3MGcHkysAj1yucr05u7n2R7XjhA6tPznGr/0zST4MVg7G VAuF/S1y3St0U3mgio3+jziUdVY1wJCx6Now/IGKftW22LTCqexuT4DtQ0s7eBQeH1T9 7hD0Qny9qB0QwGRsThbdICUP8BaGluBPceQnm92xgdlMetppu548SIo1nfpUYyqPtth7 AocZEIN+oTVf0cMV0C0/smpbyDhZa16W/Y+BAnRL/VztrxSEJNns1kekDsRypSg3gvl0 rjgcEnSvPABgLZILpY59larCro6CkJ180becI+W0D60CslOYVMOJWWCrkYZe1vimHtvH WUCQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dBSAD0QA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1726067269; x=1726672069; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=7MdNrY5V7Ge0c8EqTLQfSWVH2l8E1aXDv7VxtRJTHMg=; b=AeVzoQtvMqcrjQmLn22pvH7XhSedG5Xdq0ZoptT1bUjnIKRDSgSzxOo/Z+6p+CZ9RU K35p7wfT5nNBNnDmONQ8pmk5BCSleWfenATKSyolkP8awzzpDFn/ISw8/cApsEykJ31c JnEi3Pnt5o2xld1epXdTFUEYhvifOL9NTKM34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726067269; x=1726672069; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7MdNrY5V7Ge0c8EqTLQfSWVH2l8E1aXDv7VxtRJTHMg=; b=v+X/vS1CZdLW41/QuLCStScIjWpuMNRIMM0FStn4b1Ec2DNa/VtKHJ7ZNXszVt2EKm 0x4Am9nnQXBuCFLWe/Pry9Tdg8MVpJSCLwAefyCimtGm2KR6ZMmycoKhuy7y4Ddu1LgS wGOkC9TsKe5iq3qL9sChoY9PwIXg+vGrWITTjh/3hFpdJ7oPJ3ey4hHmM3U52o67BBOM nEl7DHsn8y/DptM76aFhrOwM0FtE7AmD3EItRP2aZyRLDp3+BIx4+MnQ2pnAt968nBoK 8D5fStuFuPVVbRc+CenYRUwGFDdOLod8xcix6n9tTc5muHETJLkVqHZLRRDvA/lfoXj2 JIjw== X-Forwarded-Encrypted: i=2; AJvYcCUHby2waYF6YcdFTMo0peLxP5CQv87fdCZptAxtnF+O9Akot+lwyypIAI11rVgF/4m3jMUZG8r+LnXASCAL@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwlBP+xm7lRsKe8cWafVfE3thsPjfJOXij+D9if7P51CKKc3XZF fehaGazv8M9pdt1xlPSuEzKe7us1Ozo4CJ5664TG+e9uXiKVMqDz2TuF3qY8iiQ0iQ== X-Google-Smtp-Source: AGHT+IGki6bnJtKBUFOyaz6qGptD393AbvhpO1t9SSzIgTnjfJL4rYDl1pNejJwShvkWYC8ECXdvog== X-Received: by 2002:a05:6512:234b:b0:52c:9e82:a971 with SMTP id 2adb3069b0e04-536587a6845mr10391880e87.7.1726067268826; Wed, 11 Sep 2024 08:07:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:3f0f:b0:52f:c32b:29e9 with SMTP id 2adb3069b0e04-536789e533als29542e87.1.-pod-prod-06-eu; Wed, 11 Sep 2024 08:07:47 -0700 (PDT) X-Received: by 2002:a05:6512:ea4:b0:536:54fd:275b with SMTP id 2adb3069b0e04-5365880fd8amr11428299e87.54.1726067265411; Wed, 11 Sep 2024 08:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726067265; cv=none; d=google.com; s=arc-20160816; b=d8/hjKC/W0SrtcvZfLNQcitZJyJDZXOgTFvcI/NLKmwLuCwai3LWSQmpefsH1MVi+J gkNV49FKum5yjNot98q3vnLrpJ17nAyAXF/bEnP9UvJBdsnwGIaOsNEMfp/BNXaTHc/E LFu5/kHrqpn2flwXYoVN5rUt6C8Xp5kFFy9WPj9/pvcADOZEcwVzBV1daD0JwxNr1OZV CNQ6ASVbu+CcrBi34V0E6gh+Xp8A9wIkPemdz1fPkeQ8nPCoplWfV12N9qQGoivrji+T J8B6tV361pIvA8iKKRLZfx+ow8k/p2Cpb/yaR7sibcOKXkeHB7IHjfaL/pvfKX4UTNmf Z1oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=VOjkAgooHpbPN0PvdueWEiG6reDc92Tnc0H91lac0F0=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=FKwfZ73BvBkRkILgiFrsCqZvkIA4vMISjdWX5tRkkK62Ky77RktKuyQxXhQE/KtFDB Ba9ajBDeGkyKwT8vl7NyT4I4Vw34G+tJQYA38alnKAkf7RyvcmG+5jT7NRu2nREi6gjg iEZi4Tt8Vem5TxkJ9wcH2dVlRg26tx2TpmQ9vhzM9rhxgEA0jhwLdwf0QLxCCU6+e5lf VPJnkpQ/xwywSaX9onZN6/dycnB75OoIkAPnhsAKzAEhjNnlPG31LVwdMNyuM8p2WbY4 XMXvIJex5ZPOBPPuODgqY5v2LlLU5S603+CkMXVV6R7dudFtoBDWU2vYK+ESLCSHs9x+ qykA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dBSAD0QA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 2adb3069b0e04-5365f8c19efsor2844448e87.21.2024.09.11.08.07.45 for (Google Transport Security); Wed, 11 Sep 2024 08:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6512:1191:b0:535:6935:7869 with SMTP id 2adb3069b0e04-5365880fe89mr10083066e87.55.1726067264274; Wed, 11 Sep 2024 08:07:44 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895649b88sm11872282f8f.6.2024.09.11.08.07.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 08:07:43 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH v2 10/10] board: imx8mn-bsh-smm-s2/pro: install a script for testing DRM Date: Wed, 11 Sep 2024 17:07:33 +0200 Message-ID: <20240911150733.2914626-10-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240911150733.2914626-1-dario.binacchi@amarulasolutions.com> References: <20240911150733.2914626-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dBSAD0QA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Dario Binacchi --- .../rootfs_overlay/etc/init.d/S99displaytest | 42 +++++++++++++++++++ configs/imx8mn_bsh_smm_s2_pro_defconfig | 1 + 2 files changed, 43 insertions(+) create mode 100755 board/bsh/common/imx8mn-bsh-smm-s2/rootfs_overlay/etc/init.d/S99displaytest diff --git a/board/bsh/common/imx8mn-bsh-smm-s2/rootfs_overlay/etc/init.d/S99displaytest b/board/bsh/common/imx8mn-bsh-smm-s2/rootfs_overlay/etc/init.d/S99displaytest new file mode 100755 index 000000000000..5428ecbbf251 --- /dev/null +++ b/board/bsh/common/imx8mn-bsh-smm-s2/rootfs_overlay/etc/init.d/S99displaytest @@ -0,0 +1,42 @@ +#!/bin/sh +# + +start() { + printf "Starting fb-test:" + /usr/bin/fb-test -p 6 + if [ $? -eq 0 ]; then + echo "OK" + sleep 2 + else + echo "FAIL" + fi + printf "Starting modetest" + start-stop-daemon -S -q -m -p /run/modetest.pid \ + -x /usr/bin/modetest -- -M mxsfb-drm -s 38@36:640x1280 +} +stop() { + printf "Stopping modetest: " + start-stop-daemon -K -q -p /run/modetest.pid + [ $? = 0 ] && echo "OK" || echo "FAIL" +} +restart() { + stop + start +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + restart + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $? diff --git a/configs/imx8mn_bsh_smm_s2_pro_defconfig b/configs/imx8mn_bsh_smm_s2_pro_defconfig index 03f5adc53826..4f0d01bc6125 100644 --- a/configs/imx8mn_bsh_smm_s2_pro_defconfig +++ b/configs/imx8mn_bsh_smm_s2_pro_defconfig @@ -4,6 +4,7 @@ BR2_GLOBAL_PATCH_DIR="board/bsh/common/imx8mn-bsh-smm-s2/patches" BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3" +BR2_ROOTFS_OVERLAY="board/bsh/common/imx8mn-bsh-smm-s2/rootfs_overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh" BR2_LINUX_KERNEL=y