All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/7] ls1043ardb-be: add machine config
@ 2018-04-17  6:48 chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 2/7] ls1046ardb-be: " chunrong.guo
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: chunrong.guo @ 2018-04-17  6:48 UTC (permalink / raw)
  To: meta-freescale; +Cc: Chunrong Guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls1043ardb-be.conf | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 conf/machine/ls1043ardb-be.conf

diff --git a/conf/machine/ls1043ardb-be.conf b/conf/machine/ls1043ardb-be.conf
new file mode 100644
index 0000000..92743b7
--- /dev/null
+++ b/conf/machine/ls1043ardb-be.conf
@@ -0,0 +1,40 @@
+#@TYPE: Machine
+#@NAME: Freescale LS1043ARDB 
+#@SOC: LSCH2
+#@DESCRIPTION: Machine configuration for running LS1043A in 64-bit mode
+#@MAINTAINER: Chunrong Guo <nxa13725@nxp.com>
+
+DEFAULTTUNE = "aarch64_be"
+
+require conf/machine/include/qoriq-arm64.inc
+require conf/machine/include/arm/arch-arm64.inc
+
+MACHINEOVERRIDES =. "fsl-lsch2:ls1043a:"
+
+KERNEL_CLASSES  = " kernel-itbimage "
+KERNEL_IMAGETYPES = "itbImage"
+
+DTB_LOAD = "0x90000000"
+UBOOT_ENTRYPOINT = "0x80080000"
+
+UBOOT_CONFIG ??= "nand sdcard nor"
+UBOOT_CONFIG[nor] = "ls1043ardb_config,,u-boot-dtb.bin"
+UBOOT_CONFIG[nand] = "ls1043ardb_nand_config,,u-boot-with-spl-pbl.bin"
+UBOOT_CONFIG[sdcard] = "ls1043ardb_sdcard_config,,u-boot-with-spl-pbl.bin"
+UBOOT_CONFIG[secure-boot] = "ls1043ardb_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
+UBOOT_CONFIG[nand-secure-boot] = "ls1043ardb_nand_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
+UBOOT_CONFIG[nand-spl-secure-boot] = "ls1043ardb_nand_SECURE_BOOT_defconfig,,spl/u-boot-spl.bin"
+UBOOT_CONFIG[nand-dtb-secure-boot] = "ls1043ardb_nand_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
+UBOOT_CONFIG[sdcard-secure-boot] = "ls1043ardb_sdcard_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
+UBOOT_CONFIG[sdcard-spl-secure-boot] = "ls1043ardb_sdcard_SECURE_BOOT_defconfig,,spl/u-boot-spl.bin"
+UBOOT_CONFIG[sdcard-dtb-secure-boot] = "ls1043ardb_sdcard_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
+
+QE_UCODE = "iram_Type_A_LS1021a_r1.0.bin"
+LE_UBOOT_FOR_ARMBE_TARGET = "1"
+
+KERNEL_DEVICETREE ?= "freescale/fsl-ls1043a-rdb-sdk.dtb freescale/fsl-ls1043a-rdb-usdpaa.dtb"
+KERNEL_DEFCONFIG ?= "defconfig"
+
+EXTRA_IMAGEDEPENDS += "fm-ucode ppa rcw qe-ucode"
+
+USE_VT = "0"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/7] ls1046ardb-be: add machine config
  2018-04-17  6:48 [PATCH v2 1/7] ls1043ardb-be: add machine config chunrong.guo
