Compare commits

...

2 Commits

Author SHA1 Message Date
Andreas Gnau
26fad34a0c flagboasdf 2023-02-23 19:51:44 +01:00
Andreas Gnau
ffc666eed4 hack to make dectmngr work on tapir
requires enabling the following config options

CONFIG_KERNEL_DEVMEM=y
CONFIG_BUSYBOX_CONFIG_DEVMEM=y
CONFIG_PACKAGE_dectmngr=y
2023-02-23 19:51:44 +01:00

View File

@@ -11,7 +11,7 @@ PROG=/usr/sbin/dectmngr
LOG_PATH=/var/log/dectmngr
DB_PATH=/etc/dect
DECT_GPIO=$(db -q get hw.board.dect_gpio)
DECT_GPIO=22
# Ask dectmngr to exit nicely and wait for it to clean up, which is a slow process.
stop_and_wait_dectmngr() {
@@ -53,14 +53,14 @@ start_service() {
procd_open_instance
if [ "$log_dect_cmbs" = "none" ]; then
echo "Starting dectmngr with cmbs logging disabled"
procd_set_param command $PROG -comname ttyH0 $opt_ext
procd_set_param command $PROG -comname ttyS1 $opt_ext
rm -f $LOG_PATH/*
elif [ "$log_dect_cmbs" = "file" ]; then
echo "Starting dectmngr with cmbs logging enabled to file"
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log $opt_ext
procd_set_param command $PROG -comname ttyS1 -log $LOG_PATH/dect-cmbs.log $opt_ext
else
echo "Starting dectmngr with cmbs logging enabled to syslog"
procd_set_param command $PROG -comname ttyH0 -syslog $opt_ext
procd_set_param command $PROG -comname ttyS1 -syslog $opt_ext
rm -f $LOG_PATH/*
fi
@@ -88,6 +88,7 @@ service_triggers()
}
boot() {
#devmem 0x1FA20218 32 0x08
[ -n "$DECT_GPIO" ] && {
echo ${DECT_GPIO} > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio${DECT_GPIO}/direction
@@ -97,4 +98,3 @@ boot() {
[ ! -d $DB_PATH ] && mkdir -p $DB_PATH
start
}