Commit Graph

699 Commits

Author SHA1 Message Date
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
Holger Hans Peter Freyther 5457cb39b4 netbase: We added a new OVERRIDE file.. bump the PR
The PR system isn't clever enough to figure out that a different
file would be picked. Update the PR right now.
2015-02-13 16:32:37 +01:00
Holger Hans Peter Freyther 396d421838 ifupdown: Always ignore errors for busybox/Poky
--exit-on-error is not supported by the busybox run-parts
and the easiest way is to make the ignore-errors option
the default.

I didn't test the change on the device but is looks sound.
2015-02-13 15:39:18 +01:00
Harald Welte 122a4cd73c [idu]: br0.6:0 address should be _static_, not _manual_ 2015-02-13 15:29:46 +01:00
Holger Hans Peter Freyther 82613a3015 linux-backports: Rename it to linux-backports for clarity
A lot of things can be backported, we are interested in backports
for the linux kernel.
2015-02-13 15:21:08 +01:00
Henning Heinold c017956120 sysmocom-odu: add defconfig for sysmocom-odu and remove kernel modules from the machine config
Related: SYS#850
2015-02-13 15:21:08 +01:00
Henning Heinold 5297f12bc1 backports: add linux-backports driver package
* needed to copy over the oe-core kernel-module classes
  and modify them because there was no other way to use them and
  name the packages kernel-module-backports

Related: SYS#850
2015-02-13 15:21:08 +01:00
Harald Welte 7d5329ed57 bridge-utils: Add missing FILES_${PN} for ifupdown integration 2015-02-13 15:16:41 +01:00
Harald Welte c68f6ef085 [idu] Add /etc/network/interfaces specifid to the IDU 2015-02-13 15:15:24 +01:00
Harald Welte 61c2d2b6d3 bridge-utils: Add ifupdown integration from Debian packages
bridge-utils.sh was modified to use /usr/sbin/brctl rather than
/sbin/brctl, as OE seems to use the former while Debian uses the latter.
2015-02-13 14:56:30 +01:00
Holger Hans Peter Freyther 485d43fcd6 ifupdown: Attempt to package the debian ifupdown application
This way we can manage bridges and vlans without additional
hacks. This package shouldn't clash with busybox so I need
to install all files with a ${BPN} suffix and then use the
update-alternatives to create the symlinks. The last two parts
were not tested/verified yet.
2015-02-13 12:25:02 +01:00
Holger Hans Peter Freyther 9bcf478f7e bridge-utils: Do the broken src != builddir by hand
dora doesn't have this new bbclass yet. so let's do it
by hand.
2015-02-13 11:25:12 +01:00
Harald Welte 195c848d50 idu: BIOS default is 115200bps, so use the console at that speed, too 2015-02-13 10:48:43 +01:00
Holger Hans Peter Freyther 8cff638993 bridge-utils: Import from meta-oe 2015-02-13 10:17:50 +01:00
Holger Hans Peter Freyther d1bca38043 dnsmasq: Initial configuration for sysmocom
This is untested but in the assembled IDU eth2 is the NJB
link and the range/netmask was taken from the ISC DHCPD
configuration file.
2015-02-13 09:48:22 +01:00
Holger Hans Peter Freyther e69ac76dc0 dnsmasq: Begin with a sysmocom-idu specific config 2015-02-13 09:45:50 +01:00
Holger Hans Peter Freyther 6059b2b275 chrpath: Do not override/replace the default chrpath
Ever since the priority of this layer was raised we shadow
some recipes of the default yocto. Now that we don't need
to target edison, remove some of the legacy work.
2015-02-13 02:01:22 +01:00
Holger Hans Peter Freyther a090c556c5 systemd-compat-units: No reason to mask out dnsmasq
dnsmasq installts a dnsmasq.service and it shouldn't be masked
by default!
2015-02-13 01:57:36 +01:00