Compare commits

...

11 Commits

Author SHA1 Message Date
Harald Welte 6edd534be4 OWHW: Update linux (phy address fix in dt; dummy.ko with mdio bus support) 2016-06-23 00:42:15 +02:00
Harald Welte 07f72f2614 OWHW: update linux kernel for v2 (gpio-cs/omap2-spi, etc.) 2016-06-23 00:42:15 +02:00
Harald Welte 82671cda21 OWHW: build new linux kernel version with dts for v2 2016-06-23 00:42:15 +02:00
Harald Welte e402b3e564 OWHW: Update defconfig with requirements for v2 hardware 2016-06-23 00:42:15 +02:00
Harald Welte 59185c8de3 OWHW: update to git version with 10kHz I2C bus speed 2016-06-23 00:42:15 +02:00
Harald Welte 37cd96f46b OWHW defconfig: No MMC, no PPS, add I2C and MDIO bit-banging 2016-06-23 00:42:15 +02:00
Harald Welte f525b5cf6b OWHW: fix build of linux-sysmocom uImage LOADADDR 2016-06-23 00:42:15 +02:00
Harald Welte e1dd22818d rauc: support OWHW 2016-06-23 00:42:15 +02:00
Harald Welte 6e802da190 OWHW: Add kernel recipe 2016-06-23 00:42:15 +02:00
Holger Hans Peter Freyther afc1035dc2 linux-sysmocom: Re-enable the standard usb modules
Enable the xt-log kernel module and build the wifi drivers
as modules again. We don't need the backports right now.
2016-06-23 00:42:15 +02:00
Jan Luebbe 3d51210f9b linux-sysmocom: switch all systems to 4.1.4
[hfreyther: Create a new file for 4.1]

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2016-06-23 00:42:15 +02:00
11 changed files with 5743 additions and 1595 deletions

View File

@ -32,6 +32,7 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
# Go back to prefer our kernel
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
KERNEL_IMAGETYPE = "uImage"
KERNEL_DEVICETREE = "am335x-gsmk-owhw.dtb"
PREFERRED_PROVIDER_virtual/bootloader = "barebox-gsmk-owhw"
EXTRA_IMAGEDEPENDS += "barebox-gsmk-owhw"

View File

@ -1,7 +1,7 @@
TARGET_ARCH = "arm"
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
PREFERRED_VERSION_linux-sysmocom = "3.10.84+git%"
PREFERRED_VERSION_linux-sysmocom = "4.1.4+git%"
PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
PREFERRED_VERSION_u-boot = "git"
@ -26,7 +26,6 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
kernel-module-dspdl-dm644x \
kernel-module-fpgadl \
kernel-module-fpgadl-par \
kernel-module-leds-gpio \
kernel-module-msgqueue \
kernel-module-nls-ascii \
kernel-module-nls-utf8 \

View File

@ -33,6 +33,7 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
# Go back to prefer our kernel
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
KERNEL_IMAGETYPE = "uImage"
KERNEL_DEVICETREE = "am335x-sysmocom-odu.dtb"
PREFERRED_PROVIDER_virtual/bootloader = "barebox-sysmocom-odu"
EXTRA_IMAGEDEPENDS += "barebox-sysmocom-odu"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -42,4 +42,4 @@ module_conf_mISDN_l1loop = "options mISDN_l1loop pri=1 nchannel=20"
KERNEL_MODULE_PROBECONF_append = "mISDN_l1loop mISDN_dsp"
KERNEL_MODULE_AUTOLOAD += "mISDN_l1loop mISDN_dsp"
DEFAULT_PREFERENCE = "20"
DEFAULT_PREFERENCE = "-1"

View File

