Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E39DCEB64DD for ; Tue, 25 Jul 2023 21:09:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DE2C08678C; Tue, 25 Jul 2023 23:09:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="buw3vLVp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C195186679; Tue, 25 Jul 2023 23:08:56 +0200 (CEST) Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E6EC886729 for ; Tue, 25 Jul 2023 23:08:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-vs1-xe2b.google.com with SMTP id ada2fe7eead31-44096f01658so2100018137.0 for ; Tue, 25 Jul 2023 14:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1690319332; x=1690924132; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=TKrpzuUm4nuTM74YoUKHDBpNHac0NpvRrc9eFIrxnmE=; b=buw3vLVpmUQuCSFhUpXyhoVXec38YI50iSDw7KggSaXHwfw/D8z1kGbecsNTrNT3uV IYPkg2kwQvlcNDj0IiDscZi4OoL4wtA0ihN4tm4l5jsJeVe/OGfJB9g9Cy0z7TThjJPK ke4TR0e56CbQPoyCinJR2yxdKEX/Io4UU0ol0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690319332; x=1690924132; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TKrpzuUm4nuTM74YoUKHDBpNHac0NpvRrc9eFIrxnmE=; b=jAlxCqRBJSoVPuhv2ot9TUOvbNxEVgYavHsnhVhCp4M/JLsvgqShRIqbiLPcFCOHJs Z+tc1R8mXBTGozp+Nc0j6hMX90hGhdO7X0l+tcMI7ubvz+F1KKVdpfgNGbr2z3exsSxC rTGN6c+fyEjBkjZGG5ni5WR0aQCFRZa6Lyr7SYPdk0LhhtwuOO8oL6E1YT22fuD+zO0K wInnYX3B7S8zTVEiUIopc93OkiYY7mXXLa7+xOFNZVKJxaHj9RmafS87CVssp8Evsjty cxCOdTPpJYEjDU2XJYh1HbDsqHkQe8EUxn0YmouDILA8aFlvP1zfBLcejwgw1CLOeB/E rOhQ== X-Gm-Message-State: ABy/qLaffNQe36/RzdOJpL3tcsFyDIWX+KTO8BdFmjq444NLD4rSVj9R 1RvLfWCuo6qVn9Dq3WQ6jiGGPdASiAHAuGr2ib+LGQ== X-Google-Smtp-Source: APBJJlECRu4Jsw8GinQqD7u/dJfyj9uHs1EYjURhasE2ruRzOoAV6K2HhKHLVEHTNRnLRcmrhwTbqw== X-Received: by 2002:a05:6102:415:b0:447:7da:bd35 with SMTP id d21-20020a056102041500b0044707dabd35mr99681vsq.24.1690319332557; Tue, 25 Jul 2023 14:08:52 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-b236-e3a5-57be-379d.res6.spectrum.com. [2603:6081:7b00:6400:b236:e3a5:57be:379d]) by smtp.gmail.com with ESMTPSA id z26-20020ab0565a000000b0078f3657faa5sm366825uaa.36.2023.07.25.14.08.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 14:08:51 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [u-boot-test-hooks 4/4] bin/writer.ti-k3_mount: Add support for TI K3 platforms via mount Date: Tue, 25 Jul 2023 17:08:47 -0400 Message-Id: <20230725210847.1472585-4-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725210847.1472585-1-trini@konsulko.com> References: <20230725210847.1472585-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The TI K3 platforms require a number of things in order to boot. We must have built both the Cortex-R and Cortex-A configurations (following their board documents and requirements as these need additional tooling and binaries). Further, depending on the specific SoC and variant we need three or four files to be copied to the mount point, with specific names. The least fragile way to handle this is that each board conf file must define the name of the input files to copy (the outputs have static names). Signed-off-by: Tom Rini --- bin/writer.ti-k3_mount | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 bin/writer.ti-k3_mount diff --git a/bin/writer.ti-k3_mount b/bin/writer.ti-k3_mount new file mode 100755 index 000000000000..e22a2a50de78 --- /dev/null +++ b/bin/writer.ti-k3_mount @@ -0,0 +1,36 @@ +# Copyright 2022 Konsulko Group. All rights reserved. +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + +# Copies MLO to the filesystem + +set -e + +build=${U_BOOT_BUILD_DIR} + +if [ -z "${tispl}" -o -z "${uboot}" -o -z "${tiboot3}" ]; then + echo "Must configure tispl, uboot, tiboot3 and optionally sysfw" + echo "per the board documentation." + exit 1 +fi +echo "Writing to ${mount_dir} from build at ${build}" +sudo cp -v ${build}/${tispl} ${mount_dir}/tispl.bin +sudo cp -v ${build}/${uboot} ${mount_dir}/u-boot.img.bin +sudo cp -v ${build/_a??/_r5}/${tiboot3} ${mount_dir}/tiboot3.bin +[ ! -z "${sysfw}" ] && sudo cp -v ${build/_a??/_r5}/${sysfw} ${mount_dir}/sysfw.itb -- 2.34.1