From patchwork Wed Sep 11 15:07:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3421 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 564DE3F263 for ; Wed, 11 Sep 2024 17:07:39 +0200 (CEST) Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-374c301db60sf2959595f8f.2 for ; Wed, 11 Sep 2024 08:07:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726067259; cv=pass; d=google.com; s=arc-20240605; b=ltX32UASoDjxg2KNPP0sxY5jZFfkTKid87/VUap/dLLVhf2QvYdSoA2ajTvzgdbZzG HNWy4FRMAFUlgGiuB0UY09FtYJ2nTZuvXZFi0TRjTPTDWipM3P/zKprSIPAEUwhh0s9j yoPN7afblgxOi3oWFq3bcnar5PnUAUOcN77Zz7dsywO+ewqtLd0WcucA9qAkDQqiNqG3 7U8trY3F0xpX1GUMIUZWDfSfcb0QtH3PiHYPMu9FrTQ3YVmmVNSxiwtk2qrUz4Yctp7k nH3ssDRyViesSjhpNSwFZKZb75MFa88Axj+zTxx4OUcYjIlL2V8OtvW2EBQS4ezBsQmI yErA== 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:message-id:date:subject:to :from:dkim-signature; bh=B87yyK4VPxVqCBU8bYNYkjoQbOKyfiPFHh0H6RZ8gNQ=; fh=XVI0iZ7Xlo2pr7XYAAV3jcT5BBYtRNObzilUoUON7G8=; b=PGSWCQw+spIdrakIPbFTtamJefW8ieX3m31YANn1z64OjAt0r/f4wlk3rERfbwryWA tDbwVFi67ZhjL5Hh7PqHl5UEVS7XHNJIBvzVTbkCPRMzsYu34aOGDXZkCqc0p+/rtmAB LVV9MV7klM3ZMd99en4ttg81JCmVlLHDCPYzp0M3+mqsToxodcejgDKmQkJ7bi0uFK6L GD7GdKXH/ZSdgzzlaifY8OYwpkdwjlq2Ku72xLYoJ8O332x7ehxK4r0l5CNEavWOZpL5 flMxzFQQR3hRkHLlP3rPvdDWA4tI75N3RxGJfJs1r24GLh7YKR/etXDAgJ2Hp7cIGGyr +sBg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n8UGJWor; 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=1726067259; x=1726672059; 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:message-id:date:subject:to:from:from :to:cc:subject:date:message-id:reply-to; bh=B87yyK4VPxVqCBU8bYNYkjoQbOKyfiPFHh0H6RZ8gNQ=; b=g079pr51uazWWOjNERcpSE1eNgXXIgumnsYPLR8hO9VqYKtMe2hqjPHfj+6DfOWqH7 g68FiRadDEDuLGNuPyLDGwXQuKT8/fKdKQ6VktYF840mLhHQCqzbbYEdrdWIfhwp+uHr gUFG1LipYt4Jr9D9NmFq1xHIoUMqKsM5+sRM8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726067259; x=1726672059; 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 :message-id:date:subject:to:from:x-beenthere:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=B87yyK4VPxVqCBU8bYNYkjoQbOKyfiPFHh0H6RZ8gNQ=; b=nft7gdA+a9n0jh6EkH6capR2jyaRdobP+YHwbN9YX/stBhl8Lv5/DPG4blI7PuVsdh PSJDSJqZ+aRTQHLJQAFQfu2FfEntMtQocMiyoE8iCPWvzBJkrth8hI0QE/n/Zx88Ze5S ZRlUHMsyz7J5jfxS1G70DNK76WAiYU13A+zMOVs3kEDpJBjTEWFP9khZ5fMKbXUgQdxz AtvJFkDeM4vG0/Tj9kNQxHCX4sIflmj7W60KBAG9wpTYKGIaZ9Jcd0iUNDVxA+yad/eg iyEUjacAJZjPk/E6sDdz0jOYjjha61X5Kd9OTMC4REyPJZ7dP7p5Tped9NoQ55A4kylF AOFg== X-Forwarded-Encrypted: i=2; AJvYcCXHQlo+dtY7YCRDQFhZ1rAK1UwrzCobYdj8saIxC0H8HlFDyJbDtSyVrYil0EkGMU9zscK5BJ5Zs58/aFZz@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YybJqOHbnKgscCS5Vk/vASquHMIYynbbsP9ted4DpCHh3RtQce8 SwRXgt05VfRPhwFf+dE71sosx8bws7TYzs9sH9RXAJDXEdGIxoQVY8elkNf2ngpP8QLt0jz1ng= = X-Google-Smtp-Source: AGHT+IF0a01D9lhL8mnIoClPHDoMSa/fWBkKDPRxMadnQUEUKGY6s2C3ASoXbyiRCJ2YpO/EeG4XtA== X-Received: by 2002:a05:6000:124b:b0:374:c942:a6b4 with SMTP id ffacd0b85a97d-3789268ee7amr8535256f8f.20.1726067258483; Wed, 11 Sep 2024 08:07:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:6443:0:b0:374:d333:a5d9 with SMTP id ffacd0b85a97d-37887fc0b16ls1816349f8f.0.-pod-prod-08-eu; Wed, 11 Sep 2024 08:07:37 -0700 (PDT) X-Received: by 2002:a05:600c:4e88:b0:426:6eac:8314 with SMTP id 5b1f17b1804b1-42cad7464a9mr120822525e9.1.1726067256967; Wed, 11 Sep 2024 08:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726067256; cv=none; d=google.com; s=arc-20160816; b=EPVOw/pn80TTO+YJRhuCNwiiCXxAVQ7GeMQ2wnFpZEjasqMIi7TWrb6R/XS8v0gqIy uibWv4FkcIWDQb6IBgCcXbfkURzCIRPswP5HVdHXn5HqDpAj1mPsQrAIJvZYAGMlsD8Y wQQRRgzrYVAswDUTje5Y2MUIwxm5zS4tFIOM873BiwQWnDxSYCwAdWtAqGjWsLjCyp79 N0iIqUvVgf74knGvdEUwdla274s78QUxLuHdAyGfYtuBXcoMXpikE9ngq9Mxz+pA3gwy VG0SWh3bCCT1DNSBRILBxDG4TnonDIxdsPzZ0vED8zx9jV84IPL+SA0Ib22Z0xTSls51 knuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:dkim-signature; bh=PHwzc/s+Oo30Zlp4SF1ORv+JnkV24YGOMJrCgwmIGCc=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=BrEWBG1weblPRMbL2Nj9EC75Y4M4OOCxW338nRCWSZkLHCGVRFJdop/iGDf9QvqCW7 CmV+nI6lM4MXIYdlggaVp3l9KwY1t8ZqU7jbC/Dy3RuvMFXBpHPqVRicc9YhHHYsP9vL mQ1iqQiOFIBp9OTlEvwjqJaRz2p7Luw0ZOoplggFfe4g9tuzOKB6kcbnOU3flGy24slL NpyJVkqGKPMsvGKgvGeBn5dqYQwNxONUnajzm8dlvDcxFdLUab4o/sr05YWu4R2HMYaq zAGllU9aZMKQ8yEhIAyurU95V+EqumbanEli+pAgLdxlNzes+2QNoR8NGXWMZWvspUDq L1cQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n8UGJWor; 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 5b1f17b1804b1-42caf308c9asor31483805e9.13.2024.09.11.08.07.36 for (Google Transport Security); Wed, 11 Sep 2024 08:07:36 -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:600c:1c86:b0:426:554a:e0bf with SMTP id 5b1f17b1804b1-42cad763777mr117545945e9.16.1726067255473; Wed, 11 Sep 2024 08:07:35 -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.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 08:07:35 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH v2 01/10] board: imx8mn-bsh-smm-s2-pro add boot script Date: Wed, 11 Sep 2024 17:07:24 +0200 Message-ID: <20240911150733.2914626-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 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=n8UGJWor; 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: , From: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- board/bsh/imx8mn-bsh-smm-s2-pro/boot.sh | 21 ++++++++++++++ board/bsh/imx8mn-bsh-smm-s2-pro/emmc_boot.lst | 28 +++++++++++++++++++ board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh | 1 + 3 files changed, 50 insertions(+) create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/boot.sh create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/emmc_boot.lst diff --git a/board/bsh/imx8mn-bsh-smm-s2-pro/boot.sh b/board/bsh/imx8mn-bsh-smm-s2-pro/boot.sh new file mode 100755 index 000000000000..7aeeed810a72 --- /dev/null +++ b/board/bsh/imx8mn-bsh-smm-s2-pro/boot.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + OUTPUT_DIR=output +else + OUTPUT_DIR=$1 +fi + +if ! test -d "${OUTPUT_DIR}" ; then + echo "ERROR: no output directory specified." + echo "Usage: $0 OUTPUT_DIR" + echo "" + echo "Arguments:" + echo " OUTPUT_DIR The Buildroot output directory." + exit 1 +fi + +IMAGES_DIR=${OUTPUT_DIR}/images + +${OUTPUT_DIR}/host/bin/uuu -v -b ${IMAGES_DIR}/emmc_boot.lst \ + ${IMAGES_DIR}/flash.bin diff --git a/board/bsh/imx8mn-bsh-smm-s2-pro/emmc_boot.lst b/board/bsh/imx8mn-bsh-smm-s2-pro/emmc_boot.lst new file mode 100644 index 000000000000..61ca1b753e8e --- /dev/null +++ b/board/bsh/imx8mn-bsh-smm-s2-pro/emmc_boot.lst @@ -0,0 +1,28 @@ +uuu_version 1.4.149 + +# @_flash.bin | bootloader, which can extract from wic image +# @_image [_flash.bin] | wic image burn to emmc. + + +# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ +SDP: boot -f _flash.bin -scanlimited 0x800000 + +# This command will be run when ROM support stream mode +# i.MX8QXP, i.MX8QM +SDPS: boot -scanterm -f _flash.bin -scanlimited 0x800000 + +# These commands will be run when use SPL and will be skipped if no spl +# SDPU will be deprecated. please use SDPV instead of SDPU +# { +SDPU: delay 1000 +SDPU: write -f _flash.bin -offset 0x57c00 +SDPU: jump -scanlimited 0x800000 +# } + +# These commands will be run when use SPL and will be skipped if no spl +# if (SPL support SDPV) +# { +SDPV: delay 1000 +SDPV: write -f _flash.bin -skipspl -scanterm -scanlimited 0x800000 +SDPV: jump -scanlimited 0x800000 +# } 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 bf8861f6a914..08eb3abc5b8f 100755 --- a/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh +++ b/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh @@ -5,3 +5,4 @@ PARTUUID="$($HOST_DIR/bin/uuidgen)" 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}