@ 2018-04-17  6:48 ` chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 3/7] ls1088ardb-be: " chunrong.guo
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: chunrong.guo @ 2018-04-17  6:48 UTC (permalink / raw)
  To: meta-freescale; +Cc: Chunrong Guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls1046ardb-be.conf | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 conf/machine/ls1046ardb-be.conf

diff --git a/conf/machine/ls1046ardb-be.conf b/conf/machine/ls1046ardb-be.conf
new file mode 100644
index 0000000..a6ab742
--- /dev/null
+++ b/conf/machine/ls1046ardb-be.conf
@@ -0,0 +1,37 @@
+#@TYPE: Machine
+#@NAME: NXP LS1046ARDB
+#@SOC: LSCH2
+#@DESCRIPTION: Machine configuration for running LS1046A in 64-bit mode
+#@MAINTAINER: Zhenhua Luo <zhenhua.luo@nxp.com>
+
+DEFAULTTUNE = "aarch64_be" 
+
+MACHINEOVERRIDES =. "fsl-lsch2:ls1046a:"
+
+require conf/machine/include/qoriq-arm64.inc
+require conf/machine/include/arm/arch-arm64.inc
+
+KERNEL_CLASSES  = " kernel-itbimage "
+KERNEL_IMAGETYPES = "itbImage"
+
+DTB_LOAD = "0x90000000"
+UBOOT_ENTRYPOINT = "0x80080000"
+
+LE_UBOOT_FOR_ARMBE_TARGET = "1"
+UBOOT_CONFIG ??= "emmc sdcard sdcard-dtb-secure-boot sdcard-spl-secure-boot sdcard-secure-boot qspi-secure-boot qspi"
+UBOOT_CONFIG[emmc] = "ls1046ardb_emmc_defconfig,,u-boot-with-spl-pbl.bin"
+UBOOT_CONFIG[sdcard] = "ls1046ardb_sdcard_config,,u-boot-with-spl-pbl.bin"
+UBOOT_CONFIG[qspi] = "ls1046ardb_qspi_config,,u-boot-dtb.bin"
+UBOOT_CONFIG[qspi-secure-boot] = "ls1046ardb_qspi_SECURE_BOOT_config,,u-boot-dtb.bin"
+UBOOT_CONFIG[sdcard-secure-boot] = "ls1046ardb_sdcard_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
+UBOOT_CONFIG[sdcard-spl-secure-boot] = "ls1046ardb_sdcard_SECURE_BOOT_defconfig,,spl/u-boot-spl.bin"
+UBOOT_CONFIG[sdcard-dtb-secure-boot] = "ls1046ardb_sdcard_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
+
+KERNEL_DEVICETREE ?= "\
+    freescale/fsl-ls1046a-rdb-sdk.dtb \
+    freescale/fsl-ls1046a-rdb-usdpaa.dtb \
+"
+KERNEL_DEFCONFIG ?= "defconfig"
+
+EXTRA_IMAGEDEPENDS += "fm-ucode rcw ppa qe-ucode"
+USE_VT = "0"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 3/7] ls1088ardb-be: add machine config
  2018-04-17  6:48 [PATCH v2 1/7] ls1043ardb-be: add machine config chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 2/7] ls1046ardb-be: " chunrong.guo
@ 2018-04-17  6:48 ` chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 4/7] ls2088ardb-be: " chunrong.guo
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: chunrong.guo @ 2018-04-17  6:48 UTC (permalink / raw)
  To: meta-freescale; +Cc: Chunrong Guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls1088ardb-be.conf | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 conf/machine/ls1088ardb-be.conf

diff --git a/conf/machine/ls1088ardb-be.conf b/conf/machine/ls1088ardb-be.conf
new file mode 100644
index 0000000..28aed8e
--- /dev/null
+++ b/conf/machine/ls1088ardb-be.conf
@@ -0,0 +1,34 @@
+#@TYPE: Machine
+#@NAME: NXP LS1088ARDB
+#@SOC: LSCH3
+#@DESCRIPTION: Machine configuration for running LS1088ARDB in 64-bit mode
+#@MAINTAINER: Zongchun Yu <Zongchun.Yu@nxp.com>
+
+require conf/machine/include/qoriq-arm64.inc
+require conf/machine/include/arm/arch-arm64.inc
+
+DEFAULTTUNE = "aarch64_be"
+
+LE_UBOOT_FOR_ARMBE_TARGET = "1"
+
+MACHINEOVERRIDES =. "fsl-lsch3:ls1088a:"
+
+KERNEL_CLASSES  = " kernel-itbimage "
+KERNEL_IMAGETYPES = "itbImage"
+
+DTB_LOAD = "0x90000000"
+UBOOT_ENTRYPOINT = "0x80080000"
+
+UBOOT_CONFIG ??= "secure-boot sdcard-qspi qspi"
+UBOOT_CONFIG[secure-boot] = "ls1088ardb_qspi_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
+UBOOT_CONFIG[qspi] = "ls1088ardb_qspi_defconfig,,u-boot-dtb.bin"
+UBOOT_CONFIG[sdcard-qspi] = "ls1088ardb_sdcard_qspi_defconfig,,u-boot-with-spl.bin"
+
+KERNEL_DEVICETREE ?= "freescale/fsl-ls1088a-rdb.dtb"
+KERNEL_DEFCONFIG ?= "defconfig"
+
+SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1 115200;ttyAMA0"
+SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
+
+EXTRA_IMAGEDEPENDS += "mc-utils rcw management-complex ppa"
+USE_VT = "0"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 4/7] ls2088ardb-be: add machine config
  2018-04-17  6:48 [PATCH v2 1/7] ls1043ardb-be: add machine config chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 2/7] ls1046ardb-be: " chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 3/7] ls1088ardb-be: " chunrong.guo
