From patchwork Wed Jun 16 05:03:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 1492699 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=beagleboard-org.20150623.gappssmtp.com header.i=@beagleboard-org.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=DVlbL4pW; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Y6g4BvTz9sWX for ; Wed, 16 Jun 2021 15:05:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 98D30401D0; Wed, 16 Jun 2021 05:05:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FpFS6FjZoR1d; Wed, 16 Jun 2021 05:05:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id C721D401AE; Wed, 16 Jun 2021 05:05:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 18E521BF5DA for ; Wed, 16 Jun 2021 05:05:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 15F13401AE for ; Wed, 16 Jun 2021 05:05:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9O29MlJVrXoF for ; Wed, 16 Jun 2021 05:05:40 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by smtp2.osuosl.org (Postfix) with ESMTPS id 43A8C400CF for ; Wed, 16 Jun 2021 05:05:40 +0000 (UTC) Received: by mail-pf1-x430.google.com with SMTP id g6so1239441pfq.1 for ; Tue, 15 Jun 2021 22:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=71ucyzXykg851MyZ1Ojh7VtgUaqQIXsVrKXfRmTReHs=; b=DVlbL4pW4X5Q165NEsZ/QBysWhAZyzF6Yrq7WUbAC260Mazb1CKigB6htx5sOmcTqq +9zz5oNYTIez8Rkyo+6w9EIROGUK5H30QjR6i8Ohugvqvb1t8REasaaUP8uzWJkYvBgs freuB4ifFLAizqw20eS/3V3d4eIVIn0M1/hj9gBZJZ06o7iHUCtIdKhrrNk0D4a1BsSD dMgDz/vZjFdVtiLH0AIR0H8k2inYfTTROKloSz0vIUmprDsHQfAD9R2hwsEeezXJS0EU UKWwPfERH+GftRI4JhDgxwqjs/oWJp8jTKYquMAqk4xzO8rgTNjEvz6egSpF7PT+mZHH +3dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=71ucyzXykg851MyZ1Ojh7VtgUaqQIXsVrKXfRmTReHs=; b=NiWSl0qJhyX2T4+vWI1IBkwiom5wXZ7mxVqM3c9SR+t3NB4g0D2hif03oPugIzjQgL S1HERvvtZh7rMDG8JQP6koGeLKiWwpB8K6GLNGr3UF8aBtoMe0Cn8gqpy21UVYdoSWnz a8uCoyxzqMBMq1rQDxwYraqBgfi76pLVXRnnyaGCFQQ9/SH+CgHxkJCP+5a03AGCPQCR w7ABKNdquHbBeauXOVfWGIefPM+mR4WyxMRlOY6LYeodIwDVa8wdCyHmDPkrqMA7+1f0 OmliMQzgBf2YEOcZCb/7vmmkZfucPZsdNfesw0AT0jvK83opZg5G8n+8cUXqP7zV5j/p 25BQ== X-Gm-Message-State: AOAM533uu33R/t4YC7tq3R+iJku2HnIsY3TyfeAxJgSxRX/gNPax9OAz RKnUvUsOHF5QvqnD5shrmV/pC5NCPmVvvA== X-Google-Smtp-Source: ABdhPJys20/cv0dNxtU4qF+BP9DAR4DKNN8rf8ArD7puNcLZ4UI6eyZtkOqTMULjoEcoPd9f4F1ztw== X-Received: by 2002:a63:ee10:: with SMTP id e16mr3160660pgi.135.1623819939443; Tue, 15 Jun 2021 22:05:39 -0700 (PDT) Received: from x1.hsd1.or.comcast.net ([2601:1c0:4701:ae70:e309:599f:f8cb:f28d]) by smtp.gmail.com with ESMTPSA id f8sm719456pfv.73.2021.06.15.22.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 22:05:38 -0700 (PDT) From: Drew Fustini To: buildroot@buildroot.org Date: Tue, 15 Jun 2021 22:03:45 -0700 Message-Id: <20210616050341.510702-5-drew@beagleboard.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210616050341.510702-1-drew@beagleboard.org> References: <20210616050341.510702-1-drew@beagleboard.org> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 4/4] configs/beaglev: switch to upstream opensbi generic platform X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Drew Fustini , Alistair Francis , Alistair Francis , Thomas Petazzoni , Bin Meng Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Switch from the starfive-tech opensbi to upstream repo and use generic platform now that it supports the console uart [1]. This landed after the 0.9 release [2], so the current head of master branch is used [3]. FW_FDT_PATH is set to u-boot.dtb so that the device tree from U-Boot will be included in the OpenSBI build [4]. Note that U-Boot must have CONFIG_OF_SEPARATE enabled for U-Boot to build u-boot.dtb [5]. [1] https://github.com/riscv/opensbi/commit/e822b7504df0583a6a227d51cb7da8ea9fc79c0a [2] https://github.com/riscv/opensbi/commit/234ed8e427f4d92903123199f6590d144e0d9351 [3] https://github.com/riscv/opensbi/commit/79f9b4220ffa7f74356054be25d450d7958bf16c [4] https://github.com/riscv/opensbi/blob/master/docs/firmware/fw.md [5] https://github.com/u-boot/u-boot/blob/master/doc/README.fdt-control Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Signed-off-by: Drew Fustini --- configs/beaglev_defconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configs/beaglev_defconfig b/configs/beaglev_defconfig index fcbea2cdec86..29e3a52be36c 100644 --- a/configs/beaglev_defconfig +++ b/configs/beaglev_defconfig @@ -23,17 +23,19 @@ BR2_TARGET_BEAGLEV_DDRINIT=y BR2_TARGET_BEAGLEV_SECONDBOOT=y BR2_TARGET_OPENSBI=y BR2_TARGET_OPENSBI_CUSTOM_TARBALL=y -# HEAD of the Fedora branch -BR2_TARGET_OPENSBI_CUSTOM_TARBALL_LOCATION="$(call github,starfive-tech,opensbi,2524b0ecd8684b42bc7a4c69794f40f11cbbe2a5)/opensbi-2524b0ecd8684b42bc7a4c69794f40f11cbbe2a5.tar.gz" -BR2_TARGET_OPENSBI_PLAT="starfive/vic7100" +# upstream opensbi master branch +BR2_TARGET_OPENSBI_CUSTOM_TARBALL_LOCATION="$(call github,riscv,opensbi,79f9b4220ffa7f74356054be25d450d7958bf16c)/opensbi-79f9b4220ffa7f74356054be25d450d7958bf16c.tar.gz" +BR2_TARGET_OPENSBI_PLAT="generic" # BR2_TARGET_OPENSBI_INSTALL_DYNAMIC_IMG is not set # BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG is not set BR2_TARGET_OPENSBI_UBOOT_PAYLOAD=y +BR2_TARGET_OPENSBI_FW_FDT_PATH=y BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_TARBALL=y # HEAD of the starfive-tech:Fedora_VIC_7100_2021.04 branch BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,starfive-tech,u-boot,64ead5b83959da8eb87b6963843addf5942e6ed4)/uboot-64ead5b83959da8eb87b6963843addf5942e6ed4.tar.gz" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="starfive_vic7100_beagle_v_smode" +BR2_TARGET_UBOOT_FORMAT_DTB=y BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_JH71XX_TOOLS=y