From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2421C4320A for ; Thu, 26 Aug 2021 15:34:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id F059A60F25 for ; Thu, 26 Aug 2021 15:34:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F059A60F25 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 41EDE831CC; Thu, 26 Aug 2021 17:34:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VRlbZ6F2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 554A682F26; Thu, 26 Aug 2021 17:33:54 +0200 (CEST) Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (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 C45D08315F for ; Thu, 26 Aug 2021 17:33:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pj1-x1031.google.com with SMTP id qe12-20020a17090b4f8c00b00179321cbae7so2644923pjb.2 for ; Thu, 26 Aug 2021 08:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=wt93e7Q3B5n1c9hpfBUbLPzYRLb0PxuBI0AdNzuNIzc=; b=VRlbZ6F24LCsG/Mz6Hs4XPM3Tleu/95aLLbUWopIQXAuikuDjH2gY096k+vMnAIUkk I+YSdqg61mZxPs+E3VJzRvVJSceWDvWMucsHhr1MBOlw+hVcmqZD+E9ElAt1iLQL8G/r 0447mCyIPwUfZIMGGKwmXAgIt2CrN3KkmdAmJzplgPMloMvUr8U5CHUhMFbo4KuyXpvb TFyjHth3MTIi7AQ1DrkvE7H258ME5qwmc7/svI0jOC9mdsylqqHKq0BRfusa1A84Yaz+ KJfsuU48t66400fjgjKNzgI1w7pwJOLsLpGaaEW0fMdHDSRp5qpvr9dhDIOTfhRWvHy9 EYrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wt93e7Q3B5n1c9hpfBUbLPzYRLb0PxuBI0AdNzuNIzc=; b=aM+GdZ2i7K7VpewK6kmmbn8t0+ZGLheObbSxGwGVEzcYiaDK5BrhrRtfipa9prtPys QJYljD+EpL4h92u77rZ8kIiCa41jEFixrRFWdpBOezzh/GR02R4ZQEJFGMm8WfpExsVG Tjgp+MQNaGdeEWEcYfkntUNrVuhfqnkaP3TF0Og4BKpn5FsFrUWC3efQ6y3ETkT0zRk1 2hhElzO9eEiDJPwb4weiBK7sXgdQvwtdvRtBw09JIN99koM5pD/iQQdKUf5z3OFlONqD 1fi84wDj5Jm3WQME/PsnxNNlHtxXfvrAjun3eSDavnc9H0E4lSN4yp8jJGe5WjnwKgqI 5ENw== X-Gm-Message-State: AOAM53264XCSJRpT/OjYCjY7rLfvFA3EucHo17zASeV8hexNgHhPwikl wGKFp2rulFk68uhNS9pAoBGg379HMu2MWQ== X-Google-Smtp-Source: ABdhPJwIv4ndYrq2bR4G3nkuH3JO72BgsDPv1FRcjj/smDjqNniyY8mW/ZWlOiN+dqZGz69oa/jvHg== X-Received: by 2002:a17:90a:560a:: with SMTP id r10mr17760285pjf.86.1629992026944; Thu, 26 Aug 2021 08:33:46 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id n15sm3497518pff.149.2021.08.26.08.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Aug 2021 08:33:46 -0700 (PDT) From: Bin Meng To: Tom Rini , u-boot@lists.denx.de Subject: [PATCH v2 3/4] riscv: sifive: unleashed: Add genimage config files Date: Thu, 26 Aug 2021 23:33:34 +0800 Message-Id: <20210826153335.27964-3-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210826153335.27964-1-bmeng.cn@gmail.com> References: <20210826153335.27964-1-bmeng.cn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean This adds genimage [1] config files for generating SD card and spi-nor images, which can be programmed to an SD card or SPI flash and boot from there. The same images will be used for U-Boot CI testing for this board. [1] https://github.com/pengutronix/genimage Signed-off-by: Bin Meng --- (no changes since v1) board/sifive/unleashed/genimage_sdcard.cfg | 19 +++++++++++++++++++ board/sifive/unleashed/genimage_spi-nor.cfg | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 board/sifive/unleashed/genimage_sdcard.cfg create mode 100644 board/sifive/unleashed/genimage_spi-nor.cfg diff --git a/board/sifive/unleashed/genimage_sdcard.cfg b/board/sifive/unleashed/genimage_sdcard.cfg new file mode 100644 index 0000000000..91c53bf855 --- /dev/null +++ b/board/sifive/unleashed/genimage_sdcard.cfg @@ -0,0 +1,19 @@ +image sdcard.img { + size = 128M + + hdimage { + gpt = true + } + + partition u-boot-spl { + image = "u-boot-spl.bin" + offset = 17K + partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47 + } + + partition u-boot { + image = "u-boot.itb" + offset = 1041K + partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985 + } +} diff --git a/board/sifive/unleashed/genimage_spi-nor.cfg b/board/sifive/unleashed/genimage_spi-nor.cfg new file mode 100644 index 0000000000..2e5d89bfe8 --- /dev/null +++ b/board/sifive/unleashed/genimage_spi-nor.cfg @@ -0,0 +1,19 @@ +image spi-nor.img { + size = 32M + + hdimage { + gpt = true + } + + partition u-boot-spl { + image = "u-boot-spl.bin" + offset = 20K + partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47 + } + + partition u-boot { + image = "u-boot.itb" + offset = 1044K + partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985 + } +} -- 2.25.1