2019-04-15 09:45:53 +00:00
|
|
|
#
|
|
|
|
# Copyright 2019 NXP
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tfa-layerscape
|
2022-02-17 17:14:37 +00:00
|
|
|
PKG_VERSION:=21.08
|
2020-08-03 04:52:22 +00:00
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2019-04-15 09:45:53 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/atf
|
2021-10-11 10:43:55 +00:00
|
|
|
PKG_SOURCE_VERSION:=LSDK-21.08
|
2022-07-19 18:11:02 +00:00
|
|
|
PKG_MIRROR_HASH:=893f2d28a77dcc9d4413a619b4719ca5f1f4dc78dd824a8488e7d543e66bcf95
|
2021-02-20 18:18:12 +00:00
|
|
|
PKG_BUILD_DEPENDS:=tfa-layerscape/host
|
2019-04-15 09:45:53 +00:00
|
|
|
|
2019-07-24 14:00:39 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2019-04-15 09:45:53 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2019-07-24 14:00:39 +00:00
|
|
|
HOST_CFLAGS += -Wall -Werror -pedantic -std=c99
|
|
|
|
define Host/Compile
|
2021-02-20 18:18:12 +00:00
|
|
|
$(MAKE) -C \
|
|
|
|
$(HOST_BUILD_DIR)/tools/fiptool \
|
|
|
|
CFLAGS="$(HOST_CFLAGS)" \
|
2021-12-28 15:10:37 +00:00
|
|
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
|
|
|
HOSTCCFLAGS="$(HOST_CFLAGS)"
|
2019-07-26 08:23:53 +00:00
|
|
|
$(MAKE) -C \
|
2021-10-11 10:43:55 +00:00
|
|
|
$(HOST_BUILD_DIR)/tools/nxp \
|
2019-07-26 08:23:53 +00:00
|
|
|
CFLAGS="$(HOST_CFLAGS)"
|
2019-07-24 14:00:39 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
2021-02-20 18:18:12 +00:00
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/fiptool/fiptool $(STAGING_DIR_HOST)/bin/fiptool-layerscape
|
2021-10-11 10:43:55 +00:00
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/create_pbl $(STAGING_DIR_HOST)/bin/tfa-create-pbl
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/byte_swap $(STAGING_DIR_HOST)/bin/tfa-byte-swap
|
2019-04-15 09:45:53 +00:00
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-generic
|
|
|
|
SECTION:=boot
|
|
|
|
CATEGORY:=Boot Loaders
|
|
|
|
DEPENDS:=@TARGET_layerscape_armv8_64b +layerscape-rcw +u-boot-fsl_$(subst tfa-,,$(1))
|
|
|
|
VARIANT:=$(subst tfa-,,$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tfa-ls1012a-frdm
|
|
|
|
$(Package/tfa-generic)
|
layerscape: resurrect support for FRDM-LS1012A
Re-add support for NXP FRDM-LS1012A, which mimics the flash layout of the
rest boards supported by LSDK.
0x000000000000-0x000000100000 : "bl2"
0x000000100000-0x000000500000 : "fip"
0x000000500000-0x000000600000 : "u-boot-env"
0x000000600000-0x000000a00000 : "reserved-1"
0x000000a00000-0x000000d00000 : "pfe"
0x000000d00000-0x000000f00000 : "reserved-2"
0x000000f00000-0x000001000000 : "dtb"
0x000001000000-0x000002000000 : "kernel"
0x000002000000-0x000004000000 : "ubifs"
Specification
SoC: LS1012A single core 800MHz
RAM: 512 MB DDR3
Flash: 64 MB QSPI NOR
Ethernet: 2x 10/100/1000 Mbps
Connectors: µUSB 3.0 OTG
µUSB 2.0 (debugging & power input)
2x 3.5mm jack for microphone & headphone (SGTL5000)
Arduino Shield expansion with I2C, SPI, UART, and GPIO
JTAG
LEDS: 3x (non-configurable)
Buttons: 1x (reset, non-configurable)
Be advised that erasing or writing 64MB flash takes some time to finish.
Do not reset the board until all operations end with success, otherwise
You'll need external tools to re-program the flash chip.
Installation
Follow the QSPI programing procedure for LS1012AFRWY board in
target/linux/layerscape/README, point 3.3.
Don't forget about updating U-Boot environment with MAC addresses of
ethernet interfaces, variable 'ethaddr' for eth0 and 'eth1addr' for eth1.
As the LSDK images do not support sysupgrade, nor do changes in this
commit, it's planed in upcoming submissions.
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
2020-02-25 19:07:36 +00:00
|
|
|
TITLE:=NXP LS1012AFRDM Trusted Firmware
|
|
|
|
PLAT:=ls1012afrdm
|
|
|
|
BOOT_MODE:=qspi
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls1012a-rdb
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS1012ARDB Trusted Firmware
|
|
|
|
PLAT:=ls1012ardb
|
|
|
|
BOOT_MODE:=qspi
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls1012a-frwy-sdboot
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS1012AFRWY Trusted Firmware
|
|
|
|
PLAT:=ls1012afrwy
|
|
|
|
BOOT_MODE:=qspi
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls1043a-rdb
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS1043ARDB Trusted Firmware
|
|
|
|
PLAT:=ls1043ardb
|
|
|
|
BOOT_MODE:=nor
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls1043a-rdb-sdboot
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS1043ARDB SD Boot Trusted Firmware
|
|
|
|
PLAT:=ls1043ardb
|
|
|
|
BOOT_MODE:=sd
|
|
|
|
endef
|
|
|
|
|
2020-08-03 04:52:22 +00:00
|
|
|
define Package/tfa-ls1046a-frwy
|
|
|
|
$(Package/tfa-generic)
|
|
|
|
TITLE:=NXP LS1046AFRWY Trusted Firmware
|
|
|
|
PLAT:=ls1046afrwy
|
|
|
|
BOOT_MODE:=qspi
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tfa-ls1046a-frwy-sdboot
|
|
|
|
$(Package/tfa-generic)
|
|
|
|
TITLE:=NXP LS1046AFRWY SD Boot Trusted Firmware
|
|
|
|
PLAT:=ls1046afrwy
|
|
|
|
BOOT_MODE:=sd
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls1046a-rdb
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS1046ARDB Trusted Firmware
|
|
|
|
PLAT:=ls1046ardb
|
|
|
|
BOOT_MODE:=qspi
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls1046a-rdb-sdboot
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS1046ARDB SD Boot Trusted Firmware
|
|
|
|
PLAT:=ls1046ardb
|
|
|
|
BOOT_MODE:=sd
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls1088a-rdb
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS1088ARDB Trusted Firmware
|
|
|
|
PLAT:=ls1088ardb
|
|
|
|
BOOT_MODE:=qspi
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls1088a-rdb-sdboot
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS1088ARDB SD Boot Trusted Firmware
|
|
|
|
PLAT:=ls1088ardb
|
|
|
|
BOOT_MODE:=sd
|
|
|
|
endef
|
|
|
|
|
2020-07-20 13:34:04 +00:00
|
|
|
define Package/tfa-ls2088a-rdb
|
|
|
|
$(Package/tfa-generic)
|
2019-04-15 09:45:53 +00:00
|
|
|
TITLE:=NXP LS2088ARDB Trusted Firmware
|
|
|
|
PLAT:=ls2088ardb
|
|
|
|
BOOT_MODE:=nor
|
2020-03-11 08:28:35 +00:00
|
|
|
endef
|
|
|
|
|
layerscape: add LX2160ARDB (Rev2.0 silicon) board support
The QorIQ LX2160A reference design board provides a comprehensive platform
that enables design and evaluation of the LX2160A processor.
- Enables network intelligence with the next generation Datapath (DPPA2)
which provides differentiated offload and a rich set of IO, including
10GE, 25GE, 40GE, and PCIe Gen4
- Delivers unprecedented efficiency and new virtualized networks
- Supports designs in 5G packet processing, network function
virtualization, storage controller, white box switching, network
interface cards, and mobile edge computing
- Supports all three LX2 family members (16-core LX2160A; 12-core LX2120A;
and 8-core LX2080A)
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
[use AUTORELEASE, add dtb to firmware part]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-30 05:12:43 +00:00
|
|
|
define Package/tfa-lx2160a-rdb
|
|
|
|
$(Package/tfa-generic)
|
|
|
|
TITLE:=NXP LX2160ARDB Trusted Firmware
|
|
|
|
PLAT:=lx2160ardb
|
|
|
|
BOOT_MODE:=flexspi_nor
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tfa-lx2160a-rdb-sdboot
|
|
|
|
$(Package/tfa-generic)
|
|
|
|
TITLE:=NXP LX2160ARDB SD Boot Trusted Firmware
|
|
|
|
PLAT:=lx2160ardb
|
|
|
|
BOOT_MODE:=sd
|
|
|
|
endef
|
|
|
|
|
2020-03-11 08:28:35 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
2020-07-20 13:34:04 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/build/$(PLAT)/release/bl2_$(BOOT_MODE).pbl \
|
|
|
|
$(STAGING_DIR_IMAGE)/fsl_$(BUILD_VARIANT)-bl2.pbl
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/build/$(PLAT)/release/fip.bin \
|
|
|
|
$(STAGING_DIR_IMAGE)/fsl_$(BUILD_VARIANT)-fip.bin
|
2020-03-11 08:28:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2020-07-20 13:34:04 +00:00
|
|
|
$(eval $(Package/tfa-$(BUILD_VARIANT))) \
|
2020-03-11 08:28:35 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS) \
|
|
|
|
fip pbl PLAT=$(PLAT) BOOT_MODE=$(BOOT_MODE) \
|
2020-07-20 13:34:04 +00:00
|
|
|
RCW=$(STAGING_DIR_IMAGE)/fsl_$(BUILD_VARIANT)-rcw.bin \
|
|
|
|
BL33=$(STAGING_DIR_IMAGE)/fsl_$(BUILD_VARIANT)-uboot.bin \
|
2021-02-20 18:18:12 +00:00
|
|
|
FIPTOOL=$(STAGING_DIR_HOST)/bin/fiptool-layerscape \
|
2020-03-11 08:28:35 +00:00
|
|
|
CREATE_PBL=$(STAGING_DIR_HOST)/bin/tfa-create-pbl \
|
|
|
|
BYTE_SWAP=$(STAGING_DIR_HOST)/bin/tfa-byte-swap
|
|
|
|
endef
|
|
|
|
|
2019-04-15 09:45:53 +00:00
|
|
|
TFAS := \
|
2020-07-20 13:34:04 +00:00
|
|
|
ls1012a-frdm \
|
|
|
|
ls1012a-rdb \
|
|
|
|
ls1012a-frwy-sdboot \
|
|
|
|
ls1043a-rdb \
|
|
|
|
ls1043a-rdb-sdboot \
|
2020-08-03 04:52:22 +00:00
|
|
|
ls1046a-frwy \
|
|
|
|
ls1046a-frwy-sdboot \
|
2020-07-20 13:34:04 +00:00
|
|
|
ls1046a-rdb \
|
|
|
|
ls1046a-rdb-sdboot \
|
|
|
|
ls1088a-rdb \
|
|
|
|
ls1088a-rdb-sdboot \
|
layerscape: add LX2160ARDB (Rev2.0 silicon) board support
The QorIQ LX2160A reference design board provides a comprehensive platform
that enables design and evaluation of the LX2160A processor.
- Enables network intelligence with the next generation Datapath (DPPA2)
which provides differentiated offload and a rich set of IO, including
10GE, 25GE, 40GE, and PCIe Gen4
- Delivers unprecedented efficiency and new virtualized networks
- Supports designs in 5G packet processing, network function
virtualization, storage controller, white box switching, network
interface cards, and mobile edge computing
- Supports all three LX2 family members (16-core LX2160A; 12-core LX2120A;
and 8-core LX2080A)
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
[use AUTORELEASE, add dtb to firmware part]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-30 05:12:43 +00:00
|
|
|
ls2088a-rdb \
|
|
|
|
lx2160a-rdb \
|
|
|
|
lx2160a-rdb-sdboot
|
2019-04-15 09:45:53 +00:00
|
|
|
|
2019-07-24 14:00:39 +00:00
|
|
|
$(eval $(call HostBuild))
|
2019-04-15 09:45:53 +00:00
|
|
|
$(foreach tfa,$(TFAS), \
|
2020-03-11 08:28:35 +00:00
|
|
|
$(eval $(call BuildPackage,tfa-$(tfa))) \
|
2019-04-15 09:45:53 +00:00
|
|
|
)
|