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 17B1AEB64DD for ; Tue, 25 Jul 2023 21:09:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB1CE86797; Tue, 25 Jul 2023 23:09:20 +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="CSR2cUFq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 775C686128; Tue, 25 Jul 2023 23:08:56 +0200 (CEST) Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) (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 5EDFD86698 for ; Tue, 25 Jul 2023 23:08:52 +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-xe32.google.com with SMTP id ada2fe7eead31-44504b2141bso1979971137.2 for ; Tue, 25 Jul 2023 14:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1690319331; x=1690924131; 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=miXmuNzLUot8qoSmBlLBJWGPutLwB6dfmLpDSls/Ujs=; b=CSR2cUFqlfS2EUvXXj0B3HeUMy7TU5pC/XPNiz77GLkBjDVlM5qEBq5NZvlzWFt3Tm JZJ6wgHHDuM1jbbtPh/QxqHeA2d6QXYhjxQIjIv4IYMyyPciyk5AcEADZrTxiz7conwl TWBOQbmjQ7eZh2rZxeMVH0VDY6tN92aI3gI2k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690319331; x=1690924131; 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=miXmuNzLUot8qoSmBlLBJWGPutLwB6dfmLpDSls/Ujs=; b=V/pDHuNyAngAfUJ1xOkK3tMdWR4iwMpgugn9Myg1D6Yd/MVEyGRfAckQlj1xYvbZh1 Yi2g/lJo3dFLwY3TTG0hHgeYaLWMxSMhMUNN0hcUwaYKoj8o0rMbNzQ5a8IAEJR/dX5D AniCV81LI5NEMIkOjJOeEG6L8pmL/k6Hiehwo9Nbi6CS2sKlBmqF0Viy6703Hvbkgr9M AxcA7QezO+Q8Z5t1ahEGhY5lBA/gP0kTx5REMPf7jTsP7QP5WXpvbiWSBCIhB6B+GLjS 066zl6byRYEdjQ6D9hltoIWn9YEk6wAl5eRZiaYEJpRFr5VTOLJ8uTluJJTiWjJYHuQP PWZw== X-Gm-Message-State: ABy/qLYsebqvyAAoGYCVj6Eh5awPnvLv0hrIBDfoWYITq05W/9RULa56 XrDDOkXtuee0Dhw3jUnwa9V8EKtZTPjq65C45O7M3g== X-Google-Smtp-Source: APBJJlH6c5mNYaQlJ5CMvIe+UZOfCPXQJEdhsFLQX8e8weIIuQaKdRvstIuBScdWx0Fw8fwrwtB84A== X-Received: by 2002:a05:6102:11e6:b0:444:bb6f:b983 with SMTP id e6-20020a05610211e600b00444bb6fb983mr154735vsg.2.1690319331016; Tue, 25 Jul 2023 14:08:51 -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.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 14:08:50 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [u-boot-test-hooks 3/4] bin/writer.ti-omap_mount: Add support for TI OMAP-style platforms via mount Date: Tue, 25 Jul 2023 17:08:46 -0400 Message-Id: <20230725210847.1472585-3-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 In the case of TI OMAP (and similar) platforms, the SD card needs MLO and u-boot.img to boot, always. Copy these files over. Signed-off-by: Tom Rini --- bin/writer.ti-omap_mount | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 bin/writer.ti-omap_mount diff --git a/bin/writer.ti-omap_mount b/bin/writer.ti-omap_mount new file mode 100755 index 000000000000..7d1dbee8f65f --- /dev/null +++ b/bin/writer.ti-omap_mount @@ -0,0 +1,29 @@ +# 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} + +echo "Writing to ${mount_dir} from build at ${build}" + +sudo cp ${build}/MLO ${build}/u-boot.img ${mount_dir}/ -- 2.34.1