* [meta-fsl-arm][PATCH 0/6] Add recipes for layerscape1 support
@ 2014-08-26 14:03 Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 1/6] Add common configure files for Layerscape1 support Zhenhua Luo
` (5 more replies)
0 siblings, 6 replies; 10+ messages in thread
From: Zhenhua Luo @ 2014-08-26 14:03 UTC (permalink / raw)
To: meta-freescale
The patch serias add the recipes of FSL layerscape1 ARM targets support.
Supported targets: ls1021aqds, ls1021atwr
The QorIQ LS1021A processor provides extensive integration and power
efficiency for fanless, small form factor enterprise networking applications.
Incorporating dual ARM? Cortex?-A7 cores running up to 1.0 GHz, the LS1021A
processor delivers pre-silicon CoreMark performance of over 6,000, as well
as virtualization support, advanced security features and the broadest array
of high-speed interconnects and optimized peripheral features ever offered
in a sub-3 W processor.
More details can be found in
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=LS1021A&fsrch=1&sr=1&pageNum=1
Zhenhua Luo (6):
Add common configure files for Layerscape1 support
Add u-boot recipe for Layerscape1 support
Add kernel recipe for Layerscape1 support
Add rcw recipe for Layerscape1 support
Add machine conf for ls1021atwr
Add machine conf file for ls1021aqds
conf/machine/include/fsl-ls-default-providers.inc | 6 ++
conf/machine/include/fsl-ls-default-settings.inc | 4 +
conf/machine/include/fsl-ls-default-versions.inc | 2 +
conf/machine/include/ls-base.inc | 20 ++++
conf/machine/ls1021aqds.conf | 15 +++
conf/machine/ls1021atwr.conf | 14 +++
recipes-bsp/rcw/rcw_git.bb | 50 ++++++++++
recipes-bsp/u-boot/u-boot-ls_2013.10.bb | 109 ++++++++++++++++++++++
recipes-kernel/linux/linux-ls.inc | 30 ++++++
recipes-kernel/linux/linux-ls_3.12.bb | 15 +++
10 files changed, 265 insertions(+)
create mode 100644 conf/machine/include/fsl-ls-default-providers.inc
create mode 100644 conf/machine/include/fsl-ls-default-settings.inc
create mode 100644 conf/machine/include/fsl-ls-default-versions.inc
create mode 100644 conf/machine/include/ls-base.inc
create mode 100644 conf/machine/ls1021aqds.conf
create mode 100644 conf/machine/ls1021atwr.conf
create mode 100644 recipes-bsp/rcw/rcw_git.bb
create mode 100644 recipes-bsp/u-boot/u-boot-ls_2013.10.bb
create mode 100644 recipes-kernel/linux/linux-ls.inc
create mode 100644 recipes-kernel/linux/linux-ls_3.12.bb
--
1.8.3.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [meta-fsl-arm][PATCH 1/6] Add common configure files for Layerscape1 support
2014-08-26 14:03 [meta-fsl-arm][PATCH 0/6] Add recipes for layerscape1 support Zhenhua Luo
@ 2014-08-26 14:03 ` Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 2/6] Add u-boot recipe " Zhenhua Luo
` (4 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Zhenhua Luo @ 2014-08-26 14:03 UTC (permalink / raw)
To: meta-freescale
* conf/machine/include/fsl-ls-default-providers.inc
* conf/machine/include/fsl-ls-default-settings.inc
* conf/machine/include/fsl-ls-default-versions.inc
* conf/machine/include/ls-base.inc
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
conf/machine/include/fsl-ls-default-providers.inc | 6 ++++++
conf/machine/include/fsl-ls-default-settings.inc | 4 ++++
conf/machine/include/fsl-ls-default-versions.inc | 2 ++
conf/machine/include/ls-base.inc | 20 ++++++++++++++++++++
4 files changed, 32 insertions(+)
create mode 100644 conf/machine/include/fsl-ls-default-providers.inc
create mode 100644 conf/machine/include/fsl-ls-default-settings.inc
create mode 100644 conf/machine/include/fsl-ls-default-versions.inc
create mode 100644 conf/machine/include/ls-base.inc
diff --git a/conf/machine/include/fsl-ls-default-providers.inc b/conf/machine/include/fsl-ls-default-providers.inc
new file mode 100644
index 0000000..7964fae
--- /dev/null
+++ b/conf/machine/include/fsl-ls-default-providers.inc
@@ -0,0 +1,6 @@
+# Freescale BSP default providers
+
+PREFERRED_PROVIDER_u-boot ?= "u-boot-ls"
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ls"
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-ls"
+
diff --git a/conf/machine/include/fsl-ls-default-settings.inc b/conf/machine/include/fsl-ls-default-settings.inc
new file mode 100644
index 0000000..45ca43a
--- /dev/null
+++ b/conf/machine/include/fsl-ls-default-settings.inc
@@ -0,0 +1,4 @@
+# Freescale BSP default settings
+
+IMAGE_CLASSES = "image_types_uboot"
+
diff --git a/conf/machine/include/fsl-ls-default-versions.inc b/conf/machine/include/fsl-ls-default-versions.inc
new file mode 100644
index 0000000..ddfaf52
--- /dev/null
+++ b/conf/machine/include/fsl-ls-default-versions.inc
@@ -0,0 +1,2 @@
+# Freescale BSP default versions
+
diff --git a/conf/machine/include/ls-base.inc b/conf/machine/include/ls-base.inc
new file mode 100644
index 0000000..0bbfcb5
--- /dev/null
+++ b/conf/machine/include/ls-base.inc
@@ -0,0 +1,20 @@
+# Provides the Layerscape common settings
+
+include conf/machine/include/fsl-ls-default-settings.inc
+include conf/machine/include/fsl-ls-default-versions.inc
+include conf/machine/include/fsl-ls-default-providers.inc
+
+require conf/machine/include/soc-family.inc
+
+UBOOT_ENTRYPOINT_ls1021atwr = "0x80008000"
+
+MACHINE_FEATURES = "pci ext2 ext3 serial"
+MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
+
+KERNEL_IMAGETYPE ?= "uImage"
+
+SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1 115200;ttyEHV0 115200;ttyLP0"
+SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
+USE_VT ?= "0"
+
+DEFAULTTUNE = "cortexa7hf-neon"
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [meta-fsl-arm][PATCH 2/6] Add u-boot recipe for Layerscape1 support
2014-08-26 14:03 [meta-fsl-arm][PATCH 0/6] Add recipes for layerscape1 support Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 1/6] Add common configure files for Layerscape1 support Zhenhua Luo
@ 2014-08-26 14:03 ` Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 3/6] Add kernel " Zhenhua Luo
` (3 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Zhenhua Luo @ 2014-08-26 14:03 UTC (permalink / raw)
To: meta-freescale
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
recipes-bsp/u-boot/u-boot-ls_2013.10.bb | 109 ++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
create mode 100644 recipes-bsp/u-boot/u-boot-ls_2013.10.bb
diff --git a/recipes-bsp/u-boot/u-boot-ls_2013.10.bb b/recipes-bsp/u-boot/u-boot-ls_2013.10.bb
new file mode 100644
index 0000000..703c6fc
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-ls_2013.10.bb
@@ -0,0 +1,109 @@
+require recipes-bsp/u-boot/u-boot.inc
+
+LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1"
+LIC_FILES_CHKSUM = " \
+ file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+ file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \
+ file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \
+ file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
+ file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \
+"
+
+SRC_URI = "git://git.freescale.com/layerscape/ls1021a/u-boot.git;branch=LS1-dev"
+SRCREV = "48bfc6985a0524bc5c388bb9a9a6a6bc4a121ec5"
+
+PROVIDES += "u-boot"
+
+UBOOT_LOCALVERSION ?= "${SDK_VERSION}"
+
+S = "${WORKDIR}/git"
+
+do_stage_endian_swap_tool () {
+ install -m 755 ${S}/byte_swap.tcl ${STAGING_BINDIR_NATIVE}
+}
+
+addtask stage_endian_swap_tool before do_compile after do_patch
+
+do_compile () {
+ unset LDFLAGS
+ unset CFLAGS
+ unset CPPFLAGS
+
+ if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]
+ then
+ head=`git rev-parse --verify --short HEAD 2> /dev/null`
+ printf "%s%s%s" ${UBOOT_LOCALVERSION} +g $head > ${B}/.scmversion
+ printf "%s%s%s" ${UBOOT_LOCALVERSION} +g $head > ${S}/.scmversion
+ fi
+
+ if [ "x${UBOOT_MACHINES}" = "x" ]; then
+ UBOOT_MACHINES="${UBOOT_MACHINE}"
+ fi
+
+ for board in ${UBOOT_MACHINES}; do
+ oe_runmake O=${board} distclean
+ oe_runmake O=${board} ${board}
+ oe_runmake O=${board} all
+ case "${board}" in
+ *sdcard*) UBOOT_TARGET="u-boot-with-spl-pbl";;
+ *nand*) UBOOT_TARGET="u-boot-with-spl-pbl";;
+ *spi*) UBOOT_TARGET="u-boot-qspiboot_swap"
+ ${bindir}/tclsh byte_swap.tcl ${S}/${board}/u-boot.bin ${S}/${board}/${UBOOT_TARGET}.bin 8 ;;
+ *) UBOOT_TARGET="u-boot";;
+ esac
+ done
+}
+
+do_install(){
+ if [ "x${UBOOT_MACHINES}" = "x" ]; then
+ UBOOT_MACHINES="${UBOOT_MACHINE}"
+ fi
+
+ for board in ${UBOOT_MACHINES}; do
+ case "${board}" in
+ *sdcard*) UBOOT_TARGET="u-boot-with-spl-pbl";;
+ *nand*) UBOOT_TARGET="u-boot-with-spl-pbl";;
+ *spi*) UBOOT_TARGET="u-boot-qspiboot_swap";;
+ *) UBOOT_TARGET="u-boot";;
+ esac
+
+ if [ -f ${S}/${board}/${UBOOT_TARGET}.bin ]; then
+ install -d ${D}/boot/
+ install ${S}/${board}/${UBOOT_TARGET}.bin ${D}/boot/${UBOOT_TARGET}-${board}-${PV}-${PR}.bin
+ ln -sf ${UBOOT_TARGET}-${board}-${PV}-${PR}.bin ${D}/boot/${UBOOT_TARGET}.bin
+ fi
+ done
+}
+
+do_deploy(){
+ if [ "x${UBOOT_MACHINES}" = "x" ]; then
+ UBOOT_MACHINES="${UBOOT_MACHINE}"
+ fi
+
+ for board in ${UBOOT_MACHINES}; do
+ case "${board}" in
+ *sdcard*) UBOOT_TARGET="u-boot-with-spl-pbl";;
+ *nand*) UBOOT_TARGET="u-boot-with-spl-pbl";;
+ *spi*) UBOOT_TARGET="u-boot-qspiboot_swap";;
+ *) UBOOT_TARGET="u-boot";;
+ esac
+
+ if [ -f ${S}/${board}/${UBOOT_TARGET}.bin ]; then
+ mkdir -p ${DEPLOYDIR}
+ install ${S}/${board}/${UBOOT_TARGET}.bin ${DEPLOYDIR}/${UBOOT_TARGET}-${board}-${PV}-${PR}.bin
+ cd ${DEPLOYDIR}
+ rm -f ${UBOOT_TARGET}-${board}.bin
+ ln -sf ${UBOOT_TARGET}-${board}-${PV}-${PR}.bin ${UBOOT_TARGET}-${board}.bin
+ fi
+ done
+}
+addtask deploy after do_install
+
+PACKAGES += "${PN}-images"
+FILES_${PN}-images += "/boot"
+
+ALLOW_EMPTY_${PN} = "1"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(ls1021aqds|ls1021atwr)"
+
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [meta-fsl-arm][PATCH 3/6] Add kernel recipe for Layerscape1 support
2014-08-26 14:03 [meta-fsl-arm][PATCH 0/6] Add recipes for layerscape1 support Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 1/6] Add common configure files for Layerscape1 support Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 2/6] Add u-boot recipe " Zhenhua Luo
@ 2014-08-26 14:03 ` Zhenhua Luo
2014-08-27 1:06 ` John Weber
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 4/6] Add rcw " Zhenhua Luo
` (2 subsequent siblings)
5 siblings, 1 reply; 10+ messages in thread
From: Zhenhua Luo @ 2014-08-26 14:03 UTC (permalink / raw)
To: meta-freescale
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
recipes-kernel/linux/linux-ls.inc | 30 ++++++++++++++++++++++++++++++
recipes-kernel/linux/linux-ls_3.12.bb | 15 +++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 recipes-kernel/linux/linux-ls.inc
create mode 100644 recipes-kernel/linux/linux-ls_3.12.bb
diff --git a/recipes-kernel/linux/linux-ls.inc b/recipes-kernel/linux/linux-ls.inc
new file mode 100644
index 0000000..c1c976b
--- /dev/null
+++ b/recipes-kernel/linux/linux-ls.inc
@@ -0,0 +1,30 @@
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+inherit kernel
+
+# Append a local version if it is defined
+SCMVERSION ?= "y"
+
+SRC_URI = "git://git.freescale.com/layerscape/ls1021a/linux.git;branch=${SRCBRANCH}"
+
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
+
+S = "${WORKDIR}/git"
+
+do_configure_prepend() {
+ # copy desired defconfig so we pick it up for the real kernel_do_configure
+ cp ${KERNEL_DEFCONFIG} ${B}/.config
+
+ # add git revision to the local version
+ if [ "${SCMVERSION}" = "y" ]; then
+ # append sdk version if SDK_VERSION is defined
+ sdkversion=''
+ if [ -n "${SDK_VERSION}" ]; then
+ sdkversion="-${SDK_VERSION}"
+ fi
+ head=`git rev-parse --verify --short HEAD 2> /dev/null`
+ printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion
+ fi
+}
+
diff --git a/recipes-kernel/linux/linux-ls_3.12.bb b/recipes-kernel/linux/linux-ls_3.12.bb
new file mode 100644
index 0000000..6715ccb
--- /dev/null
+++ b/recipes-kernel/linux/linux-ls_3.12.bb
@@ -0,0 +1,15 @@
+SUMMARY = "Linux Kernel for Freescale layerscape platforms"
+DESCRIPTION = "Linux Kernel provided and supported by Freescale with focus on \
+Layerscape1 Family Boards. "
+
+require recipes-kernel/linux/linux-ls.inc
+require recipes-kernel/linux/linux-dtb.inc
+
+DEPENDS_append = " libgcc"
+KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
+KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
+
+SRCBRANCH = "ls1-dev"
+SRCREV = "de1cb4b3c16be38cf3981fd0afa143ad24283d07"
+
+COMPATIBLE_MACHINE = "(ls1021aqds|ls1021atwr)"
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [meta-fsl-arm][PATCH 4/6] Add rcw recipe for Layerscape1 support
2014-08-26 14:03 [meta-fsl-arm][PATCH 0/6] Add recipes for layerscape1 support Zhenhua Luo
` (2 preceding siblings ...)
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 3/6] Add kernel " Zhenhua Luo
@ 2014-08-26 14:03 ` Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 5/6] Add machine conf for ls1021atwr Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 6/6] Add machine conf file for ls1021aqds Zhenhua Luo
5 siblings, 0 replies; 10+ messages in thread
From: Zhenhua Luo @ 2014-08-26 14:03 UTC (permalink / raw)
To: meta-freescale
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
recipes-bsp/rcw/rcw_git.bb | 50 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 recipes-bsp/rcw/rcw_git.bb
diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb
new file mode 100644
index 0000000..f6cd4d8
--- /dev/null
+++ b/recipes-bsp/rcw/rcw_git.bb
@@ -0,0 +1,50 @@
+SUMMARY = "Reset Configuration Word"
+DESCRIPTION = "Reset Configuration Word - hardware boot-time parameters for the QorIQ targets"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://rcw.py;beginline=8;endline=28;md5=9ba0b28922dd187b06b6c8ebcfdd208e"
+
+inherit deploy
+
+SRC_URI = "git://git.freescale.com/layerscape/ls1021a/rcw.git;branch=LS1-SDK"
+SRCREV = "7b358441dfd35afbf01491649cc3f4396154a546"
+
+S = "${WORKDIR}/git"
+
+export PYTHON
+do_compile_append () {
+ if [ "ls1021aqds" = "${M}" ];then
+ for img in `find ${S} -name "*qspiboot*.bin"`; do
+ img_swap=`echo ${img} | awk '{sub("qspiboot","qspiboot_swap"); print $0}'`
+ ${bindir}/tclsh ${M}/byte_swap.tcl ${img} ${img_swap} 8
+ done
+ fi
+}
+
+do_install () {
+ make install
+
+ M=`echo ${MACHINE} | sed s/-64b//g`
+ for img in `find ${S} -name "*qspiboot_swap*.bin"`; do
+ rcw_subdir="`dirname ${img} | xargs basename`"
+ install ${img} ${S}/${M}/${M}/${rcw_subdir}
+ done
+
+ install -d ${D}/boot/rcw
+ cp -r ${S}/${M}/${M}/* ${D}/boot/rcw
+}
+
+do_deploy () {
+ M=`echo ${MACHINE} | sed s/-64b//g`
+ install -d ${DEPLOYDIR}/rcw
+ cp -r ${S}/${M}/${M}/* ${DEPLOYDIR}/rcw
+}
+addtask deploy after do_install
+
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/boot"
+
+ALLOW_EMPTY_${PN} = "1"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_HOST_ls102xa = "arm-poky-linux-gnueabi"
+COMPATIBLE_MACHINE = "(ls1021aqds|ls1021atwr)"
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [meta-fsl-arm][PATCH 5/6] Add machine conf for ls1021atwr
2014-08-26 14:03 [meta-fsl-arm][PATCH 0/6] Add recipes for layerscape1 support Zhenhua Luo
` (3 preceding siblings ...)
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 4/6] Add rcw " Zhenhua Luo
@ 2014-08-26 14:03 ` Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 6/6] Add machine conf file for ls1021aqds Zhenhua Luo
5 siblings, 0 replies; 10+ messages in thread
From: Zhenhua Luo @ 2014-08-26 14:03 UTC (permalink / raw)
To: meta-freescale
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
conf/machine/ls1021atwr.conf | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 conf/machine/ls1021atwr.conf
diff --git a/conf/machine/ls1021atwr.conf b/conf/machine/ls1021atwr.conf
new file mode 100644
index 0000000..e142dc1
--- /dev/null
+++ b/conf/machine/ls1021atwr.conf
@@ -0,0 +1,14 @@
+#@TYPE: Machine
+#@NAME: Freescale LS1021ATWR board
+#@SOC: ls102xa
+#@DESCRIPTION: Machine configuration for running LS1021ATWR in 32-bit mode
+#@MAINTAINER: Zhenhua Luo <zhenhua.luo@freescale.com>
+
+require conf/machine/include/ls-base.inc
+require conf/machine/include/tune-cortexa7.inc
+
+SOC_FAMILY = "ls102xa"
+UBOOT_MACHINE ?= "ls1021atwr_nor ls1021atwr_sdcard ls1021atwr_letech"
+KERNEL_DEVICETREE ?= "ls1021a-twr.dtb"
+KERNEL_DEFCONFIG ?= "${S}/arch/arm/configs/ls1021a_defconfig"
+
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [meta-fsl-arm][PATCH 6/6] Add machine conf file for ls1021aqds
2014-08-26 14:03 [meta-fsl-arm][PATCH 0/6] Add recipes for layerscape1 support Zhenhua Luo
` (4 preceding siblings ...)
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 5/6] Add machine conf for ls1021atwr Zhenhua Luo
@ 2014-08-26 14:03 ` Zhenhua Luo
5 siblings, 0 replies; 10+ messages in thread
From: Zhenhua Luo @ 2014-08-26 14:03 UTC (permalink / raw)
To: meta-freescale
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
conf/machine/ls1021aqds.conf | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 conf/machine/ls1021aqds.conf
diff --git a/conf/machine/ls1021aqds.conf b/conf/machine/ls1021aqds.conf
new file mode 100644
index 0000000..00471ed
--- /dev/null
+++ b/conf/machine/ls1021aqds.conf
@@ -0,0 +1,15 @@
+#@TYPE: Machine
+#@NAME: Freescale LS1021AQDS board
+#@SOC: ls102xa
+#@DESCRIPTION: Machine configuration for running LS1021AQDS in 32-bit mode
+#@MAINTAINER: Zhenhua Luo <zhenhua.luo@freescale.com>
+
+require conf/machine/include/ls-base.inc
+require conf/machine/include/tune-cortexa7.inc
+
+SOC_FAMILY = "ls102xa"
+UBOOT_MACHINE ?= "ls1021aqds_nor ls1021aqds_spi \
+ ls1021aqds_nor_secboot ls1021aqds_letech"
+KERNEL_DEVICETREE = "ls1021a-qds.dtb"
+KERNEL_DEFCONFIG = "${S}/arch/arm/configs/ls1021a_defconfig"
+
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [meta-fsl-arm][PATCH 3/6] Add kernel recipe for Layerscape1 support
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 3/6] Add kernel " Zhenhua Luo
@ 2014-08-27 1:06 ` John Weber
2014-08-27 2:30 ` zhenhua.luo
2014-08-27 3:23 ` zhenhua.luo
0 siblings, 2 replies; 10+ messages in thread
From: John Weber @ 2014-08-27 1:06 UTC (permalink / raw)
To: Zhenhua Luo; +Cc: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 2962 bytes --]
Hi Zhenhua,
On Tuesday, August 26, 2014, Zhenhua Luo <zhenhua.luo@freescale.com> wrote:
> Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com <javascript:;>>
> ---
> recipes-kernel/linux/linux-ls.inc | 30 ++++++++++++++++++++++++++++++
> recipes-kernel/linux/linux-ls_3.12.bb | 15 +++++++++++++++
> 2 files changed, 45 insertions(+)
> create mode 100644 recipes-kernel/linux/linux-ls.inc
> create mode 100644 recipes-kernel/linux/linux-ls_3.12.bb
>
> diff --git a/recipes-kernel/linux/linux-ls.inc
> b/recipes-kernel/linux/linux-ls.inc
Would this also apply to all platforms in the LS family, or just LS1021
family? If there will be a different kernel for the old Mindspeed parts
that are being rebranded to LS1 (e.g.LS1024), it might be more appropriate
to name this something more specific.
> new file mode 100644
> index 0000000..c1c976b
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-ls.inc
> @@ -0,0 +1,30 @@
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> +
> +inherit kernel
> +
> +# Append a local version if it is defined
> +SCMVERSION ?= "y"
> +
> +SRC_URI = "git://
> git.freescale.com/layerscape/ls1021a/linux.git;branch=${SRCBRANCH}"
> +
> +KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
> +
> +S = "${WORKDIR}/git"
> +
> +do_configure_prepend() {
> + # copy desired defconfig so we pick it up for the real
> kernel_do_configure
> + cp ${KERNEL_DEFCONFIG} ${B}/.config
> +
> + # add git revision to the local version
> + if [ "${SCMVERSION}" = "y" ]; then
> + # append sdk version if SDK_VERSION is defined
> + sdkversion=''
> + if [ -n "${SDK_VERSION}" ]; then
> + sdkversion="-${SDK_VERSION}"
> + fi
> + head=`git rev-parse --verify --short HEAD 2> /dev/null`
> + printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion
> + fi
> +}
> +
> diff --git a/recipes-kernel/linux/linux-ls_3.12.bb b/recipes-kernel/linux/
> linux-ls_3.12.bb
> new file mode 100644
> index 0000000..6715ccb
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-ls_3.12.bb
> @@ -0,0 +1,15 @@
> +SUMMARY = "Linux Kernel for Freescale layerscape platforms"
> +DESCRIPTION = "Linux Kernel provided and supported by Freescale with
> focus on \
> +Layerscape1 Family Boards. "
> +
> +require recipes-kernel/linux/linux-ls.inc
> +require recipes-kernel/linux/linux-dtb.inc
> +
> +DEPENDS_append = " libgcc"
> +KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
> +KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
> +
> +SRCBRANCH = "ls1-dev"
> +SRCREV = "de1cb4b3c16be38cf3981fd0afa143ad24283d07"
> +
> +COMPATIBLE_MACHINE = "(ls1021aqds|ls1021atwr)"
> --
> 1.8.3.2
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org <javascript:;>
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
[-- Attachment #2: Type: text/html, Size: 4300 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-fsl-arm][PATCH 3/6] Add kernel recipe for Layerscape1 support
2014-08-27 1:06 ` John Weber
@ 2014-08-27 2:30 ` zhenhua.luo
2014-08-27 3:23 ` zhenhua.luo
1 sibling, 0 replies; 10+ messages in thread
From: zhenhua.luo @ 2014-08-27 2:30 UTC (permalink / raw)
To: John Weber; +Cc: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 3422 bytes --]
Hi John,
Currently only ls1021a series is supported.
Best Regards,
Zhenhua
From: John Weber [mailto:rjohnweber@gmail.com]
Sent: Wednesday, August 27, 2014 9:07 AM
To: Luo Zhenhua-B19537
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH 3/6] Add kernel recipe for Layerscape1 support
Hi Zhenhua,
On Tuesday, August 26, 2014, Zhenhua Luo <zhenhua.luo@freescale.com<mailto:zhenhua.luo@freescale.com>> wrote:
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com<javascript:;>>
---
recipes-kernel/linux/linux-ls.inc | 30 ++++++++++++++++++++++++++++++
recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb> | 15 +++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 recipes-kernel/linux/linux-ls.inc
create mode 100644 recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb>
diff --git a/recipes-kernel/linux/linux-ls.inc b/recipes-kernel/linux/linux-ls.inc
Would this also apply to all platforms in the LS family, or just LS1021 family? If there will be a different kernel for the old Mindspeed parts that are being rebranded to LS1 (e.g.LS1024), it might be more appropriate to name this something more specific.
new file mode 100644
index 0000000..c1c976b
--- /dev/null
+++ b/recipes-kernel/linux/linux-ls.inc
@@ -0,0 +1,30 @@
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7<file:///\\COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7>"
+
+inherit kernel
+
+# Append a local version if it is defined
+SCMVERSION ?= "y"
+
+SRC_URI = "git://git.freescale.com/layerscape/ls1021a/linux.git;branch=${SRCBRANCH}<http://git.freescale.com/layerscape/ls1021a/linux.git;branch=$%7bSRCBRANCH%7d>"
+
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
+
+S = "${WORKDIR}/git"
+
+do_configure_prepend() {
+ # copy desired defconfig so we pick it up for the real kernel_do_configure
+ cp ${KERNEL_DEFCONFIG} ${B}/.config
+
+ # add git revision to the local version
+ if [ "${SCMVERSION}" = "y" ]; then
+ # append sdk version if SDK_VERSION is defined
+ sdkversion=''
+ if [ -n "${SDK_VERSION}" ]; then
+ sdkversion="-${SDK_VERSION}"
+ fi
+ head=`git rev-parse --verify --short HEAD 2> /dev/null`
+ printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion
+ fi
+}
+
diff --git a/recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb> b/recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb>
new file mode 100644
index 0000000..6715ccb
--- /dev/null
+++ b/recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb>
@@ -0,0 +1,15 @@
+SUMMARY = "Linux Kernel for Freescale layerscape platforms"
+DESCRIPTION = "Linux Kernel provided and supported by Freescale with focus on \
+Layerscape1 Family Boards. "
+
+require recipes-kernel/linux/linux-ls.inc
+require recipes-kernel/linux/linux-dtb.inc
+
+DEPENDS_append = " libgcc"
+KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
+KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
+
+SRCBRANCH = "ls1-dev"
+SRCREV = "de1cb4b3c16be38cf3981fd0afa143ad24283d07"
+
+COMPATIBLE_MACHINE = "(ls1021aqds|ls1021atwr)"
--
1.8.3.2
--
_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org<javascript:;>
https://lists.yoctoproject.org/listinfo/meta-freescale
[-- Attachment #2: Type: text/html, Size: 8923 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [meta-fsl-arm][PATCH 3/6] Add kernel recipe for Layerscape1 support
2014-08-27 1:06 ` John Weber
2014-08-27 2:30 ` zhenhua.luo
@ 2014-08-27 3:23 ` zhenhua.luo
1 sibling, 0 replies; 10+ messages in thread
From: zhenhua.luo @ 2014-08-27 3:23 UTC (permalink / raw)
To: John Weber; +Cc: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 3611 bytes --]
Hi John,
Please see my comments inline.
Best Regards,
Zhenhua
From: John Weber [mailto:rjohnweber@gmail.com]
Sent: Wednesday, August 27, 2014 9:07 AM
To: Luo Zhenhua-B19537
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH 3/6] Add kernel recipe for Layerscape1 support
Hi Zhenhua,
On Tuesday, August 26, 2014, Zhenhua Luo <zhenhua.luo@freescale.com<mailto:zhenhua.luo@freescale.com>> wrote:
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com<javascript:;>>
---
recipes-kernel/linux/linux-ls.inc | 30 ++++++++++++++++++++++++++++++
recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb> | 15 +++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 recipes-kernel/linux/linux-ls.inc
create mode 100644 recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb>
diff --git a/recipes-kernel/linux/linux-ls.inc b/recipes-kernel/linux/linux-ls.inc
Would this also apply to all platforms in the LS family, or just LS1021 family? If there will be a different kernel for the old Mindspeed parts that are being rebranded to LS1 (e.g.LS1024), it might be more appropriate to name this something more specific.
[Luo Zhenhua-B19537] Currently only ls1021aqds and ls1021atwr are supported, the same recipe will apply to all supported LS1 targets. I will update the name to linux-ls1 to differentiate with LS2. .
new file mode 100644
index 0000000..c1c976b
--- /dev/null
+++ b/recipes-kernel/linux/linux-ls.inc
@@ -0,0 +1,30 @@
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7<file:///\\COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7>"
+
+inherit kernel
+
+# Append a local version if it is defined
+SCMVERSION ?= "y"
+
+SRC_URI = "git://git.freescale.com/layerscape/ls1021a/linux.git;branch=${SRCBRANCH}<http://git.freescale.com/layerscape/ls1021a/linux.git;branch=$%7bSRCBRANCH%7d>"
+
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
+
+S = "${WORKDIR}/git"
+
+do_configure_prepend() {
+ # copy desired defconfig so we pick it up for the real kernel_do_configure
+ cp ${KERNEL_DEFCONFIG} ${B}/.config
+
+ # add git revision to the local version
+ if [ "${SCMVERSION}" = "y" ]; then
+ # append sdk version if SDK_VERSION is defined
+ sdkversion=''
+ if [ -n "${SDK_VERSION}" ]; then
+ sdkversion="-${SDK_VERSION}"
+ fi
+ head=`git rev-parse --verify --short HEAD 2> /dev/null`
+ printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion
+ fi
+}
+
diff --git a/recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb> b/recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb>
new file mode 100644
index 0000000..6715ccb
--- /dev/null
+++ b/recipes-kernel/linux/linux-ls_3.12.bb<http://linux-ls_3.12.bb>
@@ -0,0 +1,15 @@
+SUMMARY = "Linux Kernel for Freescale layerscape platforms"
+DESCRIPTION = "Linux Kernel provided and supported by Freescale with focus on \
+Layerscape1 Family Boards. "
+
+require recipes-kernel/linux/linux-ls.inc
+require recipes-kernel/linux/linux-dtb.inc
+
+DEPENDS_append = " libgcc"
+KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
+KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
+
+SRCBRANCH = "ls1-dev"
+SRCREV = "de1cb4b3c16be38cf3981fd0afa143ad24283d07"
+
+COMPATIBLE_MACHINE = "(ls1021aqds|ls1021atwr)"
--
1.8.3.2
--
_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org<javascript:;>
https://lists.yoctoproject.org/listinfo/meta-freescale
[-- Attachment #2: Type: text/html, Size: 9421 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-08-27 3:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-26 14:03 [meta-fsl-arm][PATCH 0/6] Add recipes for layerscape1 support Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 1/6] Add common configure files for Layerscape1 support Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 2/6] Add u-boot recipe " Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 3/6] Add kernel " Zhenhua Luo
2014-08-27 1:06 ` John Weber
2014-08-27 2:30 ` zhenhua.luo
2014-08-27 3:23 ` zhenhua.luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 4/6] Add rcw " Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 5/6] Add machine conf for ls1021atwr Zhenhua Luo
2014-08-26 14:03 ` [meta-fsl-arm][PATCH 6/6] Add machine conf file for ls1021aqds Zhenhua Luo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.