Initial commit
This commit is contained in:
51
package/firmware/layerscape/fman-ucode/Makefile
Normal file
51
package/firmware/layerscape/fman-ucode/Makefile
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
# Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fman-ucode
|
||||
PKG_VERSION:=lsdk-1903
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/NXP/qoriq-fm-ucode.git
|
||||
PKG_SOURCE_VERSION:=c275e91392e2adab1ed22f3867b8269ca3c54014
|
||||
PKG_MIRROR_HASH:=a630f1a86e4a67a0e390312291702560e3f64dd74fe6ccb8f3be4584d00c7f80
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/layerscape-fman-ls1043ardb
|
||||
SECTION:=firmware
|
||||
CATEGORY:=Firmware
|
||||
TITLE:=NXP LS1043ARDB FMan ucode
|
||||
DEPENDS:=@TARGET_layerscape
|
||||
CONFIG:=fsl_fman_ucode_ls1043_r1.1_106_4_18.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-fman-ls1046ardb
|
||||
SECTION:=firmware
|
||||
CATEGORY:=Firmware
|
||||
TITLE:=NXP LS1046ARDB FMan ucode
|
||||
DEPENDS:=@TARGET_layerscape
|
||||
CONFIG:=fsl_fman_ucode_ls1046_r1.0_106_4_18.bin
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/layerscape-fman-ls1043ardb/install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/ls1043ardb-fman.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-fman-ls1046ardb/install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/ls1046ardb-fman.bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,layerscape-fman-ls1043ardb))
|
||||
$(eval $(call BuildPackage,layerscape-fman-ls1046ardb))
|
||||
57
package/firmware/layerscape/ls-dpl/Makefile
Normal file
57
package/firmware/layerscape/ls-dpl/Makefile
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# Copyright 2017 NXP
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ls-dpl
|
||||
PKG_VERSION:=lsdk-1903
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/mc-utils
|
||||
PKG_SOURCE_VERSION:=eeb8972a3d4137c87a54c2795452b17f254a68c7
|
||||
PKG_MIRROR_HASH:=e96e72793fb9fea1d4f5112d318059ea4c836d65c02852d207407edf13fc92af
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
define Package/layerscape-dpl-ls1088ardb
|
||||
SECTION:=firmware
|
||||
CATEGORY:=Firmware
|
||||
TITLE:=NXP LS1088ARDB DPL firmware
|
||||
DEPENDS:=@TARGET_layerscape
|
||||
DPC_CONFIG:=config/ls1088a/RDB/dpc.0x1D-0x0D.dtb
|
||||
DPL_CONFIG:=config/ls1088a/RDB/dpl-eth.0x1D_0x0D.dtb
|
||||
endef
|
||||
|
||||
define Package/layerscape-dpl-ls2088ardb
|
||||
SECTION:=firmware
|
||||
CATEGORY:=Firmware
|
||||
TITLE:=NXP LS2088ARDB DPL firmware
|
||||
DEPENDS:=@TARGET_layerscape
|
||||
DPC_CONFIG:=config/ls2088a/RDB/dpc.0x2A_0x41.dtb
|
||||
DPL_CONFIG:=config/ls2088a/RDB/dpl-eth.0x2A_0x41.dtb
|
||||
endef
|
||||
|
||||
MAKE_PATH:=config
|
||||
MAKE_VARS+= \
|
||||
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH)
|
||||
|
||||
define Package/layerscape-dpl-ls1088ardb/install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(CP) $(PKG_BUILD_DIR)/$(DPL_CONFIG) $(STAGING_DIR_IMAGE)/ls1088ardb-dpl.dtb
|
||||
$(CP) $(PKG_BUILD_DIR)/$(DPC_CONFIG) $(STAGING_DIR_IMAGE)/ls1088ardb-dpc.dtb
|
||||
endef
|
||||
|
||||
define Package/layerscape-dpl-ls2088ardb/install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(CP) $(PKG_BUILD_DIR)/$(DPL_CONFIG) $(STAGING_DIR_IMAGE)/ls2088ardb-dpl.dtb
|
||||
$(CP) $(PKG_BUILD_DIR)/$(DPC_CONFIG) $(STAGING_DIR_IMAGE)/ls2088ardb-dpc.dtb
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,layerscape-dpl-ls1088ardb))
|
||||
$(eval $(call BuildPackage,layerscape-dpl-ls2088ardb))
|
||||
51
package/firmware/layerscape/ls-mc/Makefile
Normal file
51
package/firmware/layerscape/ls-mc/Makefile
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
# Copyright 2017 NXP
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ls-mc
|
||||
PKG_VERSION:=lsdk-1903
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/NXP/qoriq-mc-binary.git
|
||||
PKG_SOURCE_VERSION:=bd64d1824681b009fd83b0a3699e45b117b72695
|
||||
PKG_MIRROR_HASH:=17ecfd780b8d884b3843d2b8fbcaf29410fdacdc03ab3fe81ae7ade994d7fc0a
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/layerscape-mc-ls1088ardb
|
||||
SECTION:=firmware
|
||||
CATEGORY:=Firmware
|
||||
TITLE:=NXP LS1088ARDB MC firmware
|
||||
DEPENDS:=@TARGET_layerscape
|
||||
CONFIG:=ls1088a/mc_10.14.3_ls1088a.itb
|
||||
endef
|
||||
|
||||
define Package/layerscape-mc-ls2088ardb
|
||||
SECTION:=firmware
|
||||
CATEGORY:=Firmware
|
||||
TITLE:=NXP LS2088ARDB MC firmware
|
||||
DEPENDS:=@TARGET_layerscape
|
||||
CONFIG:=ls2088a/mc_10.14.3_ls2088a.itb
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/layerscape-mc-ls1088ardb/install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/ls1088ardb-mc.itb
|
||||
endef
|
||||
|
||||
define Package/layerscape-mc-ls2088ardb/install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/ls2088ardb-mc.itb
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,layerscape-mc-ls1088ardb))
|
||||
$(eval $(call BuildPackage,layerscape-mc-ls2088ardb))
|
||||
105
package/firmware/layerscape/ls-rcw/Makefile
Normal file
105
package/firmware/layerscape/ls-rcw/Makefile
Normal file
@@ -0,0 +1,105 @@
|
||||
#
|
||||
# Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ls-rcw
|
||||
PKG_VERSION:=lsdk-1903
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/rcw
|
||||
PKG_SOURCE_VERSION:=f1377876cc06a87ec8afa8a3412ca7c8455861f2
|
||||
PKG_MIRROR_HASH:=a9c97755809994a668ee5f0e535cef9f344fc5523c4299ac76f26c63976c80bc
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/layerscape-rcw/Config
|
||||
define Package/layerscape-rcw-$(1)
|
||||
SECTION:=firmware
|
||||
CATEGORY:=Firmware
|
||||
TITLE:=$(2)
|
||||
DEPENDS:=@TARGET_layerscape
|
||||
CONFIG:=$(3)
|
||||
endef
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1012ardb
|
||||
TITLE:=NXP LS1012ARDB RCW binary
|
||||
CONFIG:=ls1012ardb/R_SPNH_3508/rcw_1000_default.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1012afrwy
|
||||
TITLE:=NXP LS1012AFRWY RCW binary
|
||||
CONFIG:=ls1012afrwy/N_SSNP_3305/rcw_1000_default.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1043ardb
|
||||
TITLE:=NXP LS1043ARDB RCW binary
|
||||
CONFIG:=ls1043ardb/RR_FQPP_1455/rcw_1600.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1043ardb-sdboot
|
||||
TITLE:=NXP LS1043ARDB SD card boot RCW binary
|
||||
CONFIG:=ls1043ardb/RR_FQPP_1455/rcw_1600_sdboot.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1046ardb
|
||||
TITLE:=NXP LS1046ARDB RCW binary
|
||||
CONFIG:=ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1046ardb-sdboot
|
||||
TITLE:=NXP LS1046ARDB SD card boot RCW binary
|
||||
CONFIG:=ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_sdboot.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1088ardb
|
||||
TITLE:=NXP LS1088ARDB RCW binary
|
||||
CONFIG:=ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/rcw_1600_qspi.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1088ardb-sdboot
|
||||
TITLE:=NXP LS1088ARDB SD card boot RCW binary
|
||||
CONFIG:=ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/rcw_1600_sd.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls2088ardb
|
||||
TITLE:=NXP LS2088ARDB RCW binary
|
||||
CONFIG:=ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/rcw_1800.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/ls1021atwr
|
||||
TITLE:=NXP LS1021ATWR RCW binary
|
||||
CONFIG:=ls1021atwr/SSR_PNS_30/rcw_1200.bin
|
||||
endef
|
||||
|
||||
define Package/layerscape-rcw/Install
|
||||
define Package/layerscape-rcw-$(1)/install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/$(1)-rcw.bin
|
||||
endef
|
||||
endef
|
||||
|
||||
RCWS := \
|
||||
ls1012ardb \
|
||||
ls1012afrwy \
|
||||
ls1043ardb \
|
||||
ls1043ardb-sdboot \
|
||||
ls1046ardb \
|
||||
ls1046ardb-sdboot \
|
||||
ls1088ardb \
|
||||
ls1088ardb-sdboot \
|
||||
ls2088ardb \
|
||||
ls1021atwr
|
||||
|
||||
$(foreach rcw,$(RCWS), \
|
||||
$(eval $(Package/layerscape-rcw/$(rcw))) \
|
||||
$(eval $(call Package/layerscape-rcw/Config,$(rcw),$(TITLE),$(CONFIG))) \
|
||||
$(eval $(call Package/layerscape-rcw/Install,$(rcw))) \
|
||||
$(eval $(call BuildPackage,layerscape-rcw-$(rcw))) \
|
||||
)
|
||||
@@ -0,0 +1,82 @@
|
||||
From c87a500c45f36ad248b1298d63e590d1d7e74f12 Mon Sep 17 00:00:00 2001
|
||||
From: Yangbo Lu <yangbo.lu@nxp.com>
|
||||
Date: Tue, 3 Jul 2018 11:06:47 +0800
|
||||
Subject: [PATCH] rcw: support byte swapping without tclsh tool
|
||||
|
||||
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
|
||||
---
|
||||
Makefile | 4 ----
|
||||
byte_swap.py | 32 ++++++++++++++++++++++++++++++++
|
||||
qspi_swap.sh | 2 +-
|
||||
3 files changed, 33 insertions(+), 5 deletions(-)
|
||||
create mode 100755 byte_swap.py
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 9f0587e..393bb2c 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -13,10 +13,6 @@ TCLSH := $(shell command -v tclsh 2> /dev/null)
|
||||
VER = $(shell git describe --tags)
|
||||
|
||||
all install clean:
|
||||
-ifndef TCLSH
|
||||
- $(error "tclsh is not available. please install it.")
|
||||
- exit 1
|
||||
-endif
|
||||
@for board in $(BOARDS); do \
|
||||
$(MAKE) -C $$board $@ DESTDIR=$(DESTDIR)/$$board; \
|
||||
done
|
||||
diff --git a/byte_swap.py b/byte_swap.py
|
||||
new file mode 100755
|
||||
index 0000000..386310e
|
||||
--- /dev/null
|
||||
+++ b/byte_swap.py
|
||||
@@ -0,0 +1,32 @@
|
||||
+#!/usr/bin/env python
|
||||
+"""
|
||||
+Swap the 4/8 bytes endian except for PBI CRC
|
||||
+2016-10-9: Initial version
|
||||
+
|
||||
+Usage:
|
||||
+ ./byte_swap.py <file_name> <byte>
|
||||
+"""
|
||||
+import sys
|
||||
+
|
||||
+try:
|
||||
+ file_name = sys.argv[1]
|
||||
+ byte = int(sys.argv[2])
|
||||
+except:
|
||||
+ print("Usage: ./byte_swap.py <file_name> <byte>")
|
||||
+ print("E.g.: ./byte_swap.py rcw_1600.bin 8\n")
|
||||
+ exit
|
||||
+
|
||||
+with open(file_name,'rb') as file:
|
||||
+ tmp = file.read()
|
||||
+file.close()
|
||||
+
|
||||
+with open(file_name + '.swapped','wb') as file:
|
||||
+ for i in range(0, len(tmp) - 1, byte):
|
||||
+ if(tmp[i:i+4].encode('hex')) == "08610040":
|
||||
+ #print("PBI CRC command")
|
||||
+ file.write(tmp[i:i+8])
|
||||
+ break
|
||||
+ file.write(tmp[i:i+byte][::-1])
|
||||
+file.close()
|
||||
+
|
||||
+print("Swapped file: " + file_name + '.swapped')
|
||||
diff --git a/qspi_swap.sh b/qspi_swap.sh
|
||||
index 0b58e44..d23fd8b 100755
|
||||
--- a/qspi_swap.sh
|
||||
+++ b/qspi_swap.sh
|
||||
@@ -9,7 +9,7 @@ do
|
||||
if [ "$board_name" = "$current_dir" ]; then
|
||||
if [ -e $filename ]; then
|
||||
swapped_file="$filename.swapped"
|
||||
- tclsh ../tools/byte_swap.tcl $filename $swapped_file 8
|
||||
+ ../byte_swap.py $filename 8
|
||||
fi
|
||||
fi
|
||||
done < $1
|
||||
--
|
||||
1.7.1
|
||||
|
||||
50
package/firmware/layerscape/ppfe-firmware/Makefile
Normal file
50
package/firmware/layerscape/ppfe-firmware/Makefile
Normal file
@@ -0,0 +1,50 @@
|
||||
#
|
||||
# Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ppfe
|
||||
PKG_VERSION:=lsdk-1903
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/NXP/qoriq-engine-pfe-bin.git
|
||||
PKG_SOURCE_VERSION:=58aa0cac630528ed91fe5639700d6b571c0c07b5
|
||||
PKG_MIRROR_HASH:=1234a86e879f2eecd3ac4852bb39e4189b03bb659bec228a1d1ccae5ac0229e6
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
RSTRIP:=:
|
||||
STRIP:=:
|
||||
|
||||
define Package/layerscape-ppfe
|
||||
SECTION:=firmware
|
||||
CATEGORY:=Firmware
|
||||
TITLE:=NXP Layerscape PPFE firmware
|
||||
DEPENDS:=@TARGET_layerscape
|
||||
CONFIG_FW:=ls1012a/u-boot/pfe_fw_sbl.itb
|
||||
CONFIG_BIN1:=ls1012a/slow_path/ppfe_class_ls1012a.elf
|
||||
CONFIG_BIN2:=ls1012a/slow_path/ppfe_tmu_ls1012a.elf
|
||||
CONFIG_LIC:=NXP-Binary-EULA.txt
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/layerscape-ppfe/install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/$(CONFIG_FW) \
|
||||
$(STAGING_DIR_IMAGE)/pfe.itb
|
||||
$(INSTALL_DIR) $(1)/lib/firmware/
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_BUILD_DIR)/$(CONFIG_BIN1) \
|
||||
$(PKG_BUILD_DIR)/$(CONFIG_BIN2) \
|
||||
$(PKG_BUILD_DIR)/$(CONFIG_LIC) \
|
||||
$(1)/lib/firmware/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,layerscape-ppfe))
|
||||
Reference in New Issue
Block a user