diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-01-11 17:35:59 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-01-11 17:36:56 +0100 |
commit | 24b2128e2975f14f9941caa156890480005df81e (patch) | |
tree | 73a67321263694f336109bb44478a556bf24b7ce /contrib | |
parent | 3177f2b42f1565d47ee91c401773ff43114964da (diff) |
add PCU respawning to contrib screenrc and respawn scripts
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/respawn-only.sh | 4 | ||||
-rw-r--r-- | contrib/screenrc-sysmobts | 3 | ||||
-rw-r--r-- | contrib/sysmobts-calib/sysmobts-layer1.h | 29 |
3 files changed, 27 insertions, 9 deletions
diff --git a/contrib/respawn-only.sh b/contrib/respawn-only.sh new file mode 100755 index 00000000..4f611dd2 --- /dev/null +++ b/contrib/respawn-only.sh @@ -0,0 +1,4 @@ +#!/bin/sh +while [ -f $1 ]; do + nice -n -20 $* +done diff --git a/contrib/screenrc-sysmobts b/contrib/screenrc-sysmobts index 5ab7c927..9ee35516 100644 --- a/contrib/screenrc-sysmobts +++ b/contrib/screenrc-sysmobts @@ -1,3 +1,4 @@ chdir /tmp -screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/sysmobts -c /etc/osmocom/osmo-bts.cfg +screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/sysmobts -c /etc/osmocom/osmo-bts.cfg -M +screen -t PCU 1 /etc/osmocom/respawn-only.sh /usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg detach diff --git a/contrib/sysmobts-calib/sysmobts-layer1.h b/contrib/sysmobts-calib/sysmobts-layer1.h index ec961eba..1e0968a8 100644 --- a/contrib/sysmobts-calib/sysmobts-layer1.h +++ b/contrib/sysmobts-calib/sysmobts-layer1.h @@ -3,16 +3,29 @@ #include <sysmocom/femtobts/superfemto.h> -/* older header files don't have this */ -#ifndef SUPERFEMTO_API -#define SUPERFEMTO_API(x,y,z) ((x << 16) + (y << 8) + z) +#ifdef FEMTOBTS_API_VERSION +#define SuperFemto_PrimId_t FemtoBts_PrimId_t +#define SuperFemto_Prim_t FemtoBts_Prim_t +#define SuperFemto_PrimId_SystemInfoReq FemtoBts_PrimId_SystemInfoReq +#define SuperFemto_PrimId_SystemInfoCnf FemtoBts_PrimId_SystemInfoCnf +#define SuperFemto_SystemInfoCnf_t FemtoBts_SystemInfoCnf_t +#define SuperFemto_PrimId_SystemFailureInd FemtoBts_PrimId_SystemFailureInd +#define SuperFemto_PrimId_ActivateRfReq FemtoBts_PrimId_ActivateRfReq +#define SuperFemto_PrimId_ActivateRfCnf FemtoBts_PrimId_ActivateRfCnf +#define SuperFemto_PrimId_DeactivateRfReq FemtoBts_PrimId_DeactivateRfReq +#define SuperFemto_PrimId_DeactivateRfCnf FemtoBts_PrimId_DeactivateRfCnf +#define SuperFemto_PrimId_SetTraceFlagsReq FemtoBts_PrimId_SetTraceFlagsReq +#define SuperFemto_PrimId_RfClockInfoReq FemtoBts_PrimId_RfClockInfoReq +#define SuperFemto_PrimId_RfClockInfoCnf FemtoBts_PrimId_RfClockInfoCnf +#define SuperFemto_PrimId_RfClockSetupReq FemtoBts_PrimId_RfClockSetupReq +#define SuperFemto_PrimId_RfClockSetupCnf FemtoBts_PrimId_RfClockSetupCnf +#define SuperFemto_PrimId_Layer1ResetReq FemtoBts_PrimId_Layer1ResetReq +#define SuperFemto_PrimId_Layer1ResetCnf FemtoBts_PrimId_Layer1ResetCnf +#define SuperFemto_PrimId_NUM FemtoBts_PrimId_NUM +#define HW_SYSMOBTS_V1 1 +#define SUPERFEMTO_API(x,y,z) FEMTOBTS_API(x,y,z) #endif -#ifndef SUPERFEMTO_API_VERSION -#define SUPERFEMTO_API_VERSION SUPERFEMTO_API(2,2,0) -#endif - - extern int initialize_layer1(uint32_t dsp_flags); extern int print_system_info(); extern int activate_rf_frontend(int clock_source, int clock_cor); |