diff --git a/conf/machine/include/sysmobts.inc b/conf/machine/include/sysmobts.inc index b0f609c..e3240b8 100644 --- a/conf/machine/include/sysmobts.inc +++ b/conf/machine/include/sysmobts.inc @@ -1,6 +1,7 @@ TARGET_ARCH = "arm" PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom" +PREFERRED_VERSION_linux-sysmocom = "${@ dict([('1.5','3.10.7+gitAUTOINC+a1a9f198c2'), ('1.1.2','3.2.48+git2+bcc4fa827be7f59486ff305d664b42a142025f9b')])[d.getVar('DISTRO_VERSION', True)]}" PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross" PREFERRED_VERSION_u-boot = "git" diff --git a/recipes-bsp/linux/files/sysmobts-v2/defconfig b/recipes-bsp/linux/files/sysmobts-v2/defconfig index 14692c8..a4109aa 100644 --- a/recipes-bsp/linux/files/sysmobts-v2/defconfig +++ b/recipes-bsp/linux/files/sysmobts-v2/defconfig @@ -1417,7 +1417,8 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y # CONFIG_ACCESSIBILITY is not set CONFIG_RTC_LIB=y # CONFIG_RTC_CLASS is not set -# CONFIG_DMADEVICES is not set +CONFIG_DMADEVICES=y +CONFIG_TI_EDMA=y # CONFIG_AUXDISPLAY is not set # CONFIG_UIO is not set @@ -1691,7 +1692,8 @@ CONFIG_STACKTRACE=y # CONFIG_DEBUG_STACK_USAGE is not set # CONFIG_DEBUG_KOBJECT is not set CONFIG_DEBUG_BUGVERBOSE=y -# CONFIG_DEBUG_INFO is not set +CONFIG_DEBUG_INFO=y +# is not set # CONFIG_DEBUG_VM is not set # CONFIG_DEBUG_WRITECOUNT is not set # CONFIG_DEBUG_MEMORY_INIT is not set diff --git a/recipes-bsp/linux/linux-sysmocom_3.2.bb b/recipes-bsp/linux/linux-sysmocom_3.2.bb new file mode 100644 index 0000000..51441b4 --- /dev/null +++ b/recipes-bsp/linux/linux-sysmocom_3.2.bb @@ -0,0 +1,56 @@ +inherit kernel +require linux-sysmocom.inc + +LINUX_VERSION ?= "3.2.48" +LINUX_VERSION_EXTENSION ?= "-sysmocom-${LINUX_KERNEL_TYPE}" + +# Overrides for the sysmocom bts v1 +BTS_FIRMWARE_NAME_sysmobts-v1 = "sysmobts-v1" + +# Overrides for the sysmocom bts v2 +BTS_FIRMWARE_NAME_sysmobts-v2 = "sysmobts-v2" +BTS_FIRMWARE_NAME_sysmobts-2050 = "sysmobts-v2" + +SRCREV = "bcc4fa827be7f59486ff305d664b42a142025f9b" + +PR = "r31" +PV = "${LINUX_VERSION}+git${SRCPV}" + +SRC_URI = "git://git.sysmocom.de/sysmo-bts/linux.git;protocol=git;branch=v3.2 \ + file://mISDN_loop.patch;patch=1 \ + file://defconfig" +S = "${WORKDIR}/git" + +COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2|sysmobts-2050)" +EXTRA_OEMAKE += "KALLSYMS_EXTRA_PASS=1" + +# we do not want to have the kernel image inside the kernel +FILES_kernel-image_sysmobts-v1 = "" + +require linux-tools.inc + +do_configure() { + install -m 0644 ${WORKDIR}/defconfig ${S}/.config + oe_runmake oldconfig +} + +# autoload defaults (alphabetically sorted) +module_autoload_davinci_mmc = "davinci_mmc" +module_autoload_davinci_wdt = "davinci_wdt" +module_autoload_dspdl_dm644x = "dspdl_dm644x" +module_autoload_fpgadl_par = "fpgadl_par" +module_autoload_leds-gpio = "leds-gpio" +module_autoload_mmc_block = "mmc_block" +module_autoload_msgqueue = "msgqueue" +module_autoload_rtfifo = "rtfifo" + +# module configs (alphabetically sorted) +module_conf_dspdl_dm644x = "options dspdl_dm644x fw_name=${BTS_FIRMWARE_NAME}.out debug=0" +module_conf_fpgadl_par = "options fpgadl_par fw_name=${BTS_FIRMWARE_NAME}.bit" +module_conf_msgqueue = "options msgqueue fw_name=${BTS_FIRMWARE_NAME}.out" +module_conf_rtfifo = "options rtfifo fw_name=${BTS_FIRMWARE_NAME}.out" + +RDEPENDS_kernel-module-dspdl-dm644x += "sysmobts-firmware" +RDEPENDS_kernel-module-fpgadl-par += "sysmobts-firmware" +RDEPENDS_kernel-module-msgqueue += "sysmobts-firmware" +RDEPENDS_kernel-module-rtfifo += "sysmobts-firmware" diff --git a/recipes-bsp/linux/linux-sysmocom_git.bb b/recipes-bsp/linux/linux-sysmocom_git.bb index 51441b4..7ef8427 100644 --- a/recipes-bsp/linux/linux-sysmocom_git.bb +++ b/recipes-bsp/linux/linux-sysmocom_git.bb @@ -1,7 +1,7 @@ inherit kernel require linux-sysmocom.inc -LINUX_VERSION ?= "3.2.48" +LINUX_VERSION ?= "3.10.7" LINUX_VERSION_EXTENSION ?= "-sysmocom-${LINUX_KERNEL_TYPE}" # Overrides for the sysmocom bts v1 @@ -11,14 +11,18 @@ BTS_FIRMWARE_NAME_sysmobts-v1 = "sysmobts-v1" BTS_FIRMWARE_NAME_sysmobts-v2 = "sysmobts-v2" BTS_FIRMWARE_NAME_sysmobts-2050 = "sysmobts-v2" -SRCREV = "bcc4fa827be7f59486ff305d664b42a142025f9b" +# at versions changes do not forget to update conf/machine/include/sysmobts.inc too +SRCREV = "a1a9f198c27c6e10cd6d5e5d18f2534cc7d6accd" -PR = "r31" +PR = "r31.3" PV = "${LINUX_VERSION}+git${SRCPV}" -SRC_URI = "git://git.sysmocom.de/sysmo-bts/linux.git;protocol=git;branch=v3.2 \ - file://mISDN_loop.patch;patch=1 \ +SRC_URI = "git://git.sysmocom.de/sysmo-bts/linux.git;protocol=git;branch=v3.10 \ file://defconfig" + +# tmp disabled.. patch needs to be rebased for 3.10 +# file://mISDN_loop.patch;patch=1 + S = "${WORKDIR}/git" COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2|sysmobts-2050)"