Commit Graph

666 Commits

Author SHA1 Message Date
Harald Welte 979f16d1b1 odu: fix typo: sysmcom -> sysmocom 2015-02-20 12:26:51 +01:00
Harald Welte 74b87851e1 ntp: rename sob-odu/ntp.conf to sysmocom-odu/ntp.conf
the odu specific config file was not packaged
2015-02-20 12:16:29 +01:00
Harald Welte 38d1587db5 add pciutils to task-sysmocom-feed
It is handy to have it on the APU/BSC/NITB/IDU
2015-02-20 11:32:56 +01:00
Harald Welte d7e88c9356 ntp: Add systemd service files + ODU specific configuration
On the ODU, we have a local GPS/GNSS receiver as prefision time source.
2015-02-20 11:29:49 +01:00
Holger Hans Peter Freyther 5de4108c11 i2c-tools: Do not use autotootls as bbclass
The sources are not using autotools and the
build breaks.

ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/temp/log.do_install.10782)
ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/temp/log.do_install.10782
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_install
| NOTE: make -j 2 DESTDIR=/home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/image install
| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/temp/run.do_install.10782:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/temp/log.do_install.10782)
NOTE: recipe i2c-tools-3.1.1-r0: task do_install: Failed
2015-02-17 19:00:17 +01:00
Holger Hans Peter Freyther 703e99dee6 linux-sysmocom: Backport nfacct patches and enable the module
I have no idea if that works or not. The integration work should
have been done by someone else.

Related: ORT#650
2015-02-17 18:40:33 +01:00
Holger Hans Peter Freyther 5d56fdb07e task-sysmocom-feed: Make sure nfacct is in our feed as well
We want to use nfacct for better monitoring/matching. Put it
into the feed to be able to experiment with it.
2015-02-16 23:42:39 +01:00
Holger Hans Peter Freyther 137b6b0d6a nfacct: Add recipe for nfacct as well
Related: ORT#650
2015-02-16 23:42:39 +01:00
Holger Hans Peter Freyther 77b2c49b65 libnetfilter-acct: Add recipe needed for nfacct
This is the second dependency of nfacct. Create a simple
recipe for it.
2015-02-16 23:34:23 +01:00
Holger Hans Peter Freyther 191503323b libmnl: Import from meta-networking
We need this for nfacct
2015-02-16 23:26:19 +01:00
Holger Hans Peter Freyther a561f17dac osmo-bts: Ignore failures on symlinking
In yocto versions before dizzy/master the build was done
in the source directory and when configure was executed
twice in the same directory we would have a build failure
due the symlink already existing. Simply assume that if
the ln fails the link is already there.

Out of disk space situations are handled more early by
OE and missing files will be found by configure.

In dizzy/master OE will clean the build directory before
calling configure so the issue does not apply there.

Fixes: SYS#1170
2015-02-16 23:15:54 +01:00
Holger Hans Peter Freyther 5ba3282e45 ca-certificates: Fix build and lower default preference
This is a late fall-out of the priority changes done by
Henning. This recipe is not using autotools and doesn't
support src != build dir builds. So let's not use the
autotools class but simply invoke install ourselves. Let's
lower the default preference so the recipe from yocto master
is picked as well.

ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890)
ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'common-linux', 'common-glibc', 'allarch-linux', 'common']
| DEBUG: Executing shell function do_install
| NOTE: make -j 2 DESTDIR=/home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/image install
| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/run.do_install.16890:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890)
NOTE: recipe ca-certificates-20120623-r0: task do_install: Failed
ERROR: Task 3639 (/home/builder/jenkins/workspace/Yocto-Master/label/OE/meta-sysmocom-bsp/recipes-extra/ca-certificates/ca-certificates_20120623.bb, do_install) failed with exit code '1'
2015-02-16 08:31:08 +01:00
Holger Hans Peter Freyther aee3a65e2a simple.script/udhcpc: Do not remove someone's else default route
A lease bound/renewal could lead to the removal of a default
route set by pppd. Apply the same "dev $interface" filter that
would be used when using the "route" command.

Fixes: SYS#1163
2015-02-15 18:20:41 +01:00
Holger Hans Peter Freyther 9e6e792ec1 systemd: Only add the service once...
Keep the journald off on all other targets
2015-02-15 15:03:08 +01:00
Holger Hans Peter Freyther 592c6d7295 systemd: Do not disable the journald on the IDU
The IDU is powerful enough to run the journald. This gives us
some convenienance to have additional output from our services
and we can query them at a later point in time.

This will only be useful for systems that are re-installed
from scratch.

