Browse Source

sysmobts-v1: Remove the v1 support of our old hardware config

I think the last device we sold was in 2011 and I am not aware
if anyone has used it for the last couple of years. Remove it
to lower the complexity of the builds.
neels/inmarsat
Holger Hans Peter Freyther 7 years ago
parent
commit
e8989345d2
  1. 1
      classes/femtobts_api.bbclass
  2. 15
      conf/machine/sysmobts-v1.conf
  3. 11
      recipes-bsp/base-files/files/sysmobts-v1/issue
  4. 11
      recipes-bsp/base-files/files/sysmobts-v1/issue.net
  5. 16
      recipes-bsp/init-ifupdown/init-ifupdown/sysmobts-v1/interfaces
  6. 1838
      recipes-bsp/linux/files/sysmobts-v1/defconfig
  7. 8
      recipes-bsp/linux/linux-sysmocom_3.2.bb
  8. 8
      recipes-bsp/linux/linux-sysmocom_git.bb
  9. 41
      recipes-bsp/watchdog/watchdog/sysmobts-v1/watchdog.conf
  10. 1
      recipes-bsp/watchdog/watchdog_sysmocom.inc
  11. 88
      recipes-config/openggsn-config/files/sysmobts-v1/ggsn.conf
  12. 23
      recipes-config/openggsn-config/files/sysmobts-v1/gprs_routing
  13. 43
      recipes-fixes/systemd/systemd/sysmobts-v1/system.conf
  14. 1
      recipes-fixes/systemd/systemd_sysmocom.inc
  15. 1
      recipes-sysmobts/femtobts-api/femtobts-api_git.bb
  16. 15
      recipes-sysmobts/firmware/sysmobts-firmware_2.7.bb
  17. 2
      recipes-sysmobts/ubl/ubl_git.bb
  18. 4
      recipes-sysmobts/uboot/u-boot_sysmocom.inc

1
classes/femtobts_api.bbclass

@ -1,4 +1,3 @@
# This will set BTS_HW_VERSION depending on the machine
PACKAGE_ARCH = "${MACHINE_ARCH}"
BTS_HW_VERSION_sysmobts-v1 = "-DHW_SYSMOBTS_V1"
BTS_HW_VERSION_sysmobts-v2 = "-DHW_SYSMOBTS_V2"

15
conf/machine/sysmobts-v1.conf

@ -1,15 +0,0 @@
#@TYPE: Machine
#@NAME: sysmocom - systems for mobile communications GmbH GSM BTS
#@DESCRIPTION: sysmocom - systems for mobile communications GmbH GSM BTS
# Make sure we build these too
EXTRA_IMAGEDEPENDS = "dvnixload-native ubl u-boot sysmobts-firmware"
EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 --pagesize=0x800 --no-cleanmarkers --pad=0x2000000 -n"
# ubifs config
MKUBIFS_ARGS = "-m 2048 -e 129024 -c 400"
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
IMAGE_FSTYPES ?= "tar.bz2 jffs2"
require conf/machine/include/sysmobts.inc

11
recipes-bsp/base-files/files/sysmobts-v1/issue

@ -1,11 +0,0 @@
Welcome to
____ _______ _____
| _ \\__ __/ ____|
___ _ _ ___ _ __ ___ ___ | |_) | | | | (___
/ __| | | / __| '_ ` _ \\ / _ \\| _ < | | \\___ \\
\\__ \\ |_| \\__ \\ | | | | | (_) | |_) | | | ____) |
|___/\\__, |___/_| |_| |_|\\___/|____/ |_| |_____/
__/ |
|___/ by sysmocom GmbH

11
recipes-bsp/base-files/files/sysmobts-v1/issue.net

@ -1,11 +0,0 @@
Welcome to
____ _______ _____
| _ \\__ __/ ____|
___ _ _ ___ _ __ ___ ___ | |_) | | | | (___
/ __| | | / __| '_ ` _ \\ / _ \\| _ < | | \\___ \\
\\__ \\ |_| \\__ \\ | | | | | (_) | |_) | | | ____) |
|___/\\__, |___/_| |_| |_|\\___/|____/ |_| |_____/
__/ |
|___/ by sysmocom GmbH

16
recipes-bsp/init-ifupdown/init-ifupdown/sysmobts-v1/interfaces

@ -1,16 +0,0 @@
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
#eth0 is our gateway to the network. ifplugd will run ifup/ifdown for us
iface eth0 inet dhcp
#eth0 will provide dhcp to clients
#auto eth0:1
#iface eth0:1 inet static
# address 10.42.123.1
# netmask 255.255.255.0
# network 10.42.123.0

1838
recipes-bsp/linux/files/sysmobts-v1/defconfig

File diff suppressed because it is too large

8
recipes-bsp/linux/linux-sysmocom_3.2.bb

