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.7 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 5BB6DC4338F for ; Wed, 25 Aug 2021 00:06:09 +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 472EC61178 for ; Wed, 25 Aug 2021 00:06:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 472EC61178 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 B5EFD82EE0; Wed, 25 Aug 2021 02:05:59 +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="BYe8S2tz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 319F682DB0; Wed, 25 Aug 2021 02:05:40 +0200 (CEST) Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (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 A4F1882DB2 for ; Wed, 25 Aug 2021 02:05:35 +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-pl1-x636.google.com with SMTP id b9so8886714plx.2 for ; Tue, 24 Aug 2021 17:05:35 -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=0+gUIyknUHev9Es/NJWL3IEvaYDdbFHuNvBuT6TcrB8=; b=BYe8S2tzCnNLXFq4VpPmJBZhUOqRpoySO8TFp56JxOFU0Y94uktXJtavNATjljitTp Wpv106OcqCbuaaXyJjlZVLZhF/8GOyc401YxZMdWiI3QSfvFOIEQvVYXK2orE9c4xGnr fJtVeLRpRUBVQF7u5Epf6STnmMB+NhhLr2pO8h/OdqnToMNVY2QI8pDURFq3JITCbth4 cbH8zDqEXpEdaAOafT8igFR4gQali3/miQC/UdbrPqoUIaFdM2SSgacjQj8nQbbb3Lgq oyV9Q1zbSxcW3TXAerl/g44eP50EgNutvmkBR8CdoSFUpU3tHEXKGoA7RchWmP/Ik6hi yxxw== 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=0+gUIyknUHev9Es/NJWL3IEvaYDdbFHuNvBuT6TcrB8=; b=kWcS5kgjocPkYYA8dSdBXsmobkBSF+lNJtZEBDS3EHnE+NhOVCeSr3zcjS+z528uMc W5pHdGgqPAA89KvB5ZwVejgrFOMjS3yyANvIIjUgffUJZ87em2mFpojn7x6KGb0V5OUP qhKLowN3/sTJUYsAjMg0hTK0R+MVBpBDVXac5q5iQXFkIg3swsfSc8VlEhxLIWUkzaRT fH6ncv2KpY0VHjoOT6kabUDfNodegzC8oTaxfBaqQVSsEgrjfIKwJtksIC33Yuhex46e +doZNuPqbSUti76dmbBOea/gCVQzMeXLwfiM8cB1F0lUNXUJUlKwCNem1owifdBThzaJ QxJg== X-Gm-Message-State: AOAM533a21gmSZdeBTbmD+t0guzIBWKq9Q+RzxFKpli2wCsImQamF73O fvL4ZthXEGqYj3WWtIgK6Z8= X-Google-Smtp-Source: ABdhPJy1ghhlMxkjoi9n9ClwLHf5/6yg1G8H7He6d3Evn4lCQRR1mtetIDfrS2yCW+ny2gI58KC17Q== X-Received: by 2002:a17:90a:9285:: with SMTP id n5mr7108379pjo.29.1629849933885; Tue, 24 Aug 2021 17:05:33 -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 u16sm23832810pgh.53.2021.08.24.17.05.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 17:05:33 -0700 (PDT) From: Bin Meng To: Tom Rini , u-boot@lists.denx.de Subject: [PATCH 3/4] riscv: sifive: unleashed: Add genimage config files Date: Wed, 25 Aug 2021 08:05:19 +0800 Message-Id: <20210825000520.19368-3-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210825000520.19368-1-bmeng.cn@gmail.com> References: <20210825000520.19368-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 --- 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