package/nxp: new package directory
PATCH v3 1/9 package/nxp: new package directory
The "nxp" directory is intended to contain all NXP QorIQ (including PowerPC and LayerScape serial) related packages, together with their download site and version info.
---
changes since v2:
1. change the sub-direcotry to "nxp".
2. add helper.mk macro to extract compressed file.
changes since v1:
no changes.
--- package/Config.in | 1 + package/nxp/Config.in | 4 ++++ package/nxp/helper.mk | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 package/nxp/Config.in create mode 100644 package/nxp/helper.mk
package/Config.in +1 -0
@@ -494,6 +494,7 @@ endmenu source "package/nvidia-driver/Config.in" source "package/nvidia-tegra23/Config.in" source "package/nvme/Config.in" + source "package/nxp/Config.in" source "package/ofono/Config.in" source "package/on2-8170-modules/Config.in" source "package/open2300/Config.in"
package/nxp/Config.in new file +4 -0
@@ -0,0 +1,4 @@ +menu "NXP QorIQ libraries" + depends on BR2_aarch64 || BR2_arm || BR2_powerpc64 || BR2_powerpc + +endmenu
package/nxp/helper.mk new file +32 -0
@@ -0,0 +1,32 @@ +################################################################################ +# +# helper +# +################################################################################ + +# Helper for self-extracting binaries distributed by NXP. +# +# The --force option makes sure it doesn't fail if the source +# directory already exists. The --auto-accept skips the license check, +# as it is not needed in Buildroot because we have legal-info. Since +# there's a EULA in the binary file, we extract it in this macro, and +# it should therefore be added to the LICENSE_FILES variable of +# packages using this macro. Also, remember to set REDISTRIBUTE to +# "NO". Indeed, this is a legal minefield: the EULA specifies that the +# Board Support Package includes software and hardware (sic!) for +# which a separate license is needed... +# +# $(1): full path to the archive file +# +define NXP_EXTRACT_HELPER + awk 'BEGIN { start = 0; } \ + /^EOEULA/ { start = 0; } \ + { if (start) print; } \ + /<<EOEULA/ { start = 1; }' \ + $(1) > $(@D)/EULA + cd $(@D) && sh $(1) --force --auto-accept + find $(@D)/$(basename $(notdir $(1))) -mindepth 1 -maxdepth 1 -exec mv {} $(@D) \; + rmdir $(@D)/$(basename $(notdir $(1))) +endef + +include $(sort $(wildcard package/nxp/*/*.mk))
Signature · 1 line
2.17.1
PATCH v3 2/9 package/qoriq-rcw: move rcw into nxp and rename it
From: Jerry Huang <[email protected]>
Move package/rcw into package/nxp,
and rename it to qoriq-rcw.
---
changes since v2:
1. change the package name to qoriq-rcw to keep consistent with imx-xxx.
2. add the handing in Config.in.legacy
changes since v1:
1. new patch.
2. move rcw to sub-directory freescale-qoriq.
3. rename to fsl-qoriq-rcw.
---
Config.in.legacy | 8 +++
DEVELOPERS | 2 +-
package/Config.in.host | 2 +-
package/{rcw => nxp/qoriq-rcw}/Config.in.host | 6 +--
.../rcw.hash => nxp/qoriq-rcw/qoriq-rcw.hash} | 2 +-
package/nxp/qoriq-rcw/qoriq-rcw.mk | 50 +++++++++++++++++++
package/rcw/rcw.mk | 50 -------------------
7 files changed, 64 insertions(+), 56 deletions(-)
rename package/{rcw => nxp/qoriq-rcw}/Config.in.host (88%)
rename package/{rcw/rcw.hash => nxp/qoriq-rcw/qoriq-rcw.hash} (82%)
create mode 100644 package/nxp/qoriq-rcw/qoriq-rcw.mk
delete mode 100644 package/rcw/rcw.mkConfig.in.legacy +8 -0
@@ -146,6 +146,14 @@ endif comment "Legacy options removed in 2019.11" +config BR2_PACKAGE_HOST_RCW + bool "rcw package was removed" + select BR2_LEGACY + help + Because rcw package has been renamed to qoriq-rcw and moved + to "nxp", option BR2_PACKAGE_HOST_RCW is removed, the option + BR2_PACKAGE_HOST_QORIQ_RCW can be used for QorIQ platforms. + config BR2_PACKAGE_RPI_USERLAND_START_VCFILED bool "rpi-userland start vcfiled was removed" select BR2_LEGACY
DEVELOPERS +1 -1
@@ -1590,6 +1590,7 @@ F: package/mrouted/ F: package/mtd/ F: package/mtools/ F: package/nginx-upload/ +F: package/nxp/qoriq-rcw/ F: package/omniorb/ F: package/openresolv/ F: package/paxtest/
@@ -1610,7 +1611,6 @@ F: package/python-pyrex/ F: package/python-tinyrpc/ F: package/python-txdbus/ F: package/raptor/ -F: package/rcw/ F: package/rng-tools/ F: package/rsyslog/ F: package/setools/
package/Config.in.host +1 -1
@@ -45,6 +45,7 @@ menu "Host utilities" source "package/mtd/Config.in.host" source "package/mtools/Config.in.host" source "package/mxsldr/Config.in.host" + source "package/nxp/qoriq-rcw/Config.in.host" source "package/omap-u-boot-utils/Config.in.host" source "package/openocd/Config.in.host" source "package/opkg-utils/Config.in.host"
@@ -62,7 +63,6 @@ menu "Host utilities" source "package/qemu/Config.in.host" source "package/raspberrypi-usbboot/Config.in.host" source "package/rauc/Config.in.host" - source "package/rcw/Config.in.host" source "package/rustc/Config.in.host" source "package/s6-rc/Config.in.host" source "package/sam-ba/Config.in.host"
package/nxp/qoriq-rcw/Config.in.host renamed from package/rcw/Config.in.host +3 -3
@@ -1,4 +1,4 @@ -config BR2_PACKAGE_HOST_RCW +config BR2_PACKAGE_HOST_QORIQ_RCW bool "host rcw" help This package provides an reset configuration word(RCW)
@@ -11,9 +11,9 @@ config BR2_PACKAGE_HOST_RCW https://source.codeaurora.org/external/qoriq/qoriq-components/rcw/ -if BR2_PACKAGE_HOST_RCW +if BR2_PACKAGE_HOST_QORIQ_RCW -config BR2_PACKAGE_HOST_RCW_CUSTOM_PATH +config BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH string "RCW Source file paths" help Space-separated list of .rcw and .rcwi files, that will be
package/nxp/qoriq-rcw/qoriq-rcw.hash renamed from package/rcw/rcw.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 1421ada9fec10b12ff21cd9ad82f0a835b191cb2dde80f03547764574b1346c3 rcw-LSDK-18.12.tar.gz +sha256 1421ada9fec10b12ff21cd9ad82f0a835b191cb2dde80f03547764574b1346c3 qoriq-rcw-LSDK-18.12.tar.gz sha256 a531b3146425e592db17a51ff39c4801cb01fb4055ffdaada0572decc0655bcd LICENSE
package/nxp/qoriq-rcw/qoriq-rcw.mk new file +50 -0
50 lines not on this page · raw message
package/rcw/rcw.mk deleted +0 -50
50 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v3 3/9 package/qoriq-rcw: bump to version LSDK-19.09
In reply to Changming HuangFrom: Jerry Huang <[email protected]>
Change the RCW version to LSDK-19.09.
---
changes since v2:
1. change the hash value.
changes since v1:
1. add-back license hash.
--- package/nxp/qoriq-rcw/qoriq-rcw.hash | 2 +- package/nxp/qoriq-rcw/qoriq-rcw.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/nxp/qoriq-rcw/qoriq-rcw.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 1421ada9fec10b12ff21cd9ad82f0a835b191cb2dde80f03547764574b1346c3 qoriq-rcw-LSDK-18.12.tar.gz +sha256 4a9ce5bb1733239bf1b740b705df20f90802b16114e24f3fd56c08a7ba4b56c2 qoriq-rcw-LSDK-19.09.tar.gz sha256 a531b3146425e592db17a51ff39c4801cb01fb4055ffdaada0572decc0655bcd LICENSE
package/nxp/qoriq-rcw/qoriq-rcw.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -QORIQ_RCW_VERSION = LSDK-18.12 +QORIQ_RCW_VERSION = LSDK-19.09 QORIQ_RCW_SITE = https://source.codeaurora.org/external/qoriq/qoriq-components/rcw QORIQ_RCW_SITE_METHOD = git QORIQ_RCW_LICENSE = BSD-3-Clause
Signature · 1 line
2.17.1
PATCH v3 4/9 package/qoriq-rcw: add target rcw binary support
In reply to Changming HuangFrom: Jerry Huang <[email protected]>
For NXP QorIQ (PowerPC and Layerscape) platform, we need to specify the RCW file and build it to binary.
Introduce BR2_PACKAGE_HOST_RCW_BIN to specify the RCW binary file.
Introduce BR2_PACKAGE_HOST_RCW_BOOT_MODE to define the boot mode. Because the RCW binary can be stored in different media, for example:
SD card - RCW locate in SD card, boot the board from SD card
eMMC - RCW locate in eMMC chip, boot the board from eMMC chip
flexSPI - RCW locate in flexSPI, boot the board from flexSPI Nor/Nand flash
QSPI - RCW locate in QSPI flash, boot the board from QSPI flash
---
changes since v2:
1. modify the patch descrition
2. more detail for BR2_PACKAGE_HOST_QORIQ_RCW_BIN
3. remove two options not used in this patch
4. add the condition detection in makefile for QorIQ RCW
changes since v1:
1. add option BR2_PACKAGE_HOST_RCW_ATF for ATF.
--- package/nxp/qoriq-rcw/Config.in.host | 12 ++++++++++++ package/nxp/qoriq-rcw/qoriq-rcw.mk | 15 +++++++++++++++ 2 files changed, 27 insertions(+)
package/nxp/qoriq-rcw/Config.in.host +12 -0
@@ -25,4 +25,16 @@ config BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH included for use in the SDK or with post scripts but no RCW binary will not be generated. +config BR2_PACKAGE_HOST_QORIQ_RCW_BIN + string "Custom RCW" + depends on !BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH + help + This option is used to specify the RCW binary file for board. + which is composed with platform/serdes_value/rcw_file, platform + is the platform name, serdes_value is the setting of the Serdes, + rcw_file is the file name of RCW, for example: + "ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.bin" + + If this option is empty, no rcw file is used. + endif
package/nxp/qoriq-rcw/qoriq-rcw.mk +15 -0
@@ -37,6 +37,21 @@ endef define HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE $(INSTALL) -D -m 0644 $(@D)/PBL.bin $(BINARIES_DIR)/PBL.bin endef +else +QORIQ_RCW_PATH_FILE_BIN = $(call qstrip,$(BR2_PACKAGE_HOST_QORIQ_RCW_BIN)) + +ifneq ($(QORIQ_RCW_PATH_FILE_BIN),) +QORIQ_RCW_PLATFORM = $(firstword $(subst /, ,$(QORIQ_RCW_PATH_FILE_BIN))) +QORIQ_RCW_FILE_BIN = $(lastword $(subst /, ,$(QORIQ_RCW_PATH_FILE_BIN))) + +define HOST_QORIQ_RCW_BUILD_CMDS + $(MAKE) -C $(@D)/$(QORIQ_RCW_PLATFORM) +endef + +define HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE + $(INSTALL) -D -m 0644 $(@D)/$(QORIQ_RCW_PATH_FILE_BIN) $(BINARIES_DIR)/$(QORIQ_RCW_FILE_BIN) +endef +endif endif # Copy source files and script into $(HOST_DIR)/share/rcw/ so a developer
Signature · 1 line
2.17.1
PATCH v3 4/9 package/qoriq-rcw: add target rcw binary support
Sorry, the description of patch is not changed, I will resend it out again.
Best Regards
Jerry Huang
Quoted 91 lines
-----Original Message-----
From: Changming Huang <[email protected]>
Sent: Wednesday, November 27, 2019 3:17 PM
To: buildroot at busybox.net
Cc: thomas.petazzoni at bootlin.com; michael at walle.cc; matthew.weber at collins.com; geomatsi at gmail.com; Jerry Huang <[email protected]>
Subject: [PATCH v3 4/9] package/qoriq-rcw: add target rcw binary supportFrom: Jerry Huang <[email protected]>
For NXP QorIQ (PowerPC and Layerscape) platform, we need to specify the RCW file and build it to binary.
Introduce
BR2_PACKAGE_HOST_RCW_BINto specify the RCW binary file.Introduce
BR2_PACKAGE_HOST_RCW_BOOT_MODEto define the boot mode. Because the RCW binary can be stored in different media, for example:
SD card - RCW locate in SD card, boot the board from SD card
eMMC - RCW locate in eMMC chip, boot the board from eMMC chip
flexSPI - RCW locate in flexSPI, boot the board from flexSPI Nor/Nand flash
QSPI - RCW locate in QSPI flash, boot the board from QSPI flashSigned-off-by Jerry Huang <[email protected]>---
changes since v2:
1. modify the patch descrition
2. more detail forBR2_PACKAGE_HOST_QORIQ_RCW_BIN3. remove two options not used in this patch 4. add the condition detection in makefile for QorIQ RCWchanges since v1:
1. add optionBR2_PACKAGE_HOST_RCW_ATFfor ATF.--- package/nxp/qoriq-rcw/Config.in.host | 12 ++++++++++++ package/nxp/qoriq-rcw/qoriq-rcw.mk | 15 +++++++++++++++ 2 files changed, 27 insertions(+)package/nxp/qoriq-rcw/Config.in.host +0
-0@@ -25,4 +25,16 @@ config
BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATHpackage/nxp/qoriq-rcw/Config.in.host +12
-0included for use in the SDK or with post scripts but no RCW binary will not be generated. +config BR2_PACKAGE_HOST_QORIQ_RCW_BIN + string "Custom RCW" + depends on !BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH + help + This option is used to specify the RCW binary file for board. + which is composed with platform/serdes_value/rcw_file, platform + is the platform name, serdes_value is the setting of the Serdes, + rcw_file is the file name of RCW, for example: + "ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.bin" + + If this option is empty, no rcw file is used. + endifpackage/nxp/qoriq-rcw/qoriq-rcw.mk +17
-1@@ -37,6 +37,21 @@ endef define HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE $(INSTALL) -D -m 0644 $(@D)/PBL.bin $(BINARIES_DIR)/PBL.bin endef +else +QORIQ_RCW_PATH_FILE_BIN = $(call +qstrip,$(BR2_PACKAGE_HOST_QORIQ_RCW_BIN)) + +ifneq ($(QORIQ_RCW_PATH_FILE_BIN),) +QORIQ_RCW_PLATFORM = $(firstword $(subst /, +,$(QORIQ_RCW_PATH_FILE_BIN))) QORIQ_RCW_FILE_BIN = $(lastword $(subst +/, ,$(QORIQ_RCW_PATH_FILE_BIN))) + +define HOST_QORIQ_RCW_BUILD_CMDS + $(MAKE) -C $(@D)/$(QORIQ_RCW_PLATFORM) endef + +define HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE + $(INSTALL) -D -m 0644 $(@D)/$(QORIQ_RCW_PATH_FILE_BIN) +$(BINARIES_DIR)/$(QORIQ_RCW_FILE_BIN) +endef +endif endif # Copy source files and script into $(HOST_DIR)/share/rcw/ so a developer --2.17.1
PATCH v3 5/9 boot/arm-trusted-firmware: introduce two new options
In reply to Changming Huangtwo new options for arm-trusted-firmware:
1. BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS
- for additional targets, E.G. "pbl".
2. BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES
- for additional dependencies, E.G. "host-qoriq-rcw"
changes since v2:
1. introduce option BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS.
2. introduce option BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES.
3. rewrite the makefile with these two options
changes since v1:
1. Use option BR2_PACKAGE_HOST_RCW_ATF as the condition for RCW used by ATF.
--- boot/arm-trusted-firmware/Config.in | 11 +++++++++++ boot/arm-trusted-firmware/arm-trusted-firmware.mk | 6 ++++++ 2 files changed, 17 insertions(+)
boot/arm-trusted-firmware/Config.in +11 -0
@@ -153,4 +153,15 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES Names of generated image files that are installed in the output images/ directory. +config BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS + string "Additional ATF targets options" + help + Additional target options for ATF build + E.G. 'pbl' + +config BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES + string "Additional AFT dependencies" + help + Additional dependencies for ATF build, E.G. "host-qoriq-rcw" + endif
boot/arm-trusted-firmware/arm-trusted-firmware.mk +6 -0
@@ -92,6 +92,12 @@ endif ARM_TRUSTED_FIRMWARE_MAKE_TARGETS = all +ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += \ + $(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS)) + +ARM_TRUSTED_FIRMWARE_DEPENDENCIES += \ + $(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES)) + ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP),y) ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += fip ARM_TRUSTED_FIRMWARE_DEPENDENCIES += host-openssl
Signature · 1 line
2.17.1
PATCH v3 6/9 package/qoriq-cadence-dp-firmware: new package
In reply to Changming HuangFrom: Jerry Huang <[email protected]>
This package provides the firmware for LS1028ARDB DP (display port).
---
changes since v2:
1. change the package name to qoriq-cadence-dp-firmware.
2. add the hash of COPYING.
3. modify makefile with new option.
4. update DEVELOPERS with alphabetic ordering
changes since v1:
1. rename the package to fsl-qoriq-cadence-dp-fw.
2. update DEVELOPERS.
3. add the hash of package.
4. modify the context fo config file to package name.
5. re-write the makefile according to rule of buildroot.
6. add the license message in makefile.
--- DEVELOPERS | 3 +++ package/nxp/Config.in | 2 ++ package/nxp/helper.mk | 2 ++ .../nxp/qoriq-cadence-dp-firmware/Config.in | 4 ++++ .../qoriq-cadence-dp-firmware.hash | 3 +++ .../qoriq-cadence-dp-firmware.mk | 23 +++++++++++++++++++ 6 files changed, 37 insertions(+) create mode 100644 package/nxp/qoriq-cadence-dp-firmware/Config.in create mode 100644 package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.hash create mode 100644 package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
DEVELOPERS +3 -0
@@ -513,6 +513,9 @@ F: configs/nanopi_m1_plus_defconfig F: configs/olimex_a13_olinuxino_defconfig F: configs/orangepi_plus_defconfig +N: Changming Huang <[email protected]> +F: package/nxp/qoriq-cadence-dp-firmware/ + N: Chris Packham <[email protected]> F: package/gstreamer1/gst1-shark/ F: package/micropython/
package/nxp/Config.in +2 -0
@@ -1,4 +1,6 @@ menu "NXP QorIQ libraries" depends on BR2_aarch64 || BR2_arm || BR2_powerpc64 || BR2_powerpc +source "package/nxp/qoriq-cadence-dp-firmware/Config.in" + endmenu
package/nxp/helper.mk +2 -0
@@ -4,6 +4,8 @@ # ################################################################################ +NXP_QORIQ_SITE = http://www.nxp.com/lgfiles/sdk/lsdk1909 + # Helper for self-extracting binaries distributed by NXP. # # The --force option makes sure it doesn't fail if the source
package/nxp/qoriq-cadence-dp-firmware/Config.in new file +4 -0
@@ -0,0 +1,4 @@ +config BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE + bool "qoriq-cadence-dp-firmware" + help + NXP QorIQ cadence DP firmware, a resident EL3 firmware.
package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 5871c5717be32f14a59624d5699d405e8ce9ae2e9c9ef86fd16e13d264a40e58 firmware-cadence-lsdk1909.bin +sha256 d55f024af2bfff714b90de596f6d0399124b999e8c18a86b13a3b507bae6f561 COPYING
package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk new file +23 -0
@@ -0,0 +1,23 @@ +################################################################################ +# +# qoriq-cadence-dp-firmware +# +################################################################################ + +QORIQ_CADENCE_DP_FIRMWARE_VERSION = lsdk1909 +QORIQ_CADENCE_DP_FIRMWARE_SITE = $(NXP_QORIQ_SITE) +QORIQ_CADENCE_DP_FIRMWARE_SOURCE = firmware-cadence-$(QORIQ_CADENCE_DP_FIRMWARE_VERSION).bin +QORIQ_CADENCE_DP_FIRMWARE_LICENSE = NXP-Binary-EULA +QORIQ_CADENCE_DP_FIRMWARE_LICENSE_FILES = COPYING +QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES = YES +QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET = NO + +define QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_CMDS + $(call NXP_EXTRACT_HELPER,$(QORIQ_CADENCE_DP_FIRMWARE_DL_DIR)/$(QORIQ_CADENCE_DP_FIRMWARE_SOURCE)) +endef + +define QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES_CMDS + $(INSTALL) -D -m 0644 $(@D)/dp/ls1028a-dp-fw.bin $(BINARIES_DIR)/ls1028a-dp-fw.bin +endef + +$(eval $(generic-package))
Signature · 1 line
2.17.1
PATCH v3 7/9 package/qoriq-rcw:Enable IIC5_PMUX and CLK_OUT_PMUX for GPIO
In reply to Changming HuangFrom: Jerry Huang <[email protected]>
Because GPIO is used as interrupt for eNETC PHY and Micro-bus, IIC5_PMUX and CLK_OUT_PMUX are enabled for GPIO.
---
changes sinve v2:
1. no changes.
changes sinve v1:
1. change to unconditional for these two patches.
--- ...b-Enable-IIC5_PMUX-for-GPIO-function.patch | 42 +++++++++++++++++++ ...nable-CLK_OUT_PMUX-for-GPIO-function.patch | 40 ++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 package/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-function.patch create mode 100644 package/nxp/qoriq-rcw/0002-ls1028ardb-Enable-CLK_OUT_PMUX-for-GPIO-function.patch
package/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-function.patch new file +42 -0
@@ -0,0 +1,42 @@ +From 33b403cee1fa215927bc65dc14baf35a2fdbe7b3 Mon Sep 17 00:00:00 2001 +From: Jerry Huang <[email protected]> +Date: Thu, 19 Sep 2019 12:12:20 +0800 +Subject: [PATCH 1/2] ls1028ardb: Enable IIC5_PMUX for GPIO function + +Set IIC5_PMUX = 1 to enable GPIO function. + +Signed-off-by: Jianchao Wang <[email protected]> +Signed-off-by: Jerry Huang <[email protected]> +--- + ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw | 2 +- + ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +index b46ea2e..5466a63 100644 +--- a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw ++++ b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +@@ -26,7 +26,7 @@ SYSCLK_FREQ=600 + IIC2_PMUX=6 + IIC3_PMUX=2 + IIC4_PMUX=2 +-IIC5_PMUX=2 ++IIC5_PMUX=1 + IIC6_PMUX=2 + CLK_OUT_PMUX=2 + EC1_SAI4_5_PMUX=5 +diff --git a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +index 04e2208..1908d8c 100644 +--- a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw ++++ b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +@@ -26,7 +26,7 @@ SYSCLK_FREQ=600 + IIC2_PMUX=6 + IIC3_PMUX=2 + IIC4_PMUX=2 +-IIC5_PMUX=2 ++IIC5_PMUX=1 + IIC6_PMUX=3 + CLK_OUT_PMUX=2 + EC1_SAI4_5_PMUX=5 +-- +2.17.1
package/nxp/qoriq-rcw/0002-ls1028ardb-Enable-CLK_OUT_PMUX-for-GPIO-function.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 4a3c9ea5d0c7bf8eec8cb6276d6f4d940f3946db Mon Sep 17 00:00:00 2001 +From: Jerry Huang <[email protected]> +Date: Thu, 19 Sep 2019 12:13:48 +0800 +Subject: [PATCH 2/2] ls1028ardb/rcw: Enable CLK_OUT_PMUX for GPIO function + +Signed-off-by: Jianchao Wang <[email protected]> +Signed-off-by: Jerry Huang <[email protected]> +--- + ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw | 2 +- + ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +index 5466a63..a5ed4d4 100644 +--- a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw ++++ b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +@@ -28,7 +28,7 @@ IIC3_PMUX=2 + IIC4_PMUX=2 + IIC5_PMUX=1 + IIC6_PMUX=2 +-CLK_OUT_PMUX=2 ++CLK_OUT_PMUX=1 + EC1_SAI4_5_PMUX=5 + EC1_SAI3_6_PMUX=5 + USB3_CLK_FSEL=39 +diff --git a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +index 1908d8c..c930b83 100644 +--- a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw ++++ b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +@@ -28,7 +28,7 @@ IIC3_PMUX=2 + IIC4_PMUX=2 + IIC5_PMUX=1 + IIC6_PMUX=3 +-CLK_OUT_PMUX=2 ++CLK_OUT_PMUX=1 + EC1_SAI4_5_PMUX=5 + EC1_SAI3_6_PMUX=5 + USB3_CLK_FSEL=39 +-- +2.17.1
Signature · 1 line
2.17.1
PATCH v3 7/9 package/qoriq-rcw:Enable IIC5_PMUX and CLK_OUT_PMUX for GPIO
Hi, all guys,
And comment for patch 1 ~ patch 7?
I will rework patch8 and patch9.
Best Regards
Jerry Huang
Quoted 148 lines
-----Original Message-----
From: Changming Huang <[email protected]>
Sent: Wednesday, November 27, 2019 3:17 PM
To: buildroot at busybox.net
Cc: thomas.petazzoni at bootlin.com; michael at walle.cc; matthew.weber at collins.com; geomatsi at gmail.com; Jerry Huang <[email protected]>
Subject: [PATCH v3 7/9] package/qoriq-rcw:EnableIIC5_PMUXandCLK_OUT_PMUXfor GPIOFrom: Jerry Huang <[email protected]>
Because GPIO is used as interrupt for eNETC PHY and Micro-bus,
IIC5_PMUXandCLK_OUT_PMUXare enabled for GPIO.Signed-off-by Jerry Huang <[email protected]>---
changes sinve v2:
1. no changes.changes sinve v1:
1. change to unconditional for these two patches.--- ...b-Enable-IIC5_PMUX-for-GPIO-function.patch | 42 +++++++++++++++++++ ...nable-CLK_OUT_PMUX-for-GPIO-function.patch | 40 ++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 package/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-function. patch create mode 100644package/nxp/qoriq-rcw/0002-ls1028ardb-Enable-CLK_OUT_PMUX-for-GPIO-fun ction.patch
diff --git a/package/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-functio n.patch b/package/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-functio n.patch
new file mode 100644
index 0000000000..21c6c84cbdpackage/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-fu new file +2
-0+++ nction.patch@@ -0,0 +1,42 @@ +From 33b403cee1fa215927bc65dc14baf35a2fdbe7b3 Mon Sep 17 00:00:002001
package/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-fu new file +43
-0+From: Jerry Huang <[email protected]> +Date: Thu, 19 Sep 2019 12:12:20 +0800 +Subject: [PATCH 1/2] ls1028ardb: Enable IIC5_PMUX for GPIO function + +Set IIC5_PMUX = 1 to enable GPIO function. + +Signed-off-by: Jianchao Wang <[email protected]> +Signed-off-by: Jerry Huang <[email protected]> +--- + ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw | 2 +- + ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +index b46ea2e..5466a63 100644 +--- a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw ++++ b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +@@ -26,7 +26,7 @@ SYSCLK_FREQ=600 + IIC2_PMUX=6 + IIC3_PMUX=2 + IIC4_PMUX=2 +-IIC5_PMUX=2 ++IIC5_PMUX=1 + IIC6_PMUX=2 + CLK_OUT_PMUX=2 + EC1_SAI4_5_PMUX=5 +diff --git a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +index 04e2208..1908d8c 100644 +--- a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw ++++ b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +@@ -26,7 +26,7 @@ SYSCLK_FREQ=600 + IIC2_PMUX=6 + IIC3_PMUX=2 + IIC4_PMUX=2 +-IIC5_PMUX=2 ++IIC5_PMUX=1 + IIC6_PMUX=3 + CLK_OUT_PMUX=2 + EC1_SAI4_5_PMUX=5 +-- +2.17.1diff --git a/package/nxp/qoriq-rcw/0002-ls1028ardb-Enable-CLK_OUT_PMUX-for-GPIO-fu nction.patch b/package/nxp/qoriq-rcw/0002-ls1028ardb-Enable-CLK_OUT_PMUX-for-GPIO-fu nction.patch
new file mode 100644
index 0000000000..4f00541d69
---/dev/null
+++
b/package/nxp/qoriq-rcw/0002-ls1028ardb-Enable-CLK_OUT_PMUX-for-GPIO +++ -function.patchpackage/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-fu new file +1
-0@@ -0,0 +1,40 @@ +From 4a3c9ea5d0c7bf8eec8cb6276d6f4d940f3946db Mon Sep 17 00:00:002001
package/nxp/qoriq-rcw/0001-ls1028ardb-Enable-IIC5_PMUX-for-GPIO-fu new file +42
-1+From: Jerry Huang <[email protected]> +Date: Thu, 19 Sep 2019 12:13:48 +0800 +Subject: [PATCH 2/2] ls1028ardb/rcw: Enable CLK_OUT_PMUX for GPIO +function + +Signed-off-by: Jianchao Wang <[email protected]> +Signed-off-by: Jerry Huang <[email protected]> +--- + ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw | 2 +- + ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +index 5466a63..a5ed4d4 100644 +--- a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw ++++ b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.rcw +@@ -28,7 +28,7 @@ IIC3_PMUX=2 + IIC4_PMUX=2 + IIC5_PMUX=1 + IIC6_PMUX=2 +-CLK_OUT_PMUX=2 ++CLK_OUT_PMUX=1 + EC1_SAI4_5_PMUX=5 + EC1_SAI3_6_PMUX=5 + USB3_CLK_FSEL=39 +diff --git a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +index 1908d8c..c930b83 100644 +--- a/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw ++++ b/ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.rcw +@@ -28,7 +28,7 @@ IIC3_PMUX=2 + IIC4_PMUX=2 + IIC5_PMUX=1 + IIC6_PMUX=3 +-CLK_OUT_PMUX=2 ++CLK_OUT_PMUX=1 + EC1_SAI4_5_PMUX=5 + EC1_SAI3_6_PMUX=5 + USB3_CLK_FSEL=39 +-- +2.17.1 --2.17.1
PATCH v3 8/9 board/nxp/common/ls: Add standard post image script for Layerscape processors
In reply to Changming HuangAdd the standard post image script for Layerscape processors (LS1028A and other processors).
---
changes since v2:
1. add option BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE for boot mode.
2. change the condition for qoriq-cadence-dp-firmware firmware file.
changes since v1:
1. update DEVELOPERS.
2. modify the condition for display firmware.
--- DEVELOPERS | 1 + board/nxp/common/ls/busybox.config | 9 +++ board/nxp/common/ls/post-image-spi.sh | 64 +++++++++++++++++++ board/nxp/common/ls/post-image.sh | 92 +++++++++++++++++++++++++++ package/nxp/qoriq-rcw/Config.in.host | 6 ++ 5 files changed, 172 insertions(+) create mode 100644 board/nxp/common/ls/busybox.config create mode 100755 board/nxp/common/ls/post-image-spi.sh create mode 100755 board/nxp/common/ls/post-image.sh
DEVELOPERS +1 -0
@@ -514,6 +514,7 @@ F: configs/olimex_a13_olinuxino_defconfig F: configs/orangepi_plus_defconfig N: Changming Huang <[email protected]> +F: board/nxp/common/ls/ F: package/nxp/qoriq-cadence-dp-firmware/ N: Chris Packham <[email protected]>
board/nxp/common/ls/busybox.config new file +9 -0
@@ -0,0 +1,9 @@ +# +# Additional Busybox Settings +# +CONFIG_TASKSET=y +CONFIG_FEATURE_TASKSET_FANCY=y +CONFIG_FEATURE_DF_FANCY=y +CONFIG_FEATURE_SEAMLESS_GZ=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_XZ=y
board/nxp/common/ls/post-image-spi.sh new file +64 -0
64 lines not on this page · raw message
board/nxp/common/ls/post-image.sh new file +92 -0
92 lines not on this page · raw message
package/nxp/qoriq-rcw/Config.in.host +6 -0
@@ -37,4 +37,10 @@ config BR2_PACKAGE_HOST_QORIQ_RCW_BIN If this option is empty, no rcw file is used. +config BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE + string "QorIQ RCW Boot mode" + depends on !BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH + help + Specify the boot mode, for example, sd, emmc, flexspi_nor. + endif
Signature · 1 line
2.17.1
PATCH v3 9/9 configs/nxp_ls1028ardb*: new board
In reply to Changming HuangThis is to support Freescale/NXP LS1028ARDB in Buildroot. The board is setup to track the Linux at 4.19 via NXP LSDK-19.09.
The target will build uboot and RCW binary with arm-trusted-firmware support.
board/nxp/ls1028ardb/: scripts related with ls1028ardb nxp_ls1028ardb-64b-emmc_defconfig: defconfig boot from emmc chip on board nxp_ls1028ardb-64b_defconfig: defconfig boot from SD card nxp_ls1028ardb-64b-xspi_defconfig: defconfig boot from FlexSPI chip on board
---
changes since v2:
1. Modify the qoriq-cadence-dp-firmware option in defconfig.
2. rename defconfig to nxp_ls1028*.
3. remove extra packages except busybox in defconfig.
4. modify the description of file genimage.xspi.cfg.template.
changes since v1:
1. add new option in configs/freescale_ls1028ardb-xxxx_defconfig.
--- .gitlab-ci.yml | 3 + DEVELOPERS | 2 + .../nxp/ls1028ardb/genimage.emmc.cfg.template | 52 ++++++++++++ board/nxp/ls1028ardb/genimage.sd.cfg.template | 52 ++++++++++++ .../nxp/ls1028ardb/genimage.xspi.cfg.template | 55 ++++++++++++ board/nxp/ls1028ardb/kernel.its | 59 +++++++++++++ board/nxp/ls1028ardb/ls1028-10-network.rules | 16 ++++ board/nxp/ls1028ardb/post-cfg-udev.sh | 10 +++ board/nxp/ls1028ardb/readme.txt | 61 +++++++++++++ .../ls1028ardb/u-boot-environment-emmc.txt | 22 +++++ .../nxp/ls1028ardb/u-boot-environment-sd.txt | 21 +++++ .../ls1028ardb/u-boot-environment-xspi.txt | 22 +++++ configs/nxp_ls1028ardb-64b-emmc_defconfig | 85 +++++++++++++++++++ configs/nxp_ls1028ardb-64b-xspi_defconfig | 85 +++++++++++++++++++ configs/nxp_ls1028ardb-64b_defconfig | 85 +++++++++++++++++++ 15 files changed, 630 insertions(+) create mode 100644 board/nxp/ls1028ardb/genimage.emmc.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.sd.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.xspi.cfg.template create mode 100644 board/nxp/ls1028ardb/kernel.its create mode 100644 board/nxp/ls1028ardb/ls1028-10-network.rules create mode 100755 board/nxp/ls1028ardb/post-cfg-udev.sh create mode 100644 board/nxp/ls1028ardb/readme.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-emmc.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-sd.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-xspi.txt create mode 100644 configs/nxp_ls1028ardb-64b-emmc_defconfig create mode 100644 configs/nxp_ls1028ardb-64b-xspi_defconfig create mode 100644 configs/nxp_ls1028ardb-64b_defconfig
.gitlab-ci.yml +3 -0
@@ -223,6 +223,9 @@ nitrogen6sx_defconfig: { extends: .defconfig } nitrogen6x_defconfig: { extends: .defconfig } nitrogen7_defconfig: { extends: .defconfig } nitrogen8m_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-emmc_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-xspi_defconfig: { extends: .defconfig } odroidxu4_defconfig: { extends: .defconfig } olimex_a10_olinuxino_lime_defconfig: { extends: .defconfig } olimex_a13_olinuxino_defconfig: { extends: .defconfig }
DEVELOPERS +2 -0
@@ -515,6 +515,8 @@ F: configs/orangepi_plus_defconfig N: Changming Huang <[email protected]> F: board/nxp/common/ls/ +F: board/nxp/ls1028ardb/ +F: configs/nxp_ls1028ardb* F: package/nxp/qoriq-cadence-dp-firmware/ N: Chris Packham <[email protected]>
board/nxp/ls1028ardb/genimage.emmc.cfg.template new file +52 -0
52 lines not on this page · raw message
board/nxp/ls1028ardb/genimage.sd.cfg.template new file +52 -0
52 lines not on this page · raw message
board/nxp/ls1028ardb/genimage.xspi.cfg.template new file +55 -0
55 lines not on this page · raw message
board/nxp/ls1028ardb/kernel.its new file +59 -0
59 lines not on this page · raw message
board/nxp/ls1028ardb/ls1028-10-network.rules new file +16 -0
@@ -0,0 +1,16 @@ +# ENETC rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0", DRIVERS=="fsl_enetc", NAME:="eno0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1", DRIVERS=="fsl_enetc", NAME:="eno1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.2", DRIVERS=="fsl_enetc", NAME:="eno2" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.6", DRIVERS=="fsl_enetc", NAME:="eno3" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.0", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.1", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.2", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.3", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf1" +# LS1028 switch rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", NAME="swp0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", NAME="swp1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p2", NAME="swp2" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p3", NAME="swp3" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p4", NAME="swp4" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p5", NAME="swp5"
board/nxp/ls1028ardb/post-cfg-udev.sh new file +10 -0
@@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +main() +{ + cp board/nxp/ls1028ardb/ls1028-10-network.rules ${TARGET_DIR}/etc/udev/rules.d/10-network.rules + + exit $? +} + +main $@
board/nxp/ls1028ardb/readme.txt new file +61 -0
61 lines not on this page · raw message
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +22 -0
@@ -0,0 +1,22 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/mmcblk1p2 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32 at 60;mmc dev 1;mmcinfo;fatload mmc 1:1 ${dp_load} ${dp_file};hdp load ${dp_load} ${dp_offset};fatload mmc 1:1 ${loadaddr} ${bootfile};fatload mmc 1:1 ${fdtaddr} ${fdtfile};booti ${loadaddr} - ${fdtaddr} +bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc 0:1 ${loadaddr} ${bootfile};bootm ${loadaddr}
board/nxp/ls1028ardb/u-boot-environment-sd.txt new file +21 -0
@@ -0,0 +1,21 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/mmcblk0p2 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32 at 60;mmcinfo;fatload mmc 0:1 ${dp_load} ${dp_file}; hdp load ${dp_load} ${dp_offset};fatload mmc 0:1 ${loadaddr} ${bootfile};fatload mmc 0:1 ${fdtaddr} ${fdtfile};booti ${loadaddr} - ${fdtaddr} +bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial
board/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +22 -0
@@ -0,0 +1,22 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/ram0 rw earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32 at 60; sf probe 0:0; sf read $dp_load $dp_start $dp_size; hdp load $dp_load $dp_offset; sf read $kernel_load $kernel_start $kernel_size && bootm $kernel_load +bootdelay=3 +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +kernel_load=0xa0000000 +kernel_size=0x3000000 +kernel_start=0x1000000 +dp_load=0x90000000 +dp_start=0x940000 +dp_size=0x40000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc 0:1 ${loadaddr} ${bootfile};bootm $loadaddr
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +85 -0
85 lines not on this page · raw message
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +85 -0
85 lines not on this page · raw message
configs/nxp_ls1028ardb-64b_defconfig new file +85 -0
85 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v3 9/9 configs/nxp_ls1028ardb*: new board
Quoted 349 lines · Changming Huang
This is to support Freescale/NXP LS1028ARDB in Buildroot. The board is setup to track the Linux at 4.19 via NXP LSDK-19.09.
The target will build uboot and RCW binary with arm-trusted-firmware support.
board/nxp/ls1028ardb/: scripts related with ls1028ardb nxp_ls1028ardb-64b-emmc_defconfig: defconfig boot from emmc chip on board nxp_ls1028ardb-64b_defconfig: defconfig boot from SD card nxp_ls1028ardb-64b-xspi_defconfig: defconfig boot from FlexSPI chip on board
Signed-off-by Changming Huang <[email protected]>---
changes since v2:
1. Modify the qoriq-cadence-dp-firmware option in defconfig.
2. rename defconfig to nxp_ls1028*.
3. remove extra packages except busybox in defconfig.
4. modify the description of file genimage.xspi.cfg.template.changes since v1:
1. add new option in configs/freescale_ls1028ardb-xxxx_defconfig.--- .gitlab-ci.yml | 3 + DEVELOPERS | 2 + .../nxp/ls1028ardb/genimage.emmc.cfg.template | 52 ++++++++++++ board/nxp/ls1028ardb/genimage.sd.cfg.template | 52 ++++++++++++ .../nxp/ls1028ardb/genimage.xspi.cfg.template | 55 ++++++++++++ board/nxp/ls1028ardb/kernel.its | 59 +++++++++++++ board/nxp/ls1028ardb/ls1028-10-network.rules | 16 ++++ board/nxp/ls1028ardb/post-cfg-udev.sh | 10 +++ board/nxp/ls1028ardb/readme.txt | 61 +++++++++++++ .../ls1028ardb/u-boot-environment-emmc.txt | 22 +++++ .../nxp/ls1028ardb/u-boot-environment-sd.txt | 21 +++++ .../ls1028ardb/u-boot-environment-xspi.txt | 22 +++++ configs/nxp_ls1028ardb-64b-emmc_defconfig | 85 +++++++++++++++++++ configs/nxp_ls1028ardb-64b-xspi_defconfig | 85 +++++++++++++++++++ configs/nxp_ls1028ardb-64b_defconfig | 85 +++++++++++++++++++ 15 files changed, 630 insertions(+) create mode 100644 board/nxp/ls1028ardb/genimage.emmc.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.sd.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.xspi.cfg.template create mode 100644 board/nxp/ls1028ardb/kernel.its create mode 100644 board/nxp/ls1028ardb/ls1028-10-network.rules create mode 100755 board/nxp/ls1028ardb/post-cfg-udev.sh create mode 100644 board/nxp/ls1028ardb/readme.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-emmc.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-sd.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-xspi.txt create mode 100644 configs/nxp_ls1028ardb-64b-emmc_defconfig create mode 100644 configs/nxp_ls1028ardb-64b-xspi_defconfig create mode 100644 configs/nxp_ls1028ardb-64b_defconfig.gitlab-ci.yml +3
-0@@ -223,6 +223,9 @@ nitrogen6sx_defconfig: { extends: .defconfig } nitrogen6x_defconfig: { extends: .defconfig } nitrogen7_defconfig: { extends: .defconfig } nitrogen8m_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-emmc_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-xspi_defconfig: { extends: .defconfig } odroidxu4_defconfig: { extends: .defconfig } olimex_a10_olinuxino_lime_defconfig: { extends: .defconfig } olimex_a13_olinuxino_defconfig: { extends: .defconfig }DEVELOPERS +2
-0@@ -515,6 +515,8 @@ F: configs/orangepi_plus_defconfig N: Changming Huang <[email protected]> F: board/nxp/common/ls/ +F: board/nxp/ls1028ardb/ +F: configs/nxp_ls1028ardb* F: package/nxp/qoriq-cadence-dp-firmware/ N: Chris Packham <[email protected]>board/nxp/ls1028ardb/genimage.emmc.cfg.template new file +52
-0@@ -0,0 +1,52 @@ +# Minimal eMMC boot image for the NXP boards Template +# +# eMMC image (sdcard.img) format: +# * the eMMC must have 4 kB free space at the beginning, +# * U-Boot is dumped as is, +# * a FAT partition at offset 64 MB is containing Image and DTB files +# * a single root filesystem partition is required (ext2, ext3 or ext4) +# + +image boot.vfat { + vfat { + files = { + %FILES% + } + } + size = 256M +} + +image sdcard.img { + hdimage { + } + + partition rcw { + in-partition-table = "no" + image = "bl2_emmc.pbl" + offset = 4096 + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 64M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}board/nxp/ls1028ardb/genimage.sd.cfg.template new file +52
-0@@ -0,0 +1,52 @@ +# Minimal SD card image for the NXP boards Template +# +# SD card image (sdcard.img) format: +# * the SD card must have 4 kB free space at the beginning, +# * U-Boot is dumped as is, +# * a FAT partition at offset 64 MB is containing Image and DTB files +# * a single root filesystem partition is required (ext2, ext3 or ext4) +# + +image boot.vfat { + vfat { + files = { + %FILES% + } + } + size = 256M +} + +image sdcard.img { + hdimage { + } + + partition rcw { + in-partition-table = "no" + image = "bl2_sd.pbl" + offset = 4096 + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 64M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}board/nxp/ls1028ardb/genimage.xspi.cfg.template new file +55
-0@@ -0,0 +1,55 @@ +# Minimal XSPI (FlexSPI) image for the NXP boards Template +# +# FlexSPI image (xspi.cpio.img) format: +# * For ls1028ardb, the FlexSPI flash size is 256MB, erase size is 128KB +# * bl2_flexspi_nor.bpl: the RCW with ATF header +# * fib.bin: u-boot-dtb.bin binary with ATF header +# * Kernel.itb: +# * offset 16MB, include Kernel, ramdisk file system and DTB file +# +flash xspi-256M-128K { + pebsize = 128K + numpebs = 2048 + minimum-io-unit-size = 128k +} + +image xspi.cpio.img { + flash { + } + flashtype = "xspi-256M-128K" + + partition rcw { + in-partition-table = "no" + image = "bl2_flexspi_nor.pbl" + offset = 0 + size = 1M + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + size = 4M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + size = 1M + } + + partition dp-firmware { + in-partition-table = "no" + image = "ls1028a-dp-fw.bin" + offset = 0x940000 + size = 256K + } + + partition boot { + in-partition-table = "no" + image = "kernel.itb" + offset = 16M + size = 48M + } +}board/nxp/ls1028ardb/kernel.its new file +59
-0@@ -0,0 +1,59 @@ +/* + * Copyright 2019 NXP + * + * Changming Huang <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/dts-v1/; + +/ { + description = "Image file for the LS1028A Linux Kernel"; + #address-cells = <1>; + + images { + kernel at 1 { + description = "ARM64 Linux kernel"; + data = /incbin/("./Image.gz"); + type = "kernel"; + arch = "arm64"; + os = "linux"; + compression = "gzip"; + load = <0x80080000>; + entry = <0x80080000>; + }; + fdt at 1 { + description = "Flattened Device Tree blob"; + data = /incbin/("./fsl-ls1028a-rdb.dtb"); + type = "flat_dt"; + arch = "arm64"; + compression = "none"; + load = <0x90000000>; + }; + ramdisk at 1 { + description = "LS1028 Ramdisk"; + data = /incbin/("./rootfs.cpio.gz"); + type = "ramdisk"; + arch = "arm64"; + os = "linux"; + compression = "gzip"; + }; + }; + + configurations { + default = "config at 1"; + config at 1 { + description = "Boot Linux kernel"; + kernel = "kernel at 1"; + fdt = "fdt at 1"; + ramdisk = "ramdisk at 1"; + }; + ls1028ardb { + description = "Boot Linux kernel"; + kernel = "kernel at 1"; + fdt = "fdt at 1"; + ramdisk = "ramdisk at 1"; + }; + }; +};board/nxp/ls1028ardb/ls1028-10-network.rules new file +16
-0@@ -0,0 +1,16 @@ +# ENETC rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0", DRIVERS=="fsl_enetc", NAME:="eno0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1", DRIVERS=="fsl_enetc", NAME:="eno1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.2", DRIVERS=="fsl_enetc", NAME:="eno2" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.6", DRIVERS=="fsl_enetc", NAME:="eno3" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.0", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.1", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.2", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.3", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf1" +# LS1028 switch rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", NAME="swp0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", NAME="swp1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p2", NAME="swp2" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p3", NAME="swp3" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p4", NAME="swp4" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p5", NAME="swp5"board/nxp/ls1028ardb/post-cfg-udev.sh new file +0
-0
board/nxp/ls1028ardb/post-cfg-udev.sh line 5
Quoted 5 lines
board/nxp/ls1028ardb/post-cfg-udev.sh new file +5
-0@@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +main() +{ + cp board/nxp/ls1028ardb/ls1028-10-network.rules ${TARGET_DIR}/etc/udev/rules.d/10-network.rules
Shouldn't this be a part of a BR2_ROOTFS_OVERLAY fragment?
Quoted 78 lines
board/nxp/ls1028ardb/post-cfg-udev.sh new file +5
-0+ + exit $? +} + +main $@board/nxp/ls1028ardb/readme.txt new file +61
-0@@ -0,0 +1,61 @@ +LS1028ARDB board is one platform based on LS1028A silicon for industry, +which is supported in LSDK-19.09. + +One simple image file is created by buildroot, which includes RCW, uboot, +Linux kernel, rootfs and other necessary binaries for this board. + +To program the image file created by buildroot into the flash. +There are two way to do it: + +1. Program the image file on PC machine for SD card boot + $ sudo dd if=./output/images/sdcard.img of=/dev/sdx + # or in some other host machine: + $ sudo dd if=./output/images/sdcard.img of=/dev/mmcblkx + + # find the right SD Card device name in your host machine and replace the + # ?sdx? or ?mmcblkx?. + +2. Program the image file on board for eMMC and XSPI boot +Make sure your board has ipaddr, netmask, and serverip defined to reach your +tftp server. + + 2.1 Program eMMC boot image file to eMMC chip + # Make sure output/images/sdcard.img is stored to tftp server + # Below command is one example + => tftpboot 0xa0000000 sdcard.img + => mmc dev 1 + => mmc erase 0 0x200000 + => mmc write 0xa0000000 0 0x200000 + + # The size "0x200000" will be changed when the image size is different. + + 2.2 Program XSPI boot image file to flash + # Make sure output/images/xspi.cpio.img is stored to tftp server + # Below command is one example + => tftpboot 0xa0000000 xspi.cpio.img + => sf probe + => sf erase 0 $filesize + => sf write 0xa0000000 0 $filesize + +3. Booting your new system +Before booting the new system, we should make sure the switch setting is right. +below switch setting is for each booting mode: + +-----------+---------------------+ + |Boot mode | Switch setting | + +---------------------------------+ + |SD boot | SW2[1~4] = 0b?1000 | + +---------------------------------+ + |eMMC boot | SW2[1~4] = 0b?1001 | + +---------------------------------+ + |XSPI boot | SW2[1~4] = 0b?1111 | + +-----------+---------------------+ + +or we use following command to reset the board in uboot prompt: + # boot from SD card + => qixis_reset sd + + # boot from eMMC chip + => qixis_reset emmc + + # boot from XSPI + => qixis_reset qspiboard/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +0
-0
board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 6
Quoted 6 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +6
-0@@ -0,0 +1,22 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/mmcblk1p2 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32 at 60;mmc dev 1;mmcinfo;fatload mmc 1:1 ${dp_load} ${dp_file};hdp load ${dp_load} ${dp_offset};fatload mmc 1:1 ${loadaddr} ${bootfile};fatload mmc 1:1 ${fdtaddr} ${fdtfile};booti ${loadaddr} - ${fdtaddr} +bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9
Do we really want to put a MAC address in the U-Boot environment? This will work ok for the first board, but not so well for the second board that you put in the same network.
And actually, do we want a U-Boot environment at all? The LSDK U-Boot default environment is distroboot enabled. With the proper extlinux.conf file generated by post-image.sh, it can load Buildroot in a breeze with no custom script necessary:
label Buildroot %VERSION% - %BOARD%
kernel %KERNEL%
devicetree %DTB%
append console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootwait
board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 8
Quoted 2 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +2
-0+ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3
There is certainly no DTSEC port on LS1028A.
board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 11
Quoted 3 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +3
-0+fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090
And no FMan microcode.
board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 22
Quoted 11 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +11
-0+hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc 0:1 ${loadaddr} ${bootfile};bootm ${loadaddr}
What does "rollbackboot" do?
configs/nxp_ls1028ardb-64b-emmc_defconfig
Quoted 60 lines
board/nxp/ls1028ardb/u-boot-environment-sd.txt new file +21
-0@@ -0,0 +1,21 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/mmcblk0p2 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32 at 60;mmcinfo;fatload mmc 0:1 ${dp_load} ${dp_file}; hdp load ${dp_load} ${dp_offset};fatload mmc 0:1 ${loadaddr} ${bootfile};fatload mmc 0:1 ${fdtaddr} ${fdtfile};booti ${loadaddr} - ${fdtaddr} +bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serialboard/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +22
-0@@ -0,0 +1,22 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/ram0 rw earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32 at 60; sf probe 0:0; sf read $dp_load $dp_start $dp_size; hdp load $dp_load $dp_offset; sf read $kernel_load $kernel_start $kernel_size && bootm $kernel_load +bootdelay=3 +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +kernel_load=0xa0000000 +kernel_size=0x3000000 +kernel_start=0x1000000 +dp_load=0x90000000 +dp_start=0x940000 +dp_size=0x40000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc 0:1 ${loadaddr} ${bootfile};bootm $loadaddrconfigs/nxp_ls1028ardb-64b-emmc_defconfig new file +0
-0
Thomas, is there any way in Buildroot to use fragments for the board configs, to avoid duplication? I couldn't find any way.
Quoted 271 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +85
-0@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchain +BR2_TOOLCHAIN_BUILDROOT_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_FORMAT_DTB_BIN=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-environment-emmc.txt" +BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/linux" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64/configs/lsdk.config" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image" + +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR) $(UBOOT_DIR)" + +# busybox setting +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="emmc" +BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1300_emmcboot.bin" + +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y +BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh" + +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dtb.bin" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/atf" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin bl2_emmc.pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="host-qoriq-rcw" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT_MODE=emmc RCW=$(BINARIES_DIR)/rcw_1300_emmcboot.bin"configs/nxp_ls1028ardb-64b-xspi_defconfig new file +85
-0@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_CPIO_GZIP=y +BR2_TARGET_ROOTFS_CPIO_UIMAGE=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchain +BR2_TOOLCHAIN_BUILDROOT_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_TARGET_UBOOT_ENVIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-environment-xspi.txt" +BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/linux" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64/configs/lsdk.config" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image.gz" + +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image-spi.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR) $(UBOOT_DIR)" + +# busybox setting +BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/nxp/common/ls/busybox.config" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="flexspi_nor" +BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1500_gpu600.bin" + +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y +BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh" + +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dtb.bin" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/atf" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin bl2_flexspi_nor.pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="host-qoriq-rcw" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT_MODE=flexspi_nor RCW=$(BINARIES_DIR)/rcw_1500_gpu600.bin"configs/nxp_ls1028ardb-64b_defconfig new file +85
-1@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchain +BR2_TOOLCHAIN_BUILDROOT_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-environment-sd.txt" +BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/linux" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64/configs/lsdk.config" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image" + +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR) $(UBOOT_DIR)" + +# busybox setting +BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/nxp/common/ls/busybox.config" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="sd" +BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.bin" + +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y +BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh" + +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dtb.bin" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/atf" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin bl2_sd.pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="host-qoriq-rcw" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT_MODE=sd RCW=$(BINARIES_DIR)/rcw_1300_sdboot.bin" --2.17.1
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Thanks,
-Vladimir
PATCH v3 9/9 configs/nxp_ls1028ardb*: new board
Am 2019-12-03 02:48, schrieb Vladimir Oltean:
Quoted 487 lines
Quoted 383 lines · Changming Huang
This is to support Freescale/NXP LS1028ARDB in Buildroot. The board is setup to track the Linux at 4.19 via NXP LSDK-19.09.
The target will build uboot and RCW binary with arm-trusted-firmware support.
board/nxp/ls1028ardb/: scripts related with ls1028ardb nxp_ls1028ardb-64b-emmc_defconfig: defconfig boot from emmc chip on board
nxp_ls1028ardb-64b_defconfig: defconfig boot from SD card nxp_ls1028ardb-64b-xspi_defconfig: defconfig boot from FlexSPI chip on boardSigned-off-by Changming Huang <[email protected]>---
changes since v2:
1. Modify the qoriq-cadence-dp-firmware option in defconfig.
2. rename defconfig to nxp_ls1028*.
3. remove extra packages except busybox in defconfig.
4. modify the description of file genimage.xspi.cfg.template.changes since v1:
1. add new option in configs/freescale_ls1028ardb-xxxx_defconfig.--- .gitlab-ci.yml | 3 + DEVELOPERS | 2 + .../nxp/ls1028ardb/genimage.emmc.cfg.template | 52 ++++++++++++ board/nxp/ls1028ardb/genimage.sd.cfg.template | 52 ++++++++++++ .../nxp/ls1028ardb/genimage.xspi.cfg.template | 55 ++++++++++++ board/nxp/ls1028ardb/kernel.its | 59 +++++++++++++ board/nxp/ls1028ardb/ls1028-10-network.rules | 16 ++++ board/nxp/ls1028ardb/post-cfg-udev.sh | 10 +++ board/nxp/ls1028ardb/readme.txt | 61 +++++++++++++ .../ls1028ardb/u-boot-environment-emmc.txt | 22 +++++ .../nxp/ls1028ardb/u-boot-environment-sd.txt | 21 +++++ .../ls1028ardb/u-boot-environment-xspi.txt | 22 +++++ configs/nxp_ls1028ardb-64b-emmc_defconfig | 85 +++++++++++++++++++ configs/nxp_ls1028ardb-64b-xspi_defconfig | 85 +++++++++++++++++++ configs/nxp_ls1028ardb-64b_defconfig | 85 +++++++++++++++++++ 15 files changed, 630 insertions(+) create mode 100644 board/nxp/ls1028ardb/genimage.emmc.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.sd.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.xspi.cfg.template create mode 100644 board/nxp/ls1028ardb/kernel.its create mode 100644 board/nxp/ls1028ardb/ls1028-10-network.rules create mode 100755 board/nxp/ls1028ardb/post-cfg-udev.sh create mode 100644 board/nxp/ls1028ardb/readme.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-emmc.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-sd.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-xspi.txt create mode 100644 configs/nxp_ls1028ardb-64b-emmc_defconfig create mode 100644 configs/nxp_ls1028ardb-64b-xspi_defconfig create mode 100644 configs/nxp_ls1028ardb-64b_defconfig.gitlab-ci.yml +3
-0@@ -223,6 +223,9 @@ nitrogen6sx_defconfig: { extends: .defconfig } nitrogen6x_defconfig: { extends: .defconfig } nitrogen7_defconfig: { extends: .defconfig } nitrogen8m_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-emmc_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-xspi_defconfig: { extends: .defconfig } odroidxu4_defconfig: { extends: .defconfig } olimex_a10_olinuxino_lime_defconfig: { extends: .defconfig } olimex_a13_olinuxino_defconfig: { extends: .defconfig }DEVELOPERS +2
-0@@ -515,6 +515,8 @@ F: configs/orangepi_plus_defconfig N: Changming Huang <[email protected]> F: board/nxp/common/ls/ +F: board/nxp/ls1028ardb/ +F: configs/nxp_ls1028ardb* F: package/nxp/qoriq-cadence-dp-firmware/ N: Chris Packham <[email protected]>board/nxp/ls1028ardb/genimage.emmc.cfg.template new file +7
-0@@ -0,0 +1,52 @@ +# Minimal eMMC boot image for the NXP boards Template +# +# eMMC image (sdcard.img) format: +# * the eMMC must have 4 kB free space at the beginning, +# * U-Boot is dumped as is, +# * a FAT partition at offset 64 MB is containing Image and DTB files +# * a single root filesystem partition is required (ext2, ext3 orext4)
board/nxp/ls1028ardb/genimage.emmc.cfg.template new file +45
-0+# + +image boot.vfat { + vfat { + files = { + %FILES% + } + } + size = 256M +} + +image sdcard.img { + hdimage { + } + + partition rcw { + in-partition-table = "no" + image = "bl2_emmc.pbl" + offset = 4096 + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 64M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}board/nxp/ls1028ardb/genimage.sd.cfg.template new file +7
-0@@ -0,0 +1,52 @@ +# Minimal SD card image for the NXP boards Template +# +# SD card image (sdcard.img) format: +# * the SD card must have 4 kB free space at the beginning, +# * U-Boot is dumped as is, +# * a FAT partition at offset 64 MB is containing Image and DTB files +# * a single root filesystem partition is required (ext2, ext3 orext4)
board/nxp/ls1028ardb/genimage.sd.cfg.template new file +45
-0+# + +image boot.vfat { + vfat { + files = { + %FILES% + } + } + size = 256M +} + +image sdcard.img { + hdimage { + } + + partition rcw { + in-partition-table = "no" + image = "bl2_sd.pbl" + offset = 4096 + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 64M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}board/nxp/ls1028ardb/genimage.xspi.cfg.template new file +4
-0@@ -0,0 +1,55 @@ +# Minimal XSPI (FlexSPI) image for the NXP boards Template +# +# FlexSPI image (xspi.cpio.img) format: +# * For ls1028ardb, the FlexSPI flash size is 256MB, erase size is128KB
board/nxp/ls1028ardb/genimage.xspi.cfg.template new file +51
-0+# * bl2_flexspi_nor.bpl: the RCW with ATF header +# * fib.bin: u-boot-dtb.bin binary with ATF header +# * Kernel.itb: +# * offset 16MB, include Kernel, ramdisk file system and DTB file +# +flash xspi-256M-128K { + pebsize = 128K + numpebs = 2048 + minimum-io-unit-size = 128k +} + +image xspi.cpio.img { + flash { + } + flashtype = "xspi-256M-128K" + + partition rcw { + in-partition-table = "no" + image = "bl2_flexspi_nor.pbl" + offset = 0 + size = 1M + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + size = 4M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + size = 1M + } + + partition dp-firmware { + in-partition-table = "no" + image = "ls1028a-dp-fw.bin" + offset = 0x940000 + size = 256K + } + + partition boot { + in-partition-table = "no" + image = "kernel.itb" + offset = 16M + size = 48M + } +}board/nxp/ls1028ardb/kernel.its new file +59
-0@@ -0,0 +1,59 @@ +/* + * Copyright 2019 NXP + * + * Changming Huang <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/dts-v1/; + +/ { + description = "Image file for the LS1028A Linux Kernel"; + #address-cells = <1>; + + images { + kernel at 1 { + description = "ARM64 Linux kernel"; + data = /incbin/("./Image.gz"); + type = "kernel"; + arch = "arm64"; + os = "linux"; + compression = "gzip"; + load = <0x80080000>; + entry = <0x80080000>; + }; + fdt at 1 { + description = "Flattened Device Tree blob"; + data = /incbin/("./fsl-ls1028a-rdb.dtb"); + type = "flat_dt"; + arch = "arm64"; + compression = "none"; + load = <0x90000000>; + }; + ramdisk at 1 { + description = "LS1028 Ramdisk"; + data = /incbin/("./rootfs.cpio.gz"); + type = "ramdisk"; + arch = "arm64"; + os = "linux"; + compression = "gzip"; + }; + }; + + configurations { + default = "config at 1"; + config at 1 { + description = "Boot Linux kernel"; + kernel = "kernel at 1"; + fdt = "fdt at 1"; + ramdisk = "ramdisk at 1"; + }; + ls1028ardb { + description = "Boot Linux kernel"; + kernel = "kernel at 1"; + fdt = "fdt at 1"; + ramdisk = "ramdisk at 1"; + }; + }; +};board/nxp/ls1028ardb/ls1028-10-network.rules new file +2
-0@@ -0,0 +1,16 @@ +# ENETC rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0",DRIVERS=="fsl_enetc", NAME:="eno0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1", DRIVERS=="fsl_enetc", NAME:="eno1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.2", DRIVERS=="fsl_enetc", NAME:="eno2" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.6", DRIVERS=="fsl_enetc", NAME:="eno3" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.0", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.1", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.2", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.3", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf1"
board/nxp/ls1028ardb/ls1028-10-network.rules new file +2
-0+# LS1028 switch rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", NAME="swp0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", NAME="swp1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p2", NAME="swp2" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p3", NAME="swp3" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p4", NAME="swp4" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p5", NAME="swp5"
board/nxp/ls1028ardb/post-cfg-udev.sh new file +5
-0@@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +main() +{ + cp board/nxp/ls1028ardb/ls1028-10-network.rulesQuoted 1 line
${TARGET_DIR}/etc/udev/rules.d/10-network.rules
Shouldn't this be a part of a
BR2_ROOTFS_OVERLAYfragment?Quoted 93 lines
board/nxp/ls1028ardb/post-cfg-udev.sh new file +5
-0+ + exit $? +} + +main $@board/nxp/ls1028ardb/readme.txt new file +1
-0@@ -0,0 +1,61 @@ +LS1028ARDB board is one platform based on LS1028A silicon forindustry,
board/nxp/ls1028ardb/readme.txt new file +3
-0+which is supported in LSDK-19.09. + +One simple image file is created by buildroot, which includes RCW,uboot,
board/nxp/ls1028ardb/readme.txt new file +11
-0+Linux kernel, rootfs and other necessary binaries for this board. + +To program the image file created by buildroot into the flash. +There are two way to do it: + +1. Program the image file on PC machine for SD card boot + $ sudo dd if=./output/images/sdcard.img of=/dev/sdx + # or in some other host machine: + $ sudo dd if=./output/images/sdcard.img of=/dev/mmcblkx + + # find the right SD Card device name in your host machine andreplace the
board/nxp/ls1028ardb/readme.txt new file +4
-0+ # ?sdx? or ?mmcblkx?. + +2. Program the image file on board for eMMC and XSPI boot +Make sure your board has ipaddr, netmask, and serverip defined toreach your
board/nxp/ls1028ardb/readme.txt new file +11
-0+tftp server. + + 2.1 Program eMMC boot image file to eMMC chip + # Make sure output/images/sdcard.img is stored to tftp server + # Below command is one example + => tftpboot 0xa0000000 sdcard.img + => mmc dev 1 + => mmc erase 0 0x200000 + => mmc write 0xa0000000 0 0x200000 + + # The size "0x200000" will be changed when the image size isdifferent.
board/nxp/ls1028ardb/readme.txt new file +11
-0+ + 2.2 Program XSPI boot image file to flash + # Make sure output/images/xspi.cpio.img is stored to tftp server + # Below command is one example + => tftpboot 0xa0000000 xspi.cpio.img + => sf probe + => sf erase 0 $filesize + => sf write 0xa0000000 0 $filesize + +3. Booting your new system +Before booting the new system, we should make sure the switch settingis right.
board/nxp/ls1028ardb/readme.txt new file +20
-0+below switch setting is for each booting mode: + +-----------+---------------------+ + |Boot mode | Switch setting | + +---------------------------------+ + |SD boot | SW2[1~4] = 0b?1000 | + +---------------------------------+ + |eMMC boot | SW2[1~4] = 0b?1001 | + +---------------------------------+ + |XSPI boot | SW2[1~4] = 0b?1111 | + +-----------+---------------------+ + +or we use following command to reset the board in uboot prompt: + # boot from SD card + => qixis_reset sd + + # boot from eMMC chip + => qixis_reset emmc + + # boot from XSPI + => qixis_reset qspiboard/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +2
-0@@ -0,0 +1,22 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/mmcblk1p2 rootwait rwearlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32 at 60;mmc dev 1;mmcinfo;fatload mmc 1:1 ${dp_load} ${dp_file};hdp load ${dp_load} ${dp_offset};fatload mmc 1:1 ${loadaddr} ${bootfile};fatload mmc 1:1 ${fdtaddr} ${fdtfile};booti ${loadaddr} - ${fdtaddr}
board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 6
Quoted 4 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +4
-0+bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9
Quoted 7 lines
Do we really want to put a MAC address in the U-Boot environment? This will work ok for the first board, but not so well for the second board that you put in the same network.
And actually, do we want a U-Boot environment at all? The LSDK U-Boot default environment is distroboot enabled. With the proper extlinux.conf file generated bypost-image.sh, it can load Buildroot in a breeze with no custom script necessary:
buildroot can even generate one for you, seeBR2_TARGET_UBOOT_BOOT_SCRIPT.
Quoted 101 lines
label Buildroot %VERSION% - %BOARD%
kernel %KERNEL%
devicetree %DTB%
append console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootwaitboard/nxp/ls1028ardb/u-boot-environment-emmc.txt
Quoted 2 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +2
-0+ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3There is certainly no DTSEC port on LS1028A.
board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 11
Quoted 3 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +3
-0+fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090And no FMan microcode.
Quoted 11 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +11
-0+hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rwQuoted 2 lines
earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc 0:1 ${loadaddr} ${bootfile};bootm ${loadaddr}
What does "rollbackboot" do?
Quoted 68 lines
board/nxp/ls1028ardb/u-boot-environment-sd.txt new file +2
-0@@ -0,0 +1,21 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/mmcblk0p2 rootwait rwearlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32 at 60;mmcinfo;fatload mmc 0:1 ${dp_load} ${dp_file}; hdp load ${dp_load} ${dp_offset};fatload mmc 0:1 ${loadaddr} ${bootfile};fatload mmc 0:1 ${fdtaddr} ${fdtfile};booti ${loadaddr} - ${fdtaddr}
board/nxp/ls1028ardb/u-boot-environment-sd.txt new file +19
-0+bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serialboard/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +2
-0@@ -0,0 +1,22 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/ram0 rw earlycon=uart8250,0x21c0500console=ttyS0,115200 cma=256M video=1920x1080-32 at 60; sf probe 0:0; sf read $dp_load $dp_start $dp_size; hdp load $dp_load $dp_offset; sf read $kernel_load $kernel_start $kernel_size && bootm $kernel_load
board/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +20
-0+bootdelay=3 +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +kernel_load=0xa0000000 +kernel_size=0x3000000 +kernel_start=0x1000000 +dp_load=0x90000000 +dp_start=0x940000 +dp_size=0x40000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rwearlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc 0:1 ${loadaddr} ${bootfile};bootm $loadaddr
(quoted diff) +0
-0
Quoted 8 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig
Quoted 5 lines
b/configs/nxp_ls1028ardb-64b-emmc_defconfig
new file mode 100644
index 0000000000..019889f5e0configs/nxp_ls1028ardb-64b-emmc_defconfig new file +0
-0Thomas, is there any way in Buildroot to use fragments for the board configs, to avoid duplication? I couldn't find any way.
AFAIK there is not, I've brought that up some years ago, but had no time to look deeper into that.
http://lists.busybox.net/pipermail/buildroot/2016-November/176752.html
-michael
[Buildroot] [EXT] Re: [PATCH v3 9/9] configs/nxp_ls1028ardb*: new board
In reply to Vladimir OlteanThanks a lot, Vladimir,
I will correct this patch.
Best Regards
Jerry Huang
Quoted 374 lines
-----Original Message-----
From: Vladimir Oltean <[email protected]>
Sent: Tuesday, December 3, 2019 9:49 AM
To: Jerry Huang <[email protected]>
Cc: buildroot at busybox.net; Michael Walle <[email protected]>; geomatsi at gmail.com; matthew.weber at collins.com; Thomas Petazzoni <[email protected]>
Subject: [EXT] Re: [Buildroot] [PATCH v3 9/9] configs/nxp_ls1028ardb*: new boardCaution: EXT Email
Quoted 5 lines · Changming Huang
This is to support Freescale/NXP LS1028ARDB in Buildroot. The board is setup to track the Linux at 4.19 via NXP LSDK-19.09.
The target will build uboot and RCW binary with arm-trusted-firmware
support.
Quoted 18 lines
board/nxp/ls1028ardb/: scripts related with ls1028ardb nxp_ls1028ardb-64b-emmc_defconfig: defconfig boot from emmc chip on board
nxp_ls1028ardb-64b_defconfig: defconfig boot from SD card nxp_ls1028ardb-64b-xspi_defconfig: defconfig boot from FlexSPI chip on boardSigned-off-by Changming Huang <[email protected]>---
changes since v2:
1. Modify the qoriq-cadence-dp-firmware option in defconfig.
2. rename defconfig to nxp_ls1028*.
3. remove extra packages except busybox in defconfig.
4. modify the description of file genimage.xspi.cfg.template.changes since v1:
1. add new option in configs/freescale_ls1028ardb-xxxx_defconfig.Quoted 14 lines
--- .gitlab-ci.yml | 3 + DEVELOPERS | 2 + .../nxp/ls1028ardb/genimage.emmc.cfg.template | 52 ++++++++++++ board/nxp/ls1028ardb/genimage.sd.cfg.template | 52 ++++++++++++ .../nxp/ls1028ardb/genimage.xspi.cfg.template | 55 ++++++++++++ board/nxp/ls1028ardb/kernel.its | 59 +++++++++++++ board/nxp/ls1028ardb/ls1028-10-network.rules | 16 ++++ board/nxp/ls1028ardb/post-cfg-udev.sh | 10 +++ board/nxp/ls1028ardb/readme.txt | 61 +++++++++++++ .../ls1028ardb/u-boot-environment-emmc.txt | 22 +++++ .../nxp/ls1028ardb/u-boot-environment-sd.txt | 21 +++++ .../ls1028ardb/u-boot-environment-xspi.txt | 22 +++++ configs/nxp_ls1028ardb-64b-emmc_defconfig | 85+++++++++++++++++++
Quoted 1 line
configs/nxp_ls1028ardb-64b-xspi_defconfig | 85+++++++++++++++++++
Quoted 1 line
configs/nxp_ls1028ardb-64b_defconfig | 85+++++++++++++++++++
Quoted 287 lines
15 files changed, 630 insertions(+) create mode 100644 board/nxp/ls1028ardb/genimage.emmc.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.sd.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.xspi.cfg.template create mode 100644 board/nxp/ls1028ardb/kernel.its create mode 100644 board/nxp/ls1028ardb/ls1028-10-network.rules create mode 100755 board/nxp/ls1028ardb/post-cfg-udev.sh create mode 100644 board/nxp/ls1028ardb/readme.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-emmc.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-sd.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-xspi.txt create mode 100644 configs/nxp_ls1028ardb-64b-emmc_defconfig create mode 100644 configs/nxp_ls1028ardb-64b-xspi_defconfig create mode 100644 configs/nxp_ls1028ardb-64b_defconfig.gitlab-ci.yml index renamed from .gitlab-ci.yml +0
-0
22befa0427..08e6360ff7100644.gitlab-ci.yml +3
-0@@ -223,6 +223,9 @@ nitrogen6sx_defconfig: { extends: .defconfig } nitrogen6x_defconfig: { extends: .defconfig } nitrogen7_defconfig: { extends: .defconfig } nitrogen8m_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-emmc_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-xspi_defconfig: { extends: .defconfig } odroidxu4_defconfig: { extends: .defconfig } olimex_a10_olinuxino_lime_defconfig: { extends: .defconfig } olimex_a13_olinuxino_defconfig: { extends: .defconfig } diff --gita/DEVELOPERS b/DEVELOPERS index
6fd8f8ee08..efe4039194100644DEVELOPERS +2
-0@@ -515,6 +515,8 @@ F: configs/orangepi_plus_defconfig N: Changming Huang <[email protected]> F: board/nxp/common/ls/ +F: board/nxp/ls1028ardb/ +F: configs/nxp_ls1028ardb* F: package/nxp/qoriq-cadence-dp-firmware/ N: Chris Packham <[email protected]>board/nxp/ls1028ardb/genimage.emmc.cfg.template new file +50
-0@@ -0,0 +1,52 @@ +# Minimal eMMC boot image for the NXP boards Template # # eMMC image +(sdcard.img) format: +# * the eMMC must have 4 kB free space at the beginning, # * U-Boot +is dumped as is, # * a FAT partition at offset 64 MB is containing +Image and DTB files # * a single root filesystem partition is +required (ext2, ext3 or ext4) # + +image boot.vfat { + vfat { + files = { + %FILES% + } + } + size = 256M +} + +image sdcard.img { + hdimage { + } + + partition rcw { + in-partition-table = "no" + image = "bl2_emmc.pbl" + offset = 4096 + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 64M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}board/nxp/ls1028ardb/genimage.sd.cfg.template new file +50
-0@@ -0,0 +1,52 @@ +# Minimal SD card image for the NXP boards Template # # SD card image +(sdcard.img) format: +# * the SD card must have 4 kB free space at the beginning, # * +U-Boot is dumped as is, # * a FAT partition at offset 64 MB is +containing Image and DTB files # * a single root filesystem partition +is required (ext2, ext3 or ext4) # + +image boot.vfat { + vfat { + files = { + %FILES% + } + } + size = 256M +} + +image sdcard.img { + hdimage { + } + + partition rcw { + in-partition-table = "no" + image = "bl2_sd.pbl" + offset = 4096 + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 64M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}board/nxp/ls1028ardb/genimage.xspi.cfg.template new file +53
-0@@ -0,0 +1,55 @@ +# Minimal XSPI (FlexSPI) image for the NXP boards Template # # +FlexSPI image (xspi.cpio.img) format: +# * For ls1028ardb, the FlexSPI flash size is 256MB, erase size is +128KB # * bl2_flexspi_nor.bpl: the RCW with ATF header # * fib.bin: +u-boot-dtb.bin binary with ATF header # * Kernel.itb: +# * offset 16MB, include Kernel, ramdisk file system and DTB file +# +flash xspi-256M-128K { + pebsize = 128K + numpebs = 2048 + minimum-io-unit-size = 128k +} + +image xspi.cpio.img { + flash { + } + flashtype = "xspi-256M-128K" + + partition rcw { + in-partition-table = "no" + image = "bl2_flexspi_nor.pbl" + offset = 0 + size = 1M + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + size = 4M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + size = 1M + } + + partition dp-firmware { + in-partition-table = "no" + image = "ls1028a-dp-fw.bin" + offset = 0x940000 + size = 256K + } + + partition boot { + in-partition-table = "no" + image = "kernel.itb" + offset = 16M + size = 48M + } +}(quoted diff) +0
-0b/board/nxp/ls1028ardb/kernel.its new file mode 100644 index 0000000000..08e9700f30
board/nxp/ls1028ardb/kernel.its new file +59
-0@@ -0,0 +1,59 @@ +/* + * Copyright 2019 NXP + * + * Changming Huang <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/dts-v1/; + +/ { + description = "Image file for the LS1028A Linux Kernel"; + #address-cells = <1>; + + images { + kernel at 1 { + description = "ARM64 Linux kernel"; + data = /incbin/("./Image.gz"); + type = "kernel"; + arch = "arm64"; + os = "linux"; + compression = "gzip"; + load = <0x80080000>; + entry = <0x80080000>; + }; + fdt at 1 { + description = "Flattened Device Tree blob"; + data = /incbin/("./fsl-ls1028a-rdb.dtb"); + type = "flat_dt"; + arch = "arm64"; + compression = "none"; + load = <0x90000000>; + }; + ramdisk at 1 { + description = "LS1028 Ramdisk"; + data = /incbin/("./rootfs.cpio.gz"); + type = "ramdisk"; + arch = "arm64"; + os = "linux"; + compression = "gzip"; + }; + }; + + configurations { + default = "config at 1"; + config at 1 { + description = "Boot Linux kernel"; + kernel = "kernel at 1"; + fdt = "fdt at 1"; + ramdisk = "ramdisk at 1"; + }; + ls1028ardb { + description = "Boot Linux kernel"; + kernel = "kernel at 1"; + fdt = "fdt at 1"; + ramdisk = "ramdisk at 1"; + }; + }; +};board/nxp/ls1028ardb/ls1028-10-network.rules new file +0
-0board/nxp/ls1028ardb/ls1028-10-network.rules line 2
Quoted 2 lines
board/nxp/ls1028ardb/ls1028-10-network.rules new file +2
-0@@ -0,0 +1,16 @@ +# ENETC rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0",DRIVERS=="fsl_enetc", NAME:="eno0"
board/nxp/ls1028ardb/ls1028-10-network.rules line 3
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1",DRIVERS=="fsl_enetc", NAME:="eno1"
board/nxp/ls1028ardb/ls1028-10-network.rules line 4
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.2",DRIVERS=="fsl_enetc", NAME:="eno2"
board/nxp/ls1028ardb/ls1028-10-network.rules line 5
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.6",DRIVERS=="fsl_enetc", NAME:="eno3"
board/nxp/ls1028ardb/ls1028-10-network.rules line 6
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.0",DRIVERS=="fsl_enetc_vf", NAME:="eno0vf0"
board/nxp/ls1028ardb/ls1028-10-network.rules line 7
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.1",DRIVERS=="fsl_enetc_vf", NAME:="eno0vf1"
board/nxp/ls1028ardb/ls1028-10-network.rules line 8
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.2",DRIVERS=="fsl_enetc_vf", NAME:="eno1vf0"
board/nxp/ls1028ardb/ls1028-10-network.rules line 9
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.3",DRIVERS=="fsl_enetc_vf", NAME:="eno1vf1"
board/nxp/ls1028ardb/ls1028-10-network.rules line 11
Quoted 2 lines
board/nxp/ls1028ardb/ls1028-10-network.rules new file +2
-0+# LS1028 switch rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", NAME="swp0"
board/nxp/ls1028ardb/ls1028-10-network.rules line 12
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", NAME="swp1"
board/nxp/ls1028ardb/ls1028-10-network.rules line 13
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p2", NAME="swp2"
board/nxp/ls1028ardb/ls1028-10-network.rules line 14
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p3", NAME="swp3"
board/nxp/ls1028ardb/ls1028-10-network.rules line 15
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p4", NAME="swp4"
board/nxp/ls1028ardb/ls1028-10-network.rules line 16
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p5", NAME="swp5"
Quoted 15 lines
board/nxp/ls1028ardb/post-cfg-udev.sh line 6
Quoted 13 lines
board/nxp/ls1028ardb/post-cfg-udev.sh new file +6
-0@@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +main() +{ + cp board/nxp/ls1028ardb/ls1028-10-network.rules +${TARGET_DIR}/etc/udev/rules.d/10-network.rulesShouldn't this be a part of a
BR2_ROOTFS_OVERLAYfragment?
I can try that.
Quoted 605 lines
Quoted 42 lines
board/nxp/ls1028ardb/post-cfg-udev.sh new file +5
-0+ + exit $? +} + +main $@(quoted diff) +0
-0
b/board/nxp/ls1028ardb/readme.txtnew file mode 100644 index 0000000000..713babd7c3board/nxp/ls1028ardb/readme.txt new file +31
-0@@ -0,0 +1,61 @@ +LS1028ARDB board is one platform based on LS1028A silicon for +industry, which is supported in LSDK-19.09. + +One simple image file is created by buildroot, which includes RCW, +uboot, Linux kernel, rootfs and other necessary binaries for this board. + +To program the image file created by buildroot into the flash. +There are two way to do it: + +1. Program the image file on PC machine for SD card boot + $ sudo dd if=./output/images/sdcard.img of=/dev/sdx + # or in some other host machine: + $ sudo dd if=./output/images/sdcard.img of=/dev/mmcblkx + + # find the right SD Card device name in your host machine and + replace the # ?sdx? or ?mmcblkx?. + +2. Program the image file on board for eMMC and XSPI boot Make sure +your board has ipaddr, netmask, and serverip defined to reach your +tftp server. + + 2.1 Program eMMC boot image file to eMMC chip + # Make sure output/images/sdcard.img is stored to tftp server + # Below command is one example + => tftpboot 0xa0000000 sdcard.img + => mmc dev 1 + => mmc erase 0 0x200000 + => mmc write 0xa0000000 0 0x200000 + + # The size "0x200000" will be changed when the image size is different. +board/nxp/ls1028ardb/readme.txt line 41
Quoted 10 lines
board/nxp/ls1028ardb/readme.txt new file +10
-0+ 2.2 Program XSPI boot image file to flash + # Make sure output/images/xspi.cpio.img is stored to tftp server + # Below command is one example + => tftpboot 0xa0000000 xspi.cpio.img + => sf probe + => sf erase 0 $filesize + => sf write 0xa0000000 0 $filesize + +3. Booting your new system +Before booting the new system, we should make sure the switch setting isright.
Quoted 28 lines
board/nxp/ls1028ardb/readme.txt new file +20
-0+below switch setting is for each booting mode: + +-----------+---------------------+ + |Boot mode | Switch setting | + +---------------------------------+ + |SD boot | SW2[1~4] = 0b?1000 | + +---------------------------------+ + |eMMC boot | SW2[1~4] = 0b?1001 | + +---------------------------------+ + |XSPI boot | SW2[1~4] = 0b?1111 | + +-----------+---------------------+ + +or we use following command to reset the board in uboot prompt: + # boot from SD card + => qixis_reset sd + + # boot from eMMC chip + => qixis_reset emmc + + # boot from XSPI + => qixis_reset qspiboard/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +1
-0@@ -0,0 +1,22 @@ +baudrate=115200board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 11
Quoted 10 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +10
-0+bootcmd=setenv bootargs root=/dev/mmcblk1p2 rootwait rw +earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M +video=1920x1080-32 at 60;mmc dev 1;mmcinfo;fatload mmc 1:1 ${dp_load} +${dp_file};hdp load ${dp_load} ${dp_offset};fatload mmc 1:1 +${loadaddr} ${bootfile};fatload mmc 1:1 ${fdtaddr} ${fdtfile};booti +${loadaddr} - ${fdtaddr} +bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9Do we really want to put a MAC address in the U-Boot environment? This will work ok for the first board, but not so well for the second board that you put in the same network.
And actually, do we want a U-Boot environment at all? The LSDK U-Boot default environment is distroboot enabled. With the proper extlinux.conf file generated bypost-image.sh, it can load Buildroot in a breeze with no custom script necessary:label Buildroot %VERSION% - %BOARD%
kernel %KERNEL%
devicetree %DTB%
append console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootwaitboard/nxp/ls1028ardb/u-boot-environment-emmc.txt line 13
Quoted 2 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +2
-0+ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3There is certainly no DTSEC port on LS1028A.
board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 11
Quoted 3 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +3
-0+fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090And no FMan microcode.
board/nxp/ls1028ardb/u-boot-environment-emmc.txt
Quoted 13 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +13
-0+hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rw +earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc +0:1 ${loadaddr} ${bootfile};bootm ${loadaddr}What does "rollbackboot" do?
Quoted 40 lines
board/nxp/ls1028ardb/u-boot-environment-sd.txt new file +26
-0@@ -0,0 +1,21 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/mmcblk0p2 rootwait rw +earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M +video=1920x1080-32 at 60;mmcinfo;fatload mmc 0:1 ${dp_load} ${dp_file}; +hdp load ${dp_load} ${dp_offset};fatload mmc 0:1 ${loadaddr} +${bootfile};fatload mmc 0:1 ${fdtaddr} ${fdtfile};booti ${loadaddr} - +${fdtaddr} +bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serialboard/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +0
-0board/nxp/ls1028ardb/u-boot-environment-xspi.txt line 2
Quoted 2 lines
board/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +2
-0@@ -0,0 +1,22 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/ram0 rwearlycon=uart8250,0x21c0500
configs/nxp_ls1028ardb-64b-emmc_defconfig
Quoted 31 lines
board/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +25
-0+console=ttyS0,115200 cma=256M video=1920x1080-32 at 60; sf probe 0:0; sf +read $dp_load $dp_start $dp_size; hdp load $dp_load $dp_offset; sf +read $kernel_load $kernel_start $kernel_size && bootm $kernel_load +bootdelay=3 +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +kernel_load=0xa0000000 +kernel_size=0x3000000 +kernel_start=0x1000000 +dp_load=0x90000000 +dp_start=0x940000 +dp_size=0x40000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rw +earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc +0:1 ${loadaddr} ${bootfile};bootm $loadaddrconfigs/nxp_ls1028ardb-64b-emmc_defconfig new file +0
-0Thomas, is there any way in Buildroot to use fragments for the board configs, to avoid duplication? I couldn't find any way.
Quoted 15 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +13
-0@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchain +BR2_TOOLCHAIN_BUILDROOT_GLIBC=yconfigs/nxp_ls1028ardb-64b-emmc_defconfig line 23
Quoted 10 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +10
-0+BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_FORMAT_DTB_BIN=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://eur01.safelinks.protectio n.outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqo riq%2Fqoriq-components%2Fu-boot&data=02%7C01%7Cjerry.huang%40nx p.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd9 9c5c301635%7C0%7C0%7C637109345348800651&sdata=kFn3nsvOHgCCT JYKYMoU9rRkGsFR77TYGzbvOEezXIg%3D&reserved=0"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 31
Quoted 8 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +7
-0+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE=y+BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-e nvironment-emmc.txt"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 37
Quoted 6 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +5
-0+BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://eur01.safelinks.protection .outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqor iq%2Fqoriq-components%2Flinux&data=02%7C01%7Cjerry.huang%40nxp. com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd99c 5c301635%7C0%7C0%7C637109345348800651&sdata=iS%2F%2Bf1lVYF9f PRlNdjKkKKuRmRsdwtOTF7mZ%2BUFwz5c%3D&reserved=0"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 37
Quoted 3 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +2
-0+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64 /configs/lsdk.config"
Quoted 4 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +4
-0+BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image"configs/nxp_ls1028ardb-64b-emmc_defconfig
Quoted 10 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +10
-0+ +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR)$(UBOOT_DIR)"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 63
Quoted 8 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +7
-0+ +# busybox setting +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="emmc"+BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1 300_emmcboot.bin"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 70
Quoted 7 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +6
-0+ +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y+BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 76
Quoted 6 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +5
-0+ +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dt b.bin"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 70
Quoted 2 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +1
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://eur 01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.codeaurora. org%2Fexternal%2Fqoriq%2Fqoriq-components%2Fatf&data=02%7C01%7 Cjerry.huang%40nxp.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637109345348800651&sdat a=QxY1g3x9g%2FVOObPfmMgqiX1KCF8jYUzYT33inYJYCyA%3D&reserved= 0"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK- 19.09"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 83
Quoted 4 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +3
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin bl2_emmc.pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl"+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="h ost-qoriq-rcw"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT _MODE=emmc RCW=$(BINARIES_DIR)/rcw_1300_emmcboot.bin"
Quoted 21 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +13
-0@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_CPIO_GZIP=y +BR2_TARGET_ROOTFS_CPIO_UIMAGE=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchainconfigs/nxp_ls1028ardb-64b-xspi_defconfig line 23
Quoted 10 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +10
-0+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://eur01.safelinks.protectio n.outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqo riq%2Fqoriq-components%2Fu-boot&data=02%7C01%7Cjerry.huang%40nx p.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd9 9c5c301635%7C0%7C0%7C637109345348800651&sdata=kFn3nsvOHgCCT JYKYMoU9rRkGsFR77TYGzbvOEezXIg%3D&reserved=0"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 29
Quoted 7 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +6
-0+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_TARGET_UBOOT_ENVIMAGE=y+BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-e nvironment-xspi.txt"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 34
Quoted 6 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +5
-0+BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://eur01.safelinks.protection .outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqor iq%2Fqoriq-components%2Flinux&data=02%7C01%7Cjerry.huang%40nxp. com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd99c 5c301635%7C0%7C0%7C637109345348810637&sdata=Akdyy0hEI%2Fiqw y6oPyt6OLrLAea1JpikT2r8BI9Yvz8%3D&reserved=0"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 36
Quoted 3 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +2
-0+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64 /configs/lsdk.config"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 53
Quoted 13 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +12
-0+BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image.gz" + +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image-spi.s h"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 49
Quoted 1 line
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +1
-0+BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR)$(UBOOT_DIR)"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 51
Quoted 3 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +2
-0+ +# busybox setting+BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/nxp/common/ls /busybox.config"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 63
Quoted 6 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +5
-0+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="flexspi_nor"+BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1 500_gpu600.bin"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 62
Quoted 7 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +6
-0+ +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y+BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 67
Quoted 6 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +5
-0+ +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dt b.bin"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 68
Quoted 2 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +1
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://eur 01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.codeaurora. org%2Fexternal%2Fqoriq%2Fqoriq-components%2Fatf&data=02%7C01%7 Cjerry.huang%40nxp.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637109345348810637&sdat a=9ssQTjqQMNf7FgKISQPKHB0ywJkUCcorbBjCIVodYkE%3D&reserved=0"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK- 19.09"
configs/nxp_ls1028ardb-64b-xspi_defconfig
Quoted 2 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +2
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.binbl2_flexspi_nor.pbl"
Quoted 2 lines
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="h ost-qoriq-rcw"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT _MODE=flexspi_nor RCW=$(BINARIES_DIR)/rcw_1500_gpu600.bin"
Quoted 20 lines
configs/nxp_ls1028ardb-64b_defconfig new file +12
-0@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchainconfigs/nxp_ls1028ardb-64b_defconfig line 22
Quoted 10 lines
configs/nxp_ls1028ardb-64b_defconfig new file +10
-0+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://eur01.safelinks.protectio n.outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqo riq%2Fqoriq-components%2Fu-boot&data=02%7C01%7Cjerry.huang%40nx p.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd9 9c5c301635%7C0%7C0%7C637109345348810637&sdata=XB0okA3zSQFVF 8QmKrSgy%2BXnZ5hcqvfRo%2FznvzodgSs%3D&reserved=0"
configs/nxp_ls1028ardb-64b_defconfig line 29
Quoted 8 lines
configs/nxp_ls1028ardb-64b_defconfig new file +7
-0+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE=y+BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-e nvironment-sd.txt"
configs/nxp_ls1028ardb-64b_defconfig line 34
Quoted 6 lines
configs/nxp_ls1028ardb-64b_defconfig new file +5
-0+BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://eur01.safelinks.protection .outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqor iq%2Fqoriq-components%2Flinux&data=02%7C01%7Cjerry.huang%40nxp. com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd99c 5c301635%7C0%7C0%7C637109345348810637&sdata=Akdyy0hEI%2Fiqw y6oPyt6OLrLAea1JpikT2r8BI9Yvz8%3D&reserved=0"
configs/nxp_ls1028ardb-64b_defconfig line 36
Quoted 3 lines
configs/nxp_ls1028ardb-64b_defconfig new file +2
-0+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64 /configs/lsdk.config"
Quoted 4 lines
configs/nxp_ls1028ardb-64b_defconfig new file +4
-0+BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image"configs/nxp_ls1028ardb-64b_defconfig line 50
Quoted 10 lines
configs/nxp_ls1028ardb-64b_defconfig new file +10
-0+ +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR)$(UBOOT_DIR)"
configs/nxp_ls1028ardb-64b_defconfig line 52
Quoted 3 lines
configs/nxp_ls1028ardb-64b_defconfig new file +2
-0+ +# busybox setting+BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/nxp/common/ls /busybox.config"
configs/nxp_ls1028ardb-64b_defconfig line 63
Quoted 6 lines
configs/nxp_ls1028ardb-64b_defconfig new file +5
-0+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="sd"+BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1 300_sdboot.bin"
configs/nxp_ls1028ardb-64b_defconfig line 63
Quoted 7 lines
configs/nxp_ls1028ardb-64b_defconfig new file +6
-0+ +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y+BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh"
configs/nxp_ls1028ardb-64b_defconfig line 68
Quoted 6 lines
configs/nxp_ls1028ardb-64b_defconfig new file +5
-0+ +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dt b.bin"
configs/nxp_ls1028ardb-64b_defconfig line 69
Quoted 2 lines
configs/nxp_ls1028ardb-64b_defconfig new file +1
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://eur 01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.codeaurora. org%2Fexternal%2Fqoriq%2Fqoriq-components%2Fatf&data=02%7C01%7 Cjerry.huang%40nxp.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637109345348810637&sdat a=9ssQTjqQMNf7FgKISQPKHB0ywJkUCcorbBjCIVodYkE%3D&reserved=0"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK- 19.09"
configs/nxp_ls1028ardb-64b_defconfig line 83
Quoted 4 lines
configs/nxp_ls1028ardb-64b_defconfig new file +3
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin bl2_sd.pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl"+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="h ost-qoriq-rcw"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT _MODE=sd RCW=$(BINARIES_DIR)/rcw_1300_sdboot.bin"
Quoted 8 lines
--
2.17.1_______________________________________________
buildroot mailing list
buildroot at busybox.net
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists
.busybox.net%2Fmailman%2Flistinfo%2Fbuildroot&data=02%7C01%7Cjerry
Quoted 1 line
.huang%40nxp.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3b
c2b4c6f
Quoted 1 line
a92cd99c5c301635%7C0%7C0%7C637109345348810637&sdata=0eld04G 7Qo%2F0
Quoted 1 line
fDASkUbxYjsWLfeUCgf0bH2ee3O3JQQ%3D&reserved=0
Thanks,
-Vladimir
[Buildroot] [EXT] Re: [PATCH v3 9/9] configs/nxp_ls1028ardb*: new board
In reply to Vladimir OlteanBest Regards
Jerry Huang
Quoted 482 lines
-----Original Message-----
From: Vladimir Oltean <[email protected]>
Sent: Tuesday, December 3, 2019 9:49 AM
To: Jerry Huang <[email protected]>
Cc: buildroot at busybox.net; Michael Walle <[email protected]>; geomatsi at gmail.com; matthew.weber at collins.com; Thomas Petazzoni <[email protected]>
Subject: [EXT] Re: [Buildroot] [PATCH v3 9/9] configs/nxp_ls1028ardb*: new boardCaution: EXT Email
Quoted 5 lines · Changming Huang
This is to support Freescale/NXP LS1028ARDB in Buildroot. The board is setup to track the Linux at 4.19 via NXP LSDK-19.09.
The target will build uboot and RCW binary with arm-trusted-firmware
support.
Quoted 18 lines
board/nxp/ls1028ardb/: scripts related with ls1028ardb nxp_ls1028ardb-64b-emmc_defconfig: defconfig boot from emmc chip on board
nxp_ls1028ardb-64b_defconfig: defconfig boot from SD card nxp_ls1028ardb-64b-xspi_defconfig: defconfig boot from FlexSPI chip on boardSigned-off-by Changming Huang <[email protected]>---
changes since v2:
1. Modify the qoriq-cadence-dp-firmware option in defconfig.
2. rename defconfig to nxp_ls1028*.
3. remove extra packages except busybox in defconfig.
4. modify the description of file genimage.xspi.cfg.template.changes since v1:
1. add new option in configs/freescale_ls1028ardb-xxxx_defconfig.Quoted 14 lines
--- .gitlab-ci.yml | 3 + DEVELOPERS | 2 + .../nxp/ls1028ardb/genimage.emmc.cfg.template | 52 ++++++++++++ board/nxp/ls1028ardb/genimage.sd.cfg.template | 52 ++++++++++++ .../nxp/ls1028ardb/genimage.xspi.cfg.template | 55 ++++++++++++ board/nxp/ls1028ardb/kernel.its | 59 +++++++++++++ board/nxp/ls1028ardb/ls1028-10-network.rules | 16 ++++ board/nxp/ls1028ardb/post-cfg-udev.sh | 10 +++ board/nxp/ls1028ardb/readme.txt | 61 +++++++++++++ .../ls1028ardb/u-boot-environment-emmc.txt | 22 +++++ .../nxp/ls1028ardb/u-boot-environment-sd.txt | 21 +++++ .../ls1028ardb/u-boot-environment-xspi.txt | 22 +++++ configs/nxp_ls1028ardb-64b-emmc_defconfig | 85+++++++++++++++++++
Quoted 1 line
configs/nxp_ls1028ardb-64b-xspi_defconfig | 85+++++++++++++++++++
Quoted 1 line
configs/nxp_ls1028ardb-64b_defconfig | 85+++++++++++++++++++
Quoted 287 lines
15 files changed, 630 insertions(+) create mode 100644 board/nxp/ls1028ardb/genimage.emmc.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.sd.cfg.template create mode 100644 board/nxp/ls1028ardb/genimage.xspi.cfg.template create mode 100644 board/nxp/ls1028ardb/kernel.its create mode 100644 board/nxp/ls1028ardb/ls1028-10-network.rules create mode 100755 board/nxp/ls1028ardb/post-cfg-udev.sh create mode 100644 board/nxp/ls1028ardb/readme.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-emmc.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-sd.txt create mode 100644 board/nxp/ls1028ardb/u-boot-environment-xspi.txt create mode 100644 configs/nxp_ls1028ardb-64b-emmc_defconfig create mode 100644 configs/nxp_ls1028ardb-64b-xspi_defconfig create mode 100644 configs/nxp_ls1028ardb-64b_defconfig.gitlab-ci.yml index renamed from .gitlab-ci.yml +0
-0
22befa0427..08e6360ff7100644.gitlab-ci.yml +3
-0@@ -223,6 +223,9 @@ nitrogen6sx_defconfig: { extends: .defconfig } nitrogen6x_defconfig: { extends: .defconfig } nitrogen7_defconfig: { extends: .defconfig } nitrogen8m_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-emmc_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b_defconfig: { extends: .defconfig } +nxp_ls1028ardb-64b-xspi_defconfig: { extends: .defconfig } odroidxu4_defconfig: { extends: .defconfig } olimex_a10_olinuxino_lime_defconfig: { extends: .defconfig } olimex_a13_olinuxino_defconfig: { extends: .defconfig } diff --gita/DEVELOPERS b/DEVELOPERS index
6fd8f8ee08..efe4039194100644DEVELOPERS +2
-0@@ -515,6 +515,8 @@ F: configs/orangepi_plus_defconfig N: Changming Huang <[email protected]> F: board/nxp/common/ls/ +F: board/nxp/ls1028ardb/ +F: configs/nxp_ls1028ardb* F: package/nxp/qoriq-cadence-dp-firmware/ N: Chris Packham <[email protected]>board/nxp/ls1028ardb/genimage.emmc.cfg.template new file +50
-0@@ -0,0 +1,52 @@ +# Minimal eMMC boot image for the NXP boards Template # # eMMC image +(sdcard.img) format: +# * the eMMC must have 4 kB free space at the beginning, # * U-Boot +is dumped as is, # * a FAT partition at offset 64 MB is containing +Image and DTB files # * a single root filesystem partition is +required (ext2, ext3 or ext4) # + +image boot.vfat { + vfat { + files = { + %FILES% + } + } + size = 256M +} + +image sdcard.img { + hdimage { + } + + partition rcw { + in-partition-table = "no" + image = "bl2_emmc.pbl" + offset = 4096 + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 64M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}board/nxp/ls1028ardb/genimage.sd.cfg.template new file +50
-0@@ -0,0 +1,52 @@ +# Minimal SD card image for the NXP boards Template # # SD card image +(sdcard.img) format: +# * the SD card must have 4 kB free space at the beginning, # * +U-Boot is dumped as is, # * a FAT partition at offset 64 MB is +containing Image and DTB files # * a single root filesystem partition +is required (ext2, ext3 or ext4) # + +image boot.vfat { + vfat { + files = { + %FILES% + } + } + size = 256M +} + +image sdcard.img { + hdimage { + } + + partition rcw { + in-partition-table = "no" + image = "bl2_sd.pbl" + offset = 4096 + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 64M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}board/nxp/ls1028ardb/genimage.xspi.cfg.template new file +53
-0@@ -0,0 +1,55 @@ +# Minimal XSPI (FlexSPI) image for the NXP boards Template # # +FlexSPI image (xspi.cpio.img) format: +# * For ls1028ardb, the FlexSPI flash size is 256MB, erase size is +128KB # * bl2_flexspi_nor.bpl: the RCW with ATF header # * fib.bin: +u-boot-dtb.bin binary with ATF header # * Kernel.itb: +# * offset 16MB, include Kernel, ramdisk file system and DTB file +# +flash xspi-256M-128K { + pebsize = 128K + numpebs = 2048 + minimum-io-unit-size = 128k +} + +image xspi.cpio.img { + flash { + } + flashtype = "xspi-256M-128K" + + partition rcw { + in-partition-table = "no" + image = "bl2_flexspi_nor.pbl" + offset = 0 + size = 1M + } + + partition u-boot { + in-partition-table = "no" + image = "fip.bin" + offset = 1M + size = 4M + } + + partition u-boot-environment { + in-partition-table = "no" + image = "uboot-env.bin" + offset = 5M + size = 1M + } + + partition dp-firmware { + in-partition-table = "no" + image = "ls1028a-dp-fw.bin" + offset = 0x940000 + size = 256K + } + + partition boot { + in-partition-table = "no" + image = "kernel.itb" + offset = 16M + size = 48M + } +}(quoted diff) +0
-0b/board/nxp/ls1028ardb/kernel.its new file mode 100644 index 0000000000..08e9700f30
board/nxp/ls1028ardb/kernel.its new file +59
-0@@ -0,0 +1,59 @@ +/* + * Copyright 2019 NXP + * + * Changming Huang <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/dts-v1/; + +/ { + description = "Image file for the LS1028A Linux Kernel"; + #address-cells = <1>; + + images { + kernel at 1 { + description = "ARM64 Linux kernel"; + data = /incbin/("./Image.gz"); + type = "kernel"; + arch = "arm64"; + os = "linux"; + compression = "gzip"; + load = <0x80080000>; + entry = <0x80080000>; + }; + fdt at 1 { + description = "Flattened Device Tree blob"; + data = /incbin/("./fsl-ls1028a-rdb.dtb"); + type = "flat_dt"; + arch = "arm64"; + compression = "none"; + load = <0x90000000>; + }; + ramdisk at 1 { + description = "LS1028 Ramdisk"; + data = /incbin/("./rootfs.cpio.gz"); + type = "ramdisk"; + arch = "arm64"; + os = "linux"; + compression = "gzip"; + }; + }; + + configurations { + default = "config at 1"; + config at 1 { + description = "Boot Linux kernel"; + kernel = "kernel at 1"; + fdt = "fdt at 1"; + ramdisk = "ramdisk at 1"; + }; + ls1028ardb { + description = "Boot Linux kernel"; + kernel = "kernel at 1"; + fdt = "fdt at 1"; + ramdisk = "ramdisk at 1"; + }; + }; +};board/nxp/ls1028ardb/ls1028-10-network.rules new file +0
-0board/nxp/ls1028ardb/ls1028-10-network.rules line 2
Quoted 2 lines
board/nxp/ls1028ardb/ls1028-10-network.rules new file +2
-0@@ -0,0 +1,16 @@ +# ENETC rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0",DRIVERS=="fsl_enetc", NAME:="eno0"
board/nxp/ls1028ardb/ls1028-10-network.rules line 3
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1",DRIVERS=="fsl_enetc", NAME:="eno1"
board/nxp/ls1028ardb/ls1028-10-network.rules line 4
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.2",DRIVERS=="fsl_enetc", NAME:="eno2"
board/nxp/ls1028ardb/ls1028-10-network.rules line 5
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.6",DRIVERS=="fsl_enetc", NAME:="eno3"
board/nxp/ls1028ardb/ls1028-10-network.rules line 6
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.0",DRIVERS=="fsl_enetc_vf", NAME:="eno0vf0"
board/nxp/ls1028ardb/ls1028-10-network.rules line 7
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.1",DRIVERS=="fsl_enetc_vf", NAME:="eno0vf1"
board/nxp/ls1028ardb/ls1028-10-network.rules line 8
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.2",DRIVERS=="fsl_enetc_vf", NAME:="eno1vf0"
board/nxp/ls1028ardb/ls1028-10-network.rules line 9
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.3",DRIVERS=="fsl_enetc_vf", NAME:="eno1vf1"
board/nxp/ls1028ardb/ls1028-10-network.rules line 11
Quoted 2 lines
board/nxp/ls1028ardb/ls1028-10-network.rules new file +2
-0+# LS1028 switch rules +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", NAME="swp0"
board/nxp/ls1028ardb/ls1028-10-network.rules line 12
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", NAME="swp1"
board/nxp/ls1028ardb/ls1028-10-network.rules line 13
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p2", NAME="swp2"
board/nxp/ls1028ardb/ls1028-10-network.rules line 14
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p3", NAME="swp3"
board/nxp/ls1028ardb/ls1028-10-network.rules line 15
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p4", NAME="swp4"
board/nxp/ls1028ardb/ls1028-10-network.rules line 16
Quoted 1 line
board/nxp/ls1028ardb/ls1028-10-network.rules new file +1
-0+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5",DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p5", NAME="swp5"
board/nxp/ls1028ardb/post-cfg-udev.sh line 6
Quoted 13 lines
board/nxp/ls1028ardb/post-cfg-udev.sh new file +6
-0@@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +main() +{ + cp board/nxp/ls1028ardb/ls1028-10-network.rules +${TARGET_DIR}/etc/udev/rules.d/10-network.rulesShouldn't this be a part of a
BR2_ROOTFS_OVERLAYfragment?Quoted 42 lines
board/nxp/ls1028ardb/post-cfg-udev.sh new file +5
-0+ + exit $? +} + +main $@(quoted diff) +0
-0
b/board/nxp/ls1028ardb/readme.txtnew file mode 100644 index 0000000000..713babd7c3board/nxp/ls1028ardb/readme.txt new file +31
-0@@ -0,0 +1,61 @@ +LS1028ARDB board is one platform based on LS1028A silicon for +industry, which is supported in LSDK-19.09. + +One simple image file is created by buildroot, which includes RCW, +uboot, Linux kernel, rootfs and other necessary binaries for this board. + +To program the image file created by buildroot into the flash. +There are two way to do it: + +1. Program the image file on PC machine for SD card boot + $ sudo dd if=./output/images/sdcard.img of=/dev/sdx + # or in some other host machine: + $ sudo dd if=./output/images/sdcard.img of=/dev/mmcblkx + + # find the right SD Card device name in your host machine and + replace the # ?sdx? or ?mmcblkx?. + +2. Program the image file on board for eMMC and XSPI boot Make sure +your board has ipaddr, netmask, and serverip defined to reach your +tftp server. + + 2.1 Program eMMC boot image file to eMMC chip + # Make sure output/images/sdcard.img is stored to tftp server + # Below command is one example + => tftpboot 0xa0000000 sdcard.img + => mmc dev 1 + => mmc erase 0 0x200000 + => mmc write 0xa0000000 0 0x200000 + + # The size "0x200000" will be changed when the image size is different. +board/nxp/ls1028ardb/readme.txt line 41
Quoted 10 lines
board/nxp/ls1028ardb/readme.txt new file +10
-0+ 2.2 Program XSPI boot image file to flash + # Make sure output/images/xspi.cpio.img is stored to tftp server + # Below command is one example + => tftpboot 0xa0000000 xspi.cpio.img + => sf probe + => sf erase 0 $filesize + => sf write 0xa0000000 0 $filesize + +3. Booting your new system +Before booting the new system, we should make sure the switch setting isright.
Quoted 28 lines
board/nxp/ls1028ardb/readme.txt new file +20
-0+below switch setting is for each booting mode: + +-----------+---------------------+ + |Boot mode | Switch setting | + +---------------------------------+ + |SD boot | SW2[1~4] = 0b?1000 | + +---------------------------------+ + |eMMC boot | SW2[1~4] = 0b?1001 | + +---------------------------------+ + |XSPI boot | SW2[1~4] = 0b?1111 | + +-----------+---------------------+ + +or we use following command to reset the board in uboot prompt: + # boot from SD card + => qixis_reset sd + + # boot from eMMC chip + => qixis_reset emmc + + # boot from XSPI + => qixis_reset qspiboard/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +1
-0@@ -0,0 +1,22 @@ +baudrate=115200board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 11
Quoted 10 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +10
-0+bootcmd=setenv bootargs root=/dev/mmcblk1p2 rootwait rw +earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M +video=1920x1080-32 at 60;mmc dev 1;mmcinfo;fatload mmc 1:1 ${dp_load} +${dp_file};hdp load ${dp_load} ${dp_offset};fatload mmc 1:1 +${loadaddr} ${bootfile};fatload mmc 1:1 ${fdtaddr} ${fdtfile};booti +${loadaddr} - ${fdtaddr} +bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9
Quoted 7 lines
Do we really want to put a MAC address in the U-Boot environment? This will work ok for the first board, but not so well for the second board that you put in the same network.
And actually, do we want a U-Boot environment at all? The LSDK U-Boot default environment is distroboot enabled. With the proper extlinux.conf file generated bypost-image.sh, it can load Buildroot in a breeze with no custom script necessary:
I can remove the MAC address from u-boot environment, uboot will use the random MAC address if there is not.
Actually, MAC address should be written to EEPROM.
Though, the environment is enabled in LSDK U-Boot, but it is for all boot modes which cause the boot scripts is very complex and not easy to read. So we use the environment simplified.
Quoted 505 lines
label Buildroot %VERSION% - %BOARD%
kernel %KERNEL%
devicetree %DTB%
append console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootwaitboard/nxp/ls1028ardb/u-boot-environment-emmc.txt line 13
Quoted 2 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +2
-0+ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3There is certainly no DTSEC port on LS1028A.
board/nxp/ls1028ardb/u-boot-environment-emmc.txt line 11
Quoted 3 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +3
-0+fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090And no FMan microcode.
board/nxp/ls1028ardb/u-boot-environment-emmc.txt
Quoted 13 lines
board/nxp/ls1028ardb/u-boot-environment-emmc.txt new file +13
-0+hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rw +earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc +0:1 ${loadaddr} ${bootfile};bootm ${loadaddr}What does "rollbackboot" do?
Quoted 40 lines
board/nxp/ls1028ardb/u-boot-environment-sd.txt new file +26
-0@@ -0,0 +1,21 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/mmcblk0p2 rootwait rw +earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M +video=1920x1080-32 at 60;mmcinfo;fatload mmc 0:1 ${dp_load} ${dp_file}; +hdp load ${dp_load} ${dp_offset};fatload mmc 0:1 ${loadaddr} +${bootfile};fatload mmc 0:1 ${fdtaddr} ${fdtfile};booti ${loadaddr} - +${fdtaddr} +bootdelay=3 +bootfile=Image +fdtfile=fsl-ls1028a-rdb.dtb +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +loadaddr=0xa0000000 +fdtaddr=0xb0000000 +dp_file=ls1028a-dp-fw.bin +dp_load=0x90000000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serialboard/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +0
-0board/nxp/ls1028ardb/u-boot-environment-xspi.txt line 2
Quoted 2 lines
board/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +2
-0@@ -0,0 +1,22 @@ +baudrate=115200 +bootcmd=setenv bootargs root=/dev/ram0 rwearlycon=uart8250,0x21c0500
configs/nxp_ls1028ardb-64b-emmc_defconfig
Quoted 31 lines
board/nxp/ls1028ardb/u-boot-environment-xspi.txt new file +25
-0+console=ttyS0,115200 cma=256M video=1920x1080-32 at 60; sf probe 0:0; sf +read $dp_load $dp_start $dp_size; hdp load $dp_load $dp_offset; sf +read $kernel_load $kernel_start $kernel_size && bootm $kernel_load +bootdelay=3 +eth2addr=00:1F:7B:63:35:E9 +ethact=FM1 at DTSEC3 +ethprime=FM1 at DTSEC3 +fdt_high=0xffffffffffffffff +fdtcontroladdr=ffc01550 +fman_ucode=ffc12090 +hwconfig=fsl_ddr:bank_intlv=auto +initrd_high=0xffffffffffffffff +kernel_load=0xa0000000 +kernel_size=0x3000000 +kernel_start=0x1000000 +dp_load=0x90000000 +dp_start=0x940000 +dp_size=0x40000 +dp_offset=0x2000 +stderr=serial +stdin=serial +stdout=serial +rollbackboot=setenv bootargs root=/dev/ram0 rootwait rw +earlycon=uart8250,0x21c0500 console=ttyS0,115200;mmcinfo;fatload mmc +0:1 ${loadaddr} ${bootfile};bootm $loadaddrconfigs/nxp_ls1028ardb-64b-emmc_defconfig new file +0
-0Thomas, is there any way in Buildroot to use fragments for the board configs, to avoid duplication? I couldn't find any way.
Quoted 15 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +13
-0@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchain +BR2_TOOLCHAIN_BUILDROOT_GLIBC=yconfigs/nxp_ls1028ardb-64b-emmc_defconfig line 23
Quoted 10 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +10
-0+BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_FORMAT_DTB_BIN=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://eur01.safelinks.protectio n.outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqo riq%2Fqoriq-components%2Fu-boot&data=02%7C01%7Cjerry.huang%40nx p.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd9 9c5c301635%7C0%7C0%7C637109345348800651&sdata=kFn3nsvOHgCCT JYKYMoU9rRkGsFR77TYGzbvOEezXIg%3D&reserved=0"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 31
Quoted 8 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +7
-0+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE=y+BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-e nvironment-emmc.txt"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 37
Quoted 6 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +5
-0+BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://eur01.safelinks.protection .outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqor iq%2Fqoriq-components%2Flinux&data=02%7C01%7Cjerry.huang%40nxp. com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd99c 5c301635%7C0%7C0%7C637109345348800651&sdata=iS%2F%2Bf1lVYF9f PRlNdjKkKKuRmRsdwtOTF7mZ%2BUFwz5c%3D&reserved=0"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 37
Quoted 3 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +2
-0+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64 /configs/lsdk.config"
Quoted 4 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +4
-0+BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image"configs/nxp_ls1028ardb-64b-emmc_defconfig
Quoted 10 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +10
-0+ +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR)$(UBOOT_DIR)"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 63
Quoted 8 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +7
-0+ +# busybox setting +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="emmc"+BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1 300_emmcboot.bin"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 70
Quoted 7 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +6
-0+ +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y+BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 76
Quoted 6 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +5
-0+ +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dt b.bin"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 70
Quoted 2 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +1
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://eur 01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.codeaurora. org%2Fexternal%2Fqoriq%2Fqoriq-components%2Fatf&data=02%7C01%7 Cjerry.huang%40nxp.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637109345348800651&sdat a=QxY1g3x9g%2FVOObPfmMgqiX1KCF8jYUzYT33inYJYCyA%3D&reserved= 0"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK- 19.09"
configs/nxp_ls1028ardb-64b-emmc_defconfig line 83
Quoted 4 lines
configs/nxp_ls1028ardb-64b-emmc_defconfig new file +3
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin bl2_emmc.pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl"+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="h ost-qoriq-rcw"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT _MODE=emmc RCW=$(BINARIES_DIR)/rcw_1300_emmcboot.bin"
Quoted 21 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +13
-0@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_CPIO_GZIP=y +BR2_TARGET_ROOTFS_CPIO_UIMAGE=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchainconfigs/nxp_ls1028ardb-64b-xspi_defconfig line 23
Quoted 10 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +10
-0+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://eur01.safelinks.protectio n.outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqo riq%2Fqoriq-components%2Fu-boot&data=02%7C01%7Cjerry.huang%40nx p.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd9 9c5c301635%7C0%7C0%7C637109345348800651&sdata=kFn3nsvOHgCCT JYKYMoU9rRkGsFR77TYGzbvOEezXIg%3D&reserved=0"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 29
Quoted 7 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +6
-0+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_TARGET_UBOOT_ENVIMAGE=y+BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-e nvironment-xspi.txt"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 34
Quoted 6 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +5
-0+BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://eur01.safelinks.protection .outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqor iq%2Fqoriq-components%2Flinux&data=02%7C01%7Cjerry.huang%40nxp. com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd99c 5c301635%7C0%7C0%7C637109345348810637&sdata=Akdyy0hEI%2Fiqw y6oPyt6OLrLAea1JpikT2r8BI9Yvz8%3D&reserved=0"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 36
Quoted 3 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +2
-0+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64 /configs/lsdk.config"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 53
Quoted 13 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +12
-0+BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image.gz" + +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image-spi.s h"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 49
Quoted 1 line
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +1
-0+BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR)$(UBOOT_DIR)"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 51
Quoted 3 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +2
-0+ +# busybox setting+BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/nxp/common/ls /busybox.config"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 63
Quoted 6 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +5
-0+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="flexspi_nor"+BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1 500_gpu600.bin"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 62
Quoted 7 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +6
-0+ +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y+BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 67
Quoted 6 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +5
-0+ +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dt b.bin"
configs/nxp_ls1028ardb-64b-xspi_defconfig line 68
Quoted 2 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +1
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://eur 01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.codeaurora. org%2Fexternal%2Fqoriq%2Fqoriq-components%2Fatf&data=02%7C01%7 Cjerry.huang%40nxp.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637109345348810637&sdat a=9ssQTjqQMNf7FgKISQPKHB0ywJkUCcorbBjCIVodYkE%3D&reserved=0"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK- 19.09"
configs/nxp_ls1028ardb-64b-xspi_defconfig
Quoted 2 lines
configs/nxp_ls1028ardb-64b-xspi_defconfig new file +2
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.binbl2_flexspi_nor.pbl"
Quoted 2 lines
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="h ost-qoriq-rcw"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT _MODE=flexspi_nor RCW=$(BINARIES_DIR)/rcw_1500_gpu600.bin"
Quoted 20 lines
configs/nxp_ls1028ardb-64b_defconfig new file +12
-0@@ -0,0 +1,85 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a72=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Hostname and issue +BR2_TARGET_GENERIC_HOSTNAME="LS1028ARDB" + +# toolchainconfigs/nxp_ls1028ardb-64b_defconfig line 22
Quoted 10 lines
configs/nxp_ls1028ardb-64b_defconfig new file +10
-0+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="ls1028ardb_tfa" +BR2_TARGET_UBOOT_CUSTOM_GIT=y+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://eur01.safelinks.protectio n.outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqo riq%2Fqoriq-components%2Fu-boot&data=02%7C01%7Cjerry.huang%40nx p.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd9 9c5c301635%7C0%7C0%7C637109345348810637&sdata=XB0okA3zSQFVF 8QmKrSgy%2BXnZ5hcqvfRo%2FznvzodgSs%3D&reserved=0"
configs/nxp_ls1028ardb-64b_defconfig line 29
Quoted 8 lines
configs/nxp_ls1028ardb-64b_defconfig new file +7
-0+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-19.09" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_BIN=n +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-dtb.bin" +BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE=y+BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/nxp/ls1028ardb/u-boot-e nvironment-sd.txt"
configs/nxp_ls1028ardb-64b_defconfig line 34
Quoted 6 lines
configs/nxp_ls1028ardb-64b_defconfig new file +5
-0+BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://eur01.safelinks.protection .outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fqor iq%2Fqoriq-components%2Flinux&data=02%7C01%7Cjerry.huang%40nxp. com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3bc2b4c6fa92cd99c 5c301635%7C0%7C0%7C637109345348810637&sdata=Akdyy0hEI%2Fiqw y6oPyt6OLrLAea1JpikT2r8BI9Yvz8%3D&reserved=0"
configs/nxp_ls1028ardb-64b_defconfig line 36
Quoted 3 lines
configs/nxp_ls1028ardb-64b_defconfig new file +2
-0+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-19.09-V4.19" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64 /configs/lsdk.config"
Quoted 4 lines
configs/nxp_ls1028ardb-64b_defconfig new file +4
-0+BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-rdb" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image"configs/nxp_ls1028ardb-64b_defconfig line 50
Quoted 10 lines
configs/nxp_ls1028ardb-64b_defconfig new file +10
-0+ +# Serial port config +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# required tools to create the microSD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nxp/common/ls/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(LINUX_DIR) $(TOPDIR)$(UBOOT_DIR)"
configs/nxp_ls1028ardb-64b_defconfig line 52
Quoted 3 lines
configs/nxp_ls1028ardb-64b_defconfig new file +2
-0+ +# busybox setting+BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/nxp/common/ls /busybox.config"
configs/nxp_ls1028ardb-64b_defconfig line 63
Quoted 6 lines
configs/nxp_ls1028ardb-64b_defconfig new file +5
-0+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + +# packages for rcw +BR2_PACKAGE_HOST_QORIQ_RCW=y +BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE="sd"+BR2_PACKAGE_HOST_QORIQ_RCW_BIN="ls1028ardb/R_SQPP_0x85bb/rcw_1 300_sdboot.bin"
configs/nxp_ls1028ardb-64b_defconfig line 63
Quoted 7 lines
configs/nxp_ls1028ardb-64b_defconfig new file +6
-0+ +#Display port firmware +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=y + +#eudev support +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y+BR2_ROOTFS_POST_BUILD_SCRIPT="board/nxp/ls1028ardb/post-cfg-udev.sh"
configs/nxp_ls1028ardb-64b_defconfig line 68
Quoted 6 lines
configs/nxp_ls1028ardb-64b_defconfig new file +5
-0+ +# Arm-Trusted-Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-dt b.bin"
configs/nxp_ls1028ardb-64b_defconfig line 69
Quoted 2 lines
configs/nxp_ls1028ardb-64b_defconfig new file +1
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://eur 01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.codeaurora. org%2Fexternal%2Fqoriq%2Fqoriq-components%2Fatf&data=02%7C01%7 Cjerry.huang%40nxp.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637109345348810637&sdat a=9ssQTjqQMNf7FgKISQPKHB0ywJkUCcorbBjCIVodYkE%3D&reserved=0"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK- 19.09"
configs/nxp_ls1028ardb-64b_defconfig line 83
Quoted 4 lines
configs/nxp_ls1028ardb-64b_defconfig new file +3
-0+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin bl2_sd.pbl" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="pbl"+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_DEPENDENCIES="h ost-qoriq-rcw"
Quoted 1 line
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT _MODE=sd RCW=$(BINARIES_DIR)/rcw_1300_sdboot.bin"
Quoted 8 lines
--
2.17.1_______________________________________________
buildroot mailing list
buildroot at busybox.net
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists
.busybox.net%2Fmailman%2Flistinfo%2Fbuildroot&data=02%7C01%7Cjerry
Quoted 1 line
.huang%40nxp.com%7Cae8709aebdf54eef25ed08d77792f39a%7C686ea1d3b
c2b4c6f
Quoted 1 line
a92cd99c5c301635%7C0%7C0%7C637109345348810637&sdata=0eld04G 7Qo%2F0
Quoted 1 line
fDASkUbxYjsWLfeUCgf0bH2ee3O3JQQ%3D&reserved=0
Thanks,
-Vladimir
PATCH v3 9/9 configs/nxp_ls1028ardb*: new board
In reply to Changming HuangHi Jerry,
Quoted 6 lines · Changming Huang
This is to support Freescale/NXP LS1028ARDB in Buildroot. The board is setup to track the Linux at 4.19 via NXP LSDK-19.09.
The target will build uboot and RCW binary with arm-trusted-firmware support.
Quoted 7 lines
board/nxp/ls1028ardb/: scripts related with ls1028ardb nxp_ls1028ardb-64b-emmc_defconfig: defconfig boot from emmc chip on board nxp_ls1028ardb-64b_defconfig: defconfig boot from SD card nxp_ls1028ardb-64b-xspi_defconfig: defconfig boot from FlexSPI chip on board
Signed-off-by Changming Huang <[email protected]>---
It looks like this series has stagnated. Do you think you can repost a v4 with the feedback received so far?
Thanks,
-Vladimir
[Buildroot] [EXT] Re: [PATCH v3 9/9] configs/nxp_ls1028ardb*: new board
Hi, Vlamidir,
sure
Best Regards
Jerry Huang
Quoted 37 lines
-----Original Message-----
From: Vladimir Oltean <[email protected]>
Sent: Tuesday, December 24, 2019 8:48 PM
To: Jerry Huang <[email protected]>
Cc: buildroot at busybox.net; Michael Walle <[email protected]>; geomatsi at gmail.com; Matthew Weber <[email protected]>; Thomas Petazzoni <[email protected]>
Subject: [EXT] Re: [Buildroot] [PATCH v3 9/9] configs/nxp_ls1028ardb*: new boardCaution: EXT Email
Hi Jerry,
Quoted 5 lines · Changming Huang
This is to support Freescale/NXP LS1028ARDB in Buildroot. The board is setup to track the Linux at 4.19 via NXP LSDK-19.09.
The target will build uboot and RCW binary with arm-trusted-firmware
support.
Quoted 3 lines
board/nxp/ls1028ardb/: scripts related with ls1028ardb nxp_ls1028ardb-64b-emmc_defconfig: defconfig boot from emmc chip on
board
Quoted 5 lines
nxp_ls1028ardb-64b_defconfig: defconfig boot from SD card nxp_ls1028ardb-64b-xspi_defconfig: defconfig boot from FlexSPI chip on board
Signed-off-by Changming Huang <[email protected]>---
It looks like this series has stagnated. Do you think you can repost a v4 with the feedback received so far?
Thanks,
-Vladimir