U-boot: Include UART SPL in deploy package
PATCH 1/4 U-boot: Include UART SPL in deploy package
MLO can not be used to boot from UART, so include both MLO and uart spl in deploy package.
Signed-off-by Carlos Hernandez <[email protected]>
--- meta-arago-distro/recipes-bsp/u-boot/spl-uart.inc | 27 ++++++++++++++++++++ .../u-boot/u-boot_2012.10-psp05.06.00.00.bb | 4 ++- 2 files changed, 30 insertions(+), 1 deletions(-) create mode 100644 meta-arago-distro/recipes-bsp/u-boot/spl-uart.inc
meta-arago-distro/recipes-bsp/u-boot/spl-uart.inc new file +27 -0
@@ -0,0 +1,27 @@ +# SECOND PROGRAM LOADER image meant to be loaded from UART. +SPL_UART_BINARY ?= "" +SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" +SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" + +do_install_append () { + if [ "x${SPL_UART_BINARY}" != "x" ] + then + install ${S}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} + ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} + fi +} + +FILES_${PN} = "/boot ${sysconfdir}" +FILESPATH =. "${FILE_DIRNAME}/u-boot-git/${MACHINE}:" + +do_deploy_append () { + cd ${DEPLOYDIR} + if [ "x${SPL_UART_BINARY}" != "x" ] + then + install ${S}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} + rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} + ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} + ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} + fi +} +
meta-arago-distro/recipes-bsp/u-boot/u-boot_2012.10-psp05.06.00.00.bb +3 -1
@@ -1,5 +1,6 @@ # Use the version of u-boot.inc in oe-core not the meta-ti version require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc +require spl-uart.inc # Reset OEMAKE. Current u-boot.inc sets -02 which breaks this version of u-boot's build. # This issue was fixed in oe-core master by removing the -02 statement.
@@ -23,7 +24,7 @@ DEFAULT_PREFERENCE = "-1" PACKAGE_ARCH = "${MACHINE_ARCH}" -PR = "r7+gitr${SRCPV}" +PR = "r8+gitr${SRCPV}" SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;branch=${BRANCH} \ "
@@ -38,3 +39,4 @@ UBOOT_SUFFIX = "img" # Set the name of the SPL that will built so that it is also packaged with u-boot. SPL_BINARY = "MLO" +SPL_UART_BINARY = "u-boot-spl.bin"
Signature · 1 line
1.7.0.4
PATCH 2/4 ltp-ddt: avoid compilation of old test code
Do not include ltp-ddt test apps that are not compatible with recent Linux kernel versions (3.7 or higher).
Include ltp-ddt binaries directory in PATH enviroment variable.
Signed-off-by Carlos Hernandez <[email protected]>
--- .../0001-tmp-disable-fbdev-i2c-rtc-edma.patch | 41 ++++++++++++++++++++ .../ltp-ddt/ltp-ddt_0.0.4.bbappend | 14 +++++++ 2 files changed, 55 insertions(+), 0 deletions(-) create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-tmp-disable-fbdev-i2c-rtc-edma.patch
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-tmp-disable-fbdev-i2c-rtc-edma.patch new file +41 -0
@@ -0,0 +1,41 @@ +From 98469baf75d71d5f91419ac1ae6087b1771c6a3c Mon Sep 17 00:00:00 2001 +From: Carlos Hernandez <[email protected]> +Date: Fri, 30 Nov 2012 10:27:02 -0500 +Subject: [PATCH] tmp disable fbdev,i2c,rtc,edma + +Signed-off-by: Carlos Hernandez <[email protected]> +--- + Makefile | 2 +- + testcases/ddt/Makefile | 4 ++++ + 2 files changed, 5 insertions(+), 1 deletions(-) + +diff --git a/Makefile b/Makefile +index 054ac6d..45471f0 100644 +--- a/Makefile ++++ b/Makefile +@@ -216,7 +216,7 @@ endif + + ## Compile Modules + MODULES_TO_BUILD := +-PLATFORMSwEDMA := am180x-evm|am181x-evm|am389x-evm|am387x-evm|am335x-evm|dm385-evm|dm813x-evm|da830-omapl137-evm|am170x-evm ++PLATFORMSwEDMA := am180x-evm|am181x-evm|am389x-evm|am387x-evm|dm385-evm|dm813x-evm|da830-omapl137-evm|am170x-evm + + ifneq (,$(findstring $(PLATFORM),$(PLATFORMSwEDMA))) + MODULES_TO_BUILD += modules_edma +diff --git a/testcases/ddt/Makefile b/testcases/ddt/Makefile +index fc1f4b1..e2acf3e 100644 +--- a/testcases/ddt/Makefile ++++ b/testcases/ddt/Makefile +@@ -84,6 +84,10 @@ FILTER_OUT_DIRS += v4l2_display_davinci_test_suite + endif + + ifeq ($(PLATFORM),am335x-evm) ++FILTER_OUT_DIRS += edma_test_suite ++FILTER_OUT_DIRS += rtc_test_suite ++FILTER_OUT_DIRS += i2c_test_suite ++FILTER_OUT_DIRS += fbdev_display_test_suite + FILTER_OUT_DIRS += v4l2_capture_test_suite + FILTER_OUT_DIRS += v4l2_display_test_suite + FILTER_OUT_DIRS += mc_test_suite +-- +1.7.0.4
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bbappend +14 -0
@@ -1,3 +1,6 @@ +# look for files in this layer first +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + PR_append = "-arago0+gitr${SRCPV}" # Auto rev so we pick up the latest changes
@@ -30,3 +33,14 @@ do_make_scripts() { addtask make_scripts before do_compile do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" do_make_scripts[deptask] = "do_populate_sysroot" + +# Temp patch to avoid compilation issues w/ 3.7 kernel +SRC_URI += " file://0001-tmp-disable-fbdev-i2c-rtc-edma.patch" + +pkg_postinst_ltp-ddt() { + #!/bin/sh -e + if [ x"$D" = "x" ]; then + echo "PATH=\$PATH:/opt/ltp/testcases/bin:/opt/ltp/testcases/bin/ddt" >> /etc/profile + echo "export PATH" >> /etc/profile + fi +}
Signature · 1 line
1.7.0.4
PATCH 3/4 Define arago-test-image
In reply to Carlos HernandezSigned-off-by Carlos Hernandez <[email protected]>
--- .../recipes-core/images/arago-test-image.bb | 21 ++++++++++++++++++++ .../packagegroup-arago-test-addons.bb | 20 +++++++++++++++++++ 2 files changed, 41 insertions(+), 0 deletions(-) create mode 100644 meta-arago-distro/recipes-core/images/arago-test-image.bb create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test-addons.bb
meta-arago-distro/recipes-core/images/arago-test-image.bb new file +21 -0
@@ -0,0 +1,21 @@ +# Arago System Test image +# gives you test applications +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" + +require arago-image.inc + +COMPATIBLE_MACHINE = "omap3|dm365|omapl138|ti813x|ti814x|ti816x|omap4|ti33x" + +IMAGE_INSTALL += "\ + packagegroup-arago-base \ + packagegroup-arago-console \ + packagegroup-arago-base-tisdk \ + packagegroup-arago-tisdk-crypto \ + packagegroup-arago-tisdk-multimedia \ + packagegroup-arago-tisdk-addons \ + packagegroup-arago-test \ + packagegroup-arago-test-addons \ + " + +export IMAGE_BASENAME = "arago-test-image"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test-addons.bb new file +20 -0
@@ -0,0 +1,20 @@ +DESCRIPTION = "Task to install additional utilities/demos for test image" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +PR = "r0" + +ALLOW_EMPTY = "1" + +inherit packagegroup + +TEST_ADDONS = " \ + bridge-utils \ + " + +TEST_ADDONS_TI = " \ + " + +RDEPENDS_${PN} = "\ + ${TEST_ADDONS} \ + ${TEST_ADDONS_TI} \ + "
Signature · 1 line
1.7.0.4
PATCH 4/4 Define linux-ti-staging recipe
In reply to Carlos HernandezTo build kernel from TI's integration tree.
Currently recipe only supports am335x devices.
Signed-off-by Carlos Hernandez <[email protected]>
--- .../recipes-kernel/linux/linux-ti-staging_git.bb | 48 ++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 meta-arago-distro/recipes-kernel/linux/linux-ti-staging_git.bb
meta-arago-distro/recipes-kernel/linux/linux-ti-staging_git.bb new file +48 -0
@@ -0,0 +1,48 @@ +SECTION = "kernel" +DESCRIPTION = "Linux kernel for TI devices" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" +KERNEL_IMAGETYPE = "uImage" + +inherit kernel +require recipes-kernel/linux/linux-dtb.inc + +# Stage the power management firmware before building the kernel +DEPENDS += "am33x-cm3" + +KERNEL_DEVICETREE_am335x-evm = "arch/arm/boot/dts/am335x-evm.dts" +KERNEL_DEVICETREE_beaglebone = "arch/arm/boot/dts/am335x-bone.dts" + +COMPATIBLE_MACHINE = "ti33x" + +S = "${WORKDIR}/git" + +BRANCH = "TI-Linux-3.8-rc6" + +SRCREV = "94a9ccd79a7c7d8c02b684927a00ea1cbee94f34" +PV = "3.8" + +# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild +MACHINE_KERNEL_PR_append = "r1+gitr${SRCPV}" + +KVER = "${PV}" +PSPREL = "-prerelease" + +# Override the SRC_URI from the linux-omap3.inc file +SRC_URI = "git://gitorious.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH}" + +do_setup_defconfig() { + : +} + +do_configure() { + make ARCH=arm omap2plus_defconfig +} + +# Copy the am33x-cm3 firmware if it is available +do_compile_prepend() { + if [ -e "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" ] + then + cp "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" "${S}/firmware" + fi +}
Signature · 1 line
1.7.0.4