mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
boot/uboot: Add ddr3 IMX firmware files to uboot package dir
The mainline U-Boot can create an i.MX specific firmware image (e.g. flash.bin). For this the i.MX firmware files must be in the toplevel directory. Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
baafe68bc3
commit
9a05e2c384
@@ -187,7 +187,8 @@ UBOOT_DEPENDENCIES += firmware-imx
|
|||||||
UBOOT_IMX_FW_FILES = \
|
UBOOT_IMX_FW_FILES = \
|
||||||
$(if $(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW),signed_hdmi_imx8m.bin) \
|
$(if $(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW),signed_hdmi_imx8m.bin) \
|
||||||
$(if $(BR2_PACKAGE_FIRMWARE_IMX_LPDDR4),lpddr4*.bin) \
|
$(if $(BR2_PACKAGE_FIRMWARE_IMX_LPDDR4),lpddr4*.bin) \
|
||||||
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin)
|
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin) \
|
||||||
|
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR3),ddr3*.bin)
|
||||||
|
|
||||||
define UBOOT_COPY_IMX_FW_FILES
|
define UBOOT_COPY_IMX_FW_FILES
|
||||||
$(foreach fw,$(UBOOT_IMX_FW_FILES),\
|
$(foreach fw,$(UBOOT_IMX_FW_FILES),\
|
||||||
|
|||||||
@@ -71,6 +71,11 @@ config BR2_PACKAGE_FIRMWARE_IMX_DDR4
|
|||||||
help
|
help
|
||||||
Use DDR4 binaries (i.e.: ddr4_*_201810.bin).
|
Use DDR4 binaries (i.e.: ddr4_*_201810.bin).
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FIRMWARE_IMX_DDR3
|
||||||
|
bool "DDR3"
|
||||||
|
help
|
||||||
|
Use DDR3 binaries (i.e.: ddr3_*_201810.bin).
|
||||||
|
|
||||||
endchoice # DDR training FW
|
endchoice # DDR training FW
|
||||||
|
|
||||||
config BR2_PACKAGE_FIRMWARE_IMX_IMEM_LEN
|
config BR2_PACKAGE_FIRMWARE_IMX_IMEM_LEN
|
||||||
|
|||||||
@@ -82,6 +82,26 @@ define FIRMWARE_IMX_INSTALL_IMAGE_DDR_FW
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_DDR3),y)
|
||||||
|
FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys
|
||||||
|
|
||||||
|
define FIRMWARE_IMX_INSTALL_IMAGE_DDR_FW
|
||||||
|
# Create padded versions of ddr3_* and generate ddr3_fw.bin.
|
||||||
|
# ddr3_fw.bin is needed when generating imx8-boot-sd.bin
|
||||||
|
# which is done in post-image script.
|
||||||
|
$(call FIRMWARE_IMX_PREPARE_DDR_FW, \
|
||||||
|
ddr3_imem_1d_201810,ddr3_dmem_1d_201810,ddr3_1d_201810_fw)
|
||||||
|
cat $(FIRMWARE_IMX_DDRFW_DIR)/ddr3_1d_201810_fw.bin > \
|
||||||
|
$(BINARIES_DIR)/ddr3_201810_fw.bin
|
||||||
|
ln -sf $(BINARIES_DIR)/ddr3_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)/ddr3*.bin $(BINARIES_DIR)/
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# HDMI firmware
|
# HDMI firmware
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user