Fixes: SYS#892
2015-02-15 14:35:53 +01:00
Holger Hans Peter Freyther d31db523c8 systemd: Modify legacy.conf to have 775 as file permission for /run/lock
UUCP (cu, uux, uu*) attempts to create locks in /run/lock and it
fails. It fails because the current permission of the directory is
0755 but the binary is owned by uucp:root. Modify the legacy.conf
and change the permission to 0775.
2015-02-15 12:02:53 +01:00
Holger Hans Peter Freyther 08011e961e systemd/legacy.conf: Add the current file for tmpfiles.d 2015-02-15 11:57:42 +01:00
Holger Hans Peter Freyther cfe0753c23 u-boot: Catch up with latest yocto master changes 2015-02-15 09:33:34 +01:00
Holger Hans Peter Freyther ba75c10df7 sispmctl: Add utility to control the power outlet strip
Fixes: SYS#1134
2015-02-15 00:41:02 +01:00
Holger Hans Peter Freyther 846cc6b9ab gpsdate: Add an option to not fork and use it
Fixes: SYS#1152
2015-02-14 23:33:47 +01:00
Holger Hans Peter Freyther a15ce6544e initramfs-live-install: Reboot on panic after 60 seconds
Reboot the machine after a panic.

Related: SYS#1151
2015-02-14 22:00:08 +01:00
Holger Hans Peter Freyther 08d1155752 systemd: Enable the hardware watchdog for the IDU as well
The built-in watchdog even allows setting the watchdog interval
2015-02-14 21:56:35 +01:00
Holger Hans Peter Freyther 78d586c891 linux-sysmocom: Attempt to force a rebuild..
Somehow a kernel was built but still with revision r39.
Atempt to to force it.
2015-02-14 21:00:00 +01:00
Holger Hans Peter Freyther 4f7eba0c66 sysmobts-2050: The machine type is gone.. remove the file
The patching of the system.conf is done as part of the post-install
action of the system.
2015-02-14 20:46:30 +01:00
Holger Hans Peter Freyther 674b7ea989 linux-sysmocom: Build the hardware watchdog available in the APU
Related: SYS#1148
2015-02-14 20:36:07 +01:00
Holger Hans Peter Freyther a5a8a18186 linux-sysmocom: Enable k10temp and i2c-piix4 in the kernel
I edited the config through make menuconfig and then used
savedefconfig but the diff from our config to a minimal
defconfig is too big. So I enabled the temp sensors and i2c
by hand.

Fixes: SYS#1148
2015-02-14 20:31:17 +01:00
Holger Hans Peter Freyther b8915da842 gpsdate: We can't leave the default empty 2015-02-14 20:31:11 +01:00
Holger Hans Peter Freyther f1e0304198 busybox/50default: Start with the metric of 10 for the IDU
For wlan and ppp we want to be able to install another default
route and this is only possible if we can use smaller metrics.
2015-02-14 19:39:47 +01:00
Holger Hans Peter Freyther 60ab5bff4c busybox/05default: Add the script that is used in dora
There was a bugfix in regard to broadcast addresses in
master but I decided to not take the fix as I want to
stay close to the other builds.
2015-02-14 19:38:54 +01:00
Holger Hans Peter Freyther 8c0c8b1229 gpsdate: Upgrade version due machine specific change
The current 1:0.1+git1+019d2535b6-r9.2 is considered to be older
than the new gpsdate_0.1+git0+2326eee789-r10 file. Change the
PE to benefit from an upgrade.
2015-02-14 16:17:04 +01:00
Holger Hans Peter Freyther 7b3ce0e6f7 gpsdate: Provide a default config for the ODU system
The ODU has the GPSD for GNSS/GPS listening on a different
port. In hindsight this was a stupid decision but one we can
only fix once we move to generating the config of the system
at boot time.