@ -4,9 +4,6 @@ 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"
@ -27,12 +24,9 @@ SRC_URI = "git://git.sysmocom.de/sysmo-bts/linux.git;protocol=git;branch=${BRANC
file://defconfig"
S = "${WORKDIR}/git"
COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2|sysmobts-2050|sysmocom-odu)"
COMPATIBLE_MACHINE = "(sysmobts-v2|sysmobts-2050|sysmocom-odu)"
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() {

8
recipes-bsp/linux/linux-sysmocom_git.bb

@ -7,9 +7,6 @@ DEPENDS += "bc-native"
LINUX_VERSION ?= "3.10.76"
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"
@ -23,12 +20,9 @@ SRC_URI = "git://git.sysmocom.de/sysmo-bts/linux.git;protocol=git;branch=linux-3
S = "${WORKDIR}/git"
COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2|sysmocom-bsc)"
COMPATIBLE_MACHINE = "(sysmobts-v2|sysmocom-bsc)"
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() {

41
recipes-bsp/watchdog/watchdog/sysmobts-v1/watchdog.conf

@ -1,41 +0,0 @@
#ping = 172.31.14.1
#ping = 172.26.1.255
#interface = eth0
#file = /var/log/messages
#change = 1407
# Uncomment to enable test. Setting one of these values to '0' disables it.
# These values will hopefully never reboot your machine during normal use
# (if your machine is really hung, the loadavg will go much higher than 25)
#max-load-1 = 24
#max-load-5 = 18
#max-load-15 = 12
# Note that this is the number of pages!
# To get the real size, check how large the pagesize is on your machine.
#min-memory = 1
#repair-binary = /usr/sbin/repair
#repair-timeout =
#test-binary =
#test-timeout =
watchdog-device = /dev/watchdog
# Defaults compiled into the binary
#temperature-device =
#max-temperature = 120
# Defaults compiled into the binary
#admin = root
#interval = 1
#logtick = 1
#log-dir = /var/log/watchdog
# This greatly decreases the chance that watchdog won't be scheduled before
# your machine is really loaded
realtime = yes
priority = 1
# Check if syslogd is still running by enabling the following line
#pidfile

1
recipes-bsp/watchdog/watchdog_sysmocom.inc

@ -4,7 +4,6 @@ PRINC = "9"
inherit update-rc.d
SRC_URI_append_sysmobts-v1 = " file://watchdog.conf file://init"
SRC_URI_append_sysmobts-v2 = " file://watchdog.conf file://init"
SRC_URI_append_sysmobts-2050 = " file://watchdog.conf file://init"

88
recipes-config/openggsn-config/files/sysmobts-v1/ggsn.conf

@ -1,88 +0,0 @@
##############################################################################
#
# Sample ggsn configuration file
#
##############################################################################
# TAG: fg
# Include this flag if process is to run in the foreground
#
#fg
# TAG: debug
# Include this flag to include debug information.
#debug
# TAG: conf
# Configuration file to use. This file is the configuration file,
# so changing this parameter in the configuration file does not make
# sense. Use it on the command line instead.
# TAG: pidfile
# File to store information about the process id of the program.
# The program must have write access to this file/directory.
#pidfile /var/run/ggsn.pid
# TAG: statedir
# Directory to use for nonvolatile storage.
# The program must have write access to this directory.
#statedir /var/lib/ggsn/
# TAG: listen
# Specifies the local IP address to listen to
#listen 10.0.0.240
listen 10.23.123.1
# TAG: net
# IP network address of external packet data network
# Used to set up network interface.
net 10.23.42.0/24
# TAG: ipup
# Script executed after network interface has been brought up.
# Executed with the following parameters: <devicename> <ip address>
#ipup /etc/ggsn/ip-up
# TAG: ipdown
# Script executed after network interface has been taken down.
# Executed with the following parameters: <devicename> <ip address>
#ipdown /etc/ggsn/ip-down
# TAG: dynip
# Dynamic IP address pool.
# Used for allocation of dynamic IP address when address is not given
# by HLR.
# If this option is not given then the net option is used as a substitute.
#dynip 192.168.0.0/24
# TAG: statip
# Use of this tag is currently UNSUPPORTED
# Static IP address pool.
# Used for allocation of static IP address by means of HLR.
#statip 192.168.1.0/24
# TAG: pcodns1
# Protocol configuration option domain name system server 1.
pcodns1 8.8.8.8
# TAG: pcodns2
# Protocol configuration option domain name system server 2.
#pcodns2 0.0.0.0
# TAG: timelimit
# Exit after timelimit seconds.
# Setting timelimit to zero will cause the program not to exit.
#timelimit 0
# TAG: apn
# Use of this tag is EXPERIMENTAL
# Access point name to connect to when run in client mode.
#apn internet
# TAG: qos
# Use of this tag is EXPERIMENTAL
# Requested Quality of Service used when run in client mode.
# 3 bytes corresponding to ????
#qos 0x0b921f

23
recipes-config/openggsn-config/files/sysmobts-v1/gprs_routing

@ -1,23 +0,0 @@
#!/bin/sh
NAME=gprs_routing
set -e
case "$1" in
start)
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
echo "Enabled masquerading"
;;
stop)
echo 0 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
esac
exit 0

43
recipes-fixes/systemd/systemd/sysmobts-v1/system.conf