@ -0,0 +1,62 @@
inherit kernel
require linux-sysmocom.inc
require recipes-kernel/linux/linux-dtb.inc
DEPENDS += "bc-native"
# ATTENTION: Update linux-backports PR on version change. In Dora the
# reverse dependency tracking for the kernel doesn't appear to work. So
# please bump the PR on version changes!
# at versions changes do not forget to update conf/machine/include/sysmobts.inc too
LINUX_VERSION ?= "4.1.4"
LINUX_VERSION_EXTENSION ?= "-sysmocom-${LINUX_KERNEL_TYPE}"
# Overrides for the sysmocom bts v2
BTS_FIRMWARE_NAME_sysmobts-v2 = "sysmobts-v2"
SRCREV = "769d02cae34833349c221c97841d27d21767dfbd"
PR = "r49"
PV = "${LINUX_VERSION}+git${SRCPV}"
SRC_URI = "git://git.sysmocom.de/sysmo-bts/linux.git;protocol=git;branch=linux-4.1.4 \
file://defconfig"
S = "${WORKDIR}/git"
COMPATIBLE_MACHINE = "(sysmobts-v2|sysmocom-bsc|sysmocom-bsc|sysmocom-odu|gsmk-owhw)"
EXTRA_OEMAKE += "KALLSYMS_EXTRA_PASS=1"
EXTRA_OEMAKE_append_sysmocom-odu = " LOADADDR=0x81000000"
EXTRA_OEMAKE_append_gsmk-owhw = " LOADADDR=0x81000000"
require linux-tools.inc
do_configure() {
install -m 0644 ${WORKDIR}/defconfig ${B}/.config
oe_runmake -C ${S} O=${B} oldconfig
}
# autoload defaults (alphabetically sorted)
module_autoload_davinci_mmc = "davinci_mmc"
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"
KERNEL_MODULE_PROBECONF_append = "davinci_mmc dspdl_dm644x fpgadl_par leds-gpio mmc_block msgqueue rtfifo"
KERNEL_MODULE_AUTOLOAD_append = "davinci_mmc dspdl_dm644x fpgadl_par leds-gpio mmc_block msgqueue 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"
DEFAULT_PREFERENCE = "-1"

View File

@ -32,6 +32,9 @@ do_fetch() {
cp "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin" "${S}/fs/kernel"
cp "${DEPLOY_DIR_IMAGE}/image-rauc-rescue-initramfs-${MACHINE}.cpio.xz" "${S}/fs/initramfs"
}
do_fetch_append_sysmocom-odu() {
cp "${DEPLOY_DIR_IMAGE}/uImage-am335x-sysmocom-odu.dtb" "${S}/fs/devicetree"
}
do_fetch_append_gsmk-owhw() {
cp "${DEPLOY_DIR_IMAGE}/uImage-am335x-gsmk-owhw.dtb" "${S}/fs/devicetree"

View File

@ -0,0 +1,41 @@
From 4cc63588211df7bf328e55820cfe19b56ea776b6 Mon Sep 17 00:00:00 2001
From: Jan Luebbe <jluebbe@debian.org>
Date: Sat, 30 May 2015 20:00:10 +0200
Subject: [PATCH 3/3] hardcode symocom-odu values
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
---
src/barebox-state.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/barebox-state.c b/src/barebox-state.c
index f56275f..002ee5c 100644
--- a/src/barebox-state.c
+++ b/src/barebox-state.c
@@ -1738,6 +1738,7 @@ static struct state *state_get(const char *name)
return ERR_CAST(state);
}
+#if 0
partition_node = of_parse_phandle(node, "backend", 0);
if (!partition_node) {
fprintf(stderr, "cannot find backend node in %s\n", node->full_name);
@@ -1750,9 +1751,14 @@ static struct state *state_get(const char *name)
return ERR_PTR(ret);
}
+#endif
+ devpath = "/sys/bus/i2c/devices/1-0050/eeprom";
+ offset = 0xc0;
+ size = 0x40;
+
of_property_read_string(node, "backend-type", &backend_type);
if (!strcmp(backend_type, "raw"))
- ret = state_backend_raw_file(state, partition_node->full_name, devpath, offset, size);
+ ret = state_backend_raw_file(state, "/i2c/eeprom@50/partition@0", devpath, offset, size);
else
fprintf(stderr, "invalid backend type: %s\n", backend_type);
--
2.1.4