@ 2018-04-17  6:48 ` chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 5/7] linux-qoriq/4.14: support big endian chunrong.guo
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: chunrong.guo @ 2018-04-17  6:48 UTC (permalink / raw)
  To: meta-freescale; +Cc: Chunrong Guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls2088ardb-be.conf | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 conf/machine/ls2088ardb-be.conf

diff --git a/conf/machine/ls2088ardb-be.conf b/conf/machine/ls2088ardb-be.conf
new file mode 100644
index 0000000..3d31736
--- /dev/null
+++ b/conf/machine/ls2088ardb-be.conf
@@ -0,0 +1,35 @@
+#@TYPE: Machine
+#@NAME: NXP LS2088ARDB
+#@SOC: LSCH3
+#@DESCRIPTION: Machine configuration for running LS2088ARDB in 64-bit mode
+#@MAINTAINER: Zongchun Yu <Zongchun.Yu@nxp.com>
+
+require conf/machine/include/qoriq-arm64.inc
+require conf/machine/include/arm/arch-arm64.inc
+
+DEFAULTTUNE = "aarch64_be"
+
+LE_UBOOT_FOR_ARMBE_TARGET = "1"
+
+MACHINEOVERRIDES =. "fsl-lsch3:ls2088a:"
+
+KERNEL_CLASSES  = " kernel-itbimage "
+KERNEL_IMAGETYPES = "itbImage"
+
+DTB_LOAD = "0x90000000"
+UBOOT_ENTRYPOINT = "0x80080000"
+
+UBOOT_CONFIG ??= "qspi-secure-boot qspi nand nor"
+UBOOT_CONFIG[nor] = "ls2080ardb_defconfig,,u-boot-dtb.bin"
+UBOOT_CONFIG[nand] = "ls2080ardb_nand_defconfig,,u-boot-dtb.bin"
+UBOOT_CONFIG[qspi] = "ls2088ardb_qspi_defconfig,,u-boot-dtb.bin"
+UBOOT_CONFIG[qspi-secure-boot] = "ls2088ardb_qspi_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
+
+KERNEL_DEVICETREE ?= "freescale/fsl-ls2088a-rdb.dtb"
+KERNEL_DEFCONFIG ?= "defconfig"
+
+SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1 115200;ttyAMA0"
+SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
+
+EXTRA_IMAGEDEPENDS += "mc-utils ls2-phy rcw management-complex ppa"
+USE_VT = "0"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 5/7] linux-qoriq/4.14: support big endian
  2018-04-17  6:48 [PATCH v2 1/7] ls1043ardb-be: add machine config chunrong.guo
                   ` (2 preceding siblings ...)
  2018-04-17  6:48 ` [PATCH v2 4/7] ls2088ardb-be: " chunrong.guo
@ 2018-04-17  6:48 ` chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 6/7] linux-qoriq/4.9: " chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 7/7] u-boot-qoriq: " chunrong.guo
  5 siblings, 0 replies; 7+ messages in thread
From: chunrong.guo @ 2018-04-17  6:48 UTC (permalink / raw)
  To: meta-freescale; +Cc: Chunrong Guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*kernel bigendian option is enabled

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-kernel/linux/linux-qoriq_4.14.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/recipes-kernel/linux/linux-qoriq_4.14.bb b/recipes-kernel/linux/linux-qoriq_4.14.bb
index 0a708fe..f4af8d5 100644
--- a/recipes-kernel/linux/linux-qoriq_4.14.bb
+++ b/recipes-kernel/linux/linux-qoriq_4.14.bb
@@ -1,4 +1,4 @@
-inherit kernel qoriq_build_64bit_kernel
+inherit kernel qoriq_build_64bit_kernel siteinfo
 inherit fsl-kernel-localversion
 
 SUMMARY = "Linux Kernel for NXP QorIQ platforms"
@@ -36,6 +36,12 @@ do_merge_delta_config() {
     # create config with make config
     oe_runmake  -C ${S} O=${B} ${KERNEL_DEFCONFIG}
     
+    # check if bigendian is enabled
+    if [ "${SITEINFO_ENDIANNESS}" = "be" ]; then
+        echo "CONFIG_CPU_BIG_ENDIAN=y" >> .config
+        echo "CONFIG_MTD_CFI_BE_BYTE_SWAP=y" >> .config
+    fi
+
     # add config fragments
     for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
         if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 6/7] linux-qoriq/4.9: support big endian
  2018-04-17  6:48 [PATCH v2 1/7] ls1043ardb-be: add machine config chunrong.guo
                   ` (3 preceding siblings ...)
  2018-04-17  6:48 ` [PATCH v2 5/7] linux-qoriq/4.14: support big endian chunrong.guo