@ -1,43 +0,0 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# See systemd.conf(5) for details
[Manager]
#LogLevel=info
#LogTarget=journal-or-kmsg
#LogColor=yes
#LogLocation=no
#DumpCore=yes
#CrashShell=no
#ShowStatus=yes
#CrashChVT=1
#CPUAffinity=1 2
#DefaultControllers=cpu
#DefaultStandardOutput=journal
#DefaultStandardError=inherit
#JoinControllers=cpu,cpuacct,cpuset net_cls,net_prio
RuntimeWatchdogSec=45
ShutdownWatchdogSec=45
#CapabilityBoundingSet=
#TimerSlackNSec=
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
#DefaultLimitSTACK=
#DefaultLimitCORE=
#DefaultLimitRSS=
#DefaultLimitNOFILE=
#DefaultLimitAS=
#DefaultLimitNPROC=
#DefaultLimitMEMLOCK=
#DefaultLimitLOCKS=
#DefaultLimitSIGPENDING=
#DefaultLimitMSGQUEUE=
#DefaultLimitNICE=
#DefaultLimitRTPRIO=
#DefaultLimitRTTIME=

1
recipes-fixes/systemd/systemd_sysmocom.inc

@ -8,7 +8,6 @@ SRC_URI += "file://journald.conf \
file://0001-Feature-switch-ListenDatagram-from-run-systemd-journ.patch \
"
SRC_URI_append_sysmobts-v1 = " file://system.conf"
SRC_URI_append_sysmobts-v2 = " file://system.conf"
SRC_URI_append_sysmocom-odu = " file://system.conf"

1
recipes-sysmobts/femtobts-api/femtobts-api_git.bb

@ -5,7 +5,6 @@ LICENSE = "CLOSED"
SRC_URI = "git://git.sysmocom.de/sysmo-bts/layer1-api.git;protocol=git;branch=master"
SRCREV = "84e0cf46511f256ef84c0211f3f39a642acceb33"
SRCREV_sysmobts-v2 = "84e0cf46511f256ef84c0211f3f39a642acceb33"
SRCREV_sysmobts-v1 = "4dde9443e2aa11868e46a67529cb5ac45462699c"
PV = "${SRCREV}+git${SRCPV}"
PR = "r5"
S = "${WORKDIR}/git"

15
recipes-sysmobts/firmware/sysmobts-firmware_2.7.bb

@ -1,15 +0,0 @@
COMPATIBLE_MACHINE = "sysmobts-v1"
FIRMWARE-VERSION = "femtobts_v${PV}"
PR = "r2.${INC_PR}"
require ${PN}.inc
do_install() {
install -d ${D}/lib/firmware/
install -m 0666 ${S}/Firmware/Dsp/femtobts.out ${D}/lib/firmware/sysmobts-v1.out
install -m 0666 ${S}/Firmware/Fpga/femtobts.bit ${D}/lib/firmware/sysmobts-v1.bit
}
FILES_${PN} = "/lib/firmware/sysmobts-v1*"

2
recipes-sysmobts/ubl/ubl_git.bb

@ -8,7 +8,6 @@ LIC_FILES_CHKSUM = "file://ubl.c;beginline=1;endline=22;md5=806283bb3c475d9082e4
SRC_URI = "git://git.sysmocom.de/sysmo-bts/ubl;protocol=git;branch=master"
SRCREV = "0974846c2d2eb506d1443ee338aad4400f59bc70"
SRCREV_sysmobts-v1 = "d04f24974a5b1e24cb9414ebc2e84a91848982c4"
PV = "v0.2.11+git${SRCPV}"
PR = "r3"
S = "${WORKDIR}/git"
@ -20,7 +19,6 @@ EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
UBL_IMAGE ?= "ubl-${MACHINE}-${PKGV}-${PKGR}.elf"
UBL_SYMLINK ?= "ubl-${MACHINE}.elf"
BOARD_NAME_sysmobts-v1 = "sysmobts_v1"
BOARD_NAME_sysmobts-v2 = "sysmobts_v2"
do_compile() {

4
recipes-sysmobts/uboot/u-boot_sysmocom.inc

@ -1,6 +1,5 @@
SRC_URI = "git://git.sysmocom.de/sysmo-bts/u-boot;branch=v2011.12;protocol=git"
SRCREV = "71497512280c9eac9be739ae0ca20eb21556bb92"
SRCREV_sysmobts-v1 = "40d74c99ac9d741857d1298617b186b1d4e148de"
PV = "v2011.12+git${SRCPV}"
S = "${WORKDIR}/git"
@ -8,10 +7,9 @@ PRINC = "13"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=22;md5=5ba4218ac89af7846802d0348df3fb90"
UBOOT_MACHINE_sysmobts-v1 = "davinci_sysmobts_v1_config"
UBOOT_MACHINE_sysmobts-v2 = "davinci_sysmobts_v2_config"
UBOOT_MACHINE_sysmobts-2050 = "davinci_sysmobts_v2_config"
COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2|sysmobts-2050)"
COMPATIBLE_MACHINE = "(sysmobts-v2|sysmobts-2050)"
UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}"
UBOOT_SYMLINK = "u-boot-${MACHINE}"

Loading…
Cancel
Save