From patchwork Tue Sep 3 15:29:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3362 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3E4063F033 for ; Tue, 3 Sep 2024 17:29:31 +0200 (CEST) Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2f5215bc4edsf58476791fa.0 for ; Tue, 03 Sep 2024 08:29:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725377370; cv=pass; d=google.com; s=arc-20240605; b=MDAvmA5Gq5X5p5iQbyy4EOaanjRwZuT3qyZrymyGksrWbd8poWDJG3lZzSxQkXtlZI wZFsS88HLxyy22qKMY0rZDeo+yPfI9riQZCi/eRuMoSm+EKumiRzNm88tke5rlenf95b m5W3gSSZunFQLTasr7Uq3KZkL0nTjVYvjF7+sctI+ylCm2jszqNm4i68K+HF5vjvcicI phx62jtl3XubE8ICvZVHfC6QV9mk+ivetiIb1xY/fwqlNwco1eLt9ktbkCa6IrbL70oZ v558ekHLhwzRpq+ytoW7lPVE5iH0B16vwkUeJyy+m/rAV6yvBepQMYoFHcvM8lokQOxM FEPg== 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=+xbMOgFdlV/2hNzknQlQTibSJ2VHaRFSSGZdhgpbKkI=; fh=+Brl4evZg5sekJ66nKGuAbhtMqdDrcJyXSsolEe29QY=; b=QnK+GlRf1lDWhEe6lMXI22oazggdl1w4IKGFjpFJ96U/3NGZYSJgGQeFykyn/ov5Yb Lt5CNnyoQj7fPgHp7NFE2WWPwwP+QTM7QzRMMMFNHqXax5Ia4Vad7Zlw2SN7VpXkHEP/ Wm7FOnJG8hzDfkDmV7C7Ood0g5Ynomf8NBn/zZcocD0ehcnnpsE3HZHyL4fiwVxYOag0 w6uEglC5MofxHnFtGeOCqLdSnHPhs6J5O0PZQSUc+TYmrW1v37NaHvVOd7T/06+Wi6LZ 6KAYJiia5dWD2OvK/WYlqc90h/+R74oTM8/UXfJxi6Vmr3Gl8oN/a6QuX5wpPrtVbxS1 1yHQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NsKstiNp; 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=1725377370; x=1725982170; 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=+xbMOgFdlV/2hNzknQlQTibSJ2VHaRFSSGZdhgpbKkI=; b=XISP8GFBDPKr3PjiNFPN0Q2UBwtq3p8z3r3tAYcDGlMnKmR1+Xw62yt+Z2iUy0eTDc zuhbDMJO515NaCk+WOhqX4i7ik/A2m8RtzqVMx1ik+ZgkAyKupjZtY44mKkASDj5ez84 Mi1D9SM8r9EZuOWyYUbEQ62IFJ6iOWubiEiLA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725377370; x=1725982170; 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=+xbMOgFdlV/2hNzknQlQTibSJ2VHaRFSSGZdhgpbKkI=; b=Mv7gn544N1pczYhG62n9Dafoo2d4LkJ5/5VxaS/7gtnOdFhNr0xilL3bzPiA9c2ykZ /L06qxolWXZ7Du+zWnSBWunwzpXJxqz1ZMayt5XJ04ganSg7O2mTD/kNLGKYi8mKnMQ7 gQaqK1b860xhRw5f904kCD+J8sX8+lW36CjIbrhpS9osY32JMqL1kM19di7AMB4BaOpA rYC1SBM2iGvT2ccr9zjVaMaxKJBuXLGvJ/K2dwR5SwbeDTfidjxrhe/9rkJxxG/M8Eg4 +guedXhUcxtsartyRBx8kMQYtlyxJNr6SBp9AZT/faJJs5m/Ld7t415vVVZvyP236dY5 77cQ== X-Forwarded-Encrypted: i=2; AJvYcCX1uu26n/On3zeARiwYK6izDhe/F2dcFs2xxoo91ehdKwFIujF7WXO2o2IFG0Wk0PiJ82OsGTne2QCgmpqJ@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YweG6vOF+yM2j6Hz7lPDb/fuD8oDkuCO42sphXb+F8FZyYs3132 4NmajuorstMLUm5S7E8U7DyroYUpNkwCZf5noTW5NJanxFkaoESufo8f6LtnWqpruQlpi2f/Tg= = X-Google-Smtp-Source: AGHT+IGK6L59wWyQMYGAA/c4627zwyFWaSmIfC0m098HUq0X9+ati5MlILCwCGUmzQP+SlyKuylAHg== X-Received: by 2002:a05:6512:110c:b0:533:4785:828b with SMTP id 2adb3069b0e04-53546ba879amr10899576e87.49.1725377370059; Tue, 03 Sep 2024 08:29:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:ac1:b0:52e:9923:a1c2 with SMTP id 2adb3069b0e04-5353d71b5efls698244e87.1.-pod-prod-03-eu; Tue, 03 Sep 2024 08:29:28 -0700 (PDT) X-Received: by 2002:a05:6512:3f1a:b0:52c:dac3:392b with SMTP id 2adb3069b0e04-53546b432e8mr10111672e87.33.1725377368295; Tue, 03 Sep 2024 08:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725377368; cv=none; d=google.com; s=arc-20160816; b=xwYNK4hIE+ucJe1LXga8KfmkRlomF+8d3U/6m3rEzYSqRS86ApRxZIqucjARnUgN3R +P1wNeI69/kPC3hYPaPzxFnxcmrc9xSWGKzLF9mxKeAgiQuG7U7eoKiGg2avMuqyw/vR LjI+y3bUc00hiTXgmHF2np2F9RVyZjnE3bGrhJzry+BmMuQHUu/vTPj8/fWZjRXGqtV+ EHb3BSNi9LEOIdxGpOKT5u5y20/IxWnM5PcmKYOa8dh2/6ItC7vji1EW3TIXmjGbUAR/ J90kb2XusUpuFDbJK/nTjuBeFlJFBxnB0rN4QbFyJXrCRX45eAO1rOBSE2TKRY3mHy0w KObw== 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=ImnOp2ILnCs9HoVDNZ/fwYnPNDB/7Bepb6eIWQpRHLI=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=AJBqFa2IymGzR2eIxMuUoqA860234dmAJyEJ0mBX63mBsrr9Uk/fwc9S5Y2SngQD5y JnIRpChC5qewmd/AiBpHV71y+KOYXycQWH0gna/2natfryANMHfAt6DVMbckJkqDOxOb 5WxVsRlXNaBHTy1nCjBOafM/TVUmGGNwRfbN12srFBye/aKJSs7sHIR8ufkkUPyVnTLZ 5QDcdaCPQM9JKp4VSMHh1ml9qSh79NF/n+k+o8veHeeSlyqTK/dX1ThJHp8dGtWBOviY zYVw89TfCCg2OeUALDr7rQg6i+3mgKclXv9H53GuqxdYLVrva+IF/mEXVVyK7vp9aXmG Whhg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NsKstiNp; 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-5354079b904sor3575965e87.14.2024.09.03.08.29.28 for (Google Transport Security); Tue, 03 Sep 2024 08:29:28 -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:a8b:b0:52c:a7c8:ec43 with SMTP id 2adb3069b0e04-53546a5dac7mr9065152e87.0.1725377367411; Tue, 03 Sep 2024 08:29:27 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.42.65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba641dad0sm210568905e9.30.2024.09.03.08.29.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 08:29:27 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH 01/11] board: imx8mn-bsh-smm-s2-pro add boot script Date: Tue, 3 Sep 2024 17:29:15 +0200 Message-ID: <20240903152925.917831-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=NsKstiNp; 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 --- 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}