From patchwork Fri Sep 10 14:09:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1526526 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=L/zjL3Ou; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@lists.buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 4H5d7C3Nvsz9sW4 for ; Sat, 11 Sep 2021 00:10:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0A60D40694; Fri, 10 Sep 2021 14:10:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tFdMg_k4H47T; Fri, 10 Sep 2021 14:10:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 66AF04068C; Fri, 10 Sep 2021 14:10:11 +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 3D3521BF842 for ; Fri, 10 Sep 2021 14:10:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 2BDFC40594 for ; Fri, 10 Sep 2021 14:10:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 azuJl8AoalUS for ; Fri, 10 Sep 2021 14:10:08 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by smtp2.osuosl.org (Postfix) with ESMTPS id 416604029B for ; Fri, 10 Sep 2021 14:10:08 +0000 (UTC) Received: by mail-ej1-x62f.google.com with SMTP id am9so1235583ejc.7 for ; Fri, 10 Sep 2021 07:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gHC17ePkl+qioqlCVgkrGTt2vpbLj5OF788kSoS0YqM=; b=L/zjL3Ouep7UCFUwDU5hu6qtmYHTR2NRLDGcXz8wX4+XYsizGdLETsIODE//dnHb/C A0LEWwt7i0lPLvz5gd2fFAdipJf8qU89feGgKbQ/CU1mU4fSGAdn9JeZBhCaDcHvbsXD pAykh0EJaX9L2qsZAE3kjlSI/R9Wp7SfLF7Hhj1mlTc+a2ks7A0NfBca6WbzXAuhpPZJ P+jzm+4ODOnI47BTM2H5jTIkNUwMHPkCiqslK5WY8VAWQlfVxsGueyDzJ9AyABYzykP+ LtfnnDjI52naHUi1UQdAZzmY5m2RSPKu3qFGR6mykaxYZxsiWxW1hP9Gut4TtRtVomqX 7kqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gHC17ePkl+qioqlCVgkrGTt2vpbLj5OF788kSoS0YqM=; b=1tpoRtFoctn9db6FGnOaStodXgBJ/KieHqxNj24maLFRlBcCo+utMg5eq7AD6rcxg8 tNfnWKi0QPiT5gFqHJqxT8ht3mhdSJFpp50LvHojypuxns7568eOwf3Rqu2BQcCLJDEB tBM9b32to1SCndhB6P3LeCkGeJMhOMMs70syjkQTBHZrgHzQ9kMxCMHMiGvQl4Lwnaft AZjBJh4YuxC/ulpvYVe5QDZQrOV3Gm9+fo2ibVtIpI4Wczj05p87e97/ywtqVyZdY1Sy HEz217e5jVfB5F2IgJYNsLsb1xnU/r0j//r1tjrwKkWrGA2fxi3tHZOhe7J+3kT5ktSg wsHA== X-Gm-Message-State: AOAM533zwectZrdExf2G6m7HbLOVFKgHH0gbWWJfQvOw6vJxWKVkDgpM +MH3AkKIVA39KjxsKKNaoL9G70EK2D4= X-Google-Smtp-Source: ABdhPJwWFxAQzZBMgc6Vl1DzeZ5kbUpturKIbHGtgpfzzh7ht/HuuNJtCnJoZOCBhrGOGk1W+ifCsg== X-Received: by 2002:a17:906:3159:: with SMTP id e25mr9435081eje.549.1631283005764; Fri, 10 Sep 2021 07:10:05 -0700 (PDT) Received: from hthiery.kontron.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id c10sm2536754eje.37.2021.09.10.07.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 07:10:05 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Fri, 10 Sep 2021 16:09:25 +0200 Message-Id: <20210910140925.28138-2-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210910140925.28138-1-heiko.thiery@gmail.com> References: <20210910140925.28138-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/3] package/freescale-imx/firmware-imx: copy all (lp)ddr files unconditionaly X-BeenThere: buildroot@lists.buildroot.org 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: Gary Bisson , Stephane Viau , Gary Bisson , Refik Tuzakli , Michael Walle , Thomas Petazzoni , Heiko Thiery , Fabio Estevam , Xavier Roumegue Errors-To: buildroot-bounces@lists.buildroot.org Sender: "buildroot" In mainline u-boot more and more imx8 boards are switched to binman to create the imx specific image (flash.bin). To support this the (lp)ddr firmware training files are needed. For this to work all files should be made available to the U-Boot build. Signed-off-by: Heiko Thiery Reviewed-by: Gary Bisson Reviewed-by: Fabio Estevam --- v2: - add reviewed-by (thanks Gary) package/freescale-imx/firmware-imx/firmware-imx.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/freescale-imx/firmware-imx/firmware-imx.mk b/package/freescale-imx/firmware-imx/firmware-imx.mk index 1076cf85f1..29241342be 100644 --- a/package/freescale-imx/firmware-imx/firmware-imx.mk +++ b/package/freescale-imx/firmware-imx/firmware-imx.mk @@ -51,6 +51,11 @@ define FIRMWARE_IMX_INSTALL_IMAGE_DDR_FW $(FIRMWARE_IMX_DDRFW_DIR)/lpddr4_pmu_train_2d_fw.bin > \ $(BINARIES_DIR)/lpddr4_pmu_train_fw.bin ln -sf $(BINARIES_DIR)/lpddr4_pmu_train_fw.bin $(BINARIES_DIR)/ddr_fw.bin + + # U-Boot supports creation of the combined flash.bin image. To make + # sure that U-Boot can access all available files copy them to + # the binary dir. + cp $(FIRMWARE_IMX_DDRFW_DIR)/lpddr4*.bin $(BINARIES_DIR)/ endef endif @@ -69,6 +74,11 @@ define FIRMWARE_IMX_INSTALL_IMAGE_DDR_FW $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_2d_201810_fw.bin > \ $(BINARIES_DIR)/ddr4_201810_fw.bin ln -sf $(BINARIES_DIR)/ddr4_201810_fw.bin $(BINARIES_DIR)/ddr_fw.bin + + # U-Boot supports creation of the combined flash.bin image. To make + # sure that U-Boot can access all available files copy them to + # the binary dir. + cp $(FIRMWARE_IMX_DDRFW_DIR)/ddr4*.bin $(BINARIES_DIR)/ endef endif From patchwork Fri Sep 10 14:09:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1526527 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=eC13BBFT; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@lists.buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (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 4H5d7S4Y86z9ssP for ; Sat, 11 Sep 2021 00:10:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 9062340754; Fri, 10 Sep 2021 14:10:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LGaG-sw99mGb; Fri, 10 Sep 2021 14:10:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id DE05B40727; Fri, 10 Sep 2021 14:10:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 631711BF842 for ; Fri, 10 Sep 2021 14:10:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 534B560B42 for ; Fri, 10 Sep 2021 14:10:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id No188-22YVFK for ; Fri, 10 Sep 2021 14:10:11 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by smtp3.osuosl.org (Postfix) with ESMTPS id ABB7B60603 for ; Fri, 10 Sep 2021 14:10:11 +0000 (UTC) Received: by mail-ej1-x62e.google.com with SMTP id ho42so4487316ejc.9 for ; Fri, 10 Sep 2021 07:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=o7zSeJVOgDgFCKqbRO+Q+f/8o36HRfXdLNE6nyz9i/A=; b=eC13BBFTC0X0yGcubU0sH/sbvLyZWTNoR7qgxTJNV0Iyl8zcYU/WWlH3QGfHYg6i4h 2ZC+z+WKWP3NCR/AYYepw5RKjINBRNTiaZKzxzXhvuQeDAGXUoFJjr1ar2YP4fLfDLis pzIAAJKDxQM6DIaywIJ9a80D4gz4ozhsmTiJaer4Dpsd1nyq+FFVFH1uqF1Xz5aYOOKF hZBGMVFiuMKWZrjhnG0Q7iGSZdhjCYnixrAbLLeJ6Hl8scybDhloiGh1SS8oh43Iy2ze eIGxijWnOcF4+rBdPqiAZPfHqdzuVQEoNlym8kc708eYjExYDctGXnSRkPa2eCct9e8A cswQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=o7zSeJVOgDgFCKqbRO+Q+f/8o36HRfXdLNE6nyz9i/A=; b=xJixWwemugujP01qoWAfRnUZ8BooR6S9pPApgk14OdNEla2csCs++CVuQlnhF5YBro D6j6BSdhUXP9/oQVosoXY7MAGL/55I7e5SZdUhm+YudfpKIuuFW2kF8HhzoZ7swz0LgN zBQVuRGodVgsElFfHwqzM3pn5oaeD9Lo59D6lvZuQ05anfSRT4bycU/jRrYPYuW9nljA bBBqJD26oDorclPGiv2lIovgj8G+KG2tBzb/X3HmzQC9vGVDPvp4F/wuNeFONirswYpA qXnrmbxrDZaqh3p2K7Y1z6KOSm0HN9HpFiYQ7GSMuIK3zYtJuDc1ulJrkWvwp1mAjcU2 1m8w== X-Gm-Message-State: AOAM531czwKETRnw2EOAq4gxlLLi1GK/uOJI7MEAURz52nlCpmk4p9gi NfDN0FSOf8sWcjQICtV20EibT6IP25M= X-Google-Smtp-Source: ABdhPJwz6gKV6NiZyn04l34Ok5W9hSDDIF2mJQxXMvxIVupN9eghwE1ZJt8OJQHCswgpC4lwpfG3zw== X-Received: by 2002:a17:906:a417:: with SMTP id l23mr9029642ejz.120.1631283009580; Fri, 10 Sep 2021 07:10:09 -0700 (PDT) Received: from hthiery.kontron.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id c10sm2536754eje.37.2021.09.10.07.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 07:10:09 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Fri, 10 Sep 2021 16:09:27 +0200 Message-Id: <20210910140925.28138-3-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210910140925.28138-1-heiko.thiery@gmail.com> References: <20210910140925.28138-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/3] boot/uboot: copy ATF bl31 binary to uboot package dir X-BeenThere: buildroot@lists.buildroot.org 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: Gary Bisson , Stephane Viau , Refik Tuzakli , Michael Walle , Thomas Petazzoni , Heiko Thiery , Fabio Estevam , Xavier Roumegue Errors-To: buildroot-bounces@lists.buildroot.org Sender: "buildroot" If the U-Boot image is to be built with binman and the ATF binary is used, the file is expected in the toplevel directory. Signed-off-by: Heiko Thiery Reviewed-by: Fabio Estevam --- boot/uboot/uboot.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 4f3c9b7c3a..1a840d9cc1 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -162,8 +162,16 @@ ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31),y) UBOOT_DEPENDENCIES += arm-trusted-firmware ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF),y) UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.elf +define UBOOT_COPY_ATF_FIRMWARE + cp $(BINARIES_DIR)/bl31.elf $(@D)/ +endef +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ATF_FIRMWARE else UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.bin +define UBOOT_COPY_ATF_FIRMWARE + cp $(BINARIES_DIR)/bl31.bin $(@D)/ +endef +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ATF_FIRMWARE endif endif From patchwork Fri Sep 10 14:09:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1526528 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=hNFF4Z76; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@lists.buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 4H5d7f6WLwz9sX3 for ; Sat, 11 Sep 2021 00:10:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 55FF860B9A; Fri, 10 Sep 2021 14:10:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6bzF8oGMK0NG; Fri, 10 Sep 2021 14:10:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 9F6EF60B42; Fri, 10 Sep 2021 14:10:34 +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 718851BF842 for ; Fri, 10 Sep 2021 14:10:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 6B00D40594 for ; Fri, 10 Sep 2021 14:10:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 5ihjhfda9O0P for ; Fri, 10 Sep 2021 14:10:23 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by smtp2.osuosl.org (Postfix) with ESMTPS id 764CB4029B for ; Fri, 10 Sep 2021 14:10:23 +0000 (UTC) Received: by mail-ej1-x632.google.com with SMTP id am9so1237271ejc.7 for ; Fri, 10 Sep 2021 07:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f7l+MWrJAAXgG3WAEhv8VFQw8O1QOZXSw2aLcdLecnc=; b=hNFF4Z76kl9bhafKvVa9vGKn/sSIKJkOQbwwhPb+gyTyea45rKDdWPjsAwKpmKz5du TWPjxYa3/uE1sJzOY5t2OO1sG6HJ8C+VCXx0/NKM7LEoQ2VBqSnWDZwKRpe0yzvgdAAl L1Pp0I4JIOLl38A53RZiwnjGlMqSbmnxlgewirZpHVryGNtb/4nRSN08YQqsxzX8nTCW bbKShqr5JC4tM+Gyx1S532+M498i9BPxhe5y/at+Y87ihlgix7Gq5f1Hr+h83kk1vCO8 rKrPZyS6G5oH2m2a3jrg484lVeF7T+hSwP7uq5tiMj55vhRzabD+EEx5OWQTLyb2PjVm +96w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f7l+MWrJAAXgG3WAEhv8VFQw8O1QOZXSw2aLcdLecnc=; b=jfawCB1rqtB+705VG/V2tNzfcq99ewaSP2sMwL0Yi8IUVEcOzTs/aDPdKX2ZTpk6Ps DQmkIxK7nNa/1FIRD691ZLuyC3wLutFCEY25NoTA9HDHpaqvfjcz53FmvEqo8Kss7BRy 02x6xqBXs5bz36lKw4b8HU9Z/cSYBmEbNMs86IUKVFC3KodkHnWw+ZJ0Kc5/y6rzVWNY X5qRdlVbaixrduJaxxPUqvJXRB17yX6dICov83UIJ/D8p5jkde4yj1ZF+4cEB1pzDIkQ dgKkHyi7Ku+OG7l9fLUn4srFOUdSg3IKGJl2dVCrmzRq770CST8+vK3IvunfRi8F/xym XYMQ== X-Gm-Message-State: AOAM530SQWXYitnpWF66/unJKUcq5DLSyfPBFuMgTASxzT4leXgZOgEV NSbwCM/mQT1FRWtrTYJWk15I1+ApaUw= X-Google-Smtp-Source: ABdhPJz9FuMPEoB8XQIwKfdUgOPq0neUUKeAHvcWmidzOM2b8VzWvcXQ4VWSC626oE0ozbLm7PsNbA== X-Received: by 2002:a17:906:3012:: with SMTP id 18mr9915043ejz.136.1631283021557; Fri, 10 Sep 2021 07:10:21 -0700 (PDT) Received: from hthiery.kontron.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id c10sm2536754eje.37.2021.09.10.07.10.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 07:10:21 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Fri, 10 Sep 2021 16:09:29 +0200 Message-Id: <20210910140925.28138-4-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210910140925.28138-1-heiko.thiery@gmail.com> References: <20210910140925.28138-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 3/3] boot/uboot: copy IMX firmware files to uboot package dir X-BeenThere: buildroot@lists.buildroot.org 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: Gary Bisson , Stephane Viau , Refik Tuzakli , Michael Walle , Thomas Petazzoni , Heiko Thiery , Fabio Estevam , Xavier Roumegue Errors-To: buildroot-bounces@lists.buildroot.org Sender: "buildroot" If the U-Boot image is to be built with binman and one of the i.MX firmware files (ddr, hdmi) is used, the files are expected in the toplevel directory. Signed-off-by: Heiko Thiery Reviewed-by: Fabio Estevam --- v2: - small changes in commit messages (thanks Stephane) - use "i.MX 8M" for consistency (thanks Stephane) boot/uboot/Config.in | 12 ++++++++++++ boot/uboot/uboot.mk | 27 +++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in index 0854fb13cc..da518db118 100644 --- a/boot/uboot/Config.in +++ b/boot/uboot/Config.in @@ -239,6 +239,18 @@ config BR2_TARGET_UBOOT_NEEDS_OPENSBI and that the OpenSBI variable pointing to OpenSBI binary, is passed during the Buildroot build. +config BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE + bool "U-Boot needs firmware-imx" + depends on BR2_PACKAGE_FIRMWARE_IMX + depends on BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW || \ + BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW + help + Some IMX platforms (such as iMX8m, iMX8mq, iIMX8mm, iIMX8mn) + encapsulate NXP specific firmware (DDR, HDMI) inside U-Boot. + This option makes sure the imx firmware gets built prior to + U-Boot and copies the files from the buildroot binary dir + into the U-Boot source dir. + menu "U-Boot binary format" config BR2_TARGET_UBOOT_FORMAT_AIS diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 1a840d9cc1..cf8d6b1f39 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -180,6 +180,33 @@ UBOOT_DEPENDENCIES += opensbi UBOOT_MAKE_OPTS += OPENSBI=$(BINARIES_DIR)/fw_dynamic.bin endif +# New U-Boot versions can create the IMX specific boot images +# and needs the some NXP firmware blobs. +ifeq ($(BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE),y) +UBOOT_DEPENDENCIES += firmware-imx + +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW),y) +define UBOOT_COPY_IMX_DDR_FIRMWARE + cp $(BINARIES_DIR)/signed_hdmi_imx8m.bin $(@D)/ +endef +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_IMX_DDR_FIRMWARE +endif + +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_LPDDR4),y) +define UBOOT_COPY_IMX_LPDDR4_FIRMWARE + cp $(BINARIES_DIR)/lpddr4*.bin $(@D)/ +endef +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_IMX_LPDDR4_FIRMWARE +endif + +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_DDR4),y) +define UBOOT_COPY_IMX_DDR4_FIRMWARE + cp $(BINARIES_DIR)/ddr4*.bin $(@D)/ +endef +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_IMX_DDR4_FIRMWARE +endif +endif + ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y) UBOOT_DEPENDENCIES += host-dtc endif