Fixes: SYS#906
2015-02-14 16:05:07 +01:00
Holger Hans Peter Freyther 8bff0cbee2 gpsdate: Install the service and provide an empty default config 2015-02-14 15:59:05 +01:00
Holger Hans Peter Freyther 2d93f2256a ifupdown: Launch udhcpc the same we way always do it
In case the port is not in a forwarding state.. don't just
give up but background and move on. This appears to be needed
for the odu to acquire a lease when STP is used.
2015-02-14 14:43:07 +01:00
Holger Hans Peter Freyther 5c4968dd70 wifi2udp: Honor the global default file for the destination address 2015-02-14 13:44:02 +01:00
Holger Hans Peter Freyther adbc448df6 init-ifupdown: Add the specific init file for the ODU as well
For the V-ODU we want to have vlan support as well. This requires
to use the debian ifupdown which means we need a script that creates
/run/network early enough.
2015-02-14 11:48:09 +01:00
Holger Hans Peter Freyther 34d053fbe8 sysmocom-openvpn-config: Always start but rename the config file
For the sysmoBTS (and other devices) we always enable the service
but move the config file to a name that will be ignored by the
systemd generator.
2015-02-14 11:45:22 +01:00
Holger Hans Peter Freyther 3235c311c9 barebox-sysmocom-mlo: Modernize and upgrade as well
The name of the config file was changed and so far
I was hesitant to upgrade the MLO. I think the change
in EEPROM applies to the MLO as well so we should
upgrade it. It has neither been build tested nor tested
on a device.
2015-02-14 08:47:12 +01:00
Holger Hans Peter Freyther f69c396c1d barebox-sysmocom: Update to have access to the right EEPROM 2015-02-14 08:43:48 +01:00
Henning Heinold 38cd265fbc gpsd: add systemd servcie file for the idu
Fixes: SYS#171
2015-02-14 08:31:04 +01:00
Harald Welte 9fd3aad4c9 dnsmasq: update PR to ensure rebuild 2015-02-13 19:30:49 +01:00
Harald Welte f01baf4cfb [idu]: Update /etc/network/interfaces
On eth1 we should also use a network from the 172.16 block rather than
the 10.23 that we used on the sysmoBSC

Also, we now use 172.16.4.0/23 natively on the bridged onboard network,
this is a temporary measure so existing JBs will still connect and get
an IP address before their software is updated to use VLAN6.  After they
(and all APs, BTSs, etc.) have migrated, the 172.16.4.0/23 can be
removed.
2015-02-13 19:23:38 +01:00
Holger Hans Peter Freyther 3f2d2d3381 init-ifupdown: Make sure to create the /run/network directory
For systemd and the Debian ifupdown application we need to
have the /run/network directory. The debian init file is
creating it on the fly and we should do the same for now.
2015-02-13 19:17:16 +01:00
Holger Hans Peter Freyther 3094ddf651 init-ifupdown: Copy the init script from dora 2015-02-13 19:17:16 +01:00
Holger Hans Peter Freyther b6c7e01aee Revert "ifupdown: create a tmpfiles.d file to create /run/network"
networking.service - LSB: Raise network interfaces.
   Loaded: loaded (/etc/init.d/networking)
   Active: failed (Result: exit-code) since Fri 2015-02-13 17:59:17 UTC; 43s ago
  Process: 54 ExecStart=/etc/init.d/networking start (code=exited, status=1/FAILURE)

Feb 13 18:04:47 sysmocom-idu networking[54]: ifup: failed to open lockfile /run
/network/.ifstate.lock: No such file or directory

The creation of /run/network occurs way too late. So we need
to look for another solution.

This reverts commit 86dda7481f.
2015-02-13 19:17:16 +01:00
Harald Welte 272a3538bb dnsmasq IDU config updates
* DHCP range for 'vlan6' onboard network 172.16.2.0/23
* DHCP range for 'native' onboard network 172.16.4.0/23
* DHCP range for 'admin' port eth1 172.16.6.0/24
* domain name vessel.sob.sysmocom.de
* listen on all interfaces, not just one
* allow admin to specify static leases (ODU) in /etc/dnsmasq.dhcp-hosts
2015-02-13 19:13:35 +01:00
Harald Welte 5a09ef71ff dnsmasq: enablle tftp only on IDU 2015-02-13 19:09:20 +01:00
Harald Welte 574fa651d5 dnsmasq: Enable tftp 2015-02-13 18:33:46 +01:00
Holger Hans Peter Freyther ddd36a90fc ifupdown: Attempt to initiliaze the environment in all cases
$ ifup br0.6

would go throup _none_up of links.defn and never call the
set_environ for any of the files. Check for environ being
null and then call the set_environ function to initialize
the PATH. This is changing the semantic to allow the iface,
mode and phase to be NULL. I tried to add proper null checks
2015-02-13 18:19:18 +01:00
Henning Heinold 86dda7481f ifupdown: create a tmpfiles.d file to create /run/network
[hfreyther: Only mention /run/network]
2015-02-13 18:18:14 +01:00
Holger Hans Peter Freyther 9bac297806 init-ifupdown_sysmocom: This is the file with the interfaces
I bumped netbase but that wasn't the right package, this one
has the new interfaces file in it.
2015-02-13 16:59:21 +01:00