From patchwork Wed Sep 11 15:07:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3426 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C162642E89 for ; Wed, 11 Sep 2024 17:07:42 +0200 (CEST) Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-374c35b8e38sf3058403f8f.2 for ; Wed, 11 Sep 2024 08:07:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726067262; cv=pass; d=google.com; s=arc-20240605; b=B253b8WTDV5XhV2BXjraJ1LnIYnuRJ53QpWQi8yNOerBqXW7hOLh8deMLnSTiWL00R gzxUdCDqJ5sz3Tddkf8WtQDsrVWCwpaio05dulL6E9MkMrNxQmSJnpPSQxQWINfTozD9 pPE+mrwTwXBj9L9TcjC3MKxbdBlSY95XPFJxqfUrzhaz0vKAJTcCcpa+C86DUKFZxGud N9lItKXg5nvdL6TbwV35IxXkI1YNQMKxHYe32zbptEhGxQQ012S9Q8EihI7KiETN8CPZ EcgVz2lQScogcq6UEh1KnOoQTTN6H3bdQOXDqDc7KEiR64KpMi7WDXZ1tbK6iVTuDZdn Ewrw== 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=Fscn8VUUTRECTUpsJKHstwxqN43w8fZFsb7ya3PIz60=; fh=t7Z3zL2+PHyandPnQ7RH0qz5EMaW9lNcnIVrTBVwS6s=; b=R1I1iMOOVfyscA4LigDMcLQvHTTc80psllELGD79AIM/cit8gqWlKyvu0CxOpZdKCV RrDSnglp8bofV5UYvSNnuBvk9BLVSltX0CQHxkfpJLnHuFzg1CUP0kbE7sPHMdSR6Qzo DTuro8v4xvntaIpw37sPeykBVYSUAF12MB+BjWEDujCVWYDEWtd7H8zbnRA0IAkICSW7 0nchBTKB13VMYJhKu+Ma8Coxzz/dKdu6UfBMJkPZLpral/td0YPfZUT9dH0rHnQHoM88 I3YsC8hFc02VCUxmZy9FVD7f00BpByzocgNjsGcIWYgjeDPWOc7MfDvXbWuAV9jCA23F /pMQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NLHbraI1; 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=1726067262; x=1726672062; 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=Fscn8VUUTRECTUpsJKHstwxqN43w8fZFsb7ya3PIz60=; b=G9bBoUa4iRWWs9dM/0ciZhzbKIBWQiMjKKxYicVMOtzCGuIZchdn/8tehx5UD63vd3 Q4TlB6haPk6QzGXYlEnxaGOEinSUN22NlnSFkhOQ+AFru2B5rsgGHpCi8Sh/+1LYjsvx nTwCp+v/K5WqZ0h4Xtp+qZzXDiv1yx16HAoA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726067262; x=1726672062; 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=Fscn8VUUTRECTUpsJKHstwxqN43w8fZFsb7ya3PIz60=; b=MIYhkjie/IQFG2caD+XqwYHtESUrgLJaw4m0xvchQJ5c1RrJMvts82pKXl1vkpVkt6 mqAV/zAyprdeP4FxDyPS5n9jYv4pax7UQMB35C5pjgA3o63mCRAx4hBLk2cPkfhWdR1/ awAdqbxUnM84Ak1GVym/cvG++Zm1FhLBgfqVfiYa16cm87O4pA4JKa54G7FK2HLFMs7t G5ujHMndYppf40sKSy+1BezJEt0dvZSmforVLUAlYcL4h/wmJqXrGd/ex4f29PcjAPXD uWl2n4vHAuvxeMH7GHlEtAfO4vjfA2F5rRDYfY6zuWgKUoDcFYdBNEwot82H26ioOQNq Cidw== X-Forwarded-Encrypted: i=2; AJvYcCWvTjWAHXR+6qc/kSv9bWqNzVO533cTgkdlB9NCGoD62K5YeKAJdZePGL555Spbss0GPn+kl0qaR0j7xMwg@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyucpeWsTFPT7ZBwa805k+iM21FADtuAYiW7aSokHmnX0To/mz+ tkeJAJKXrRroaHJvN3H27VLDDTwXO22o+4DE3hTIBL879FloNeyJKmaEIpofw6G6OA== X-Google-Smtp-Source: AGHT+IFfFI4a6r5WcHF8BIJiZu7qXC1lHIcvBNzn12DGAL62ihXYI8x4vHNb1xOlkrFSTY/Fm3dd4w== X-Received: by 2002:a05:6000:4581:b0:371:9377:975f with SMTP id ffacd0b85a97d-378895d4740mr10821242f8f.25.1726067262362; Wed, 11 Sep 2024 08:07:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:434d:0:b0:367:9918:6c47 with SMTP id ffacd0b85a97d-378c1d13707ls10170f8f.2.-pod-prod-04-eu; Wed, 11 Sep 2024 08:07:41 -0700 (PDT) X-Received: by 2002:a5d:6384:0:b0:374:d28e:c8f0 with SMTP id ffacd0b85a97d-378895b79admr11391302f8f.11.1726067260809; Wed, 11 Sep 2024 08:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726067260; cv=none; d=google.com; s=arc-20160816; b=fZxFfiG9YBNIuP49oyRdwI5ukMlNsqi3ntjUJ2v/bWrGLapLxmF8qAvDDLQIraeQO7 Htb2B7yB3wU8K3vGeplYFNn2PdAZx73NAz1WMxobNTQJQ5G3NT453LZsb62hggbS/vEV Ks2izrVZpjNbI+7UnKhrHh1lkXDuKhlQj6lfD+2rc4CJeU/wKn2fDAmwFmJUJEQF+ONk dlIdCn+gIMBTMQCHE2ibce4TDkW92H52xdQOUtmgkHCRJ+qM4HyaJ4FJXP7+SaEAShvn TNHFLbg57wVw3r7iYcTJDcbCro6SwSdzOSnQBGCwFS2fJt8o7hMBlASNGWwIsOZtNjuQ G0Zg== 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=/KJYXjRIE7VPiwSo6JzOW6Mav2fYbyf2xklAhN7WMPA=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=GdvT/WH9bKGx2u1rTDizOCXLzfrDg/to1VxAvMRa+Hgc3U/kSbevHlnIaIkjvfSZ/h aUQceOe/P+D+4tQqWSb7aqOuHr1dPiNEOn3PpwXlSH9V+2lUxns3VByNrvqkk84KpT+K cV5HPJvKZ2ObVW/ugRU7tihcXkV2lR5lGz1kBbuP+3BbdUU/ic4z7/W1haN9BfRFHns6 tuDFM72oYUvW7UPMZv+8rvOxdC7h1w/RM52T8AEvPIYp15cEyC6eSy+eWbF4WqgN1b89 /uOmE16SVExkdpO4TaYe8q9uDtz8XdE/F00PnUTsfTzhEbaHPKKZI3voUY+MJl6Hgh0L 9b+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NLHbraI1; 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 ffacd0b85a97d-378956672fbsor2100950f8f.3.2024.09.11.08.07.40 for (Google Transport Security); Wed, 11 Sep 2024 08:07:40 -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:a5d:558f:0:b0:36b:bb84:33e2 with SMTP id ffacd0b85a97d-378896a3fb0mr11903211f8f.37.1726067260149; Wed, 11 Sep 2024 08:07:40 -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.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 08:07:39 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH v2 06/10] board/bsh/imx8mn-bsh-smm-s2-pro: mount Linux debugfs at bootup Date: Wed, 11 Sep 2024 17:07:29 +0200 Message-ID: <20240911150733.2914626-6-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=NLHbraI1; 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: , Really useful during development. Signed-off-by: Dario Binacchi --- board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh b/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh index 08eb3abc5b8f..47f6d9ae8a10 100755 --- a/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh +++ b/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh @@ -6,3 +6,8 @@ install -d "$TARGET_DIR/boot/extlinux/" sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/extlinux.conf" > "$TARGET_DIR/boot/extlinux/extlinux.conf" sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/genimage.cfg" > "$BINARIES_DIR/genimage.cfg" install ${BOARD_DIR}/emmc_boot.lst ${BINARIES_DIR} + +# mount debugfs +grep -q "/sys/kernel/debug" ${TARGET_DIR}/etc/fstab || \ +echo "nodev\t\t/sys/kernel/debug\tdebugfs\tdefaults\t\t0\t0" \ + >> ${TARGET_DIR}/etc/fstab