diff options
| author | Andrii Pientsov <andrii.pientsov@globallogic.com> | 2020-05-21 09:08:42 +0300 |
|---|---|---|
| committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-05-21 13:05:31 +0300 |
| commit | ca5c55acb366ff5f80af00737a8110673ccf252b (patch) | |
| tree | 65b7b1879efa6130f845de316b64485debba20c1 /recipes-core/multitech | |
| parent | d7a57cf7524ba79d613a0458f9d6b6388dfc49b8 (diff) | |
| download | meta-mlinux-atmel-ca5c55acb366ff5f80af00737a8110673ccf252b.tar.gz meta-mlinux-atmel-ca5c55acb366ff5f80af00737a8110673ccf252b.tar.bz2 meta-mlinux-atmel-ca5c55acb366ff5f80af00737a8110673ccf252b.zip | |
Remove duplicates
Diffstat (limited to 'recipes-core/multitech')
55 files changed, 0 insertions, 3719 deletions
diff --git a/recipes-core/multitech/cell-radio-carrierswitch/cell-radio-carrierswitch.default b/recipes-core/multitech/cell-radio-carrierswitch/cell-radio-carrierswitch.default deleted file mode 100644 index 7128721..0000000 --- a/recipes-core/multitech/cell-radio-carrierswitch/cell-radio-carrierswitch.default +++ /dev/null @@ -1,6 +0,0 @@ -# set to "no" to disable cell-radio-fwswitch on boot -ENABLED="yes" - -# The default timeout is 60 seconds. -# It depends on how long your radio takes to get ready. -# export TIMEOUT 60 diff --git a/recipes-core/multitech/cell-radio-carrierswitch/cell-radio-carrierswitch.init b/recipes-core/multitech/cell-radio-carrierswitch/cell-radio-carrierswitch.init deleted file mode 100644 index 6b8a640..0000000 --- a/recipes-core/multitech/cell-radio-carrierswitch/cell-radio-carrierswitch.init +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# no firmware switch by default -ENABLED="no" - -[ -r /etc/default/cell-radio-carrierswitch ] && source /etc/default/cell-radio-carrierswitch -[ "$ENABLED" == "yes" ] || exit 0 - -# It may take a couple of boots to get the APN straightened out. -# mlinux-switch-apn is only effective for LNA3. It will only -# take action if it detects a different SIM from the one -# that is configured. It requires a RADIO that is active. -# The script is executed in the background to prevent holding up the -# boot. - -case $1 in - start) - (/usr/sbin/mlinux-switch-apn 2>&1 | logger -p daemon.notice) & - ;; - - *) - echo "Usage: $0 {start}" - exit 2 - ;; -esac - diff --git a/recipes-core/multitech/cell-radio-carrierswitch_1.0.bb b/recipes-core/multitech/cell-radio-carrierswitch_1.0.bb deleted file mode 100644 index 0220dba..0000000 --- a/recipes-core/multitech/cell-radio-carrierswitch_1.0.bb +++ /dev/null @@ -1,25 +0,0 @@ -DESCRIPTION = "Radio firmware switching functionality for dual image units (only LNA3 radios for now)" -SECTION = "base" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" -PR = "r1" - -RDEPENDS_${PN} = "radio-query radio-cmd mlinux-scripts" - -inherit update-rc.d -INITSCRIPT_NAME = "cell-radio-carrierswitch" -INITSCRIPT_PARAMS = "start 63 5 ." - -SRC_URI = "\ - file://cell-radio-carrierswitch.default \ - file://cell-radio-carrierswitch.init \ -" - -do_install() { - install -d ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/cell-radio-carrierswitch.init ${D}${sysconfdir}/init.d/cell-radio-carrierswitch - - install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/cell-radio-carrierswitch.default ${D}${sysconfdir}/default/cell-radio-carrierswitch -} - diff --git a/recipes-core/multitech/commissioning_1.0.1.bb b/recipes-core/multitech/commissioning_1.0.1.bb deleted file mode 100644 index 06e1904..0000000 --- a/recipes-core/multitech/commissioning_1.0.1.bb +++ /dev/null @@ -1,42 +0,0 @@ -inherit update-rc.d - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=593c81e8a2bd8b4c4e310d8792372b13" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -DEPENDS = "fcgi jsoncpp shadow" -RDEPENDS_${PN} += "jsoncpp lighttpd lighttpd-module-fastcgi lighttpd-module-openssl lighttpd-module-redirect bash" -RDEPENDS_${PN}-php-fpm += "php-fpm ${PN}" -PACKAGES =+ "${PN}-php-fpm" - -INITSCRIPT_PACKAGES = "${PN} ${PN}-php-fpm" -INITSCRIPT_NAME_${PN} = "commission " -INITSCRIPT_PARAMS_${PN} = "start 9 2 3 4 5 ." -INITSCRIPT_NAME_${PN}-php-fpm = "commission-php-fpm" -INITSCRIPT_PARAMS_${PN}-php-fpm = "start 9 2 3 4 5 ." - -PR = "r1" -SRCREV = "${PV}" - -FILES_${PN}-php-fpm = "/etc/init.d/commission-php-fpm" -FILES_${PN} += "/www/" - -SRC_URI = "git://git.multitech.net/commissioning;branch=master" - -S = "${WORKDIR}/git" -do_compile() { - oe_runmake all -} -do_install() { - - cp -a ${S}/${sysconfdir}/ ${D}/ - cp -a ${S}/www/ ${D}/ - cp -a ${S}/${prefix} ${D}/ - chmod 755 ${D}/etc/init.d/* - chmod 755 ${D}/${libexecdir}/commission/* - chown -R root:root ${D}/ - - oe_runmake install DESTDIR=${D} - chmod 755 ${D}/usr/bin/commissioning.fcgi -} diff --git a/recipes-core/multitech/config/99_radio b/recipes-core/multitech/config/99_radio deleted file mode 100644 index c2aa885..0000000 --- a/recipes-core/multitech/config/99_radio +++ /dev/null @@ -1,24 +0,0 @@ -# This configuration file lists filesystem objects that should get verified -# during startup and be created if missing. -# -# Every line must either be a comment starting with # -# or a definition of format: -# <type> <owner> <group> <mode> <path> <linksource> -# where the items are separated by whitespace ! -# -# <type> : d|f|l : (d)irectory|(f)ile|(l)ink -# -# A linking example: -# l root root 0777 /var/test /tmp/testfile -# f root root 0644 /var/test none -# -# Understanding links: -# When populate-volatile is to verify/create a directory or file, it will first -# check it's existence. If a link is found to exist in the place of the target, -# the path of the target is replaced with the target the link points to. -# Thus, if a link is in the place to be verified, the object will be created -# in the place the link points to instead. -# This explains the order of "link before object" as in the example above, where -# a link will be created at /var/test pointing to /tmp/testfile and due to this -# link the file defined as /var/test will actually be created as /tmp/testfile. -d root dialout 2775 /run/radio none diff --git a/recipes-core/multitech/config/chat_wrapper b/recipes-core/multitech/config/chat_wrapper deleted file mode 100755 index f1fd30c..0000000 --- a/recipes-core/multitech/config/chat_wrapper +++ /dev/null @@ -1,205 +0,0 @@ -#!/bin/bash - -# Rules for chat scripts -# No comments allowed at the end of AT+CGDCONT in chat script -# The last AT+CGDCONT= must use the same context as the dialer. -# If desired, The AT+CGDCONT may be prefixed by #MT[[:space:]]+ -# Example: -#MT AT+CGDCONT="IPV6","data","192.168.2.1",0,1,"EXTRA" -# -# If you do not use a comment, the entire AT+CGDCONT command -# must be surrounded by apostrophes. This command will be executed -# twice, once in the chat wrapper, and a 2nd time in the chat -# itself. -# -# The space after "#MT" may be any number including tabs. -# If #MT AT+CGDCONT= is found, only the last one is chosen. -# Any uncommented AT+CGDCONT= is then ignored. -# If there are not #MT AT+CGDCONT= lines, then any line without -# a comment chararacter before AT+CGDONT= is accepted, but only the -# last one in the file. - -NAME=chat_wrapper -CONFIG=/etc/default/${NAME} -function finish -{ - ${LOG} "Launch:" "$@" - exec "$@" - # NOTREACHED -} - -[[ -f $CONFIG ]] || exit 1 - -. ${CONFIG} - -: ${REGWAITTIME:=300} -: ${FINALWAIT:=5} - -: ${LOG:="/usr/bin/logger -t ${NAME} -p daemon.notice"} - -${LOG} Timeout is $REGWAITTIME, execute "$@" -((i=$#)) -chatscript="${!i}" -${LOG} Parsing chat script "$chatscript" - -# CONTEXT is last context string in chat script -CONTEXT=$(egrep "^#MT[[:space:]]+(AT\+CGDCONT=.*)" ${chatscript} | tail -1) -if ((${#CONTEXT} == 0)) ; then - CONTEXT=$(egrep "^[^#]+AT\+CGDCONT=" ${chatscript} | tail -1) - [[ $CONTEXT =~ \'(AT\+CGDCONT=([0-9]+)[^$\']+) ]] -else - [[ $CONTEXT =~ (AT\+CGDCONT=([0-9]+).*)$ ]] -fi - -# CONTEXTNUM is the context number that is configured in the dialer. -CONTEXT="${BASH_REMATCH[1]}" -if ((${#CONTEXT} == 0)) ; then - ${LOG} No context specifiction in the chat script - finish "$@" - # NOTREACHED -fi -((CONTEXTNUM=${BASH_REMATCH[2]})) - - -${LOG} "Using Context ${CONTEXTNUM} based on chat script: ${CONTEXT}" - -# At this point if there is no context number, we can skip everything else. - -# Get Modem's context settings -MCONTEXT=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+CGDCONT?' 2>&1 | tr -d '\r') -if [[ $MCONTEXT =~ [Ee][Rr][Rr][Oo][Rr] ]] ; then - RADIOOPTION="${RADIOOPTION2}" - MCONTEXT=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+CGDCONT?' 2>&1 | tr -d '\r') -fi - -if ! [[ $MCONTEXT =~ \+CGDCONT:[[:space:]]+${CONTEXTNUM},\"([^\"]*)\",\"([^\"]*)\",\"([^\"]*)\",([0-9]+),([0-9]+)([^$'\n']*) ]] ; then - logger -s -p daemon.error "No valid context in modem. Is it ready?" - echo "$MCONTEXT" | logger -s -p daemon.error -fi - -MPDP="${BASH_REMATCH[1]}" -MAPN="${BASH_REMATCH[2]}" -MADDR="${BASH_REMATCH[3]}" -MDCOMP="${BASH_REMATCH[4]}" -MHCOMP="${BASH_REMATCH[5]}" -MFULLBOAT="${BASH_REMATCH[6]}" - -[[ $CONTEXT =~ AT\+CGDCONT=${CONTEXTNUM},\"([^\"]*)\",\"([^\"]*)\"(,\"([^\"]*)\"(,([0-9]+)(,([0-9]+)(,[^\']*))*)*)* ]] -PDP="${BASH_REMATCH[1]}" -APN="${BASH_REMATCH[2]}" -ADDR="${BASH_REMATCH[4]}" # Optional -DCOMP="${BASH_REMATCH[6]}" # Optional -HCOMP="${BASH_REMATCH[8]}" # Optional -FULLBOAT="${BASH_REMATCH[9]}" # Optional - -# On some modems there are more parameters than others. -if [[ $MFULLBOAT != $FULLBOAT ]] ; then - ${LOG} "Only the first five context parameters are considered. The rest will be ignored." - ${LOG} "modem: \"$MFULLBOAT\"" - ${LOG} "chat script: \"$FULLBOAT\"" -fi - -if ((${#DCOMP} == 0)) ; then - ((DCOMP=0)) # Default -fi -if ((${#HCOMP} == 0)) ; then - ((HCOMP=0)) # Default -fi - -# Only update context on a mismatch between chat and modem. -if [[ $MPDP != $PDP ]] || [[ $MAPN != $APN ]] || \ - [[ $MADDR != $ADDR ]] || ((MDCOMP != DCOMP)) || \ - ((MHCOMP != HCOMP)) ; then - ${LOG} "Modem context $MPDP,$MAPN,$MADDR,$MDCOMP,$MHCOMP does not match chat script" - ${LOG} "Chat script context $PDP,$APN,$ADDR,$DCOMP,$HCOMP does not match the modem" - if [[ $MPDP != $PDP ]] ; then - ${LOG} "PDP mismatch" - fi - if [[ $MAPN != $APN ]] ; then - ${LOG} "APN mismatch" - fi - if [[ $MADDR != $ADDR ]] ; then - ${LOG} "ADDR mismatch" - fi - if [[ $MDCOMP != $DCOMP ]] ; then - ${LOG} "DCOMP mismatch" - fi - if [[ $MHCOMP != $HCOMP ]] ; then - ${LOG} "HCOMP mismatch" - fi - if [[ $MFULLBOAT != $FULLBOAT ]] ; then - ${LOG} "Final parameter mismatches ignored" - ${LOG} "Parameter 6 and up on the modem:" - ${LOG} "\"${MFULLBOAT}\"" - ${LOG} "Parameter 6 and up on the chat script:" - ${LOG} "\"${FULLBOAT}\"" - fi - ${LOG} "$MCONTEXT" - ${LOG} "Dropping registration with carrier to set context" - # Need to deregister - /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+COPS=2' - # H5 radios do not like addresses that are empty with "" - if ((${#ADDR} == 0)) ; then - CMDSTR="AT+CGDCONT=${CONTEXTNUM},\"${PDP}\",\"${APN}\",,$DCOMP,${HCOMP}${FULLBOAT}" - else - CMDSTR="AT+CGDCONT=${CONTEXTNUM},\"${PDP}\",\"${APN}\",\"${ADDR}\",$DCOMP,${HCOMP}${FULLBOAT}" - fi - ${LOG} "Issued command /usr/bin/radio-cmd ${RADIOOPTION} -t10000 ..." - ${LOG} "... ${CMDSTR}" - - # If we fail to set the APN, sleep and try it again for up to 10 seconds. - result=1 - count=10 - while ((result != 0)) && ((count > 0)) ; do - ((count--)) || true - LOGMSG=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10000 "${CMDSTR}" 2>&1) - result=$? - ${LOG} "Result ${result}, Got response ${LOGMSG}" - if [[ $LOGMSG =~ ERROR ]] ; then - result=1 - fi - sleep 1 - done - - # re-enable the modem to defaults. - /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+COPS=0' - sleep 1 - - # Some older modems will not re-register after the COPS - # command if you do not reset them using CFUN. - /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+CFUN=0' - /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+CFUN=1' - - # Abort PPP if the Context is not correct. We don't want - # to cause the carrier to disable the account by dialing - # out with a bad APN. - if ((result != 0)) ; then - ${LOG} "AT+CGDCONT failed, aborting" - exit $result - fi - sleep 1 - ${LOG} "New context is set. Wait up to $REGWAITTIME seconds to register" - # Wait for registration - uptime=$(cat /proc/uptime) - [[ $uptime =~ ^([^\.]*) ]] - t0=${BASH_REMATCH[1]} - while ! [[ $(/usr/bin/radio-query ${RADIOOPTION} --netreg) =~ ^REGISTERED$ ]] ; do - sleep 5 - uptime=$(cat /proc/uptime) - [[ $uptime =~ ^([^\.]*) ]] - t1=${BASH_REMATCH[1]} - if ((t1-t0 > REGWAITTIME)) ; then - ${LOG} "$((t1-t0)) seconds has expired" - exit 1 - fi - done - uptime=$(cat /proc/uptime) - [[ $uptime =~ ^([^\.]*) ]] - t1=${BASH_REMATCH[1]} - ${LOG} "Re-registered in $((t1-t0)) seconds -- wait ${FINALWAIT} more seconds" - sleep $FINALWAIT -else - ${LOG} "Context $CONTEXTNUM matches and nothing to do." -fi -finish "$@" -# NOTREACHED diff --git a/recipes-core/multitech/config/chat_wrapper.default b/recipes-core/multitech/config/chat_wrapper.default deleted file mode 100644 index a1b4e41..0000000 --- a/recipes-core/multitech/config/chat_wrapper.default +++ /dev/null @@ -1,20 +0,0 @@ -# The maximum time to wait for registration -# when changing the modem context parameters. -# This is ignored if the context is -# already set correctly in the modem. -REGWAITTIME=300 - -# The time to wait after registration -# when setting the context -# before attempting a PPP connection. -# This is ignored if the context is -# already set correctly in the modem. -FINALWAIT=5 - -# Option for radio-query, radio-cmd -# Used by /usr/libexec/ppp/chat_wrapper, -# mlinux-switch-apn, mlinux-switch-cell-fw -RADIOOPTION="-d /dev/modem_at1" - -# Device to use if RADIOOPTION fails: -RADIOOPTION2="-d /dev/modem_at0" diff --git a/recipes-core/multitech/config/config-mths/default/bluetooth b/recipes-core/multitech/config/config-mths/default/bluetooth deleted file mode 100644 index ec46cfd..0000000 --- a/recipes-core/multitech/config/config-mths/default/bluetooth +++ /dev/null @@ -1,8 +0,0 @@ -# Set to 1 to enable bluetooth daemon -BLUETOOTH_ENABLED=1 - -# Use the following to setup bluetooth usability -BLUETOOTHCTL_CMD="power on\ndiscoverable on\npairable on\n" - -#Compatilitity mode -#MOREOPTIONS="-C" diff --git a/recipes-core/multitech/config/config-mths/default/dnsmasq b/recipes-core/multitech/config/config-mths/default/dnsmasq deleted file mode 100644 index 129fda1..0000000 --- a/recipes-core/multitech/config/config-mths/default/dnsmasq +++ /dev/null @@ -1,27 +0,0 @@ -# MTHS dnsmasq -# and a hook to set up config files for MTHS -ENABLED="yes" - -# This configuration is for manufacturing test. -# Factory resets should not put back wifi defaults. -if [[ -f /var/config/.defaults2.tar.gz ]] ; then - rm /var/config/.defaults2.tar.gz -fi - -# Stop ntpd. ntpd default is in root. -sed -i 's/ENABLED="yes"/ENABLED="no"/' /etc/default/ntpd -# Use the ifplugd in /var/config -if ! [[ -L /etc/ifplugd ]] ; then - rm -rf /etc/ifplugd - ln -s /var/config/ifplugd /etc/ifplugd - # ifplugd is already started (and probably bombed) - # restart it. - /etc/init.d/ifplugd stop - /etc/init.d/ifplugd start -fi - -if ! [[ -L /etc/default/usb-gadget ]] && [[ -f /var/config/default/usb-gadget ]] ; then - rm -rf /etc/default/usb-gadget - ln -s /var/config/default/usb-gadget /etc/default/usb-gadget -fi - diff --git a/recipes-core/multitech/config/config-mths/default/hostapd b/recipes-core/multitech/config/config-mths/default/hostapd deleted file mode 100644 index 75c1c8a..0000000 --- a/recipes-core/multitech/config/config-mths/default/hostapd +++ /dev/null @@ -1,11 +0,0 @@ -# set to "yes" to start hostapd on boot -START_ON_BOOT="yes" -DEVICEID=$(cat /sys/devices/platform/mts-io/device-id) -SSID="hs-${DEVICEID}" -CONF=/etc/hostapd.conf - -PREUP="ifdown wifi1 - ifup wifi1 - sed -ri 's/^ssid=.*/ssid=hs-'${DEVICEID}/ ${CONF} - logger -s -t hostapd -p daemon.alert 'hostapd SSID line is '${SSID}" - diff --git a/recipes-core/multitech/config/config-mths/default/ntpd b/recipes-core/multitech/config/config-mths/default/ntpd deleted file mode 100644 index a0d3bcf..0000000 --- a/recipes-core/multitech/config/config-mths/default/ntpd +++ /dev/null @@ -1,36 +0,0 @@ -ENABLED="no" - - -CONFIGFILE=/etc/ntp.conf - -# The GPSD_* parameters in this file are ignored -# if the uBlox GPS is not present. - -# Require a GPS lock/fix before starting NTP -# This is needed if we are not using NTP servers. -# NTP will not work with the GPS if the GPS is not -# locked before starting. -# See /etc/default/gpsd for the states required. -GPSD_REQUIRED=0 - -# Number of seconds between testing for a GPS -# lock prior to calling ntpd. -GPSD_WAIT_TIME=120 - -# Since the HW Clock could be off by a second or -# so, our GPS might get marked as a false ticker -# if we do not set the system clock to the GPS -# first. The current correct way to do this -# according to the ntp doc is ntpd -gq -c conffile -# which must be done before ntpd is started. -# conffile should exclude the local clock, so it is -# ignored while doing the initial sync. -# ntpd -gq apparently does not work with the GPS -# when tested with the clock more than one day off -# and no ntpd. The gps shared memory is never polled. -# -# If there is a uBlox GPS present, the time is -# read from the GPS to initialize the system time -# before NTP is started. -SET_SYSTEM_CLOCK=1 - diff --git a/recipes-core/multitech/config/config-mths/default/rs9113 b/recipes-core/multitech/config/config-mths/default/rs9113 deleted file mode 100644 index 2594625..0000000 --- a/recipes-core/multitech/config/config-mths/default/rs9113 +++ /dev/null @@ -1,14 +0,0 @@ -RS9113_LOAD=1 -RSI_ANTENNA_DIVERSITY=0 -COEX_MODE=6 -WLAN_RF_PWR_MODE=0x00 -BT_RF_PWR_MODE=0x00 -BT_RF_TX_POWER_MODE=0 -BT_RF_RX_POWER_MODE=0 -SET_COUNTRY_CODE=0 -ANT_SEL_VAL=2 -ONBOARD_ANT_SEL=1 -SET_RETRY_COUNT=15 -SLEEPTIME=100000 -INTSLEEPTIME=100000 - diff --git a/recipes-core/multitech/config/config-mths/default/usb-gadget b/recipes-core/multitech/config/config-mths/default/usb-gadget deleted file mode 100644 index 944ef8a..0000000 --- a/recipes-core/multitech/config/config-mths/default/usb-gadget +++ /dev/null @@ -1,6 +0,0 @@ -# set to "no" to disable usb-gadget -ENABLED="yes" - -USB_MODE="networking" -MODULE_OPTIONS="" - diff --git a/recipes-core/multitech/config/config-mths/dnsmasq.d/dhcp.conf b/recipes-core/multitech/config/config-mths/dnsmasq.d/dhcp.conf deleted file mode 100644 index 47eb1c0..0000000 --- a/recipes-core/multitech/config/config-mths/dnsmasq.d/dhcp.conf +++ /dev/null @@ -1,12 +0,0 @@ -interface=wifi1 -dhcp-range=10.0.0.100,10.0.0.250,12h -dhcp-lease-max=200 -dhcp-leasefile=/var/config/dnsmasq_dhcp_wifi1.leases -dhcp-option=option:netmask,255.255.255.0 -dhcp-option=option:router,10.0.0.1 -dhcp-option=option:dns-server,10.0.0.1 -dhcp-authoritative -interface=usb0 -dhcp-range=192.168.3.100,192.168.3.250,12h -dhcp-option=option:router,192.168.3.1 -dhcp-option=option:dns-server,192.168.3.1 diff --git a/recipes-core/multitech/config/config-mths/hostapd.conf b/recipes-core/multitech/config/config-mths/hostapd.conf deleted file mode 100644 index 8acd72b..0000000 --- a/< |