@ 2018-04-17  6:48 ` chunrong.guo
  2018-04-17  6:48 ` [PATCH v2 7/7] u-boot-qoriq: " chunrong.guo
  5 siblings, 0 replies; 7+ messages in thread
From: chunrong.guo @ 2018-04-17  6:48 UTC (permalink / raw)
  To: meta-freescale; +Cc: Chunrong Guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*kernel bigendian option is enabled

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-kernel/linux/linux-qoriq_4.9.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/recipes-kernel/linux/linux-qoriq_4.9.bb b/recipes-kernel/linux/linux-qoriq_4.9.bb
index 7229b01..f6d2942 100644
--- a/recipes-kernel/linux/linux-qoriq_4.9.bb
+++ b/recipes-kernel/linux/linux-qoriq_4.9.bb
@@ -1,4 +1,4 @@
-inherit kernel qoriq_build_64bit_kernel
+inherit kernel qoriq_build_64bit_kernel siteinfo
 inherit fsl-kernel-localversion
 
 SUMMARY = "Linux Kernel for Freescale QorIQ platforms"
@@ -36,6 +36,12 @@ do_merge_delta_config() {
     # create .config with make config
     oe_runmake  -C ${S} O=${B} ${KERNEL_DEFCONFIG}
 
+    # check if bigendian is enabled
+    if [ "${SITEINFO_ENDIANNESS}" = "be" ]; then
+        echo "CONFIG_CPU_BIG_ENDIAN=y" >> .config
+        echo "CONFIG_MTD_CFI_BE_BYTE_SWAP=y" >> .config
+    fi
+
     # add config fragments
     for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
         if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 7/7] u-boot-qoriq: support big endian
  2018-04-17  6:48 [PATCH v2 1/7] ls1043ardb-be: add machine config chunrong.guo
                   ` (4 preceding siblings ...)
  2018-04-17  6:48 ` [PATCH v2 6/7] linux-qoriq/4.9: " chunrong.guo
@ 2018-04-17  6:48 ` chunrong.guo
  5 siblings, 0 replies; 7+ messages in thread
From: chunrong.guo @ 2018-04-17  6:48 UTC (permalink / raw)
  To: meta-freescale; +Cc: Chunrong Guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-bsp/u-boot/u-boot-qoriq_2017.12.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2017.12.bb b/recipes-bsp/u-boot/u-boot-qoriq_2017.12.bb
index 11964ba..1801350 100644
--- a/recipes-bsp/u-boot/u-boot-qoriq_2017.12.bb
+++ b/recipes-bsp/u-boot/u-boot-qoriq_2017.12.bb
@@ -53,8 +53,12 @@ python () {
         d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-')
 }
 
+LE_UBOOT_FOR_ARMBE_TARGET ?= "0"
+ENDIANNESS_GCC = "${@bb.utils.contains("LE_UBOOT_FOR_ARMBE_TARGET", "1", "-mlittle-endian", "", d)}"
+ENDIANNESS_LD = "${@bb.utils.contains("LE_UBOOT_FOR_ARMBE_TARGET", "1", "-EL", "", d)}"
+
 WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}"
-EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
+EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${ENDIANNESS_GCC}" LD="${WRAP_TARGET_PREFIX}ld ${ENDIANNESS_LD}" V=1'
 EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
 
 inherit fsl-u-boot-localversion
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-04-17 17:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17  6:48 [PATCH v2 1/7] ls1043ardb-be: add machine config chunrong.guo
2018-04-17  6:48 ` [PATCH v2 2/7] ls1046ardb-be: " chunrong.guo
2018-04-17  6:48 ` [PATCH v2 3/7] ls1088ardb-be: " chunrong.guo
2018-04-17  6:48 ` [PATCH v2 4/7] ls2088ardb-be: " chunrong.guo
2018-04-17  6:48 ` [PATCH v2 5/7] linux-qoriq/4.14: support big endian chunrong.guo
2018-04-17  6:48 ` [PATCH v2 6/7] linux-qoriq/4.9: " chunrong.guo
2018-04-17  6:48 ` [PATCH v2 7/7] u-boot-qoriq: " chunrong.guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.