Compare commits

...

888 Commits

Author SHA1 Message Date
Hemlata Bhatt
99e85b92b2 dectmngr :Remove extra verbose syslog for firmware upgrading on the base station 2022-02-03 16:10:19 +01:00
Jakob Olsson
f1795e0263 map-agent: 6.6.2 2022-02-03 12:45:18 +01:00
Jakob Olsson
a2115711bb map-controller: 5.4.5 2022-02-02 17:07:02 +01:00
Jakob Olsson
2b26e9083b map-agent: 6.6.1 2022-02-02 17:06:20 +01:00
Sukru Senli
1978d357c9 crun: remove as it is now available under openwrt feed packages 2022-02-02 11:16:01 +01:00
Jakob Olsson
822f77590d wifimngr: 05-wifi: update to new map backhaul file 2022-01-31 14:59:04 +01:00
Sukru Senli
3d31052d40 sulu: 0.2.27 2022-01-28 14:33:01 +01:00
Erik Karlsson
dc56c93b73 icwmp: Use correct syntax with tr
The tr command does not take regular expressions. In addition,
unquoted use of [] is unsafe as it is subject to wildcard expansion by
the shell.
2022-01-28 12:26:07 +00:00
Amin Ben Ramdhane
0dd95029e6 bbf: 6.4.18 2022-01-28 13:20:18 +01:00
Amin Ben Ramdhane
5f92faf0a1 bbf: 6.4.17 2022-01-28 11:55:09 +01:00
Sukru Senli
31ed1f802b iop: genconfig: remove unused targets 2022-01-27 16:42:43 +01:00
Jakob Olsson
c73ac6665b map-agent: 6.6.0: multiap.backhaul 2022-01-27 15:48:14 +01:00
Sukru Senli
431d1fbf34 port-management: populate ports config from device-tree if db does not exist 2022-01-27 14:55:41 +01:00
Sukru Senli
2ddb4fb5fc iop: genconfig: remove unsupported targets 2022-01-27 11:15:34 +01:00
vdutta
1835fe7a50 swmodd: Remove cgroup config from iopsys template 2022-01-27 13:49:51 +05:30
vdutta
d0e30dade4 icwmp: 8.2.25 2022-01-27 12:03:35 +05:30
Amin Ben Ramdhane
be867f1b25 uspd: 2.1.43 2022-01-26 13:22:34 +01:00
Amin Ben Ramdhane
9b2318242b bbf: 6.4.16 2022-01-26 13:21:28 +01:00
Anjan Chanda
8fee87c3c6 ieee1905: 4.6.0 2022-01-26 10:09:41 +01:00
vdutta
2fbdb4b3d2 obuspa: Added coverage in module test 2022-01-26 12:27:04 +05:30
Rahul
337c9a52f9 qosmngr: fix static code warnings
Updated the makefile version and bump the minor version
2022-01-25 18:32:09 +05:30
vdutta
6c86adbf86 uspd: 2.1.42 2022-01-25 18:19:56 +05:30
vdutta
e316bea78f bbf: 6.4.15 2022-01-25 18:17:49 +05:30
vdutta
233d714564 icwmp: Use db device for sn instead of db hw 2022-01-25 10:32:05 +05:30
Sukru Senli
13b742fe44 sulu: 0.2.26 2022-01-24 19:02:23 +01:00
Sukru Senli
c23ae5dad1 obuspa: read oui and sn from db device instead of db hw 2022-01-24 17:46:50 +01:00
Fredrik Eriksson
3c7aa191ea iop/config: deselect glib2
To our knowledge this is not needed and takes space.
2022-01-24 16:38:26 +00:00
Jakob Olsson
d8bbc9de81 map-agent: 6.5.3 2022-01-24 13:16:43 +01:00
Sukru Senli
92e353bb49 questd: 5.2.3 2022-01-21 17:08:57 +01:00
Sukru Senli
17fd78bc94 Revert "sulu: install sulu-full instead"
This reverts commit 68ca3b1d07.
2022-01-21 15:21:52 +01:00
Sukru Senli
68ca3b1d07 sulu: install sulu-full instead 2022-01-21 15:16:20 +01:00
Jakob Olsson
05a5616347 ieee1905: 4.2.2 2022-01-21 13:25:36 +01:00
Jakob Olsson
90f102b36a map-controller: 5.4.4 2022-01-21 11:34:22 +01:00
Sukru Senli
3e95e599e4 sulu: 0.2.25 2022-01-20 21:05:05 +01:00
Jakob Olsson
12d1e79339 map-controller: 5.4.3 2022-01-20 17:24:15 +01:00
Jakob Olsson
9ffed931c6 map-agent: 6.5.2 2022-01-20 17:22:58 +01:00
Amin Ben Ramdhane
aa8949e9e4 bbf: 6.4.14 2022-01-20 15:21:11 +01:00
sandeep sharma
c31e10cd88 Fixed: QoS statistics for Eagle LAN ports end up on the wrong queue 2022-01-20 12:38:44 +00:00
Amin Ben Ramdhane
1257c11c69 bbf: 6.4.13 2022-01-18 17:55:00 +01:00
vdutta
147c6de58c obuspa: 4.1.0.17 2022-01-18 21:22:48 +05:30
Jakob Olsson
b821b189d1 map-controller: 5.4.2 2022-01-17 14:00:16 +01:00
Jakob Olsson
cae7d71907 map-controller: 5.4.1 2022-01-17 10:48:25 +01:00
vdutta
92748d489a uspd: 2.1.41 2022-01-17 14:41:44 +05:30
Jakob Olsson
9847af7e74 map-agent: 6.5.1 2022-01-17 10:02:52 +01:00
Anjan Chanda
8e98dc9526 map-controller: 5.4.0 2022-01-14 21:11:42 +01:00
Anjan Chanda
1fe4fbdd4e wfadatad: 6.10.2 2022-01-14 21:11:06 +01:00
Anjan Chanda
e4f24b2223 map-topology: 3.2.0 2022-01-14 21:10:42 +01:00
Anjan Chanda
ec905407f0 map-agent: 6.5.0 2022-01-14 21:09:52 +01:00
vdutta
0c0c7316fa bbf: 6.4.12 2022-01-14 21:03:38 +05:30
vdutta
72da7b55c2 icwmp: 8.2.23 2022-01-14 20:54:34 +05:30
vdutta
60fe16d7ce swmodd: 2.0.20 2022-01-14 20:53:18 +05:30
Jakob Olsson
cb1fa79dcd ieee1905: 4.2.2 2022-01-14 14:43:09 +01:00
vdutta
15ab89ef7d icwmp: Fix no-wan-tr069-inform issue 2022-01-14 13:14:00 +05:30
Andreas Gnau
975f4e7552 Update feed [ iopsys ] package [ u-boot ] variant [ex400]
This is mostly for documentation purposes. U-Boot for EX400 does no longer
build with latest binutils used in OpenWrt 21.02, which is why we do not ship
U-Boot in our images for EX400 at the moment. This is the U-Boot that has been
shipped in the migrator image
EX400-X-IOPSYS-6.3.0ALPHA4-28-g556c4319d1-U-Boot-826af23a77-210826_1419-ubifs-MIGRATOR.y3

-------------------------------------------------------------------------------
* 826af23a77 ex400: Autodetect squashfs vs UBIFS
* 3077d68ddf ex400: Enable setexpr command
* 5aa83e12bc cmd: itest: correct calculus for long format
* 0cd508d8dd ex400: enable network by default
* 2fdb548516 use iopsys FIT image when doing a web upgrade
* b4f73f52f5 added a new command to flash an an iopsys FIT image
* dd6f5d4609 ex400: update environment variables to be aligned with IOPSYS 6 design
* cb68482deb Merge branch 'ex400_add_fit_support' into 'ex400'
* 4e46ac74e0 ex400: uboot: add FIT support
-------------------------------------------------------------------------------
commit 826af23a7723ee05dc9bc023d12a83f44aa649f4
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-08-25 14:29:46 +0200

    ex400: Autodetect squashfs vs UBIFS

Base directory -> /
 include/configs/inteno_mt7621.h | 37 ++++++++++++++++++++++++-------------
 1 file changed, 24 insertions(+), 13 deletions(-)
-------------------------------------------------------------------------------
commit 3077d68ddf31a0ad999485e5144098a3399ce0c5
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-08-10 12:24:00 +0200

    ex400: Enable setexpr command

    Enable setexpr command in config. This is needed for calculating the UBI
    volume id of the rootfs volume which is needed for squashfs as root.

Base directory -> /
 configs/ex400_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 5aa83e12bc1195366485b70cc6dfc41f0d5f992f
Author: Sebastien Colleur <sebastienx.colleur@intel.com>
Date: 2017-02-10 15:59:15 +0300

    cmd: itest: correct calculus for long format

    itest shell command doesn't work correctly in long format when doing
    comparaison due to wrong mask value calculus that overflow on 32 bits
    values.

    Signed-off-by: Sebastien Colleur <sebastienx.colleur@intel.com> Reviewed-by:
    Simon Glass <sjg@chromium.org>
    (cherry picked from commit 2c79fd401982c7d6c5e77c09bc7035f8a3766c88)

Base directory -> /
 cmd/itest.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 0cd508d8dd077d62baa59a0d74e2e5f24cff8926
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-07-27 16:36:35 +0200

    ex400: enable network by default

    as the equipement is used for development purpose only then enable network
    by default for convinence

Base directory -> /
 board/inteno/common/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 2fdb54851610838e35e4d889a0fbc14fb766a78b
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-07-23 10:52:32 +0200

    use iopsys FIT image when doing a web upgrade

Base directory -> /
 board/inteno/common/httpd.c | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)
-------------------------------------------------------------------------------
commit b4f73f52f515fb19552b4a5183a5aaecbb4b4cd1
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-07-23 10:49:34 +0200

    added a new command to flash an an iopsys FIT image

Base directory -> /
 cmd/Makefile         |   1 +
 cmd/iopsys_upgrade.c | 289 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 290 insertions(+)
-------------------------------------------------------------------------------
commit dd6f5d4609df08d808931c4ca01e186d59cbbea1
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-07-23 10:43:18 +0200

    ex400: update environment variables to be aligned with IOPSYS 6 design

    Use separate volumne for kernel use u-boot for mtd name instead of uboot

    fix

Base directory -> /
 include/configs/inteno_mt7621.h | 40 +++++++++++++++-------------------------
 1 file changed, 15 insertions(+), 25 deletions(-)
-------------------------------------------------------------------------------
commit cb68482debf9b5a3ef7471cc4182f189ab743b09
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-03-24 10:10:17 +0000

    Merge branch 'ex400_add_fit_support' into 'ex400'

    ex400: uboot: add FIT support

    See merge request fork/uboot!2
Base directory -> /
 configs/ex400_defconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 4e46ac74e0944684590899f969de9b6335a8f69a
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2021-03-23 09:28:21 +0100

    ex400: uboot: add FIT support

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 configs/ex400_defconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2022-01-12 17:41:46 +01:00
Amin Ben Ramdhane
a3a7c6da1b bbf: 6.4.11 2022-01-10 15:07:30 +01:00
vdutta
dca442ce01 bbf: 6.4.10 2022-01-10 09:04:32 +05:30
vdutta
6f00aa22fd icwmp: 8.2.21 2022-01-07 18:10:46 +05:30
Neeraj Bijalwan
575f5c9d19 icwmp: 8.2.20 2022-01-06 13:07:33 +00:00
Janusz Dziedzic
a699302f46 wifimngr: 05-wifi add multiap param
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-01-05 17:11:05 +00:00
vdutta
4ef7a8034b twamp: Added TWAMP Light support 2022-01-04 23:10:22 +05:30
Artee Roy
9675953bf6 Enables setting of bridge as a proxy interface.
Setting of dfault value for mcast interfaces.
2022-01-04 11:40:13 +00:00
Janusz Dziedzic
d3d4c87f82 easy-soc-libs: new version 6.4.34
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-01-03 15:58:47 +00:00
Bartlomiej Grzeskowiak
52ced81af6 uboot: allow ensemble uboot compilation
Not tested yet. Build succesfull.

Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
2022-01-03 15:45:54 +00:00
Amin Ben Ramdhane
20f17b81c5 bbf: 6.4.9 2021-12-31 22:24:25 +01:00
Grzegorz Sluja
aafcebaf3d endptmngr: Add averageRoundTripDelay rtp statistic 2021-12-30 12:29:07 +01:00
vdutta
6126333ad9 uspd: Updated schema updater algo 2021-12-30 12:59:22 +05:30
vdutta
fc15efe427 bbf: 6.4.8 2021-12-30 12:58:31 +05:30
Jakob Olsson
59d28497d9 map-controller: 5.3.0 2021-12-29 12:36:12 +01:00
Jakob Olsson
3a4a1b64bf map-agent: 6.4.0 2021-12-29 12:35:24 +01:00
Anjan Chanda
1ce127080e ieee1905: 4.2.1 2021-12-29 11:08:39 +01:00
Amit KUmar
f9a4bfa6d6 ponmngr: added omcid start 2021-12-28 15:18:38 +05:30
Grzegorz Sluja
e4365786b9 dectmngr-3.4.7 Retry mechanism in cmbs api init 2021-12-28 10:03:26 +01:00
Jakob Olsson
65c619060d wfadatad: enable respawn 2021-12-27 16:42:06 +01:00
Amin Ben Ramdhane
ef370bc886 bbf: 6.4.7 2021-12-27 15:26:06 +01:00
Rahul
0730c65372 qosmngr: resolve dscp to q mapping in L2 scenarios 2021-12-27 17:12:56 +05:30
Amin Ben Ramdhane
626e1241d6 bbf: 6.4.6 2021-12-26 15:45:25 +01:00
Amin Ben Ramdhane
b86544da9a bbf: 6.4.5 2021-12-24 11:00:06 +01:00
Yalu Zhang
3e38df2389 Revert 2f8a76e34d
Fix the bug that dectmngr fails to start at the first attempt

Wait for the target up and running before starting dectmngr. Otherwise HELLO_REPLY
cannot be received and dectmngr exits and is started again by procd.
2021-12-23 14:19:45 +01:00
Grzegorz Sluja
d34d6e8bf0 dectmngr-3.4.6 Fix for checking the dspg firmware version in file 2021-12-23 13:02:29 +01:00
Yalu Zhang
2f8a76e34d Fix the bug that dectmngr fails to start at the first attempt
Wait for the target up and running before starting dectmngr. Otherwise HELLO_REPLY
cannot be received and dectmngr exits and is started again by procd.
2021-12-23 10:58:57 +01:00
Grzegorz Sluja
55f1310daa dectmngr-3.4.5 Set RXTUN value during the start up 2021-12-23 09:23:06 +01:00
Grzegorz Sluja
57b528f2af dectmngr-3.4.4 changes
95214c4 Fix for restoring EEPROM parameters after FW upgrade
5ca32de Check country and play proper tones for UK
2021-12-22 14:55:03 +01:00
Grzegorz Sluja
670904cd6c dectmngr: Integrate new binary CMBS 4.13 Build 16 RC28 2021-12-22 13:08:11 +01:00
Amin Ben Ramdhane
ad0633029c bbf: 6.4.3 2021-12-22 12:57:01 +01:00
vdutta
9b823e5937 icwmp: 8.2.19 2021-12-22 17:09:55 +05:30
vdutta
431325e6e6 bbf: 6.4.2 2021-12-22 16:23:26 +05:30
Yalu Zhang
fd8fa1d7e2 dectmngr-3.4.3: remove those unreferenced keyb_* files and fix compiling warnings 2021-12-22 10:07:44 +01:00
Amin Ben Ramdhane
572bfa61dd bbf: 6.4.1 2021-12-21 16:52:30 +01:00
Jakob Olsson
5963ff1139 map-agent: 6.3.10 2021-12-21 16:21:12 +01:00
vdutta
363d3dfcb7 swmodd: 2.0.19 2021-12-21 20:12:16 +05:30
vdutta
cf12bbe6e2 swmodd: 2.0.18 2021-12-21 20:07:28 +05:30
Jakob Olsson
426437c233 map-agent: 6.3.9 2021-12-21 15:16:44 +01:00
Jakob Olsson
742ded177d map-agent: 6.3.8 2021-12-21 14:45:15 +01:00
Jakob Olsson
a5f6b10a50 ieee1905: 4.1.2 2021-12-21 14:26:02 +01:00
Grzegorz Sluja
c25139968a Update package dectmngr
bb941c1 Fixes for static code analysis
0105a0c Update the general module document
2021-12-21 14:22:01 +01:00
Jakob Olsson
f52700c0f0 map-agent: 6.3.7 2021-12-21 14:21:02 +01:00
Jakob Olsson
5bc8757a3e map-controller: 5.2.6 2021-12-21 12:27:44 +01:00
Jakob Olsson
5b0fe1d2dc map-controller: 5.2.5 2021-12-21 11:35:08 +01:00
Filip Matusiak
a31ae89e79 map-agent: multiap: fix missing BSSID on some interfaces 2021-12-21 09:48:38 +00:00
Yalu Zhang
bd72194d2d bbf: 6.4.0 2021-12-21 09:55:03 +01:00
Jakob Olsson
babb25709b map-agent: 6.3.6 2021-12-21 09:35:31 +01:00
Janusz Dziedzic
ea37c333f9 wifimngr: new version 14.0.5
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-20 19:25:30 +00:00
Amin Ben Ramdhane
be07b58cf5 periodicstats: 1.1.0 2021-12-20 17:06:26 +01:00
Amin Ben Ramdhane
13a6a59469 bbf: 6.3.9 2021-12-20 17:03:43 +01:00
Amin Ben Ramdhane
b6301bba94 bbf: 6.3.8 2021-12-20 16:37:59 +01:00
vdutta
dd627b7f70 rulengd: 1.2.6
- remove regex matching logic for event
2021-12-20 19:39:15 +05:30
Sukru Senli
0d2a12f029 sulu: 0.2.24
jakub <jakub.blaszkowski@iopsys.eu>
2021-12-20 09:59:01 +01:00
Jakob Olsson
0f1460f45f map-controller: 5.2.4 2021-12-17 16:57:51 +01:00
Sukru Senli
022e506a56 sulu: 0.2.23
jakub <jakub.blaszkowski@iopsys.eu>
2021-12-17 16:40:49 +01:00
Jakob Olsson
9025395702 Revert "map-controller: make uci wireless to mapcontroller sync configurable"
This reverts commit 5173b01cb2.
2021-12-17 15:55:00 +01:00
Sukru Senli
35ce40b964 sulu: 0.2.22 2021-12-17 15:39:14 +01:00
Jakob Olsson
0c915ba8b8 map-agent: 6.3.5 2021-12-17 14:45:58 +01:00
vdutta
60ab6d1a6b swmodd: Use DUStateChange! to notify faults 2021-12-17 18:40:40 +05:30
sverma
8ec45319bc rulengd: 1.2.5
regex match for event data only
2021-12-17 13:57:27 +01:00
Jakob Olsson
1536d860dd wfadatad: 6.10.1 2021-12-16 16:35:33 +01:00
Jakob Olsson
49858f3601 map-agent: 6.3.4 2021-12-16 16:33:47 +01:00
Sukru Senli
1c305c69e4 wfadatad: remove .init from init script 2021-12-16 16:28:51 +01:00
Anjan Chanda
e592e2d567 wfadatad: rename procd init filenames to match daemon names 2021-12-16 15:27:32 +01:00
Erik Karlsson
ff7714c88e endptmngr: do not start if board does not have voice
Prevents the following issue on boards without voice:

Thu Dec 2 12:45:07 2021 daemon.info procd: Instance endptmngr::instance1 s in a crash loop 4 crashes, 0 seconds since last crash
2021-12-15 13:11:48 +00:00
Fredrik Eriksson
9dda4d7ffa Remove redundant dependency on map-plugin 2021-12-15 13:10:34 +00:00
Jakob Olsson
10cee1f785 map-agent: 6.3.3 2021-12-15 14:09:34 +01:00
Erik Karlsson
8816c26e2a Use correct ranges with tr
The tr command does not take regular expressions and should not be
used with ranges such as [a-z] which furthermore can cause issues if
unquoted as they are interpreted by the shell.
2021-12-15 13:08:18 +00:00
Janusz Dziedzic
aba742a5e7 easy-soc-libs: 6.4.33
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-15 12:26:30 +00:00
suvendhu
d199dadd39 swmodd: config option to select host as EE 2021-12-15 16:49:15 +05:30
Jakob Olsson
fca18d2da5 wifimngr: 14.0.4 2021-12-15 09:33:43 +01:00
Janusz Dziedzic
3b819f5b1d easy-soc-libs: kick hash
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-14 19:29:47 +00:00
Amin Ben Ramdhane
b49d14370d bbf: 6.3.7 2021-12-14 18:24:31 +01:00
Jakob Olsson
3f2befa23a map-agent: corrections to example config 2021-12-14 17:31:22 +01:00
Andreas Gnau
52809e1e94 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 15ba90f Add support for external LED application.
* da6eb1d Add functionality to change default brightness for SK9822 LEDs.
-------------------------------------------------------------------------------
commit 15ba90f01914113e7c5e8f8a6df6279c882e8265
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-05-11 09:52:55 +0200

    Add support for external LED application.

    Add support for a callback script/application to control LEDs.

    This commits adds the ability to control a LED via an external application.
    The API is simple and is described in
    'iopsys-brcm63xx-arm/tiger/base-files/sbin/external_led_ctrl.sh'.

    To avoid unnecessary execution of the callback-script, logic has been added
    to keep track on when to update the LEDs.

Base directory -> /
 src/gpio_led.c | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 132 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit da6eb1d6c0fd03d45cbf5213acd5c2ff07b45bf5
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-05-11 09:40:00 +0200

    Add functionality to change default brightness for SK9822 LEDs.

    This commit adds the 'sk9822_brightness_file' option. The option can be used
    to adjust the default maximum brightness for the SK9822 LED driver.

Base directory -> /
 src/gpio_led.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2021-12-14 17:29:55 +01:00
Jakob Olsson
52ff5c79dd map-controller: 5.2.3 2021-12-14 17:15:21 +01:00
Jakob Olsson
09ad1ffa91 map-agent: 6.3.2: mapagent config changes 2021-12-14 17:05:21 +01:00
Yalu Zhang
1d2d9b7b97 dectmngr-3.4.2: Send notification of line and handset use status only to those handsets in range 2021-12-14 14:25:41 +01:00
Amit KUmar
7f405f04ac ponmngr: removed config file 2021-12-14 06:03:10 +00:00
Amit KUmar
16134d0a2d ponmngr: initial implementation 2021-12-14 06:03:10 +00:00
Yalu Zhang
5fbc784901 dectmngr-3.4.1: Create or update the entry for every line in list LineDiagnostic 2021-12-13 18:16:40 +01:00
Jakob Olsson
0eaba859a7 map-agent: remove uplink tmp file when restarting dynbhd 2021-12-13 16:24:44 +01:00
Jakob Olsson
7828e67308 map-controller: 5.2.2 2021-12-13 13:48:37 +01:00
vdutta
985ccf339f icwmp: 8.2.18 2021-12-13 16:11:10 +05:30
vdutta
b8f36d23ec bbf: 6.3.6 2021-12-13 15:45:57 +05:30
Amin Ben Ramdhane
4f7aeaaec2 bbf: 6.3.5 2021-12-13 09:26:47 +01:00
Anjan Chanda
d976140484 iop: config: add wfadatad-collector to build 2021-12-11 10:19:12 +01:00
vdutta
747436ce8f obuspa: Handle retries and lockout for challenges 2021-12-10 21:29:53 +05:30
Jakob Olsson
dde560d314 map-agent: 6.3.1 2021-12-10 15:45:22 +01:00
Amin Ben Ramdhane
34ec63d1f2 bbf: 6.3.4 2021-12-10 14:39:59 +01:00
vdutta
d4465d81f7 uspd: 2.1.39 2021-12-10 18:19:20 +05:30
vdutta
022ec4d6bb icwmp: 8.2.17 2021-12-10 17:50:31 +05:30
vdutta
6c68ff3be7 swmodd: Added auto-boot for lxc containers 2021-12-10 17:48:18 +05:30
Jakob Olsson
9e1e0eb0df map-controller: 5.2.14 2021-12-10 13:13:39 +01:00
Jakob Olsson
63ba56b87e map-agent: 6.3.0: introduce dynbhd 2021-12-10 13:13:08 +01:00
Anjan Chanda
53ab41ea2f ieee1905: 4.1.1 2021-12-10 12:58:31 +01:00
Anjan Chanda
d1477636f9 wfadatad: 6.10.0 (deagent + decollector) 2021-12-10 12:57:10 +01:00
Grzegorz Sluja
b2e8affb08 dectmngr: Do not create new LineDiagnostic entry each startup 2021-12-10 12:44:35 +01:00
Hemlata Bhatt
2dc9b89cd5 Voice : fix extension provider value type 2021-12-10 12:41:43 +01:00
Anjan Chanda
77acc69dbe wfadatad: 5.1.1 2021-12-09 20:09:43 +01:00
Anjan Chanda
5ac418113e map-controller: 5.2.13 2021-12-09 20:09:18 +01:00
Anjan Chanda
1ba55b753e map-agent: 6.2.12 2021-12-09 20:08:50 +01:00
Anjan Chanda
d483abe7d2 ieee1905: 4.1.0 2021-12-09 20:08:20 +01:00
Anjan Chanda
511d471d54 wifimngr: 14.0.3 2021-12-09 20:07:56 +01:00
Anjan Chanda
206ecd46db easy-soc-libs: 6.4.32 2021-12-09 20:07:29 +01:00
Andreas Gnau
f9f31384c2 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 7e013f0 Do not read entire file into buffer when extracting
-------------------------------------------------------------------------------
commit 7e013f0afa68378d38a6bdc9b0c5a342bd3dd0a5
Author: Erik Karlsson <erik.karlsson@genexis.eu>
Date: 2021-11-30 00:09:44 +0100

    Do not read entire file into buffer when extracting

    Only read FDT into buffer, and then in case of external image, use lseek
    followed by sendfile if supported or otherwise read/write.

    Remove unnecessary strdup of option arguments that would leak memory in case
    options are repeated.

    Fix confusing error message with --attribute when --image is used to specify
    a non-existing image.

Base directory -> /
 fdtextract.c | 169 +++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 106 insertions(+), 63 deletions(-)
-------------------------------------------------------------------------------
2021-12-09 18:24:19 +01:00
vdutta
2c4e50ab10 swmodd: optimize du_list get time 2021-12-09 21:04:40 +05:30
vdutta
ac46849475 obuspa: 4.1.0.15 2021-12-09 21:01:14 +05:30
Amin Ben Ramdhane
4db7061884 bbf: 6.3.3 2021-12-09 12:14:09 +01:00
Grzegorz Sluja
de40d120e2 dectmngr: Fix unitialized ptr value causing crash 2021-12-09 10:03:10 +01:00
Wenpeng Song
e54e20de45 dectmngr: Add the option to direct CMBS debug messages to syslog 2021-12-08 17:02:15 +00:00
Wenpeng Song
7add2a163d merge together with dectmngr feeds update 2021-12-08 16:32:34 +00:00
Yalu Zhang
499709e2df dectmngr-3.4.0: Support implicit intrusion call 2021-12-08 15:53:03 +01:00
vdutta
c566d23c78 sulu: 0.2.21 2021-12-07 19:49:30 +05:30
vdutta
a5c8b7145f rulengd: 1.2.4 2021-12-07 17:56:52 +05:30
vdutta
0419beb911 periodicstats: 1.0.5 2021-12-07 17:46:29 +05:30
vdutta
8bb22efe7d swmodd: Improved memoryinfo and SetRequestedState 2021-12-07 17:37:48 +05:30
vdutta
bff8f75bbb icwmp: Remove manual seeding of openssl RAND generator 2021-12-07 17:29:22 +05:30
Jakob Olsson
be57a189f7 map-controller: 5.2.3 2021-12-07 12:48:42 +01:00
Grzegorz Sluja
9c365459bb dectmngr: Update uci when DECT hs name is changed from hs menu 2021-12-07 11:53:18 +01:00
Amin Ben Ramdhane
f4e9f29d3d bbf: 6.3.2 2021-12-07 11:18:23 +01:00
Jakob Olsson
ac56460fec map-agent: 6.2.2 2021-12-07 10:52:49 +01:00
Omar Kallel
cb2077377a icwmp: 8.2.15 2021-12-06 18:25:04 +01:00
Amin Ben Ramdhane
673dfc8589 bbf: 6.3.1 2021-12-06 12:18:44 +01:00
Jakob Olsson
a287107ee1 map-controller: 5.2.2 2021-12-06 11:32:21 +01:00
vdutta
47396a4e4f obuspa: Boot time improvements 2021-12-03 19:38:37 +05:30
vdutta
d82756305c icwmp: Boot time improvements 2021-12-03 19:35:38 +05:30
Omar Kallel
5bd754fc9a icwmp: 8.2.13 2021-12-03 11:40:34 +01:00
Dominic Lake
bed5379108 obuspa: Add NotifRetry option to UCI
Added support for NotifRetry in UCI for use with subscriptions.
2021-12-03 09:47:41 +00:00
Yalu Zhang
d8e5dcf859 dectmngr 3.3.1: add some extensions to Line Settings List defined in CAT-iq 2.0
- /etc/init.d/dectmngr: set model id from hw.board.dect_model_id if the value in the database
  is valid. Otherwise set to 30.3B.06
- Add a config option: ENABLE_LINE_SETTINGS_EXTENSION in the package
2021-12-02 18:15:51 +01:00
Jakob Olsson
64f9e23850 map-agent: 6.2.1 2021-12-01 17:28:54 +01:00
Suru Dissanaike
aaffffdba2 quickjs-websocket: 1.1 2021-12-01 16:22:58 +01:00
arne.jonsson
0d6980e0ec Disabled and removed DEVTMPS from config 2021-12-01 15:00:27 +00:00
arne.jonsson
61f454043d Disabled and removed DEVTMPS from config 2021-12-01 15:00:27 +00:00
Janusz Dziedzic
defe48e4e8 ieee1905: allow local dev build
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-01 08:30:54 +00:00
Janusz Dziedzic
4d893499a5 map-controller: add local dev build option
After that ~/git/map-controller code will
be used/compiled.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-01 08:30:54 +00:00
Grzegorz Sluja
e32f2f09be dectmngr: Move DECT chip independent functions to dect_common.h 2021-11-30 18:51:39 +01:00
Jakob Olsson
183ba5d634 map-controller: 5.2.1 2021-11-30 17:30:41 +01:00
Grzegorz Sluja
809113d4b2 dectmngr: Remove handset's name section from config on deregistration 2021-11-30 12:24:12 +01:00
vdutta
927b002aa6 obuspa: Updated uci schema
- prototrace uci option to enable protocol trace
 - Added BootParamName for controller boot parameters
2021-11-29 17:54:25 +05:30
vdutta
c5654ad9ab icwmp: 8.2.12-2021-11-29 2021-11-29 11:14:46 +05:30
vdutta
2e3013dc56 uspd: 2.1.38 2021-11-26 19:19:43 +05:30
suvendhu
a7dd783b49 swmodd: use curl for du_install 2021-11-26 18:48:23 +05:30
Jakob Olsson
d3451b7bd4 ieee1905: 4.0.6 2021-11-26 13:18:39 +01:00
vdutta
776860187d icwmp: Fix race condition in dhcp ACS provisioning 2021-11-26 17:27:56 +05:30
Grzegorz Sluja
d2dda88aad dectmngr: Do not restart dectmngr on dect config change 2021-11-26 12:37:49 +01:00
Yalu Zhang
22871d2410 Update package dectmngr 3.3.0
Multiple line support with m:n mapping between extensions and DECT handsets
2021-11-26 11:59:42 +01:00
Amin Ben Ramdhane
707203b42a bbf: 6.3.0 2021-11-26 10:41:55 +01:00
Omar Kallel
60fb332fff icwmp: Remove set dhcp reqopt from uci-defaults && set dhcp_url to icwmp config 2021-11-25 18:05:39 +01:00
Omar Kallel
bd0d27ebc9 Start icwmp only if EnableCWMP is true 2021-11-25 17:39:51 +01:00
Jakob Olsson
0af83a4892 wfadatad: 5.1.0 2021-11-25 17:15:35 +01:00
Jakob Olsson
715f58db4d map-topology: 3.1.0 2021-11-25 16:49:23 +01:00
Jakob Olsson
cdfa0a7313 map-controller: 5.2.0 2021-11-25 15:57:06 +01:00
Jakob Olsson
9b12400c0b map-agent: 6.2.0 2021-11-25 15:54:00 +01:00
Dominic Lake
b59e3250af obuspa: Support different boot params per controller
Added support to specify the boot params for each controller separately in the controller UCI section.
2021-11-24 16:35:50 +00:00
vdutta
f742ce11ae obuspa: Publish endpoint id to mqtt broker for usp-js 2021-11-24 19:52:25 +05:30
vdutta
7a6ff46b8a swmodd: 2.0.11 2021-11-24 19:22:14 +05:30
Amin Ben Ramdhane
e3d9a24ed7 bbf: 6.2.6 2021-11-24 12:13:42 +01:00
vdutta
88fcb2e4df uspd: Fix schema updater 2021-11-24 13:55:39 +05:30
vdutta
0f05633d74 obuspa: updated default interface to loopback 2021-11-24 13:20:38 +05:30
Jakob Olsson
5173b01cb2 map-controller: make uci wireless to mapcontroller sync configurable 2021-11-23 17:16:24 +01:00
Omar Kallel
86cf6fc81e icwmp: 8.2.11-2021-11-23 2021-11-23 16:44:28 +01:00
Omar Kallel
2ee29d8252 Add BOOT event when starting icwmp 2021-11-23 16:38:16 +01:00
Omar Kallel
ef178897ba Add BOOT event when starting icwmp 2021-11-23 15:24:33 +01:00
Suru Dissanaike
1d4b28acd4 quickjs: added quickjs package graciously provided by Genexis 2021-11-23 10:34:34 +01:00
Anjan Chanda
2b6e74fb80 map-topology: include libnl3 in target-cflags 2021-11-23 09:21:34 +01:00
Janusz Dziedzic
32cfd29d74 map-agent: add local dev build option
After that ~/git/map-agent code will
be used/compiled.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-11-22 17:18:54 +00:00
Omar Kallel
63959e908e icwmp: 8.2.10-2021-11-22 2021-11-22 15:50:33 +01:00
vdutta
80e2035662 uspd: 2.1.36 2021-11-22 20:06:12 +05:30
Amin Ben Ramdhane
7527faca9c bbf: 6.2.5 2021-11-22 14:18:27 +01:00
Erik Karlsson
b7e010be3b gryphon-led-module: use the right toolchain on Broadcom targets
Userspace toolchain was being used to build the kernel module which
although not correct happened to work on 32-bit kernel but obviously
does not work on 64-bit kernel with 32-bit userspace.

Ideally, it should but enough to set KERNEL_CROSS if Build/Compile is
updated to use KERNEL_CROSS instead of TARGET_CROSS, but not changing
TARGET_CROSS breaks scripts/strip-kmod.sh which for some reason uses
TARGET_CROSS rather than KERNEL_CROSS.
2021-11-19 16:16:19 +01:00
Amin Ben Ramdhane
84ad0eec4e bbf: 6.2.4 2021-11-19 14:49:31 +01:00
vdutta
bd188aaed2 swmodd: Multiple fixes
- Handle frozen containers
 - Handle libgcc package name miss-match
2021-11-19 11:08:38 +05:30
Amit Kumar
4d244eb31e mcastmngr: corrected P1 break of mcast stats 2021-11-18 06:48:52 +00:00
nevadita.chatterjee
14aab50849 easy-soc-libs: 6.4.28 2021-11-17 16:53:40 +05:30
sverma
3a605fd8f5 bbf: 6.2.3 2021-11-17 15:57:12 +05:30
Amin Ben Ramdhane
f9bbce19dd bbf: 6.2.2 2021-11-16 18:10:45 +01:00
Omar Kallel
a1677793d3 icwmp: Remove the use of .icwmpd_boot file 2021-11-16 11:51:50 +01:00
Grzegorz Sluja
d7a8913072 dectmngr: Refresh Contact List on handset after change from ubus 2021-11-16 09:51:05 +01:00
Omar Kallel
34c5ea3c75 Ticket refs #5876: icwmp: Init scripts enhancements and cleanup 2021-11-15 15:58:56 +01:00
Grzegorz Sluja
c006db0e21 dectmngr: Remove dependency to libiconv from dectmngr 2021-11-15 14:59:33 +01:00
Amin Ben Ramdhane
4e42968aca bbf: 6.2.1 2021-11-15 13:39:36 +01:00
vdutta
9b48e54734 icwmp: Fix random crashes 2021-11-13 16:21:52 +05:30
Amin Ben Ramdhane
77a41d56a1 bbf: 6.2.0 2021-11-12 14:11:43 +01:00
Andreas Gnau
90fa843074 gryphon-led-module: Build against bcmkernel on Broadcom platforms
Due to the complexity of the Broadcom build system which amongst others
puts dynamically generated symlinks into the kernel dir, we have a fake
kernel "bcmlinux" to please the OpenWrt build system. This kernel is not
used for anything but building the OpenWrt toolchain. To compile against
the right kernel that is running on the target, we need to compile the
kernel module against the kernel inside bcmkernel which is the one
compiled by the BCM SDK.
2021-11-12 12:11:08 +00:00
Jakob Olsson
524c718242 map-agent: 6.1.1 2021-11-12 11:21:52 +01:00
Jakob Olsson
e00102c2b9 map-controller: 5.1.1 2021-11-12 11:19:38 +01:00
Anjan Chanda
2c0b6b76e2 wfadatad: 5.0.5 2021-11-12 09:38:15 +01:00
Anjan Chanda
9e9dc5b1a9 wifimngr: 14.0.0 2021-11-12 09:37:33 +01:00
Anjan Chanda
4535b14305 easy-soc-libs: 6.4.27 2021-11-12 09:36:29 +01:00
Yalu Zhang
478e3a5c8b dectmngr: keep /etc/dect/LA_DB during sysupgrade 2021-11-11 15:24:40 +01:00
Amin Ben Ramdhane
98302e0523 periodicstats: 1.0.4 2021-11-11 13:57:02 +01:00
Amin Ben Ramdhane
4dc45c779a bbf: 6.1.9 2021-11-11 13:56:06 +01:00
Yalu Zhang
c1bef47f50 dectmngr: update Makefile to include the path for external libraries 2021-11-11 12:14:03 +01:00
Andreas Gnau
9fb0c48a22 dectmngr: Add missing iconv-full dependency
dectmngr has required libiconv-full, but did not declare the dependency.
This creates a risk for the build failing due to race conditions. After
we removed another config-option that depended on libiconv-full the
build started to fail because nothing depended on libiconv-full anymore.

Fixes: f6f1644b (iop: config: Don't enable CONFIG_BUILD_NLS, 2021-11-04)
2021-11-11 10:56:08 +01:00
Anjan Chanda
d8e35df684 wfa-capi: 1.1.0 2021-11-11 10:51:12 +01:00
Yalu Zhang
d0189d605f dectmngr: bump the package version to 3.2.0 2021-11-10 14:37:35 +00:00
Grzegorz Sluja
8de1704440 dectmngr: Add phonebook support 2021-11-10 11:18:09 +01:00
Andreas Gnau
f6f1644bab iop: config: Don't enable CONFIG_BUILD_NLS
It seems like CONFIG_BUILD_NLS it is not needed by anything, so disable
it. On an embedded device, we do not need localised output. End-users
will probably never interact via SSH with the device. So it is unclear
why it had been enabled in the first place.
2021-11-10 09:47:40 +00:00
vdutta
b1c705544b Added ifupdate in hotplug 2021-11-09 17:58:36 +01:00
Omar Kallel
bd8d574177 Remove init script logs 2021-11-09 17:57:02 +01:00
Omar Kallel
4b5c88b015 icwmp: Reduce I/O on filesystem 2021-11-09 17:51:48 +01:00
Omar Kallel
32245d37c3 Revert "Added ifupdate in hotplug"
This reverts commit 08244c5392.
2021-11-09 16:35:09 +01:00
Omar Kallel
56d2b9c4e3 Revert "icwmp: Reduce I/O on filesystem"
This reverts commit 146bc95709.
2021-11-09 16:34:59 +01:00
vdutta
08244c5392 Added ifupdate in hotplug 2021-11-09 16:24:21 +01:00
Omar Kallel
146bc95709 icwmp: Reduce I/O on filesystem 2021-11-09 16:23:31 +01:00
Amin Ben Ramdhane
25a861a55f bbf: 6.1.7 2021-11-09 15:49:15 +01:00
vdutta
86fab6969f uspd: Option to configure dm version to use 2021-11-08 11:26:01 +05:30
Amin Ben Ramdhane
5463df37e1 bbf: 6.1.6 2021-11-05 10:55:41 +01:00
Grzegorz Sluja
a480a0c95d dectmngr: Update package dectmngr
c2b5452 Disable dectmngr logging to file by default
6d0af6c SUOTA implementation
79fa843 Fix the bug of syslog messages with incorrect ident and facility
2021-11-04 07:52:37 +01:00
vdutta
89068fa876 icwmp: 8.2.6-2021-11-03 2021-11-03 21:23:20 +05:30
vdutta
c3cee3431c uspd: Enable caching of ubus data 2021-11-03 21:17:08 +05:30
Amin Ben Ramdhane
bf70b518bd bbf: 6.1.5 2021-11-03 16:42:09 +01:00
nevadita.chatterjee
ad293962c1 topology: 3.0.4 2021-11-03 13:36:41 +05:30
nevadita.chatterjee
6badc20bcc map-topology:3.0.3 2021-11-02 16:43:43 +05:30
vdutta
f8b51b9ca5 uspd: Add TransferComplete event with bbf plugin 2021-11-01 16:23:46 +05:30
Jakob Olsson
a5c390efdd ieee1905: 4.0.5 2021-10-29 16:08:31 +02:00
vdutta
6d011f8626 uspd: Extend TransferComplete with json plugin 2021-10-29 18:48:12 +05:30
vdutta
f1d5e5d7cd bbf: Support operate and events with json plugins 2021-10-29 18:45:12 +05:30
vdutta
0fed56903c icwmp: 8.2.6-2021-10-29 2021-10-29 17:20:09 +05:30
Jakob Olsson
2ac7be4652 map-agent: 6.1.0 2021-10-29 13:36:55 +02:00
Jakob Olsson
7e34649ce7 map-controller: 5.1.0 2021-10-29 13:36:26 +02:00
Amit Kumar
a404da9124 libqos: updated broadcom header file 2021-10-29 16:43:19 +05:30
Amit Kumar
d152eb0f17 qosmngr: porttminit added before qcfg 2021-10-29 10:45:10 +00:00
Hemlata Bhatt
fb8ed439b8 Adjustment for the restructure of asterisk UCI config 2021-10-29 11:58:40 +02:00
nevadita.chatterjee
6b23da2314 map-topology: 3.0.2 2021-10-29 13:19:02 +05:30
sverma
bc90649202 wfadatad: 5.0.3 2021-10-28 20:56:19 +05:30
Jakob Olsson
0f31eb632f map-agent: rename map-loop-detection to map-dynamic-backhaul 2021-10-28 16:23:13 +02:00
Stanislaw Gruszka
5c37dc2165 ieee1905: export cmdu_ackq.h 2021-10-28 12:48:19 +00:00
Erik Karlsson
b4ce04d317 map-controller: fix enabling via uci
The service must be started but without any instance in case it is
disabled via uci. If it is stopped entirely, the reload trigger does
not work and it is impossible to re-enable mapcontroller via uci
without explicit reload.
2021-10-28 07:09:23 +00:00
Erik Karlsson
1f817c4e8f map-agent: trigger reload on the right configuration file
Trigger reload, which is currently implemented as restart, when
mapagent rather than ieee1905 configuration is changed.
2021-10-28 07:09:23 +00:00
vdutta
26599ba94e uspd: Added get_supported_dm 2021-10-27 20:17:38 +05:30
vdutta
26fe0bc7de bbf: 6.1.3 2021-10-27 20:16:44 +05:30
Marek Puzyniak
37493eb8be easy-soc-libs: 6.4.6
Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>
2021-10-27 09:54:18 +00:00
vdutta
b3dda9b4e5 uspd: align with bbf changes 2021-10-27 13:27:00 +05:30
vdutta
94879c6de9 bbf: 6.1.2 2021-10-27 13:25:55 +05:30
vdutta
a15f586ecf icwmp: Fix raise condition for con-req 2021-10-26 20:04:02 +05:30
nevadita.chatterjee
f3c5face44 ieee1905: version 4.0.4 2021-10-26 15:43:00 +05:30
Jakob Olsson
4488510e4b map-agent: 6.0.8 2021-10-25 11:20:00 +02:00
vdutta
4685cb49d4 icwmpd: 8.2.4-2021-10-25 2021-10-25 12:16:35 +05:30
vdutta
6ad633cbf4 uspd: 2.1.29 2021-10-25 12:14:32 +05:30
vdutta
d97c335cb5 obuspa: Fix compilation errors for gcc 11 2021-10-25 12:03:48 +05:30
vdutta
3563683cec swmodd: Fix compilation error on gcc v11 2021-10-25 11:59:24 +05:30
vdutta
330bb08d1b bbf: 6.1.1 2021-10-25 11:57:29 +05:30
Jakob Olsson
93f2090d0e map-agent: 6.0.7 2021-10-22 16:58:33 +02:00
Jakob Olsson
d9ae18761b map-agent: map-loop-detection: speed up interface removal from bridge and harmonize disconnection 2021-10-22 16:56:15 +02:00
Jakob Olsson
40a1a45412 wifimngr: 05-wifi: publish wps over fronthauls when eth connected 2021-10-22 16:51:41 +02:00
Jakob Olsson
f459eaafb9 map-agent: 6.0.6 2021-10-22 15:21:56 +02:00
Jakob Olsson
a80ed328c3 map-controller: get source url from https 2021-10-22 15:19:04 +02:00
Jakob Olsson
15d9fc0339 map-agent: get source url from https 2021-10-22 15:11:26 +02:00
Amin Ben Ramdhane
916edb4ba3 bbf: 6.1.0 2021-10-22 12:56:13 +01:00
Amin Ben Ramdhane
eb67d5ab6e icwmp: 8.2.4-2021-10-22 2021-10-22 11:13:24 +01:00
Amin Ben Ramdhane
dd43b90e91 bulkdata: 1.0.3 2021-10-22 11:11:46 +01:00
Jakob Olsson
5fee9aa7b4 map-agent: multiap: enable bsta being swapped to 2021-10-22 10:28:32 +02:00
Jakob Olsson
b821c760df map-agent: multiap: implement swap to link function 2021-10-21 17:09:30 +02:00
Andreas Gnau
2dbcf3c75c Update feed [ iopsys ] package [ endptmngr ]
-------------------------------------------------------------------------------
* 6d7b2e9 Adapt Broadcom SDK 5.04 workaround version check to 5.04L.02p1
* f28a1b7 BCM: Adapt to SDK 5.04L.02p1 endpoint_api changes
-------------------------------------------------------------------------------
commit 6d7b2e9c90234767cb56a1e7885f42825bd6287a
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-10-20 17:43:37 +0200

    Adapt Broadcom SDK 5.04 workaround version check to 5.04L.02p1

    Adapt the version check for the workaround for BCM SDK 5.04 a9e612c (Add a
    workaround need for building with Broadcom 5.04., 2020-11-08) to cover BCM
    SDK 5.04L.02p1.

Base directory -> /
 src/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit f28a1b7b08a0bcc8faa2b25e1acebf811e05e87c
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-09-21 16:32:17 +0200

    BCM: Adapt to SDK 5.04L.02p1 endpoint_api changes

    In SDK 5.04L.02p1, Broadcom has changed rtcpXRMode in struct EPZCNXPARAM
    with a bitfield rtcpXRConfig which enables a more fine-grained control of
    the RTCP XR configuration.

    For now, set it to HAPI_RTP_RTCP_XR_GENERATE_VOIP_REPORT as recommended by
    the comment in endpoint_api.h. More bits to set can be found in hapi_rtp.h
    in the SDK.

Base directory -> /
 src/connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2021-10-20 17:59:05 +02:00
Jakob Olsson
952366cbc6 map-agent: multiap: write bssid for same bands when writing bsta section 2021-10-20 12:49:09 +02:00
Jakob Olsson
23a18999d5 ieee1905: 4.0.3 2021-10-20 10:11:43 +02:00
Jakob Olsson
2d2dffbec2 map-agent: 6.0.5 2021-10-20 10:08:24 +02:00
Sukru Senli
758ee8ec9f sulu: 0.2.20 2021-10-19 17:18:48 +02:00
Amin Ben Ramdhane
c38ce1be3b bbf: 6.0.9 2021-10-19 14:43:55 +01:00
Andreas Gnau
2b5332adc3 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* ef46eb3 Add --image switch for getting attributes from image nodes. Also update the indentation and fix some minor naming issues.
-------------------------------------------------------------------------------
commit ef46eb3be68ae1216d8699234f237fb2243289f1
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-10-14 10:22:48 +0200

    Add --image switch for getting attributes from image nodes. Also update the
    indentation and fix some minor naming issues.

Base directory -> /
 fdtextract.c  | 122 +++++++++++++++++++++++++++++++++++-----------------------
 util.c        |   2 +-
 version_gen.h |   2 +-
 3 files changed, 76 insertions(+), 50 deletions(-)
-------------------------------------------------------------------------------
2021-10-18 16:56:32 +02:00
Jakob Olsson
70c3d5d5e1 map-agent: multiap: comment out debug print 2021-10-18 13:17:09 +02:00
vdutta
df41990929 icwmp: Revert Init scripts enhancements and cleanup 2021-10-15 20:41:25 +05:30
Jakob Olsson
6edc7cbb94 map-controller: 5.0.3 2021-10-15 10:21:05 +02:00
Jakob Olsson
d7bffebd5b map-agent: 6.0.4 2021-10-15 10:21:05 +02:00
Jakob Olsson
8f81a71b57 ieee1905: 4.0.2 2021-10-15 10:21:05 +02:00
Jakob Olsson
9452ada64f map-agent: 6.0.3 2021-10-15 09:42:41 +02:00
Jakob Olsson
1a3d267ee1 map-agent: map-loop-detection: reconnect enabled supplicants 2021-10-15 09:35:46 +02:00
Jakob Olsson
2f6b40bdd2 map-agent: multiap: add dynamic backhaul funcs 2021-10-15 09:35:46 +02:00
Jakob Olsson
d1c2be5b08 map-agent: multiap: supress uci errors 2021-10-15 09:35:46 +02:00
vdutta
fdee0c734c icwmp: 8.2.4-2021-10-14 2021-10-14 22:01:48 +05:30
Sukru Senli
88513db735 questd: remove reload trigger 2021-10-14 16:12:01 +02:00
Amin Ben Ramdhane
8bdbefcc80 bbf: 6.0.8 2021-10-14 13:51:20 +01:00
Omar Kallel
ee33f0ae7d icwmp: 8.2.4-2021-10-13 2021-10-13 16:21:33 +01:00
Omar Kallel
5cd57a3ee9 Ticket refs #5876: icwmp: Init scripts enhancements and cleanup 2021-10-13 16:11:27 +01:00
Amin Ben Ramdhane
56a6cbf04a bbf: 6.0.7 2021-10-13 14:35:36 +01:00
Omar Kallel
1fb879fca0 icwmp: get dhcp 43 option in icwmp hotplug script instead of netifd package 2021-10-13 11:17:51 +01:00
Omar Kallel
a3fd03c390 icwmp: use both ipv4 and ipv6 addresses for firewall rules 2021-10-12 11:41:07 +01:00
Amin Ben Ramdhane
00594ba01e bbf: 6.0.6 2021-10-11 16:13:33 +01:00
Anjan Chanda
132bba5c20 wfa-capi: 1.0.0 2021-10-11 16:34:22 +02:00
Grzegorz Sluja
06f160af35 dectmngr: Fixes for registration and set HS name
0e937cf Set the HS name during registration if it has the name set in uci
62421c0 Do not send LocateSuggest req when registration mode is opened
2021-10-11 14:42:52 +02:00
Sukru Senli
04bf025b8f questd: remove deprecated router.network object 2021-10-11 09:54:59 +02:00
Sukru Senli
1daa8d7f1a iop: genconfig: remove references to juci 2021-10-11 09:49:07 +02:00
Sukru Senli
97a302a20a juci: remove deprecated package 2021-10-11 09:40:05 +02:00
Anjan Chanda
87a0fbe8bf wfadatad: 5.0.2 2021-10-08 21:48:36 +02:00
Yalu Zhang
54b4140e09 dectmngr 3.1.18: support DECT multiple line mode 2021-10-08 17:16:10 +02:00
vdutta
99267f902b bbf: 6.0.5 2021-10-08 12:45:53 +05:30
vdutta
0338a2fd7c uspd: Configure option for subprocess on get cmd 2021-10-08 11:12:10 +05:30
vdutta
e134a5ed08 obuspa: Align permission for set 2021-10-08 11:08:30 +05:30
vdutta
0d8f4a3de8 obuspa: Fail init if required data is missing 2021-10-08 11:01:47 +05:30
Jakob Olsson
d5e7cb1a28 map-controller: 5.0.2 2021-10-07 17:15:50 +02:00
Jakob Olsson
e995fcb14d map-agent: 6.0.2 2021-10-07 17:12:22 +02:00
vdutta
f865531fa5 bbf: 6.0.4 2021-10-07 17:11:26 +05:30
Markus Gothe
104f3e2e83 qosmngr: updated broadcom.sh to get the ports from the runner.
When using the runner accelerator we need to check how to
map between ethernet interfaces (i.e eth0) and the internal
names used by the runner (i.e. port/index=lan2). Depending on
the hardware the mapping is not always 1:1 as assumed earlier.

This commit also fixes a minor bug with resetting traffic
shaping for the archer accelerator.
2021-10-07 05:12:04 +00:00
Sukru Senli
d298757300 obudpst: install as udpst 2021-10-06 18:48:39 +02:00
vdutta
b66ade378a bbf: 6.0.3 2021-10-06 10:33:58 +05:30
Omar Kallel
be36f2e3e8 icwmp: uci enhancements 2021-10-05 14:37:52 +01:00
Anjan Chanda
00dc43eb39 map-agent: 6.0.1 2021-10-04 14:34:58 +02:00
Anjan Chanda
efeeb00a0a map-topology: 3.0.1 2021-10-04 14:18:57 +02:00
Anjan Chanda
cc5b7a8a17 wfadatad: 5.0.1 2021-10-04 14:18:19 +02:00
Anjan Chanda
ce8425ce70 map-controller: 5.0.1 2021-10-04 14:16:53 +02:00
Anjan Chanda
ce5b916828 ieee1905: 4.0.1 2021-10-04 14:01:39 +02:00
Anjan Chanda
7f04196f58 easy-soc-libs: 6.4.5 2021-10-04 14:01:13 +02:00
Stanislaw Gruszka
762d5a5daa map-agent: fix configuring ssid's and keys with spaces 2021-10-04 10:21:58 +00:00
Anjan Chanda
abc997d3f3 easy-soc-libs: 6.4.1 2021-10-03 21:16:14 +02:00
Markus Gothe
924b54d8d3 grpyhon-led-module: Add ability to read back color
To aid remote debugging we want to be able to
read back the set color on the RGB LED. This commit
implements this functionality.
2021-10-01 16:16:32 +00:00
Jakob Olsson
bd8dd65766 map-topology: 2.1.10 2021-10-01 16:08:21 +02:00
Jakob Olsson
5372956a9a map-agent: multiap: func to sync mapcontroller from wireless
To accomodate datamodel
2021-10-01 10:52:44 +02:00
Jakob Olsson
bf0ddc5321 map-agent: 5.4.2 2021-09-30 16:37:58 +02:00
Jakob Olsson
7895966aa2 map-agent: 5.4.1 2021-09-30 16:28:54 +02:00
Jakob Olsson
0f716b5197 map-controller: 4.2.6 2021-09-30 16:28:19 +02:00
Jakob Olsson
dd56712aa4 map-controller: 4.2.5 2021-09-30 16:28:19 +02:00
Jani Juvan
b7de0cf4bb map-agent: 5.4: traffic separation 2021-09-30 16:28:19 +02:00
Amin Ben Ramdhane
09f6449a6e bbf: 6.0.0 2021-09-30 15:19:19 +01:00
Andreas Gnau
f00e7fe965 iop: config: Use OpenSSL instead of WolfSSL for libustream
In IOPSYSWRT, we use OpenSSL. Instead of shipping WolfSSL just for the
OpenWrt libustream library (which powers the uclient-fetch / wget
commands), make libustream use OpenSSL as well. This decreases security
maintenance and reduces overhead in image size and memory usage.
2021-09-30 15:05:04 +02:00
vdutta
dd7aac2a8c swmodd: Fix compilation issues 2021-09-30 18:27:32 +05:30
vdutta
49ffec4bc9 swmodd: Improve get time 2021-09-30 16:21:32 +05:30
Grzegorz Sluja
0a638e202b dectmngr: Fix some compilation warnings 2021-09-30 12:39:56 +02:00
Grzegorz Sluja
82676d8390 dectmngr: Fixes for setting DECT HS name and setting MWI 2021-09-30 09:24:06 +02:00
Yalu Zhang
95d6cadee1 dectmngr 3.1.17: Fix an issue that the call can't be released properly 2021-09-29 17:34:56 +02:00
vdutta
4672442d50 obuspa: Startup improvements 2021-09-29 16:26:49 +05:30
Amin Ben Ramdhane
7a8759e46a bbf: 5.0.8 2021-09-28 13:39:26 +01:00
Grzegorz Sluja
f28659ebe0 dectmngr: Change uci config file from dectmngr to dect 2021-09-28 13:26:50 +02:00
Grzegorz Sluja
f10457c8cb dectmngr: fixup! Implementation for setting DECT Handset's name 2021-09-27 10:50:12 +02:00
Grzegorz Sluja
bd3f962614 dectmngr: Add dectmngr trigger so that change in uci config reloads it 2021-09-27 10:49:13 +02:00
Grzegorz Sluja
a4aa0b3521 Revert "dectmngr: Add handset name to uci configuration"
This reverts commit 67169eff2a.
2021-09-27 10:49:13 +02:00
Anjan Chanda
06204d8523 wifimngr: 13.0.1 2021-09-26 21:33:52 +02:00
Anjan Chanda
4b5dbec851 easy-soc-libs: 6.3.4 2021-09-26 21:31:51 +02:00
vdutta
ab6035acbd icwmp: Default incoming rule based on port only 2021-09-25 17:22:00 +05:30
vdutta
72b7726f1e icwmp: 8.1.10-2021-09-24 2021-09-24 19:26:16 +05:30
Jakob Olsson
56ab101640 map-controller: 4.2.4 2021-09-24 15:50:33 +02:00
Amin Ben Ramdhane
4ee030a2ea bbf: 5.0.7 2021-09-24 14:10:26 +01:00
Jakob Olsson
ec402a2ea1 map-controller: 4.2.3 2021-09-24 14:32:43 +02:00
Jakob Olsson
52466671ab map-controller: 4.2.2 2021-09-24 13:41:02 +02:00
Jakob Olsson
3a54432533 map-controller: update default pkg config 2021-09-24 12:26:11 +02:00
Jakob Olsson
7a8e1b9076 map-controller: 4.2.1 2021-09-24 12:23:03 +02:00
Jakob Olsson
237e8d7b6d map-agent: 5.3.1 2021-09-24 12:22:31 +02:00
Grzegorz Sluja
bd468e4761 dctmngr: Implementation for setting DECT Handset's name 2021-09-24 10:18:56 +02:00
Grzegorz Sluja
67169eff2a dectmngr: Add handset name to uci configuration 2021-09-24 10:18:47 +02:00
Jakob Olsson
1ad1ef12b4 map-controller: 4.2.0: update default config 2021-09-24 10:11:27 +02:00
Jakob Olsson
a012f98b4c map-agent: bump version 5.3.0 2021-09-24 10:10:51 +02:00
Yalu Zhang
1f3c696867 dectmngr: fix an error in Makefile for PKG_SOURCE_SUBDIR 2021-09-23 15:37:57 +02:00
Sukru Senli
b861a89031 Revert "dectmngr: avoid multiple directories in build_dir when lifting versions"
This reverts commit a94c701f66.
2021-09-23 15:19:31 +02:00
Amin Ben Ramdhane
ca9e4f1765 bbf: 5.0.6 2021-09-23 13:52:44 +01:00
Yalu Zhang
a94c701f66 dectmngr: avoid multiple directories in build_dir when lifting versions 2021-09-23 12:35:09 +02:00
Yalu Zhang
13684e1ce6 dectmngr: 3.1.16
Fix issues in ubus dect status
2021-09-23 11:56:27 +02:00
vdutta
00d5c0849c uspd: module test enhancements 2021-09-22 19:56:41 +05:30
Amin Ben Ramdhane
2ae25830e7 bbf: 5.0.5 2021-09-22 13:47:00 +01:00
nevadita.chatterjee
645a3bb5e5 topology:2.1.9 2021-09-22 14:31:43 +05:30
vdutta
85fbea1d40 Revert "uspd: Fix memory leak"
This reverts commit bb6131b1f7.
2021-09-21 22:28:19 +05:30
Sukru Senli
4be8594678 sulu-0.2.19 2021-09-21 18:17:00 +02:00
Yalu Zhang
1cb7520cb9 Update package dectmngr
Fix compilation error when set ENABLE_DECTMNGR_DEBUG to 1
2021-09-21 17:18:20 +02:00
vdutta
bb6131b1f7 uspd: Fix memory leak 2021-09-21 19:51:21 +05:30
Jakob Olsson
f268b27622 map-agent: 5.3.0 2021-09-21 16:11:15 +02:00
Jakob Olsson
85387d16b1 map-agent: multiap - add backhaul priority sync for bstas 2021-09-21 16:04:30 +02:00
vdutta
566a5ebcc7 obuspa: 4.1.0.5 2021-09-21 14:53:34 +05:30
vdutta
48104e2831 icwmp: Code enhancement 2021-09-21 14:44:48 +05:30
vdutta
f9e6d17778 obuspa: Reverting interface trigger 2021-09-20 20:34:43 +05:30
Sukru Senli
47ffb81c08 obudpst: remove unnecessary Build/InstallDev section 2021-09-19 17:57:43 +02:00
Erik Karlsson
fd050bc759 Revert "owsd: hotplug: map aliases against interface on ifup"
This reverts commit 051826305e.

Reason for revert: This appears unnecessary as individual ifup events
are already being generated for main and alias interfaces. The logic
is also broken. It causes owsd to be reloaded every time there is ifup
event on alias interface, regardless of owsd configuration.
2021-09-19 14:38:18 +00:00
Sukru Senli
76d1fd9cb3 obudpst-7.2.1 2021-09-19 16:32:39 +02:00
vdutta
3bf86b8652 icwmp: 8.1.9-2021-09-17 2021-09-17 20:26:23 +05:30
Yalu Zhang
c914639104 Update package dectmngr
Play dial tone when handset goes off hook without called number
2021-09-17 16:24:38 +02:00
Omar Kallel
425d48e974 icwmp: firewall improvement 2021-09-17 11:33:35 +01:00
Amin Ben Ramdhane
c339eae256 icwmp: 8.1.7-2021-09-17 2021-09-17 10:49:26 +01:00
suvendhu
fa7ef67b91 uspd: Added config option for max blob msg len 2021-09-17 14:36:05 +05:30
sverma
fc374d0f29 ieee1905: 3.3.7 2021-09-17 12:49:58 +05:30
Sukru Senli
01808d21b2 iop: sync genconfig_min versioning with genconfig 2021-09-17 09:06:37 +02:00
Amit Kumar
5a1fdc0b07 qosmngr: updated broadcom.sh for queue shapingrate 2021-09-16 18:19:00 +00:00
Amin Ben Ramdhane
6a84c4511a bbf: 5.0.4 2021-09-16 17:19:40 +01:00
vdutta
11704f2f91 obuspa: Init script enhancement 2021-09-16 19:08:31 +05:30
Amin Ben Ramdhane
d48965a03f bbf: 5.0.3 2021-09-15 15:12:53 +01:00
Janusz Dziedzic
bd12c3d6e8 onboarding, start wps on all available sta ifaces
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-09-15 10:11:09 +00:00
Sukru Senli
249072f280 iop: genconfig: update TARGET_VERSION generation
for non-tagged commits, TARGET_VERSION becomes <LAST_TAG>_<SHORT_COMMIT_HASH>
2021-09-14 19:47:38 +02:00
Yalu Zhang
ece01dd366 Update package dectmngr
Show boolean parameters correctly in ubus outputs
2021-09-14 14:52:39 +02:00
Yalu Zhang
2d82d20613 Update package dectmngr
Add two parameters to UBUS "dect status" for base station
2021-09-14 14:14:40 +02:00
Amin Ben Ramdhane
e6371c74d6 bbf: 5.0.1 2021-09-14 12:03:32 +01:00
Andreas Gnau
aa25a78ff1 iop: feeds_update: Make dev-check check for SSH instead of non-HTTP
Similarly to 986fc5ea (Make dev-check check for SSH instead of non-HTTP,
2020-06-23), check for SSH instead of whether the repo was cloned via
HTTP. Developers might have other remotes such as OpenWrt's configured.
2021-09-14 09:57:48 +02:00
jjoseph
60d1c43735 Update feed [iopsys] package [dslmngr] 2021-09-14 13:10:38 +05:30
vdutta
795fc9e805 icwmp: Reverted uci validation
- Partially reverted ae186df3c9
2021-09-13 19:53:47 +05:30
Hemlata Bhatt
1af894cba6 Digitmap DM parameters implemented 2021-09-13 14:26:48 +02:00
vdutta
4ba1558caa obuspa: Fix read only db warning 2021-09-10 17:08:33 +05:30
Jakob Olsson
cfb06f61d0 map-controller: 4.1.1 2021-09-10 11:01:11 +02:00
Jakob Olsson
d786c69d46 Revert "map-agent: 5.2.4"
This reverts commit 5d2b838d3e.
2021-09-10 11:00:37 +02:00
Jakob Olsson
5d2b838d3e map-agent: 5.2.4 2021-09-10 10:58:23 +02:00
Amit Kumar
88060bc42a libqos: updated log level 2021-09-10 13:03:59 +05:30
Jakob Olsson
16c3f49ff5 map-agent: 5.2.3 2021-09-10 08:44:23 +02:00
Omar Kallel
4b6eaad9a8 icwmp: 8.1.6-2021-09-10 2021-09-10 06:59:22 +01:00
Amit Kumar
af241bb222 qosmngr: corrected portid and unit for rxratecrtl 2021-09-10 05:03:02 +00:00
Amin Ben Ramdhane
ae621822c4 periodicstats: 1.0.3 2021-09-09 18:24:06 +01:00
Amin Ben Ramdhane
1a6ac9fa87 swmodd: 2.0.6 2021-09-09 18:21:46 +01:00
Amin Ben Ramdhane
749e38735a xmppc: 1.0.2 2021-09-09 18:19:54 +01:00
Amin Ben Ramdhane
292276ce75 bulkdata: 1.0.2 2021-09-09 18:17:04 +01:00
Amin Ben Ramdhane
1bcc2854af twamp: 1.0.1 2021-09-09 18:14:40 +01:00
Amin Ben Ramdhane
cee063223e bbf: 5.0.0 2021-09-09 18:13:02 +01:00
Jakob Olsson
44e1f1c867 map-agent: 5.2.2 2021-09-09 16:53:07 +02:00
Jakob Olsson
0b2d89a810 map-agent: 5.2.1 2021-09-09 16:15:33 +02:00
Jakob Olsson
d16a53087d map-controller: 4.1.0 2021-09-09 15:24:55 +02:00
Jakob Olsson
f4ca987fae map-agent: 5.2.0 2021-09-09 15:24:04 +02:00
Jakob Olsson
c6e8ad013c map-agent: increase wpa supplicant related steer functionality 2021-09-09 15:23:14 +02:00
Jakob Olsson
76e6d34d67 map-agent: 5.1.5 2021-09-09 15:22:50 +02:00
Jakob Olsson
3bdc80057b wfadatad: 4.0.10 2021-09-09 13:25:03 +02:00
Amin Ben Ramdhane
87f6ea2a1c bbf: 4.5.9 2021-09-08 15:03:43 +01:00
Roman Azarenko
24e065f9a8 iop: remove legacy Open SDK support in genconfig 2021-09-08 11:28:30 +02:00
Jakob Olsson
ba7d1c1153 map-agent: 5.1.4 2021-09-08 10:56:30 +02:00
Jakob Olsson
42a13509a4 easy-soc-libs: 6.3.2 2021-09-08 10:56:01 +02:00
Roman Azarenko
d5b529311a iop: sync genconfig_min to genconfig, workaround for IOP-5730 2021-09-07 16:41:38 +02:00
Grzegorz Sluja
dd7e804cab Update package dectmngr
Fixes for DCX81 FW update implementation
2021-09-06 15:12:37 +02:00
Anjan Chanda
ea779bb6c7 wfa-capi: 0.0.17 2021-09-06 14:40:55 +02:00
Omar Kallel
7ea1adc2d9 icwmp: 8.1.5-2021-09-03 2021-09-03 12:18:29 +01:00
Omar Kallel
ae186df3c9 icwmp: Remove the check of the file /etc/icwmpd/.icwmpd_boot && add uci validatation of cwmp config 2021-09-03 12:17:44 +01:00
Grzegorz Sluja
8fe00c184f Update package dectmngr
1) Implementation of DCX81 firmware upgrade
2) Do not enable registration upon dectmngr start
3) Implementation for periodic DECT HS presence check
2021-09-03 12:58:58 +02:00
Grzegorz Sluja
a5f99f4fc3 dectmngr: Add new dspg FW 4.13 Build16 RC18 2021-09-03 12:57:42 +02:00
Jakob Olsson
5c2c368800 map-controller: 4.0.5 2021-09-03 11:06:04 +02:00
Sukru Senli
8d078181f9 dectmngr: 3.1.12
aligh handset registration status enum with tr-104
2021-09-02 12:52:27 +02:00
Yalu Zhang
6b8e047d33 Update package dectmngr
Align ubus handset parameter values with TR-104 enums
2021-09-02 12:27:46 +02:00
Omar Kallel
b073b86450 icwmp: 8.1.4-2021-09-01 2021-09-01 14:07:23 +01:00
Omar Kallel
61eccddf93 icwmp: 8.1.3-2021-09-01 2021-09-01 11:56:24 +01:00
Omar Kallel
98465ecf62 icwmp: 8.1.3-2021-09-01 2021-09-01 11:37:22 +01:00
Omar Kallel
fdad57f796 icwmp: 8.1.2-2021-09-01 2021-09-01 11:23:03 +01:00
Amin Ben Ramdhane
8da760a491 bbf: 4.5.8 2021-08-31 13:00:45 +01:00
Yalu Zhang
fb8010b5fd Update package endptmngr
Reformatting voice ubus events
2021-08-30 15:32:54 +02:00
Sukru Senli
7a669d7e1b dslmngr: reverted commits breaking fast object 2021-08-27 16:34:41 +02:00
vdutta
21cb7c14e0 bbf: 4.5.7 2021-08-27 17:48:47 +05:30
Anjan Chanda
7fc00dbbda wifimngr: 12.0.3 2021-08-27 13:00:24 +02:00
Anjan Chanda
4cf278cbf1 easy-soc-libs: 6.3.1 2021-08-27 13:00:02 +02:00
Rahul
7ac322b707 qosmngr: qosmngr not restarted 2021-08-27 15:33:29 +05:30
Omar Kallel
818bf818a3 icwmp: 8.1.1-2021-08-26 2021-08-26 16:38:23 +01:00
Jakob Olsson
e7f75bba07 map-agent: 5.1.3 2021-08-26 16:25:23 +02:00
Jakob Olsson
542e9d02e1 map-controller: 4.0.4 2021-08-26 16:09:19 +02:00
Jakob Olsson
266a8d27a0 Revert "map-agent: 5.1.3"
This reverts commit 52bd1b02c4.
2021-08-26 16:08:33 +02:00
Jakob Olsson
52bd1b02c4 map-agent: 5.1.3 2021-08-26 16:08:06 +02:00
Amin Ben Ramdhane
79f9a81d66 bbf: 4.5.6 2021-08-26 14:40:56 +01:00
Amit Kumar
5722b66e40 libqos: qos stats for DISC 2021-08-26 15:56:30 +05:30
Jakob Olsson
03ab529375 Revert "map-controller: sync mapcontroller creds from wireless uci"
This reverts commit b1dbd89de8.
2021-08-26 12:23:19 +02:00
Amin Ben Ramdhane
fa071854de bbf: 4.5.5 2021-08-26 10:34:10 +01:00
vdutta
6f5d1b88f9 swmodd: Fix ubus timeout issue and du_list 2021-08-26 14:53:20 +05:30
Jakob Olsson
326c9b75b9 map-agent: 5.1.2 2021-08-26 08:43:08 +02:00
Jakob Olsson
1568031ba3 map-controller: 4.0.3 2021-08-26 08:42:44 +02:00
Jakob Olsson
b1dbd89de8 map-controller: sync mapcontroller creds from wireless uci 2021-08-26 07:50:18 +02:00
Wenpeng Song
aef1a050fa bbf:TR104 Rotate CDR csv call log 2021-08-25 14:23:18 +00:00
Rahul
e42c88e453 qosmngr: add -w flag to iptables commands
to fix l3 rules sometime not being applied leading to QoS failures,
introduced the -w flag to iptables commands.
2021-08-25 18:07:01 +05:30
jjoseph
7b0dd92085 Update feed [iopsys] package [dslmngr] 2021-08-25 17:05:51 +05:30
Jakob Olsson
88a46d54d5 map-topology: 2.1.8 2021-08-20 17:14:10 +02:00
Jakob Olsson
3ccf98a642 map-agent: 5.1.1 2021-08-20 17:14:01 +02:00
sverma
fa449667fe ieee1905: 3.3.6 2021-08-20 18:56:47 +05:30
sverma
2abf0f63df wfadatad: 4.0.9 2021-08-20 18:36:19 +05:30
Andreas Gnau
c53c3dcfc7 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 4557526 Do not hardcode hash node name
-------------------------------------------------------------------------------
commit 45575262de7a9690bcb2c760f35e2c74e88e1176
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-08-19 15:29:52 +0200

    Do not hardcode hash node name

    Align hash-support with U-Boot which accepts hashes in any node starting
    with "hash".

Base directory -> /
 fdtextract.c | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
2021-08-20 11:47:08 +02:00
nevadita.chatterjee
ab3e270238 map-topology:2.1.7 2021-08-19 18:00:19 +05:30
Jakob Olsson
1d5f1647b1 ieee1905: 3.3.5 2021-08-18 15:51:52 +02:00
Amin Ben Ramdhane
a3b5bf68b8 bbf: 4.5.4 2021-08-18 13:44:32 +01:00
Yalu Zhang
92ec110e27 Update package dectmngr
Allow num_messages being zero in "ubus call dect send_mwi"
2021-08-18 12:25:58 +02:00
Arun Muthusamy
fbf8cea8af easy-soc-libs: Fix, Incorrect DSL parameter values while FAST line is used 2021-08-18 09:22:31 +02:00
Arun Muthusamy
3843bcea55 dslmngr: Fix, Incorrect DSL LinkStatus with FAST line 2021-08-18 09:20:07 +02:00
vdutta
b9ef557a02 uspd: Update module tests 2021-08-17 19:07:32 +05:30
vdutta
c3924d5761 obuspa: Optimize datamodel caching algorithm 2021-08-17 19:03:30 +05:30
Amin Ben Ramdhane
a7f537e734 bbf: 4.5.3 2021-08-16 10:35:04 +01:00
Amin Ben Ramdhane
24f09d7048 bbf: Add '-Wall -Werror' flags to TARGET_CFLAGS 2021-08-16 09:31:44 +00:00
Omar Kallel
973cd18a45 icwmp: 8.1.0-2021-08-13 2021-08-13 15:29:21 +01:00
Jakob Olsson
99717b5254 map-controller: 4.0.2 2021-08-13 15:43:28 +02:00
Jakob Olsson
61641f1b14 ieee1905: 3.3.4 2021-08-13 15:42:54 +02:00
Jakob Olsson
c6eadab0b8 map-agent: 5.1.0 2021-08-13 15:41:41 +02:00
Amin Ben Ramdhane
73c1c6aee0 bbf: Adapt Provider Bridge Object to OpenWrt 21.02 network stack 2021-08-12 14:50:46 +01:00
Amit Kumar
f096e3a76c libqos: package version update 2021-08-12 18:27:10 +05:30
vdutta
25c9a7ebac obuspa: Merge obuspa-4.1.0 release 2021-08-12 12:41:35 +05:30
Omar Kallel
89ff50412e icwmp: 8.0.1 2021-08-11 17:33:47 +01:00
Jakob Olsson
1f839c80bb map-topology: 2.1.6 2021-08-11 14:47:20 +02:00
Jakob Olsson
e3a42fc8cf map-agent: 5.0.4: move iface teardown to platform script 2021-08-11 14:44:32 +02:00
Rahul
8f5d47b5d5 mcastmngr: openwrt 21.02 changes
make iptv work with openwrt 21.02 lift
2021-08-11 17:22:31 +05:30
Amin Ben Ramdhane
5bab70dee7 bbf: 4.5.1 2021-08-10 11:48:39 +01:00
sverma
e1b385b676 wfadatad: 4.0.8 2021-08-10 13:24:52 +05:30
vdutta
c55f8790ff uspd: Align with bbf changes 2021-08-09 22:51:17 +05:30
Omar Kallel
1171e41fe5 bbf: 4.5.0 2021-08-09 17:56:47 +01:00
Omar Kallel
5ef2844c7b icwmp: 8.0.0-2021-08-09 2021-08-09 17:40:19 +01:00
Grzegorz Sluja
99efedcf0f fixup! dectmngr: Disable dect_cmbs logging to file by default
To enable logging of communication between Host and DECT CMBS target the
following steps needs to be run:
$uci set dectmngr.general.log_dect_cmbs='1'
$uci commit
$/etc/init.d/dectmngr restart

Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-09 11:33:21 +02:00
Grzegorz Sluja
f5afeba8ac endptmngr: Move endptmngr logging to syslog by default
Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-09 08:57:41 +02:00
Grzegorz Sluja
0f5dfa0395 dectmngr: Move dectmngr logging to syslog by default
Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-09 08:56:23 +02:00
Grzegorz Sluja
377e940927 dectmngr: Disable dect_cmbs logging to file by default
To enable logging of communication between Host and DECT CMBS target the
following steps needs to be run:
$uci set asterisk.general.log_dect_cmbs='1'
$uci commit
$/etc/init.d/dectmngr restart

Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-06 14:14:19 +02:00
Grzegorz Sluja
41df4b3105 endptmngr: Add support for local source build
Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-06 09:59:48 +02:00
Andreas Gnau
88cc1792d8 iop: genconfig: Remove config options set in targets already
Remove CONFIG_TARGET_MULTI_PROFILE=y and
CONFIG_TARGET_PER_DEVICE_ROOTFS=y that were hardcoded in genconfig and
genconfig_min. Since feeds/targets commit 295d1566 (treewide: Add
MULTI_PROFILE and PER_DEVICE_ROOTFS config, 2021-08-05), the options are
added in feeds/targets.

Also bring the unmaintainable copy-paste of genconfig that is
genconfig_min in sync with genconfig with regards target-specific config
options.
2021-08-05 17:21:18 +02:00
vdutta
b775d2b45b swmodd: Fix opkg dependencies in iopsys template 2021-08-05 18:19:59 +05:30
Jakob Olsson
28e3fc9223 map-topology: 2.1.5 2021-08-05 13:21:50 +02:00
Jakob Olsson
1f6145e16b ieee1905: 3.3.3 2021-08-05 13:21:00 +02:00
sverma
44fbd4c993 wfadatad: 4.0.7 2021-08-05 11:26:21 +05:30
Jakob Olsson
a082f44bba map-agent: 5.0.3 2021-08-04 16:13:14 +02:00
Lukasz Kotasa
a06e9017bd iopsys-econet: Clean warnings in genconfig 2021-08-04 12:03:28 +00:00
Andreas Gnau
860d5c40a6 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* cc2831a Support FIT-images with embedded data
-------------------------------------------------------------------------------
commit cc2831addca083f86c74fbaec2630d080c981aa4
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-07-21 15:30:53 +0200

    Support FIT-images with embedded data

    Support the older way of storing image data directly inside the FIT rather
    than after the FIT specified by offset or absolute position.

Base directory -> /
 fdtextract.c | 43 +++++++++++++++++++++++++------------------
 1 file changed, 25 insertions(+), 18 deletions(-)
-------------------------------------------------------------------------------
2021-08-03 15:07:05 +02:00
Amin Ben Ramdhane
7dcc594fba bbf: 4.4.1 2021-08-02 13:32:51 +01:00
vdutta
9ebc827e85 swmodd: Added iopsys lxc template 2021-07-30 15:51:49 +05:30
Amit Kumar
7002da04e2 libqos: updated package version 2021-07-30 14:41:13 +05:30
Omar Kallel
e47a300305 icwmp: 7.4.2-2021-07-29 2021-07-29 14:31:31 +01:00
Amit Kumar
40a04b8615 qosmngr: Makefile package version updated 2021-07-29 17:02:06 +05:30
Amit Kumar
c45a0ceae4 libqos: updated package version and commit hash 2021-07-29 16:48:58 +05:30
Grzegorz Sluja
a4f53e11da Update package dectmngr
Add entry in Line Status and Diagnostic List
2021-07-29 09:43:59 +02:00
Arun Muthusamy
2936f538aa Bug_5569: FIx, unknown operand & argument expected warnings 2021-07-27 14:47:42 +02:00
Janusz Dziedzic
49634a0c0e kick easy-soc-libs
14.0.1

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-07-23 12:46:36 +00:00
vdutta
c191553de2 swmodd: Align with bbf changes 2021-07-23 16:35:26 +05:30
vdutta
04b0490017 uspd: Align with bbf changes 2021-07-23 16:23:36 +05:30
Amin Ben Ramdhane
984f5454ef bbf: 4.4.0 2021-07-23 11:13:50 +01:00
vdutta
3f60546197 bbf: 4.3.9
- Fix firewall rule time
 - Updated bbf tools
2021-07-21 18:05:47 +05:30
Grzegorz Sluja
33a8f7fe81 Update package dectmngr
Do not restart registration on timeout
2021-07-21 12:32:04 +02:00
Sukru Senli
ae1a0b0738 sulu: do not overwrite nginx config for sulu section if already exists 2021-07-16 20:19:03 +02:00
Oussama Ghorbel
04205b9ac2 iopsys_ramips: switch to CONFIG_TARGET_PER_DEVICE_ROOTFS 2021-07-16 17:00:18 +02:00
Amin Ben Ramdhane
55fd3f6241 bbf: 4.3.8 2021-07-16 14:06:24 +01:00
Jomily K Joseph
7bab39b4b2 qosmngr : Shaper rate configuration needs to be in kbps 2021-07-16 07:51:13 +00:00
Sukru Senli
095a635ac2 qosmngr: add PKG_VERSION to PKG_SOURCE 2021-07-15 20:07:47 +02:00
Amin Ben Ramdhane
f1a9452b56 bbf: 4.3.7 2021-07-15 11:40:32 +01:00
nevadita.chatterjee
cdd1f7ab75 map-topology:2.1.4 2021-07-15 15:04:58 +05:30
Rahul
f709852ae3 qosmngr: resolve vlan qos issues
In 5.04, broadcom seems to have removed the support for skbvlan extension
from the kernel, although its presence still in the userspace application
is confusing, ideally, it should be removed from the userspace application
as well. Instead of skbvlan, the vlan extension is used for configuring the
vlan qos.

Hence, the qosmngr is updated to use vlan extension instead of skbvlan.
2021-07-15 12:09:19 +05:30
Andreas Gnau
b84033c641 iop: ssh_(install_key): Unify scripts and rework
Unify the iop-subcommands install_key and ssh_install_key to one script.
In addition:

* Support new key types such as ssh-ed25519 which is supported by
  Dropbear nowadays. Also add unsupported ones to make them work
  automatically in the future.
* For the install_key command, do not re-add keys already added
* Read keys loaded into SSH Agent as well, which is useful when working
  with agent forwarding on a remote host or in a Docker container.
* For the ssh_install_key command also add keys added manually to the
  build dir.
2021-07-14 18:02:17 +02:00
Amit Kumar
aadbbda3e9 mcast: updated verion for change to remove lan_to_lan option 2021-07-14 09:33:27 +05:30
Amit Kumar
c9e6cf8428 mcast: removed lan_to_lan option 2021-07-14 03:23:39 +00:00
Amit Kumar
7265b88a70 mcast: correction for warning message in mcast restart.
removed the bcmmcastctl cli call for l2l option that is not supported.
2021-07-14 03:23:39 +00:00
vdutta
ec3128865b sulu: Added init file to publish usp endpointid 2021-07-13 20:56:56 +05:30
vdutta
78c895f23a obuspa: Remove dependency of mosquitto_pub in init 2021-07-13 20:53:46 +05:30
Janusz Dziedzic
f87742703b kick wifimngr and easy-soc-libs
Kick to newer version.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-07-13 10:19:45 +00:00
Grzegorz Sluja
27e2d73ae1 Update package [ endptmngr ]
Add lineId information on ubus response for get rtp_stats
Enable RTCP-XR packets in brcm connection creation
2021-07-13 11:05:29 +02:00
Jakob Olsson
3de93cf5c2 map-controller: 4.0.1 2021-07-09 15:58:56 +02:00
Jakob Olsson
4b0041f6fd map-agent: 5.0.2 2021-07-09 15:57:34 +02:00
vdutta
f020406a90 obuspa: Override default roles if present in json 2021-07-09 18:04:06 +05:30
nevadita.chatterjee
74b15fdca3 map-topology: 2.1.3 2021-07-09 15:33:37 +05:30
Jakob Olsson
e113ff5534 wfadatad: 4.0.6 2021-07-08 15:55:13 +02:00
Jakob Olsson
4e3216e405 Revert "wfadatad: 4.0.6"
This reverts commit 58c8fe5bb4.
2021-07-08 15:54:50 +02:00
Jakob Olsson
58c8fe5bb4 wfadatad: 4.0.6 2021-07-08 15:44:21 +02:00
Jakob Olsson
5cf12fea90 map-topology: 2.1.2 2021-07-08 15:42:28 +02:00
Jakob Olsson
ca74205ac1 map-controller: 3.0.13 2021-07-08 13:54:39 +02:00
Jakob Olsson
c8b670737a map-controller: 3.0.12 2021-07-08 13:04:53 +02:00
Jakob Olsson
89314cae0b ieee1905: remove '22' identifier from map header files 2021-07-08 10:43:46 +02:00
Anjan Chanda
d85d2048c0 map-agent: 5.0.1 2021-07-08 10:43:46 +02:00
Amit Kumar
426a2b89a3 urlfilter: iptable and ip6tables rules for DNS added
in FORWARD chain.
2021-07-06 12:26:56 +05:30
Amin Ben Ramdhane
1a8a95e2f6 icwmp: 7.4.1-2021-07-05 2021-07-05 13:35:14 +01:00
Amin Ben Ramdhane
cec2fe6f92 bbf: 4.3.6 2021-07-05 13:33:07 +01:00
Jakob Olsson
dba7f1f97c map-agent: 4.1.3 2021-07-05 12:59:51 +02:00
Sukru Senli
15a5c5dedf sulu: 0.2.17 2021-07-05 11:48:28 +02:00
Sukru Senli
0c20ed1c78 urlfilter: flush conntrack only if urlfilter is enabled 2021-07-05 11:35:38 +02:00
Anjan Chanda
6995815f77 ieee1905: 3.3.2 2021-07-02 16:28:59 +02:00
Rahul
eb8d678e0f periodicstats: fix memory leak
fix memory leak and other general improvements
2021-07-02 18:22:22 +05:30
Jakob Olsson
f831eb5259 map-agent: 4.1.2 2021-07-02 13:04:34 +02:00
Omar Kallel
3a19aca30f icwmp: 7.4.0-2021-07-01 2021-07-01 18:48:41 +01:00
Anjan Chanda
4a039722fc ieee1905: 3.3.1 2021-07-01 16:51:34 +02:00
Anjan Chanda
6a51fb87de ieee1905: 3.3.0 2021-07-01 15:05:56 +02:00
Jakob Olsson
6eb4364b48 map-topology: 2.1.1 2021-07-01 14:09:24 +02:00
Jakob Olsson
730335f7d2 map-agent: 4.1.1 2021-07-01 11:32:30 +02:00
Erik Karlsson
9775ac0bb4 map-agent: rework loop prevention script to use wpa_cli instead of UCI 2021-07-01 11:30:52 +02:00
Yalu Zhang
0c779bb73b Update package dectmngr
Change status for dect.base registration ubus events
2021-07-01 09:54:29 +02:00
Yalu Zhang
9d8957d853 Update package dectmngr
Add UBUS events for base registration
2021-06-30 17:27:40 +02:00
Amin Ben Ramdhane
bb9cfdf487 bbf: 4.3.5 2021-06-30 14:40:40 +01:00
vdutta
dcb6cad37d obuspa: Align with mosquitto config 2021-06-30 19:08:07 +05:30
Jakob Olsson
379d6b878b map-agent: 4.1.0 2021-06-30 13:33:14 +02:00
Jakob Olsson
1e0e15653a map-topology: 2.1.0 2021-06-30 13:12:31 +02:00
Amit Kumar
bd25c841d4 urlfilter: Updated Makefile for issue fix for ipv6 support. 2021-06-30 09:51:26 +05:30
Jakob Olsson
5a67915eec ieee1905: 3.2.1 2021-06-29 14:27:11 +02:00
Jakob Olsson
f78381e0d2 map-controller: 3.0.11 2021-06-29 14:17:12 +02:00
Jakob Olsson
c657b6cd76 map-agent: 4.0.16 2021-06-29 14:15:54 +02:00
vdutta
cdb6bed47c uspd: Updated logging 2021-06-29 10:21:02 +05:30
vdutta
fe8ac41906 swmodd: Datamodel improvements 2021-06-29 10:20:03 +05:30
vdutta
b0c0230535 obuspa: Update init script for enabled parameter 2021-06-29 10:16:28 +05:30
Jakob Olsson
36ae18c95b map-agent: 4.0.15 2021-06-28 11:25:16 +02:00
Jakob Olsson
963af3d4b5 ieee1905: remove macaddress from default ieee1905
This will be set by uci-default or default to auto
2021-06-28 10:33:26 +02:00
Sukru Senli
08825a3914 crun: version 0.20 2021-06-27 16:28:13 +02:00
vdutta
cd3c3669c3 uspd: Allow DynOperate to call dmoperate functions 2021-06-26 23:48:16 +05:30
jjoseph
8141f9d62c dslmngr: 1.1.1
Fix Device.FAST.Line.{i}.Stats. showing 0
2021-06-25 17:31:35 +02:00
Omar Kallel
2603da87a7 icwmp: 7.3.0-2021-06-25 2021-06-25 15:33:32 +01:00
vdutta
98a9ee7ba5 swmodd: Use libbbf_api to expose SoftwareModules DM 2021-06-25 17:53:33 +05:30
Amit Kumar
8dd0627a3f urlfilter: Updated Makefile for ipv6 support. 2021-06-25 17:21:19 +05:30
Amit Kumar
bf73f20997 [iopsys] [urlfilter]
ip6tables rules addition for dns,http,https packets to nfqueue.
2021-06-25 11:29:15 +00:00
Markus Gothe
ecba6c9067 Use the actual HW platform for generating QoS config.
We need to use 'brcm_fw_tool' instead of /proc/cpuinfo
to check the hardware platform. The /proc/cpuinfo API
is not stable. It only works as expected for BCM96846.
2021-06-25 11:20:19 +00:00
Jakob Olsson
2778420bcd map-agent: issue topology discovery over vlan interfaces upon port up 2021-06-25 11:17:40 +00:00
Anjan Chanda
abc2c6c233 ieee1905: 3.2.0 2021-06-25 09:12:12 +02:00
Anjan Chanda
3c96d7d3b9 easy-soc-libs: 6.2.33 2021-06-25 09:11:13 +02:00
Suru Dissanaike
a0165dcc73 SULU: updated package to 0.2.16 2021-06-24 16:16:51 +00:00
Suru Dissanaike
5ae47c1892 SULU: update package to 0.2.15 2021-06-24 16:11:07 +00:00
Amin Ben Ramdhane
882d6911d4 icwmp: 7.2.1-2021-06-24 2021-06-24 14:54:57 +01:00
Amin Ben Ramdhane
6e49e15db6 bbf: 4.3.4 2021-06-24 14:53:34 +01:00
Suru Dissanaike
c1f4516d8e SULU: update package to 0.2.14 2021-06-23 13:29:19 +00:00
Jakob Olsson
26a05cbb75 ieee1905: 3.1.1 2021-06-23 14:09:10 +02:00
nevadita.chatterjee
30baf028d7 topology: 2.0.7: add host global config 2021-06-23 12:00:56 +02:00
jjoseph
678d8ad567 Update feed [iopsys] package [dslmngr] 2021-06-23 11:43:51 +05:30
Amin Ben Ramdhane
47f5c981f7 bbf: 4.3.2 2021-06-22 15:31:09 +01:00
sverma
656f9fb27b wfadatad: modified wfadatad init script. 2021-06-22 15:30:47 +05:30
Anjan Chanda
402669463a wfadatad: 4.0.5 2021-06-21 20:40:45 +02:00
Jakob Olsson
f9b9d172ef map-agent: 4.0.14 2021-06-21 15:21:43 +02:00
Jakob Olsson
6a8445c545 map-agent: fix multiap script sync credentials 2021-06-21 15:20:53 +02:00
Yalu Zhang
92addd0ba0 Update package: dectmngr
Set the region of the DECT base station
2021-06-18 16:57:39 +02:00
Grzegorz Sluja
4f061b4b66 Update package [ endptmngr ]
Add ubus call to get RTP stats from brcm
Event enabled for voice
2021-06-18 15:58:12 +02:00
sverma
bc3991024d wfadatad: 4.0.4 2021-06-18 19:20:51 +05:30
sverma
e42b1097a1 wfadatad: 4.0.3 2021-06-18 18:21:18 +05:30
Anjan Chanda
84bd79bdd6 easy-soc-libs: 6.2.32 2021-06-18 14:49:05 +02:00
vdutta
156fd4f766 uspd: Transaction commit with restart service option 2021-06-18 16:10:53 +05:30
Anjan Chanda
3fc4b8a73e ieee1905: 3.1.0 2021-06-18 12:11:56 +02:00
Jakob Olsson
3706e0b9ef map-topology: 2.0.6 2021-06-18 12:04:34 +02:00
Jakob Olsson
5017b9155e map-controller: 3.0.10 2021-06-18 12:03:42 +02:00
Jakob Olsson
f1a24d7008 map-agent: 4.0.13 2021-06-18 12:03:32 +02:00
Omar Kallel
11efefb309 icwmp: 7.2.0-2021-06-18 2021-06-18 09:17:07 +01:00
Yalu Zhang
864c69d8ae Update package: dectmngr
Set model-id
2021-06-18 09:39:18 +02:00
sverma
66290ca8bb wfadatad: refresh dataelements in every 15 sec. 2021-06-18 12:45:58 +05:30
Anjan Chanda
3a603c64eb wifimngr: 11.2.0 2021-06-17 11:30:07 +02:00
Amin Ben Ramdhane
904cc86836 bbf: 4.3.1 2021-06-17 10:10:55 +01:00
Jakob Olsson
a6b4cccfcc map-agent: hotplug: send topology discovery on eth link up 2021-06-17 09:38:31 +02:00
Jakob Olsson
1ba929a1bc map-agent: 4.0.12 2021-06-17 09:22:16 +02:00
Sukru Senli
27db3c5545 iop: deselect iopupgrade 2021-06-16 17:48:54 +02:00
Sukru Senli
c0d178f2a5 iopupgrade: remove unused package 2021-06-16 17:43:35 +02:00
Anjan Chanda
b76cf64e03 wifimngr: 11.1.1 2021-06-16 11:43:16 +02:00
Anjan Chanda
cb0f28ef56 easy-soc-libs: 6.2.30 2021-06-16 11:38:28 +02:00
Amin Ben Ramdhane
cad2b4be1f bbf: 4.3.0 2021-06-15 23:46:22 +01:00
Yalu Zhang
1b3b27088b Update package: dectmngr
Redesign DECT UBUS events
2021-06-15 17:16:53 +02:00
Jakob Olsson
52ede67c78 map-controller: 3.0.9 2021-06-15 14:54:02 +02:00
Jakob Olsson
da710a8ea5 ieee1905: 3.0.7 2021-06-15 14:53:21 +02:00
Jakob Olsson
e0685ee791 map-agent: 4.0.11 2021-06-15 14:52:55 +02:00
Sukru Senli
77d1a1fe79 Revert "iop: deselect luci-nginx and sulu"
This reverts commit 4a088ffd1c.
2021-06-14 21:08:10 +02:00
Jonas Höglund
f8af9dc5ec Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 573bf95 Only read the FIT header when possible to speed up reading attributes.
-------------------------------------------------------------------------------
commit 573bf9543f8dc792b6d5dc8760cb69c64f11e932
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-06-11 16:42:26 +0200

    Only read the FIT header when possible to speed up reading attributes.

Base directory -> /
 fdtextract.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 48 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
2021-06-14 14:29:56 +02:00
Jakob Olsson
2948186053 map-agenmt: 4.0.10 2021-06-14 12:23:56 +02:00
Jakob Olsson
7750caf7f5 map-controller: 3.0.8 2021-06-14 12:23:56 +02:00
Sukru Senli
317145634e easy-soc-libs: 6.2.28 2021-06-12 12:32:36 +02:00
Jakob Olsson
a0bca11b5e wfadatad: 4.0.2 2021-06-11 16:14:35 +02:00
Amin Ben Ramdhane
b92491464e bbf: Fix Freq conversion to hexbin for ieee1905 2021-06-11 15:10:12 +01:00
Suru Dissanaike
f9e82d7b5b sulu: update package to version 0.2.13 2021-06-11 13:55:59 +00:00
Suru Dissanaike
6ce90a657e Revert "Update Makefile"
This reverts commit 00f9ef780c
2021-06-11 13:55:16 +00:00
Suru Dissanaike
00f9ef780c Update Makefile 2021-06-11 13:54:19 +00:00
Anjan Chanda
ae820c047d easy-soc-libs: 6.2.27 2021-06-11 15:47:18 +02:00
Anjan Chanda
c00060ccd6 wifimngr: 11.1.0 2021-06-11 15:46:56 +02:00
Anjan Chanda
99fe0ef701 ieee1905: 3.0.6 2021-06-11 15:28:25 +02:00
Omar Kallel
3272f6a7ca icwmp: update init file 2021-06-11 14:26:41 +01:00
Jakob Olsson
be779fb032 map-topology: 2.0.5 2021-06-11 15:14:35 +02:00
Jakob Olsson
cdaa705bf2 map-controller: 3.0.7 2021-06-11 15:14:35 +02:00
Jakob Olsson
b25640f5cd map-agent: 4.0.9 2021-06-11 15:14:35 +02:00
Amin Ben Ramdhane
3e1eb2c26a bbf: 4.2.8 2021-06-11 14:00:34 +01:00
vdutta
502a2208da obuspa: Fix DM object values and caching interval
- Adaptive caching time interval for dm objects from ubus
 - Fix minor issues in datamodel value registered from obuspa
2021-06-11 18:27:47 +05:30
Omar Kallel
f5b4997f5a icwmp: 7.1.1-2021-06-01 2021-06-11 11:26:34 +01:00
Sukru Senli
7f3363ed1b iop: update_package: if feed is given, update feeds.conf for that feed only 2021-06-11 11:06:00 +02:00
Sukru Senli
4a088ffd1c iop: deselect luci-nginx and sulu 2021-06-10 17:11:12 +02:00
Jakob Olsson
b3a24bc064 map-topology: 2.0.4 2021-06-10 16:42:15 +02:00
Yalu Zhang
b8b49c884a Update package: dectmngr
Reply an empty "software version identifier" (length=0) to SUOTA request
2021-06-10 16:27:40 +02:00
Jakob Olsson
3bbd300a6f map-agent: 4.0.8 2021-06-10 15:44:24 +02:00
Amin Ben Ramdhane
228e5d6e2c bbf: Align with ieee1905 object 2021-06-10 13:45:55 +01:00
Amin Ben Ramdhane
5073a86a81 bbf: 4.2.6 2021-06-10 10:27:47 +01:00
Jakob Olsson
09fb98d1a8 map-controller: 3.0.6 2021-06-10 11:14:35 +02:00
Jakob Olsson
c8fcae0267 map-agent: 4.0.7 2021-06-10 11:14:35 +02:00
Jakob Olsson
bb1a867ba9 ieee1905: 3.0.4 2021-06-10 11:14:35 +02:00
Sukru Senli
12f7b56d8e Revert "iop: deselect luci-nginx and sulu"
This reverts commit 9e7915e0b8.
2021-06-09 18:49:31 +02:00
Jakob Olsson
9b9b69db8f map-controller: 3.0.5 2021-06-09 15:24:24 +02:00
Jakob Olsson
bfd89fed46 map-agent: 4.0.6 2021-06-09 12:29:42 +02:00
Jakob Olsson
6b3dd5818f map-controller: 3.0.4 2021-06-09 10:15:48 +02:00
Jakob Olsson
fdd1dca318 map-controller: 3.0.3 2021-06-08 17:44:42 +02:00
Yalu Zhang
598b38c030 Updage package: dectmngr
Remove argument "base" from dect.base.1 UBUS methods
2021-06-08 17:34:12 +02:00
Jakob Olsson
3faff63044 wfadatad: 4.0.1 2021-06-08 14:14:24 +02:00
Jakob Olsson
8f7c3669b4 ieee1905: 3.0.3 2021-06-08 14:14:24 +02:00
Jakob Olsson
f719073b64 map-controller: 3.0.2 2021-06-08 14:14:24 +02:00
Jakob Olsson
38324be853 map-agent: 4.0.5 2021-06-08 14:14:24 +02:00
Yalu Zhang
eda07c2623 Update package: dectmngr
Add some handset info in the sqlite3 database
2021-06-08 14:08:31 +02:00
Jakob Olsson
8e57bbc89b map-agent: 4.0.4 2021-06-07 11:03:21 +02:00
Anjan Chanda
d96302eea4 wifimngr: 11.0.0 2021-06-05 10:55:00 +02:00
Anjan Chanda
d808393085 easy-soc-libs: 6.2.20 2021-06-05 10:44:00 +02:00
Jakob Olsson
be10424499 map-controller: 3.0.1 2021-06-04 17:39:06 +02:00
Jakob Olsson
885f7f1239 map-agent: 4.0.3 2021-06-04 17:38:14 +02:00
Jakob Olsson
3267182a19 map-agent: 4.0.2 2021-06-04 17:35:34 +02:00
Amin Ben Ramdhane
1b5c95d390 bbf: 4.2.5 2021-06-04 16:30:02 +01:00
vdutta
ab22b4c6b1 uspd: Added longjump to prevent segfaults 2021-06-04 20:03:39 +05:30
Omar Kallel
58734bc8f3 icwmp: 7.1.0-2021-06-04 2021-06-04 15:05:06 +01:00
Jakob Olsson
16a80f24ec map-agent: 4.0.1 2021-06-04 15:53:02 +02:00
Jakob Olsson
9f23a4e63c wfadatad: 4.0.0 2021-06-04 12:29:26 +02:00
Jakob Olsson
2154f7c134 map-controller: 3.0.0: version bump 2021-06-04 12:26:23 +02:00
Jakob Olsson
1327943b0d map-agent: 4.0.0 2021-06-04 12:26:11 +02:00
Jakob Olsson
3511b47856 ieee1905: 3.0.2 2021-06-04 12:25:59 +02:00
Shubham Sharma
d9ddb5f128 periodicstatsd : default global sample interval for implementing calculation mode 2021-06-04 12:32:49 +05:30
Sukru Senli
9e7915e0b8 iop: deselect luci-nginx and sulu 2021-06-03 17:34:13 +02:00
Amin Ben Ramdhane
df488dcfb4 bbf: 4.2.4 2021-06-03 12:28:41 +01:00
Sukru Senli
529cb0aeb2 iop: config: remove reference to non-existent packages 2021-06-02 19:24:20 +00:00
Yalu Zhang
5ab09d60df Update package: dectmngr
Add UBUS method "base_reset"
2021-06-02 17:41:37 +02:00
Jakob Olsson
f7121e0e84 map-agent: multiap script func to sync ieee1905 creds 2021-06-02 17:37:46 +02:00
Suru Dissanaike
9f632e96a7 sulu: added nginx conf for fileupload 2021-06-02 14:57:57 +02:00
Yalu Zhang
64d79c39bc Update package: dectmngr
Add more UBUS methods
2021-06-01 17:02:58 +02:00
Anjan Chanda
ae15ae5dd7 wfadatad: 3.3.4 2021-05-31 21:20:33 +02:00
Anjan Chanda
313fb95cdd map-topology: 2.0.3 2021-05-31 21:20:33 +02:00
Anjan Chanda
b56536c1e0 map-controller: 2.4.19 2021-05-31 20:53:24 +02:00
Anjan Chanda
5a6c51162c map-agent: 3.5.27 2021-05-31 20:51:53 +02:00
Anjan Chanda
358b411758 map-1905: remove ieee1905-meshcomm compat plugin 2021-05-31 20:46:40 +02:00
Anjan Chanda
d3dbf90646 ieee1905: 3.0.1 2021-05-31 20:43:15 +02:00
Sukru Senli
8539d6cfe8 ieee1905-meshcomm: remove old ieee1905 stack 2021-05-29 19:20:36 +02:00
Sukru Senli
7c173a7357 ieee1905: version and license correction for new the stack 2021-05-29 19:16:18 +02:00
Jakob Olsson
219d8e7557 map-agent: workaround: wait for wifi and sleep to let radios initialize 2021-05-28 18:26:26 +02:00
Jakob Olsson
10a7f18099 ieee1905: add back init.d script and fix default config 2021-05-28 17:22:58 +02:00
Jakob Olsson
da2393edec iop: deselect old ieee1905 stack, select new stack 2021-05-28 16:54:19 +02:00
Jakob Olsson
36c46c3717 wfadatad: 3.3.3 2021-05-28 16:40:43 +02:00
Jakob Olsson
6272cb32de ieee1905: install correct directory 2021-05-28 16:38:31 +02:00
Jakob Olsson
9ce26b7f23 wfadatad: remove dependency on non-existing package 2021-05-28 16:38:17 +02:00
Nevadita
15134a7247 topology: 2.0.2 2021-05-28 14:21:47 +00:00
Jakob Olsson
2de708e08b map-controller: 2.4.18 2021-05-28 16:17:56 +02:00
Jakob Olsson
38e5604fed map-agent: 3.5.25 2021-05-28 16:16:49 +02:00
Jakob Olsson
131c152165 ieee1905: 1.0.0 2021-05-28 16:14:09 +02:00
sverma
242327a978 wfadatad: 3.3.2, aligned with new ieee1905. 2021-05-28 19:13:10 +05:30
vdutta
c25e6ab28f obuspa: Updated numentry handling and docs 2021-05-28 18:21:27 +05:30
Oskar Viljasaar
fe1e1af143 taas: Remove usage of CONFIG_TARGET_NAND_BLOCKSZ
This is not used anymore.
2021-05-28 14:25:25 +02:00
Suru Dissanaike
891e294746 Update sulu/Makefile 2021-05-28 08:55:53 +00:00
Suru Dissanaike
61f2920db1 sulu:0.2.10 2021-05-27 18:37:46 +00:00
Suru Dissanaike
ca051ca489 sulu: 0.2.9 2021-05-27 15:52:56 +00:00
Jakob Olsson
afbb5646bd ieee1905: 0.3.3 2021-05-27 17:18:46 +02:00
Jakob Olsson
1647299798 map-controller: 2.4.17 2021-05-27 17:18:46 +02:00
Jakob Olsson
efbdd85054 map-agent: 3.5.24 2021-05-27 17:18:43 +02:00
Jakob Olsson
0b2f5dda9a ieee1905: 0.3.2 2021-05-27 16:30:54 +02:00
Jakob Olsson
bea9ff0f87 rename prj-unish to ieee1905 2021-05-27 16:30:54 +02:00
Jakob Olsson
9bbfeee6aa rename ieee1905 to ieee1905-mescomm 2021-05-27 16:30:54 +02:00
Jakob Olsson
8a1f53463d map-agent/cntlr: add prj-unish dependency 2021-05-27 16:30:54 +02:00
Jakob Olsson
dd41b4b573 map-controller: 2.4.16 2021-05-27 16:30:54 +02:00
Jakob Olsson
abee9b7f90 map-agent: 3.5.22 2021-05-27 16:30:54 +02:00
Jakob Olsson
7bb1e1fabe prj-unish: 0.3.1 2021-05-27 16:30:54 +02:00
Amin Ben Ramdhane
1f06ccede8 bbf: 4.2.3 2021-05-27 15:10:55 +01:00
Rahul
b111eb1246 urlfilter: Update makefile
To include urlfilter daemon improvements.
2021-05-27 19:03:50 +05:30
Rahul
c3eeb956d9 urlfilter: update makefile and fix https filtering
* make use of conntrack to flush exiting tcp connection
* update init file to
    * not accelerate https packets so that they are can be trapped
      by urlfilter daemon
    * flush connections when daemon reloaded
    * make firewall rules more secure
2021-05-27 18:53:01 +05:30
Suru Dissanaike
fdabc69dfa sulu: 0.2.8 2021-05-27 10:16:11 +00:00
vdutta
e4f56f549c obuspa: Updated system cert path 2021-05-27 13:13:54 +05:30
Amin Ben Ramdhane
debc7f9ec6 bbf: 4.2.2 2021-05-26 19:14:55 +01:00
vdutta
0c8cdd6297 uspd: ubus notifications for add/del instances 2021-05-26 21:25:00 +05:30
vdutta
6cecf882b8 obuspa: B#4770 Get is throwing erroneous messages 2021-05-26 21:20:18 +05:30
Amin Ben Ramdhane
4d12bc6833 bbf: 4.2.1 2021-05-25 15:42:59 +01:00
Amin Ben Ramdhane
2dbce56aa9 bbf: 4.2.0 2021-05-25 11:09:38 +01:00
Sukru Senli
00b1d90297 dectmngr: update version and license 2021-05-24 21:59:34 +02:00
Suru Dissanaike
63bb34d06a sulu: fix makefile 2021-05-21 18:19:04 +00:00
Suru Dissanaike
aede464e88 iop: added sulu 2021-05-21 17:17:14 +00:00
Jakob Olsson
6ab355131f map-controller: 2.4.13 2021-05-21 15:58:51 +02:00
Jakob Olsson
8564d6081e map-agent: 3.5.21 2021-05-21 15:58:44 +02:00
Suru Dissanaike
c01d17de44 sulu: 0.2.6 2021-05-21 13:54:59 +00:00
Bartlomiej Grzeskowiak
f5cdc3a3e7 iop: Add iopsys-econet en7562
./iop genconfig en7562

Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
2021-05-21 13:19:14 +00:00
Suru Dissanaike
10b20e8fd4 sulu: package 0.2.5 2021-05-21 10:05:17 +00:00
Sukru Senli
49f3ec4cd4 iop: select periodicstats by default 2021-05-20 20:34:17 +02:00
vdutta
ae23f756ec obuspa: Align role_name with uci 2021-05-20 22:34:11 +05:30
Amin Ben Ramdhane
c7ae8699ca bbf: 4.1.9 2021-05-20 13:03:09 +01:00
Amin Ben Ramdhane
df6a493b47 bbf: 4.1.8 2021-05-19 20:16:05 +01:00
Omar Kallel
14136cd10a icwmp: 7.0.3-2021-05-19 2021-05-19 17:42:32 +01:00
vdutta
923747dc4e obuspa: Integrate OBUSPA-4.0 2021-05-19 18:18:26 +05:30
Suru Dissanaike
efb2c35438 sulu: fixed tabs issue in makefile 2021-05-19 06:12:14 +02:00
Suru Dissanaike
00887c2cfc sulu: fixed config to work with LUCI 2021-05-18 19:15:03 +00:00
Suru Dissanaike
6afb559fe3 sulu: copy files to target 2021-05-18 18:20:41 +00:00
Sukru Senli
be301272fa iop: select luci nginx instead of luci uhttpd 2021-05-18 19:06:16 +02:00
Suru Dissanaike
b2ac4d3a46 sulu: added nginx conf via uci-default script 2021-05-18 18:18:24 +02:00
Jonas Höglund
52b4f37130 Do not touch juci Makefile as it's been removed 2021-05-18 16:03:15 +02:00
Amin Ben Ramdhane
88fc0d3692 bbf: 4.1.7 2021-05-18 13:55:43 +01:00
vdutta
a9c8166acd B#5181: Fix mqtts conn with libmosquitto v2.0.10 2021-05-18 17:52:10 +05:30
Omar Kallel
8e21ad37f7 icwmp: 7.0.2-2021-05-18 2021-05-18 12:41:00 +01:00
Amin Ben Ramdhane
329458ea54 bbf: 4.1.6 2021-05-17 15:42:17 +01:00
Jakob Olsson
aa34cd098e map-controller: only parse for -w flag if mapagent config exists 2021-05-17 16:03:19 +02:00
Yalu Zhang
c2fad5fad2 Update package: dectmngr
Always put the list access database file in /tmp/LA_DB
2021-05-17 14:58:25 +02:00
Rahul
32a9117209 periodicstats: update makefile 2021-05-14 19:11:36 +05:30
Anjan Chanda
0c04b05abe easy-soc-libs: 6.2.19 2021-05-14 15:38:01 +02:00
Shubham Sharma
a8bd624873 periodicstatsd : Changes for periodic statistics.
- missing library files under /usr/lib/bbfdm
	- Added global enable for periodicstats & disabled by default
	- updated to latest devel
2021-05-14 12:45:20 +00:00
vdutta
7a3dee480e bbf: Align ra option tag with dhcp option 2021-05-14 17:46:33 +05:30
Adam Borowski
ff67433326 updated endpoint manager to support howler tone 2021-05-14 13:31:53 +02:00
Sukru Senli
c2627f0005 urlfilter: disable by default 2021-05-14 12:46:23 +02:00
vdutta
eb8152c1c5 icwmp: Align with ubus socket path 2021-05-14 13:21:26 +05:30
Sukru Senli
94f5d5b98b owsd: adapt to ubus socket default path 2021-05-13 22:17:49 +02:00
vdutta
9d5b9d46e2 xmppc: Added test and docs 2021-05-13 23:50:59 +05:30
Suru Dissanaike
de27e0408d sulu: replace nginx with uci default 2021-05-12 19:45:00 +00:00
vdutta
61321b369c obuspa: Fix service entry 2021-05-12 23:42:38 +05:30
vdutta
d5071bf28d uspd: Fix uspd service entry 2021-05-12 23:40:37 +05:30
vdutta
b87959cc61 stunc: Added stun related params
- Moved stun related datamodel parameters from bbf to stunc
- Rename/align stun uci with package
- Updated schema and docs
2021-05-12 23:37:29 +05:30
vdutta
567e6d9870 bbf: Refactor stun related parameters to stunc 2021-05-12 23:35:22 +05:30
Anjan Chanda
13ed87c4be prj-unish: 1.0.0 2021-05-12 14:53:41 +02:00
Anjan Chanda
b084d4498b wifimngr: 10.0.4 2021-05-12 14:52:28 +02:00
Anjan Chanda
14253e84ac easy-soc-libs: 6.2.18 2021-05-12 14:51:16 +02:00
Suru Dissanaike
163c543147 sulu: avoid conflict with luci 2021-05-12 12:16:23 +00:00
Sukru Senli
7af90d69ee iop: switch from juci to luci as default webui 2021-05-12 13:12:14 +02:00
Sukru Senli
4e1a1c45a0 owsd: disable by default 2021-05-12 13:11:50 +02:00
Jakob Olsson
40612ae2ef map-topology: 2.0.1 2021-05-12 12:39:30 +02:00
Suru Dissanaike
2aae4c8109 sulu: added nginx dependency 2021-05-12 11:23:57 +02:00
Suru Dissanaike
4fe198c7bf sulu: changed path of nginx.conf 2021-05-12 11:20:40 +02:00
Suru Dissanaike
f514d81709 sulu: added nginx conf for port 8080 2021-05-12 09:16:58 +00:00
Jakob Olsson
2e6ac5bb49 rulengd: 1.2.3 2021-05-12 10:42:13 +02:00
Yalu Zhang
1d06631503 Update package [ dectmngr ]
Change the design of mapping between term_id, line_id and handset number
2021-05-12 10:12:47 +02:00
Jakob Olsson
dec1cb5146 owsd: 1.1.3 2021-05-12 10:03:18 +02:00
vdutta
1b5be728d2 obuspa: Align with ubus path 2021-05-12 13:29:52 +05:30
vdutta
5915f5a7c3 uspd: Align with ubus and event support 2021-05-12 13:27:56 +05:30
Jakob Olsson
1d41fce2a3 owsd: use NULL socket by default 2021-05-12 09:26:58 +02:00
Jakob Olsson
02fa994bce map-topology: 2.0.0 2021-05-12 08:58:19 +02:00
Sukru Senli
bed1a643a5 urlfilter: add dependency to iptables-mod-nfqueue 2021-05-12 00:10:21 +02:00
Sukru Senli
c8a33d6aaf endptmngr: 0.5
give silabs driver include path explicitly
2021-05-11 23:43:55 +02:00
Amin Ben Ramdhane
6ce52f1c87 bbf: 4.1.3 2021-05-11 19:57:28 +01:00
Jakob Olsson
a74127ade7 map-topology: 1.5.23 2021-05-11 16:46:34 +02:00
Sukru Senli
3095a304be imonitor: 1.0.1
adapt to new default ubus sock path
2021-05-11 15:56:56 +02:00
Suru Dissanaike
ae26c1e9a8 sulu: update makefile for vite settings 2021-05-11 11:42:28 +00:00
Suru Dissanaike
64dbe2aac5 sulu: 0.2.3 2021-05-11 11:40:46 +00:00
Suru Dissanaike
6cad2afe3a sulu: 0.2.2 2021-05-11 10:32:53 +00:00
Yalu Zhang
501193da98 Rename etc/init.d/dect to etc/init.d/dectmngr
Also remove some files for USB DECT sound driver configuration
2021-05-11 11:15:35 +02:00
Sukru Senli
21cabf5141 endptmngr: remove copyright from init script 2021-05-11 10:59:29 +02:00
Sukru Senli
aa91b4d17e endptmngr: add init script and remove ENDPT_OPEN 2021-05-11 10:58:17 +02:00
jjoseph
119f285d84 Update feed [iopsys] package [urlfilter] 2021-05-11 10:00:52 +05:30
Suru Dissanaike
75bbf1524a sulu: update pkg_version 2021-05-10 13:41:57 +00:00
Suru Dissanaike
082bf1560d Update Makefile 2021-05-10 13:29:39 +00:00
jjoseph
fec3683f7c urlfilter : Change permission of init.d file 2021-05-10 14:18:52 +05:30
Marin Karamihalev
8a02e8dedf Update Makefile 2021-05-07 13:11:28 +00:00
Bartlomiej Grzeskowiak
1c9afee81c iopsys-mediatek: Add iopsys-mediatek (bpi_bananapi-r64)
- ./iop genconfig -c bpi_bananapi-r64
2021-05-07 11:15:39 +00:00
Sukru Senli
97e44aac0a iop: genconfig: fix juci makefile path 2021-05-06 18:43:23 +02:00
Sukru Senli
8aa7978f70 easy-soc-libs: remove intel dependency 2021-05-06 18:01:17 +02:00
Sukru Senli
8319f90d8b juci: move from juci to iopsys feed 2021-05-06 17:27:17 +02:00
Sukru Senli
989ff55cc7 bulut: move from 3rdparty to iopsys feed 2021-05-06 17:14:06 +02:00
Sukru Senli
0e8ecee541 sulu: move from 3rdparty to iopsys feed 2021-05-06 17:13:53 +02:00
Yalu Zhang
e82f77983d Update package [ dectmngr ]
Explicitly enable the encryption between the base station and handsets
2021-05-06 14:44:21 +00:00
Andreas Gnau
181b7688e8 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 485a38b Merge branch 'agnau-print-to-stderr' into 'master'
* bedf694 Print errors to stderr instead of stdout
-------------------------------------------------------------------------------
commit 485a38bc4eaf2a54d080b8529d5130b2955626d1
Author: Jonas Höglund <jonas.hoglund@iopsys.eu>
Date: 2021-05-05 15:06:22 +0000

    Merge branch 'agnau-print-to-stderr' into 'master'

    Print errors to stderr instead of stdout

    See merge request iopsys/fdtextract!1
Base directory -> /
 fdtextract.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
-------------------------------------------------------------------------------
commit bedf694df0eee164f3b21f3bbffaf4dc379fa002
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-05-05 10:16:41 +0200

    Print errors to stderr instead of stdout

Base directory -> /
 fdtextract.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
-------------------------------------------------------------------------------
2021-05-06 13:45:29 +02:00
Yalu Zhang
c8de1c1d35 Update package [ dectmngr ]
Reject SUOTA request from the base station as it may cause handset hang
2021-05-05 15:33:22 +00:00
Sukru Senli
8540d5ebbf crun: use openwrt upstream version 2021-05-05 00:16:58 +02:00
Amin Ben Ramdhane
c48cd18584 bbf: 4.1.2 2021-05-04 16:14:32 +01:00
Jakob Olsson
3ccc71658f map-controller: 2.4.12 2021-05-04 11:10:33 +02:00
Amin Ben Ramdhane
c9f0c9c92b bulkdata: fix compilation error 2021-05-04 09:14:01 +01:00
Amin Ben Ramdhane
18ff1d3965 bbf: 4.1.1 2021-05-03 19:06:44 +01:00
Andreas Gnau
d6bb313565 iop: Remove tc
The tc-utility from iproute2 is seldomly needed. In OpenWrt 21.02 there
are two variants, tc-full and tc-tiny, but since it is not needed,
remove it.
2021-05-03 16:46:58 +02:00
Jakob Olsson
13d33c03a2 map-agent: add loop detection script 2021-05-03 15:03:58 +02:00
Anjan Chanda
0a91cd5acb wfadatad: 3.3.1 2021-05-03 09:58:12 +02:00
vdutta
ad0867991f stunc: Added ci and docs 2021-04-30 20:48:56 +05:30
Andreas Gnau
18545a1fb9 iop: Remove usbreset from config
usbreset has been moved to the usbutils package, but it is not needed,
anyways. Remove it.
2021-04-30 11:35:01 +02:00
Andreas Gnau
0378afa773 iop: Remove alsa-lib from config
One of its dependencies causes issues and alsalib is not used by
anything.
2021-04-30 11:35:01 +02:00
Jakob Olsson
06b4b106e1 map-agent: 3.5.20 2021-04-30 11:33:00 +02:00
Jakob Olsson
916ecab7c9 map-agent: 3.5.19 2021-04-29 18:39:12 +02:00
Jakob Olsson
543c3da5dc map-topology: 1.5.22 2021-04-29 14:06:45 +02:00
Anjan Chanda
2bfd924868 wifimngr: 9.3.2 2021-04-28 22:00:22 +02:00
Anjan Chanda
c12bc7eee9 easy-soc-libs: 6.2.12 2021-04-28 21:59:40 +02:00
Jonas Höglund
e9c5c111c5 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* e92fb43 Enable output of extrated file to stdout.
-------------------------------------------------------------------------------
commit e92fb432f7ec61d8cb2066dba38cf955dcd6c676
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-28 10:06:23 +0200

    Enable output of extrated file to stdout.

Base directory -> /
 fdtextract.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
-------------------------------------------------------------------------------
2021-04-28 11:14:58 +02:00
Sukru Senli
f6c3a62378 urlfilter: install default config file 2021-04-27 23:00:05 +02:00
Andreas Gnau
362fb7b238 peripheral_manager: Remove bcmkernel dependency
As Broadcom has moved to standard interfaces, peripheral_manager no
longer depends on Broadcom headers or executables.

Remove the dependency and preprocessor options.
2021-04-27 14:21:40 +02:00
Andreas Gnau
020c8f29e1 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 785166a Remove BRCM_BOARD define
* 86178d8 Remove prox_px3220 driver
* 6069bf5 Remove vox driver
* 3897735 Remove wlctl driver
* 3aadf4a CMakeLists.txt: Run cmake-format
* 636c4e1 update README for doc portal
* d055dd8 update README.md
-------------------------------------------------------------------------------
commit 785166a9861a119623556163179915727896156b
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-23 12:37:22 +0200

    Remove BRCM_BOARD define

    No drivers depend on Broadcom headers anymore, remove the BRCM_BOARD define.

    Peripheral-manager has neither a build nor a runtime dependency on the
    Broadcom SDK.

Base directory -> /
 CMakeLists.txt | 4 ----
 1 file changed, 4 deletions(-)
-------------------------------------------------------------------------------
commit 86178d8dfc51f67b3492ad603106b1fc29d6b285
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-23 12:32:39 +0200

    Remove prox_px3220 driver

    This driver is no longer used by any supported target. Remove it.

Base directory -> /
 src/button.c      |  16 -----
 src/prox_px3220.c | 193 ------------------------------------------------------
 src/prox_px3220.h |   9 ---
 src/server.c      |   6 --
 4 files changed, 224 deletions(-)
-------------------------------------------------------------------------------
commit 6069bf5aea4dbb2ebfdd912ebb2d3c95f90ba86c
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-21 20:10:06 +0200

    Remove vox driver

    This driver is no longer used by any supported target and neither is it
    built or referenced by any other file. Remove it.

Base directory -> /
 src/vox.c      | 176 --------------------------------------------------------
 src/vox_test.c | 178 ---------------------------------------------------------
 2 files changed, 354 deletions(-)
-------------------------------------------------------------------------------
commit 3897735e4b55bed66a2b4a2ffc3ee3766e502ec5
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-21 19:44:50 +0200

    Remove wlctl driver

    This driver is no longer used by any supported target. Remove it.

Base directory -> /
 CMakeLists.txt  |   2 +-
 src/server.c    |   4 --
 src/wlctl_led.c | 133 --------------------------------------------------------
 3 files changed, 1 insertion(+), 138 deletions(-)
-------------------------------------------------------------------------------
commit 3aadf4a6d69ed1db02376e7a20f751e8bbf408c5
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-21 10:49:42 +0200

    CMakeLists.txt: Run cmake-format

    Amongst consistent indendation and following best-practices such as
    lowercase function-names, this puts individual list items on a separate
    line, making diffs easier to read.

Base directory -> /
 CMakeLists.txt | 190 +++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 118 insertions(+), 72 deletions(-)
-------------------------------------------------------------------------------
commit 636c4e1568828d85def657c324c78e341edccaad
Author: Sukru Senli <sukru.senli@iopsys.eu>
Date: 2021-04-11 13:11:29 +0200

    update README for doc portal

Base directory -> /
 README.md                      | 494 ++++++++++-------------------------------
 img/peripheral-manager.png     | Bin 0 -> 60660 bytes
 img/peripheral_led_mapping.png | Bin 0 -> 25497 bytes
 3 files changed, 115 insertions(+), 379 deletions(-)
-------------------------------------------------------------------------------
commit d055dd8a4a3aa53550a1b1f9db94225fe7c0f61b
Author: Benjamin Larsson <benjamin.larsson@iopsys.eu>
Date: 2021-04-11 13:08:18 +0200

    update README.md

Base directory -> /
 README.md | 477 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 420 insertions(+), 57 deletions(-)
-------------------------------------------------------------------------------
2021-04-27 13:44:23 +02:00
Anjan Chanda
10bf43efa9 wfadatad: 3.3.0 2021-04-27 11:51:50 +02:00
Anjan Chanda
5e3a7e7af0 prj-unish: 0.7.0 2021-04-27 11:50:38 +02:00
Anjan Chanda
a76c0a433d wifimngr: 9.3.0 2021-04-27 11:47:53 +02:00
Anjan Chanda
026ccd759e easy-soc-libs: 6.2.10 2021-04-27 11:47:11 +02:00
nevadita.chatterjee
0df9c6fc36 host: Adding sighup for network change 2021-04-27 08:52:15 +00:00
Jakob Olsson
3751ae692a map-topology: 1.5.21 2021-04-27 10:50:24 +02:00
Filip Matusiak
0160f21f10 map-controller: init.d start on reload if not running 2021-04-27 08:48:10 +00:00
Jakob Olsson
52f35c0763 map-agent: 3.5.18 2021-04-27 10:44:44 +02:00
Sukru Senli
e650d27f76 urlfilter: start urlfilter only if globally enabled 2021-04-27 09:50:48 +02:00
Sukru Senli
8d6d7626b8 iop: select urlfilter by default 2021-04-27 09:35:23 +02:00
Jakob Olsson
e6c6b2c9ae rulengd: 1.2.2 2021-04-26 17:10:52 +02:00
Amin Ben Ramdhane
67693a8954 bbf: 4.1.0 2021-04-26 15:24:32 +01:00
Amin Ben Ramdhane
88ed893a07 bbf: 4.0.9 2021-04-23 11:47:10 +01:00
Amin Ben Ramdhane
fd369ac2fb bbf: 4.0.8 2021-04-22 14:50:19 +01:00
Amin Ben Ramdhane
c1bb3a5c0f bbf: 4.0.7 2021-04-22 10:25:26 +01:00
152 changed files with 5851 additions and 11117 deletions

View File

@@ -1,5 +1,7 @@
if PACKAGE_libbbfdm
menu "Configuration"
config BBF_VENDOR_EXTENSION
bool "Enable Vendor Extension"
default y
@@ -24,4 +26,12 @@ config BBF_TR143
bool "Enable TR-143 Data Model Support"
default y
config BBFDM_ENABLE_JSON_PLUGIN
bool "Enable json plugin to extend datamodel"
default n
config BBFDM_ENABLE_DOTSO_PLUGIN
bool "Enable shared library plugin to extend datamodel"
default n
endmenu
endif

View File

@@ -5,11 +5,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libbbfdm
PKG_VERSION:=4.0.6
PKG_VERSION:=6.4.18
PKG_FIXUP:=autoreconf
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bbf.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=5e72e0b9782de3978b24af0b2e80b226a35ad032
PKG_SOURCE_VERSION:=2758c0380e9dbec87b119df239aee29c7ed1ec48
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
@@ -23,19 +23,19 @@ PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/libbbf_api
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=BBF
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=TRx69
TITLE:=Library for libbbfdm API
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c
endef
define Package/libbbfdm
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=BBF
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=TRx69
TITLE:=Library for broadband-forum data model
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c +libtrace +libbbf_api +libopenssl +libmbedtls +libcurl
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c +libtrace +libbbf_api +libopenssl +libcurl
endef
define Package/libbbfdm/config
@@ -57,11 +57,9 @@ define Build/Prepare
endef
endif
TARGET_CFLAGS += -DBBF_VENDOR_LIST=\\\"$(CONFIG_BBF_VENDOR_LIST)\\\"
TARGET_CFLAGS += -DBBF_VENDOR_PREFIX=\\\"$(CONFIG_BBF_VENDOR_PREFIX)\\\"
TARGET_CFLAGS += \
-D_GNU_SOURCE -D_AADJ
-D_GNU_SOURCE \
-Wall -Werror \
ifeq ($(CONFIG_BBF_TR181),y)
CONFIGURE_ARGS += \
@@ -83,50 +81,58 @@ CONFIGURE_ARGS += \
--enable-libopenssl
endif
ifeq ($(CONFIG_PACKAGE_libmbedtls),y)
CONFIGURE_ARGS += \
--enable-libmbedtls
endif
ifeq ($(CONFIG_BBF_VENDOR_EXTENSION),y)
CONFIGURE_ARGS += \
--enable-vendor-extension
CONFIGURE_ARGS += \
BBF_VENDOR_LIST="$(CONFIG_BBF_VENDOR_LIST)"
BBF_VENDOR_LIST="$(CONFIG_BBF_VENDOR_LIST)" \
BBF_VENDOR_PREFIX="$(CONFIG_BBF_VENDOR_PREFIX)"
endif ##CONFIG_BBF_VENDOR_EXTENSION
ifeq ($(CONFIG_BBFDM_ENABLE_JSON_PLUGIN),y)
CONFIGURE_ARGS += \
--enable-json-plugin
endif
ifeq ($(CONFIG_BBFDM_ENABLE_DOTSO_PLUGIN),y)
CONFIGURE_ARGS += \
--enable-shared-library
endif
define Package/libbbf_api/install
$(INSTALL_DIR) $(1)/lib
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbf_api.so* $(1)/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/.libs/libbbf_api.so* $(1)/lib/
endef
define Package/libbbfdm/install
$(INSTALL_DIR) $(1)/lib
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.so* $(1)/lib/
$(INSTALL_DIR) $(1)/usr/share/bbfdm
$(CP) $(PKG_BUILD_DIR)/scripts/* $(1)/usr/share/bbfdm
$(INSTALL_DIR) $(1)/etc/bbfdm
$(INSTALL_DIR) $(1)/etc/bbfdm/dmmap
$(INSTALL_DIR) $(1)/etc/bbfdm/json
$(INSTALL_DIR) $(1)/usr/lib/bbfdm
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.so* $(1)/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/* $(1)/usr/share/bbfdm
endef
define Package/libbbfdm/prerm
#!/bin/sh
rm -rf /etc/bbfdm/*
rm -rf /etc/bbfdm/dmmap/*
exit 0
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/include/libbbfdm
$(INSTALL_DIR) $(1)/usr/include/libbbf_api
$(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libbbfdm/
$(CP) $(PKG_BUILD_DIR)/libbbf_api/*.h $(1)/usr/include/libbbf_api/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbf_api.{a,so*} $(1)/usr/lib/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/include/*.h $(1)/usr/include/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libbbfdm/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libbbf_api/*.h $(1)/usr/include/libbbf_api/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.{a,so*} $(1)/usr/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/.libs/libbbf_api.{a,so*} $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libbbf_api))

View File

@@ -8,9 +8,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=bulkdata
PKG_VERSION:=1.0.0
PKG_VERSION:=1.0.3
PKG_SOURCE_VERSION:=4ac9d7a7e90f5de5f43d6bf3d1a844114a46b134
PKG_SOURCE_VERSION:=b35e7862bc17fc11dc1f757c7b93900995a28633
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bulkdata.git

38
bulut/Makefile Normal file
View File

@@ -0,0 +1,38 @@
#
# Copyright (C) 2019 IOPSYS
#
include $(TOPDIR)/rules.mk
PKG_NAME:=bulut
PKG_VERSION:=0.2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/bulut/bulut-gw-client.git
PKG_SOURCE_VERSION:=227700c44817afa2c392fa08bf4cf70fa6177f01
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/bulut
CATEGORY:=Utilities
DEPENDS:=
TITLE:=bulut
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include
define Package/bulut/description
obuspa keys
endef
define Package/bulut/install
$(CP) $(PKG_BUILD_DIR)/files/* $(1)/
endef
$(eval $(call BuildPackage,bulut))

View File

@@ -1,50 +0,0 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=crun
PKG_VERSION:=0.17
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/containers/crun.git
PKG_SOURCE_VERSION:=0e9229ae34caaebcb86f1fde18de3acaf18c6d9a
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/crun
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+yajl +argp-standalone +libcap +libseccomp
TITLE:=A fast and low-memory footprint OCI Container Runtime fully written in C
endef
define Package/crun/description
crun conforms to the OCI Container Runtime specifications
endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
TARGET_LDFLAGS += -largp
MAKE_FLAGS := \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)"
define Build/Configure
cd $(PKG_BUILD_DIR)/ && sh autogen.sh && ./configure
endef
define Package/crun/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/crun $(1)/usr/bin/
endef
$(eval $(call BuildPackage,crun))

View File

@@ -1,217 +0,0 @@
diff --git a/configure.ac b/configure.ac
index 5e9f2f9..5ed99bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,16 +52,6 @@ AS_IF([test "x$enable_seccomp" != "xno"], [
])
])
-dnl libsystemd
-AC_ARG_ENABLE([systemd],
- AS_HELP_STRING([--disable-systemd], [Ignore systemd and disable support]))
-AS_IF([test "x$enable_systemd" != "xno"], [
- AC_CHECK_HEADERS([systemd/sd-bus.h], [], [AC_MSG_ERROR([*** Missing libsystemd headers])])
- AS_IF([test "$ac_cv_header_systemd_sd_bus_h" = "yes"], [
- AC_SEARCH_LIBS(sd_bus_match_signal_async, [systemd], [AC_DEFINE([HAVE_SYSTEMD], 1, [Define if libsystemd is available])], [AC_MSG_ERROR([*** Failed to find libsystemd])])
- ])
-])
-
dnl ebpf
AC_ARG_ENABLE([bpf],
AS_HELP_STRING([--disable-bpf], [Ignore eBPF and disable support]))
@@ -114,26 +104,6 @@ AS_IF([test "x$enable_criu" != "xno"], [
FOUND_LIBS=$LIBS
LIBS=""
-AC_MSG_CHECKING([for new mount API (fsconfig)])
-AC_COMPILE_IFELSE(
- [AC_LANG_SOURCE([[
- #include <linux/mount.h>
- int cmd = FSCONFIG_CMD_CREATE;
- ]])],
- [AC_MSG_RESULT(yes)
- AC_DEFINE([HAVE_FSCONFIG_CMD_CREATE], 1, [Define if FSCONFIG_CMD_CREATE is available])],
- [AC_MSG_RESULT(no)])
-
-AC_MSG_CHECKING([for seccomp notify API])
-AC_COMPILE_IFELSE(
- [AC_LANG_SOURCE([[
- #include <linux/seccomp.h>
- int cmd = SECCOMP_GET_NOTIF_SIZES;
- ]])],
- [AC_MSG_RESULT(yes)
- AC_DEFINE([HAVE_SECCOMP_GET_NOTIF_SIZES], 1, [Define if SECCOMP_GET_NOTIF_SIZES is available])],
- [AC_MSG_RESULT(no)])
-
AC_DEFINE([LIBCRUN_PUBLIC], [__attribute__((visibility("default"))) extern], [LIBCRUN_PUBLIC])
AC_SUBST([FOUND_LIBS])
AC_SUBST([CRUN_LDFLAGS])
diff --git a/src/libcrun/cgroup.c b/src/libcrun/cgroup.c
index 29c1f7a..77dc441 100644
--- a/src/libcrun/cgroup.c
+++ b/src/libcrun/cgroup.c
@@ -575,23 +575,6 @@ get_file_owner (const char *path, uid_t *uid, gid_t *gid)
struct stat st;
int ret;
-#ifdef HAVE_STATX
- struct statx stx;
-
- ret = statx (AT_FDCWD, path, AT_STATX_DONT_SYNC, STATX_UID | STATX_GID, &stx);
- if (UNLIKELY (ret < 0))
- {
- if (errno == ENOSYS || errno == EINVAL)
- goto fallback;
-
- return ret;
- }
- *uid = stx.stx_uid;
- *gid = stx.stx_gid;
- return ret;
-
-fallback:
-#endif
ret = stat (path, &st);
if (UNLIKELY (ret < 0))
return ret;
diff --git a/src/libcrun/error.h b/src/libcrun/error.h
index aa3f3aa..477a2fe 100644
--- a/src/libcrun/error.h
+++ b/src/libcrun/error.h
@@ -18,9 +18,6 @@
#ifndef ERROR_H
#define ERROR_H
#include <config.h>
-#ifdef HAVE_ERROR_H
-# include <error.h>
-#else
# define error(status, errno, fmt, ...) \
do \
{ \
@@ -35,7 +32,6 @@
exit (status); \
} \
while (0)
-#endif
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
diff --git a/src/libcrun/utils.c b/src/libcrun/utils.c
index cbde9b6..5ef7f5f 100644
--- a/src/libcrun/utils.c
+++ b/src/libcrun/utils.c
@@ -164,22 +164,6 @@ get_file_type_fd (int fd, mode_t *mode)
struct stat st;
int ret;
-#ifdef HAVE_STATX
- struct statx stx;
-
- ret = statx (fd, "", AT_EMPTY_PATH | AT_STATX_DONT_SYNC, STATX_TYPE, &stx);
- if (UNLIKELY (ret < 0))
- {
- if (errno == ENOSYS || errno == EINVAL)
- goto fallback;
-
- return ret;
- }
- *mode = stx.stx_mode;
- return ret;
-
-fallback:
-#endif
ret = fstat (fd, &st);
*mode = st.st_mode;
return ret;
@@ -191,22 +175,6 @@ get_file_type_at (int dirfd, mode_t *mode, bool nofollow, const char *path)
struct stat st;
int ret;
-#ifdef HAVE_STATX
- struct statx stx;
-
- ret = statx (dirfd, path, (nofollow ? AT_SYMLINK_NOFOLLOW : 0) | AT_STATX_DONT_SYNC, STATX_TYPE, &stx);
- if (UNLIKELY (ret < 0))
- {
- if (errno == ENOSYS || errno == EINVAL)
- goto fallback;
-
- return ret;
- }
- *mode = stx.stx_mode;
- return ret;
-
-fallback:
-#endif
ret = fstatat (dirfd, path, &st, nofollow ? AT_SYMLINK_NOFOLLOW : 0);
*mode = st.st_mode;
return ret;
@@ -550,22 +518,7 @@ get_file_size (int fd, off_t *size)
{
struct stat st;
int ret;
-#ifdef HAVE_STATX
- struct statx stx;
-
- ret = statx (fd, "", AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW | AT_STATX_DONT_SYNC, STATX_SIZE, &stx);
- if (UNLIKELY (ret < 0))
- {
- if (errno == ENOSYS || errno == EINVAL)
- goto fallback;
- return ret;
- }
- *size = stx.stx_size;
-
- return ret;
-fallback:
-#endif
ret = fstat (fd, &st);
*size = st.st_size;
return ret;
@@ -1060,7 +1013,6 @@ run_process (char **args, libcrun_error_t *err)
_exit (EXIT_FAILURE);
}
-#ifndef HAVE_FGETPWENT_R
static unsigned
atou (char **s)
{
@@ -1126,7 +1078,6 @@ fgetpwent_r (FILE *f, struct passwd *pw, char *line, size_t size, struct passwd
errno = rv;
return rv;
}
-#endif
int
set_home_env (uid_t id)
@@ -1690,29 +1641,6 @@ copy_rec_stat_file_at (int dfd, const char *path, mode_t *mode, off_t *size, dev
struct stat st;
int ret;
-#ifdef HAVE_STATX
- struct statx stx;
-
- ret = statx (dfd, path, AT_SYMLINK_NOFOLLOW | AT_STATX_DONT_SYNC,
- STATX_TYPE | STATX_MODE | STATX_SIZE | STATX_UID | STATX_GID, &stx);
- if (UNLIKELY (ret < 0))
- {
- if (errno == ENOSYS || errno == EINVAL)
- goto fallback;
-
- return ret;
- }
-
- *mode = stx.stx_mode;
- *size = stx.stx_size;
- *rdev = makedev (stx.stx_rdev_major, stx.stx_rdev_minor);
- *uid = stx.stx_uid;
- *gid = stx.stx_gid;
-
- return ret;
-
-fallback:
-#endif
ret = fstatat (dfd, path, &st, AT_SYMLINK_NOFOLLOW);
*mode = st.st_mode;

11
dectmngr/Config.in Normal file
View File

@@ -0,0 +1,11 @@
if PACKAGE_dectmngr
menu "Configuration"
config ENABLE_LINE_SETTINGS_EXTENSION
bool "Enable Line Settings List extension "
default y
endmenu
endif

View File

@@ -8,17 +8,17 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=dectmngr
PKG_RELEASE:=3
PKG_VERSION:=3.0.10
PKG_VERSION:=3.4.7
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=4d137242e742cb9fc03f27f4a55182806eb0bc4e
PKG_SOURCE_VERSION:=1894596674aa655691ee5b6ff3d283ca4cf5d2eb
PKG_MIRROR_HASH:=skip
endif
PKG_LICENSE:=GPLv2
PKG_LICENSE:=PROPRIETARY
PKG_LICENSE_FILES:=LICENSE
RSTRIP:=true
@@ -34,29 +34,40 @@ include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
CATEGORY:=Utilities
TITLE:=DECT Manager
DEPENDS:= +libubox +ubus
DEPENDS:= +libubox +ubus +uci +libxml2
endef
define Package/$(PKG_NAME)/description
DECT manager is a daemon that provides UBUS RPC objects and sends UBUS events for communication with the DECT chip.
endef
define Package/$(PKG_NAME)/config
source "$(SOURCE)/Config.in"
endef
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
rsync -av --exclude=.* ~/git/voip/dectmngr/* $(PKG_BUILD_DIR)/
endef
endif
MAKE_FLAGS += \
CFLAGS+="-Wall"
TARGET_CFLAGS += \
-Wall \
-I$(STAGING_DIR)/usr/include/libxml2
ifeq ($(CONFIG_ENABLE_LINE_SETTINGS_EXTENSION),y)
TARGET_CFLAGS += -DENABLE_LINE_SETTINGS_EXTENSION
endif
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DIR) $(1)/lib/upgrade/keep.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/app/dectmngr $(1)/usr/sbin/
$(STRIP) $(1)/usr/sbin/dectmngr
$(CP) ./files/etc/* $(1)/etc/
$(INSTALL_DATA) ./files/lib/upgrade/keep.d/dect $(1)/lib/upgrade/keep.d/dect
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
config dect 'global'
option log_dect_cmbs 'syslog'

Binary file not shown.

View File

@@ -1,69 +0,0 @@
#!/bin/sh /etc/rc.common
#
# Copyright (C) 2021 OpenWrt.org
#
source /lib/functions/uci-defaults.sh
START=70
STOP=12
USE_PROCD=1
NAME=dectmngr
PROG=/usr/sbin/dectmngr
LOG_PATH=/var/log/dectmngr
# Ask dectmngr to exit nicely and wait for it to clean up, which is a slow process.
stop_and_wait_dectmngr() {
pidof $NAME && killall -q $NAME
pidof $NAME && sleep 2 # wait for the process to stop gracefully
while pidof $NAME; do
killall -q -9 $NAME
sleep 1
done
}
start_service() {
local rfpi=
local opt_rfpi=
test $(db get hw.board.hasDect) = "0" && return
echo 1 > /sys/class/gpio/gpio14/value
rfpi=$(db -q get hw.board.dect_rfpi)
[ -n "$rfpi" -a ${#rfpi} -eq 14 ] && opt_rfpi="-rfpi $rfpi"
procd_open_instance
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log $opt_rfpi
procd_set_param respawn 6 2 3
procd_set_param term_timeout 20
procd_set_param triggers asterisk
procd_close_instance
}
stop_service() {
test $(db get hw.board.hasDect) = "0" && return
echo 0 > /sys/class/gpio/gpio14/value
stop_and_wait_dectmngr
}
reload_service() {
stop_and_wait_dectmngr
start
}
service_triggers()
{
procd_add_reload_trigger asterisk
}
boot() {
echo 14 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio14/direction
[ ! -d $LOG_PATH ] && mkdir -p $LOG_PATH
start
}

View File

@@ -0,0 +1,96 @@
#!/bin/sh /etc/rc.common
source /lib/functions/uci-defaults.sh
START=70
STOP=12
USE_PROCD=1
NAME=dectmngr
PROG=/usr/sbin/dectmngr
LOG_PATH=/var/log/dectmngr
DB_PATH=/etc/dect
# Ask dectmngr to exit nicely and wait for it to clean up, which is a slow process.
stop_and_wait_dectmngr() {
pidof $NAME && killall -q $NAME
pidof $NAME && sleep 2 # wait for the process to stop gracefully
while pidof $NAME; do
killall -q -9 $NAME
sleep 1
done
}
start_service() {
local opt_ext=
local rfpi=
local model_id=
local rxtun=
test $(db get hw.board.hasDect) = "0" && return
echo 1 > /sys/class/gpio/gpio14/value
rfpi=$(db -q get hw.board.dect_rfpi)
[ -n "$rfpi" -a ${#rfpi} -eq 14 ] && opt_ext="$opt_ext -rfpi $rfpi"
model_id=$(db -q get hw.board.dect_model_id)
[ -n "$model_id" -a ${#model_id} -eq 8 ] || {
echo "Invalid hw.board.dect_model_id:$model_id. Set to 30.3B.06"
model_id="30.3B.06"
}
opt_ext="$opt_ext -model $model_id"
rxtun=$(db -q get hw.board.dect_rxtun)
[ -n "$rxtun" -a ${#rxtun} -eq 2 ] && opt_ext="$opt_ext -rxtun $rxtun"
config_load dect
config_get log_dect_cmbs global log_dect_cmbs syslog
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
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
else
echo "Starting dectmngr with cmbs logging enabled to syslog"
procd_set_param command $PROG -comname ttyH0 -syslog $opt_ext
rm -f $LOG_PATH/*
fi
procd_set_param respawn 6 2 3
procd_set_param term_timeout 20
procd_set_param triggers asterisk
procd_close_instance
}
stop_service() {
test $(db get hw.board.hasDect) = "0" && return
echo 0 > /sys/class/gpio/gpio14/value
stop_and_wait_dectmngr
}
reload_service() {
ubus call dect reload
}
service_triggers()
{
procd_add_config_trigger "config.change" "asterisk" /etc/init.d/dectmngr restart
procd_add_config_trigger "config.change" "dect" /etc/init.d/dectmngr reload
}
boot() {
echo 14 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio14/direction
[ ! -d $LOG_PATH ] && mkdir -p $LOG_PATH
[ ! -d $DB_PATH ] && mkdir -p $DB_PATH
start
}

View File

@@ -0,0 +1 @@
/etc/dect/LA_DB

View File

@@ -1,27 +0,0 @@
#!/bin/sh
SOUND_BASE=/lib/modules/$(uname -r)/kernel/sound
SOUND_MODULES="$SOUND_BASE/soundcore.ko $SOUND_BASE/core/snd.ko $SOUND_BASE/core/snd-timer.ko"
SOUND_MODULES="$SOUND_MODULES $SOUND_BASE/core/snd-pcm.ko $SOUND_BASE/core/snd-hwdep.ko"
SOUND_MODULES="$SOUND_MODULES $SOUND_BASE/core/seq/snd-seq-device.ko"
SOUND_MODULES="$SOUND_MODULES $SOUND_BASE/core/seq/snd-seq.ko $SOUND_BASE/core/snd-rawmidi.ko "
SOUND_MODULES="$SOUND_MODULES $SOUND_BASE/usb/snd-usbmidi-lib.ko $SOUND_BASE/usb/snd-usb-audio.ko"
load_sound_modules() {
for mod in $SOUND_MODULES; do
insmod $mod
done
}
unload_sound_modules() {
local modules=
# reverse the order
for mod in $SOUND_MODULES; do
modules="$mod $modules"
done
for mod in $modules; do
rmmod $mod
done
}

View File

@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dslmngr
PKG_VERSION:=1.1.0
PKG_VERSION:=1.1.2
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=d17c699c1fc9588303d6da35ac2250903bf17cd8
PKG_SOURCE_VERSION:=bb754ae620a9fc66fd6fc0745f0fead0708c7a17
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dslmngr.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip

View File

@@ -33,7 +33,7 @@ exec_class_log() {
}
get_priority() {
local prio=$(echo $1|tr [A-Z] [a-z]);
local prio=$(echo $1|tr 'A-Z' 'a-z');
case "${prio}" in
"lowest")
echo 8;;
@@ -55,7 +55,7 @@ get_priority() {
}
get_mark() {
local prio=$(echo $1|tr [A-Z] [a-z]);
local prio=$(echo $1|tr 'A-Z' 'a-z');
case "${prio}" in
"lowest")
echo "0x41/0x3df";;

View File

@@ -15,7 +15,7 @@ exec_log() {
}
get_priority() {
local prio=$(echo $1|tr [A-Z] [a-z]);
local prio=$(echo $1|tr 'A-Z' 'a-z');
case "${prio}" in
"lowest")
echo 0;;
@@ -98,7 +98,7 @@ manage_rule() {
return 1;
}
protocol=$(echo ${proto}|tr [A-Z] [a-z])
protocol=$(echo ${proto}|tr 'A-Z' 'a-z')
prio_num=$(get_priority ${priority})
if [ -n "${macaddr}" -a -n "${prio_num}" ]; then
for p in ${port}; do

View File

@@ -19,7 +19,7 @@ exec_log() {
}
get_priority() {
local prio=$(echo $1|tr [A-Z] [a-z]);
local prio=$(echo $1|tr 'A-Z' 'a-z');
case "${prio}" in
"lowest")
echo 0;;

View File

@@ -7,13 +7,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=easy-soc-libs
PKG_VERSION:=6.2.1
PKG_VERSION:=6.4.34
PKG_RELEASE:=1
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=5521e398fd26f76a080c90b4975a649597564bba
PKG_SOURCE_VERSION:=dd2ab2e5b83d585849aae3d539c1a8cd6dcb7146
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/easy-soc-libs.git
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
@@ -45,12 +45,6 @@ ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y)
else ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
TARGET_PLATFORM=MEDIATEK
TARGET_CFLAGS +=-DIOPSYS_MEDIATEK
else ifeq ($(CONFIG_TARGET_iopsys_linksys),y)
TARGET_PLATFORM=MARVELL
TARGET_CFLAGS +=-DIOPSYS_MARVELL
else ifeq ($(CONFIG_TARGET_intel_mips),y)
TARGET_PLATFORM=INTEL
TARGET_CFLAGS +=-DIOPSYS_INTEL
else ifeq ($(CONFIG_TARGET_iopsys_x86),y)
TARGET_PLATFORM=TEST
TARGET_CFLAGS +=-DIOPSYS_TEST

View File

@@ -1,10 +1,7 @@
define Package/libdsl
$(call Package/easy-soc-libs)
TITLE:= XDSL library (libdsl)
DEPENDS+=+TARGET_intel_mips:dsl-cpe-api-vrx \
+TARGET_intel_mips:dsl-cpe-fapi \
+TARGET_intel_mips:kmod-ppa-drv
TITLE:= xDSL library (libdsl)
endef
define Package/libdsl/config

View File

@@ -18,6 +18,7 @@ define Build/InstallDev/libeasy
$(CP) $(PKG_BUILD_DIR)/libeasy/utils.h $(1)/usr/include/easy/
$(CP) $(PKG_BUILD_DIR)/libeasy/if_utils.h $(1)/usr/include/easy/
$(CP) $(PKG_BUILD_DIR)/libeasy/debug.h $(1)/usr/include/easy/
$(CP) $(PKG_BUILD_DIR)/libeasy/hlist.h $(1)/usr/include/easy/
$(CP) $(PKG_BUILD_DIR)/libeasy/libeasy*.so* $(1)/usr/lib/
endef

View File

@@ -16,7 +16,7 @@ endef
define Build/InstallDev/libqos
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libqos/qos.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/libqos/include/qos.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/libqos/libqos.so $(1)/usr/lib/
endef

View File

@@ -6,27 +6,21 @@
#
include $(TOPDIR)/rules.mk
PKG_RELEASE:=1
PKG_VERSION:=0.4
PKG_SOURCE_VERSION:=510b885c049b8ba06772dae59e64b370d0fded3e
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
ifeq ($(CONFIG_ENDPT_OPEN),y)
BRCM_KERNEL_PROFILE=$(shell echo $(CONFIG_BCM_KERNEL_PROFILE) | sed s/\"//g)
PKG_SOURCE:=endptmngr-$(BRCM_KERNEL_PROFILE)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_URL:=https://download.iopsys.eu/iopsys/opensdk/
PKG_NAME:=endptmngr-open
PATCH_DIR:=
PKG_HASH:=skip
else
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/endptmngr.git
PKG_SOURCE_PROTO:=git
PKG_NAME:=endptmngr
PKG_VERSION:=0.6
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/endptmngr.git
PKG_SOURCE_VERSION:=548fa04d2714feeadb500192905fa6fb8172e6dd
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
export BUILD_DIR
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
@@ -34,15 +28,10 @@ PKG_BUILD_PARALLEL:=1
# All config variable that are passed to the make invocation, directly or
# indirectly. This ensures that the package is rebuilt on config-changes.
PKG_CONFIG_DEPENDS := \
CONFIG_TARGET_BOARD
export CONFIG_BRCM_SDK_VER_504001
export CONFIG_BRCM_SDK_VER_504002
export CONFIG_BRCM_SDK_VER_504003
export CONFIG_BRCM_SDK_VER_504004
export CONFIG_BRCM_SDK_VER_504005
PKG_CONFIG_DEPENDS:=CONFIG_TARGET_BOARD
export CONFIG_BRCM_SDK_VER_504021
export CONFIG_BCM_CHIP_ID
include $(INCLUDE_DIR)/package.mk
@@ -52,7 +41,7 @@ endef
define Package/endptmngr
CATEGORY:=Utilities
TITLE:=Brcmslic
TITLE:=Broadcom Voice Endpoint Manager
URL:=
DEPENDS:= +libubox +ubus +libpicoevent +uci +bcmkernel @TARGET_HAS_VOICE @BCM_VOICE
endef
@@ -61,18 +50,15 @@ define Package/endptmngr/description
endptmngr
endef
ifeq ($(CONFIG_ENDPT_OPEN),y)
define Build/Compile
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
rsync -av --exclude=.* ~/git/endptmngr/* $(PKG_BUILD_DIR)/
endef
endif
define Package/endptmngr/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc/init.d/
cp $(PKG_BUILD_DIR)/files/etc/init.d/* $(1)/etc/init.d/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/endptmngr $(1)/usr/sbin/
endef

View File

@@ -0,0 +1,27 @@
#!/bin/sh /etc/rc.common
START=68
STOP=12
USE_PROCD=1
NAME=endptmngr
start_service() {
[ "$(db -q get hw.board.hasVoice)" = "1" ] || return
procd_open_instance
procd_set_param env hw_board_hasDect=$(db get hw.board.hasDect)
procd_set_param command $NAME
procd_set_param respawn "5" "0" "3"
procd_set_param nice -12
procd_close_instance
}
reload_service() {
stop
start
}
service_triggers() {
procd_add_reload_trigger asterisk
}

View File

@@ -12,7 +12,7 @@ PKG_VERSION:=1.0
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/fdtextract.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=152a2d96fea896c1607bd5259e3076750693dd59
PKG_SOURCE_VERSION:=7e013f0afa68378d38a6bdc9b0c5a342bd3dd0a5
PKG_MIRROR_HASH:=skip
PKG_LICENSE:=GPLv2

View File

@@ -28,6 +28,7 @@ define KernelPackage/$(PKG_NAME)
FILES:=$(PKG_BUILD_DIR)/$(PKG_NAME).$(LINUX_KMOD_SUFFIX)
KCONFIG:=CONFIG_PACKAGE_kmod-gryphon-led-kernel-module=y
AUTOLOAD:=$(call AutoLoad,60,$(PKG_NAME))
DEPENDS:= +(TARGET_iopsys_brcm63xx_arm):bcmkernel
PKG_LICENSE:=GPLv2
PKG_LICENSE_URL:=
endef
@@ -40,6 +41,21 @@ EXTRA_KCONFIG:= CONFIG_RGB_LED=m
MODULE_INCLUDE=-I$(PKG_BUILD_DIR)
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y)
LINUX_DIR:=$(BUILD_DIR)/bcmkernel/bcm963xx/kernel/linux-4.19
MODULES_SUBDIR:=lib/modules/4.19.183
TARGET_CROSS:=$(CONFIG_BCM_TOOLCHAIN)/bin/$(CONFIG_BCM_TOOLTUPLE)
ifeq ($(CONFIG_BCM_CHIP_ID),$(filter $(CONFIG_BCM_CHIP_ID),"63158" "6856" "6858"))
# These targets use a 64-bit kernel
LINUX_KARCH:=arm64
TARGET_CROSS:=/opt/toolchains/crosstools-aarch64-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/aarch64-buildroot-linux-gnu-
endif
# For some reason, Broadcom's kernel does not set the include paths correctly when compiling out-of-tree modules
EXTRA_KCPPFLAGS:="-I $(LINUX_DIR)/../bcmkernel/include -I $(LINUX_DIR)/arch/arm/mach-bcm963xx/include"
endif
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)/kdevlinks/
$(CP) -s `pwd`/src/* $(PKG_BUILD_DIR)/kdevlinks/

View File

@@ -43,10 +43,15 @@
static ssize_t get_led_color(struct device *dev,
struct device_attribute *attr, char *buf)
{
/* [ln] todo: dummy implementation */
int len;
struct sk9822_leds *sk9822 = dev_get_drvdata(dev);
len = scnprintf(buf, PAGE_SIZE, "%d\n", 123);
if (IS_ERR(sk9822)) {
printk(KERN_ERR "Platform get drvdata returned NULL\n");
return -EIO;
}
len = scnprintf(buf, PAGE_SIZE, "%02x%02x%02x\n", sk9822->led_colors[0].r, sk9822->led_colors[0].g, sk9822->led_colors[0].b);
if (len <= 0) {
dev_err(dev, "sk9822: Invalid sprintf len: %d\n", len);
return -EIO;

View File

@@ -1,5 +1,6 @@
if PACKAGE_icwmp
menu "Configuration"
choice
prompt "Select ACS sever"
default CWMP_ACS_MULTI
@@ -18,6 +19,6 @@ config CWMP_DEBUG
config CWMP_DEVEL_DEBUG
bool "Compile with development debug options"
default n
endmenu
endif

View File

@@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=icwmp
PKG_VERSION:=7.0.1-2021-04-15
PKG_VERSION:=8.2.25
PKG_FIXUP:=autoreconf
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=f70cc81e5688e32aa82084faae5bc6ff710bb81b
PKG_SOURCE_VERSION:=22a1606d972d2dd05b23abe94323f72232727b37
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
@@ -29,8 +29,6 @@ PKG_CONFIG_DEPENDS:= \
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
CWMP_REVISION=$(shell svnversion ./src/ -n|cut -f2 -d:)
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
@@ -57,24 +55,8 @@ endef
endif
TARGET_CFLAGS += \
-D_GNU_SOURCE -D_AADJ
ifneq ($(CWMP_REVISION)_,_)
ifneq ($(CWMP_REVISION),exported)
ifneq ($(CWMP_REVISION),Unversioned directory)
TARGET_CFLAGS += "-DCWMP_REVISION=\\\"$(CWMP_REVISION)\\\""
TARGET_LDFLAGS += "-DCWMP_REVISION=\\\"$(CWMP_REVISION)\\\""
endif
endif
endif
TARGET_LDFLAGS += \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
CONFIGURE_ARGS += \
--with-uci-include-path=$(STAGING_DIR)/usr/include \
--with-libubox-include-path=$(STAGING_DIR)/usr/include \
--with-libubus-include-path=$(STAGING_DIR)/usr/include
-D_GNU_SOURCE \
"-DCWMP_REVISION=\\\"$(PKG_SOURCE_VERSION)\\\""
ifeq ($(CONFIG_CWMP_ACS_MULTI),y)
CONFIGURE_ARGS += \
@@ -99,26 +81,19 @@ endif
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/icwmpd
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmpd $(1)/usr/sbin/
$(CP) ./files/* $(1)/
endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Enabling rc.d symlink for icwmpd"
/etc/init.d/icwmpd enable
fi
exit 0
endef
define Package/$(PKG_NAME)/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Disabling rc.d symlink for icwmpd"
/etc/init.d/icwmpd disable
fi
exit 0
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_DIR) $(1)/lib/upgrade/keep.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmpd $(1)/usr/sbin/icwmpd
$(INSTALL_DATA) ./files/etc/config/cwmp $(1)/etc/config/cwmp
$(INSTALL_BIN) ./files/etc/firewall.cwmp $(1)/etc/firewall.cwmp
$(INSTALL_BIN) ./files/etc/init.d/icwmpd $(1)/etc/init.d/icwmpd
$(INSTALL_BIN) ./files/etc/uci-defaults/85-cwmp-set-userid $(1)/etc/uci-defaults/
$(INSTALL_BIN) ./files/etc/uci-defaults/90-cwmpfirewall $(1)/etc/uci-defaults/
$(INSTALL_BIN) ./files/etc/uci-defaults/95-icwmp-generate-ssl $(1)/etc/uci-defaults/
$(INSTALL_DATA) ./files/lib/upgrade/keep.d/icwmp $(1)/lib/upgrade/keep.d/icwmp
$(INSTALL_BIN) ./files/etc/icwmpd/update.sh $(1)/etc/icwmpd/update.sh
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

View File

@@ -1,11 +1,9 @@
config acs 'acs'
option url ''
option userid '' #$OUI-$SER
option passwd 'iopsys'
option periodic_inform_enable 'true'
option periodic_inform_interval '1800'
option periodic_inform_time '0001-01-01T00:00:00Z'
option ParameterKey ''
option dhcp_discovery 'enable'
# compression possible configs: GZIP, Deflate, Disabled
option compression 'Disabled'
@@ -30,7 +28,6 @@ config cpe 'cpe'
option userid '' #$OUI-$SER
option passwd 'iopsys'
option port '7547'
option ubus_socket '/var/run/ubus.sock'
option provisioning_code ''
option amd_version '5'
# compression possible configs: InstanceNumber, InstanceAlias
@@ -40,6 +37,7 @@ config cpe 'cpe'
option exec_download '0'
option periodic_notify_enable '1'
option periodic_notify_interval '10'
option incoming_rule 'Port_Only'
config lwn 'lwn'
option enable '1'

View File

@@ -1,21 +1,81 @@
#created by the icwmp package
zone_name=""
port=""
if [ "$zone_name" = "" ]; then
#!/bin/sh
#created by the icwmp package
log() {
echo "${@}"|logger -t firewall.cwmp -p info
}
if [ ! -f "/var/state/cwmp" ]; then
touch "/var/state/cwmp"
exit 0;
fi
zone_name=$(uci -c /var/state -q get cwmp.acs.zonename)
port=$(uci -q get cwmp.cpe.port)
ipaddr=$(uci -c /var/state -q get cwmp.acs.ip)
ip6addr=$(uci -c /var/state -q get cwmp.acs.ip6)
incoming_rule=$(uci -q get cwmp.cpe.incoming_rule|tr 'A-Z' 'a-z')
if [ -z "${zone_name}" ]; then
log "empty firewall zone name"
exit 0
elif [ "$zone_name" = "icwmp" ]; then
iptables -nL zone_icwmp_input 2> /dev/null
if [ $? != 0 ]; then
iptables -N zone_icwmp_input
iptables -t filter -A INPUT -j zone_icwmp_input
iptables -I zone_icwmp_input -p tcp --dport $port -j REJECT
iptables -w 1 -N zone_icwmp_input
iptables -w 1 -t filter -A INPUT -j zone_icwmp_input
iptables -w 1 -I zone_icwmp_input -p tcp --dport $port -j REJECT
else
iptables -F zone_icwmp_input
iptables -I zone_icwmp_input -p tcp --dport $port -j REJECT
iptables -w 1 -F zone_icwmp_input
iptables -w 1 -I zone_icwmp_input -p tcp --dport $port -j REJECT
fi
else
iptables -F zone_icwmp_input 2> /dev/null
iptables -t filter -D INPUT -j zone_icwmp_input 2> /dev/null
iptables -X zone_icwmp_input 2> /dev/null
iptables -w 1 -F zone_icwmp_input 2> /dev/null
iptables -w 1 -t filter -D INPUT -j zone_icwmp_input 2> /dev/null
iptables -w 1 -X zone_icwmp_input 2> /dev/null
fi
#iptables -I FW_ZONE -p tcp -s ACS_ADDRESS --dport PORT -j ACCEPT --comment "Open ACS port"
cmd="iptables -w 1 -I zone_${zone_name}_input -p tcp"
cmd6="ip6tables -w 1 -I zone_${zone_name}_input -p tcp"
# default incoming rule is Port only
if [ -z "${incoming_rule}" ]; then
incoming_rule="port_only"
fi
if [ "${incoming_rule}" = "ip_only" ]; then
if [ -n "${ipaddr}" ]; then
cmd="${cmd} -s ${ipaddr}"
cmd6="${cmd6} -s ${ip6addr}"
fi
elif [ "${incoming_rule}" = "port_only" ]; then
if [ -n "${port}" ]; then
cmd="${cmd} --dport ${port}"
cmd6="${cmd6} --dport ${port}"
fi
else
if [ -n "${ipaddr}" ]; then
cmd="${cmd} -s ${ipaddr}"
cmd6="${cmd6} -s ${ip6addr}"
fi
if [ -n "${port}" ]; then
cmd="${cmd} --dport ${port}"
cmd6="${cmd6} --dport ${port}"
fi
fi
echo ${cmd}|grep -q "\-\-dport \|\-s "
if [ "$?" -eq 0 ]; then
cmd="${cmd} -j ACCEPT -m comment --comment=Open_ACS_port"
${cmd}
fi
echo ${cmd6}|grep -q "\-\-dport \|\-s "
if [ "$?" -eq 0 ]; then
cmd6="${cmd6} -j ACCEPT -m comment --comment=Open_ACS_port"
${cmd6}
fi
uci -c /var/state -q set cwmp.cpe.firewall_restart="init"
uci -c /var/state -q commit cwmp

View File

@@ -1,87 +0,0 @@
#!/bin/sh
. /lib/functions/network.sh
[ "$ACTION" == "ifup" ] || exit 0
[ -f /etc/config/cwmp ] || exit 0
handle_icwmp_restart() {
[ -f /tmp/switching_mode ] && exit 0
[ -f /tmp/wificontrol.txt -a -f /tmp/netmode-conf.pid ] && exit 0
[ "$INTERFACE" == "loopback" ] && exit 0
local defwan=$(uci -q get cwmp.cpe.default_wan_interface)
[ -n "$defwan" -a "$(uci -q get network.$defwan)" == "interface" -a "$defwan" != "$INTERFACE" ] && exit 0
local islan="$(uci -q get network.$INTERFACE.is_lan)"
[ "$islan" == "1" ] && exit 0
local proto="$(uci -q get network.$INTERFACE.proto)"
[ "$proto" == "none" ] && exit 0
local ifname="$(uci -q get network.$INTERFACE.ifname)"
[ "${ifname:0:1}" == "@" ] && exit 0
mkdir -p /tmp/ipv4
network_flush_cache
local previpaddr=""
local curipaddr=""
local ipaddrfile=/tmp/ipv4/$INTERFACE-ipaddr
previpaddr=$(cat $ipaddrfile 2>/dev/null)
network_get_ipaddr curipaddr $INTERFACE
[ -n "$curipaddr" ] && echo $curipaddr > $ipaddrfile || rm -f $ipaddrfile
local prevgateway=""
local curgateway=""
local gatewayfile=/tmp/ipv4/$INTERFACE-gateway
prevgateway=$(cat $gatewayfile 2>/dev/null)
network_get_gateway curgateway $INTERFACE
[ -n "$curgateway" ] && echo $curgateway > $gatewayfile || rm -f $gatewayfile
local prevsubnets=""
local cursubnets=""
local subnetsfile=/tmp/ipv4/$INTERFACE-subnets
prevsubnets=$(cat $subnetsfile 2>/dev/null)
network_get_subnets cursubnets $INTERFACE
[ -n "$cursubnets" ] && echo $cursubnets > $subnetsfile || rm -f $subnetsfile
local prevdnsservers=""
local curdnsservers=""
local dnsserverfile=/tmp/ipv4/$INTERFACE-dnsservers
prevdnsservers=$(cat $dnsserverfile 2>/dev/null)
network_get_dnsserver curdnsservers $INTERFACE
[ -n "$curdnsservers" ] && echo $curdnsservers > $dnsserverfile || rm -f $dnsserverfile
local prevdev=""
local curdev=""
local devfile=/tmp/ipv4/$INTERFACE-dev
prevdev=$(cat $devfile 2>/dev/null)
network_get_device curdev $INTERFACE
[ -n "$curdev" ] && echo $curdev > $devfile || rm -f $devfile
local prevopt43url=""
local curopt43url=""
local opt43urlfile=/tmp/ipv4/$INTERFACE-opt43url
prevopt43url=$(cat $opt43urlfile 2>/dev/null)
curopt43url="$(uci -P /var/state -q get cwmp.acs.dhcp_url)"
[ -n "$curopt43url" ] && echo $curopt43url > $opt43urlfile || rm -f $opt43urlfile
[ \
"$prevdev" == "$curdev" -a \
"$previpaddr" = "$curipaddr" -a \
"$prevgateway" = "$curgateway" -a \
"$prevsubnets" = "$cursubnets" -a \
"$prevdnsservers" = "$curdnsservers" \
] && {
[ "$prevopt43url" = "$curopt43url" ] && exit 0
[ -z "$prevopt43url" ] && exit 0
}
/etc/init.d/icwmpd reload &
}
handle_icwmp_restart

View File

@@ -0,0 +1,43 @@
#!/bin/sh
log() {
echo $@ |logger -t cwmp.update -p info
}
handle_icwmp_update() {
local defwan=$(uci -q get cwmp.cpe.default_wan_interface)
local vendorspecinf=`ifstatus ${defwan} | jsonfilter -e "@.data.vendorspecinf"`
log "Handling dhcp option value ${vendorspecinf}"
[ -n "$vendorspecinf" ] && {
local url=""
local old_url="$(uci -q get cwmp.acs.dhcp_url)"
case $vendorspecinf in
http://*|https://*)
url="${vendorspecinf}"
;;
*)
for optval in $vendorspecinf; do
case $optval in
1=*)
url="$(echo $optval | cut -d"=" -f2-)"
;;
esac
done
;;
esac
if [ -n "$url" ]; then
log "## icwmp url[${old_url}] changed to [${url}]"
if [ "${url}" != "${old_url}" ]; then
log "Restarting icwmp url[${old_url}] changed to [${url}]"
uci -q set cwmp.acs.dhcp_url="$url"
uci commit cwmp
ubus call uci commit '{"config":"cwmp"}'
fi
fi
}
}
handle_icwmp_update

View File

@@ -6,121 +6,41 @@ include /lib/network
. /usr/share/libubox/jshn.sh
START=99
STOP=10
STOP=2
USE_PROCD=1
PROG="/usr/sbin/icwmpd"
EXTRA_HELP=" start [GetRPCMethods] Start icwmpd service and send GetRPCMethods"
validate_url() {
# SCHEMA_LIST: contain list of possible schemas that could be present in the acs url
# Example: SCHEMA_LIST="http https"
SCHEMA_LIST="http"
for schema in $SCHEMA_LIST; do
dest=`echo $1 | sed 's/$schema:\/\///g' | cut -f1 -d \/ | cut -f1 -d:`
if [ "_$dest" != "_" ]; then
return 0
fi
done
return 1
}
get_acs_url() {
local default_acs="http://10.10.1.6:8000/openacs/acs"
local acs_dhcp_discovery="$(uci -q get cwmp.acs.dhcp_discovery)"
local url="$(uci -q get cwmp.acs.url)"
local dhcp_url="$(uci -P /var/state -q get cwmp.acs.dhcp_url)"
if [ "$acs_dhcp_discovery" == "enable" -a -n "$dhcp_url" -o -z "$url" ]; then
url="$dhcp_url"
echo "ACS URL from DHCP server: $url"
[ -n "$url" ] && uci -P /var/state -q set cwmp.acs.url="$url" || url="$default_acs"
elif [ -n "$url" ];then
url="$(uci -q get cwmp.acs.url)"
echo "ACS URL from configuration: $url"
else
url="$default_acs"
echo "Using default ACS URL: $url"
[ -n "$url" ] && uci -P /var/state -q set cwmp.acs.url="$url"
fi
validate_url "$url"
if [ "$?" != "0" ];then
echo "Invalid ACS URL: $url"
exit 1
fi
log() {
echo "${@}"|logger -t cwmp.init -p info
}
enable_dhcp_option43() {
local wan=$1
local discovery=0
case $2 in
enable|1) discovery=1 ;;
esac
local wan="${1}"
### Ask for DHCP Option 43 only if CWMP is enabled ###
local enabled
local newreqopts=
local baseopts=
local reqopts="$(uci -q get network.$wan.reqopts)"
local proto="$(uci -q get network.$wan.proto)"
local tropts="43"
local oldreqopts="$reqopts"
local ropt iopt
local newreqopts=""
local option43_present=0
for ropt in $reqopts; do
case $ropt in
43) ;;
*) baseopts="$baseopts $ropt" ;;
esac
done
ropt=""
reqopts="$baseopts $tropts"
for ropt in $reqopts; do
case $ropt in
43) [ $discovery -eq 1 ] && newreqopts="$newreqopts $ropt" ;;
*) newreqopts="$newreqopts $ropt" ;;
43) option43_present=1 ;;
*) ;;
esac
done
if [ ${option43_present} -eq 1 ]; then
return;
fi
newreqopts="$reqopts 43"
if [ $proto == "dhcp" ]; then
newreqopts="$(echo $newreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
oldreqopts="$(echo $oldreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
[ "$newreqopts" == "$oldreqopts" ] && return
uci -q set network.$wan.reqopts="$newreqopts"
uci commit network
ubus call network reload
fi
########################################################
}
wait_for_option43() {
local time=$1
local default_wan_interface dhcp_discovery url
config_get default_wan_interface cpe default_wan_interface "wan"
config_get dhcp_discovery acs dhcp_discovery "0"
config_get url acs url
enable_dhcp_option43 $default_wan_interface $dhcp_discovery
local tm=0
if [ "$dhcp_discovery" == "enable" -o "$dhcp_discovery" == "1" ]
then
echo "Waiting for discovery of ACS URL from dhcp server ..."
while [ $tm -le $time ]
do
acs_url=`uci -P /var/state -q get cwmp.acs.dhcp_url`
if [ "$acs_url" != "" ]
then
break
else
sleep 1
fi
tm=$((tm+1))
done
fi
}
wait_for_resolvfile() {
@@ -138,52 +58,215 @@ wait_for_resolvfile() {
}
set_wan_interface() {
local wan_interface="${1}"
local l3_device=""
local default_wan_interface=""
config_get default_wan_interface cpe default_wan_interface "wan"
json_load "$(ifstatus $default_wan_interface)"
if [ -z "${wan_interface}" ]; then
return 0;
fi
json_load "$(ifstatus ${wan_interface})"
json_get_var l3_device l3_device
if [ "$l3_device" != "" ];then
uci -q set cwmp.cpe.interface="$l3_device"
if [ -n "$l3_device" ]; then
uci -q set cwmp.cpe.interface="${l3_device}"
uci -q commit cwmp
fi
}
start_service() {
if [ ! -f /tmp/.icwmpd_boot ]; then
touch /etc/icwmpd/.icwmpd_boot
touch /tmp/.icwmpd_boot
else
[ -f /sbin/netifd ] && echo "Waiting for Network to be started ..." && ubus -t 5 wait_for network.interface
[ -f /etc/config/wireless ] && echo "Waiting for WiFi to be started ..." && ubus -t 5 wait_for network.wireless
[ -f /usr/sbin/dnsmasq ] && echo "Waiting for DNS Proxy to be started ..." && ubus -t 5 wait_for dnsmasq
[ -f /etc/config/dhcp ] && echo "Waiting for DNS Server(s) ..." && wait_for_resolvfile 20
[ -f /usr/sbin/asterisk ] && echo "Waiting for Voice to be started ..." && ubus -t 5 wait_for asterisk
config_load cwmp
set_wan_interface
wait_for_option43 20
get_acs_url
procd_open_instance
procd_set_param command "$PROG"
if [ "$1" = "GetRPCMethods" ];then
procd_append_param command -g
elif [ -f /etc/icwmpd/.icwmpd_boot ]; then
procd_append_param command -b
copy_cwmp_etc_files_to_varstate() {
if [ ! -f /var/state/cwmp ]
then
if [ -f /etc/icwmpd/cwmp ]
then
uci -q -c /etc/icwmpd delete cwmp.acs
uci -q -c /etc/icwmpd commit cwmp
cp /etc/icwmpd/cwmp /var/state/cwmp
else
touch /var/state/cwmp
fi
procd_set_param respawn "3" "7" "0"
procd_close_instance
fi
mkdir -p /var/run/icwmpd
if [ -f /etc/icwmpd/icwmpd_backup_session.xml ]
then
mv /etc/icwmpd/icwmpd_backup_session.xml /var/run/icwmpd 2>/dev/null
fi
if [ -f /etc/icwmpd/dm_enabled_notify.xml ]
then
mv /etc/icwmpd/dm_enabled_notify /var/run/icwmpd 2>/dev/null
fi
}
copy_cwmp_varstate_files_to_etc() {
if [ -f /var/state/cwmp ]
then
cp /var/state/cwmp /etc/icwmpd 2>/dev/null
fi
if [ -f /var/run/icwmpd/icwmpd_backup_session.xml ]
then
cp /var/run/icwmpd/icwmpd_backup_session.xml /etc/icwmpd 2>/dev/null
fi
if [ -f /var/run/icwmpd/dm_enabled_notify.xml ]
then
cp /var/run/icwmpd/dm_enabled_notify /etc/icwmpd 2>/dev/null
fi
}
validate_acs_section()
{
uci_validate_section cwmp acs "acs" \
'passwd:string' \
'periodic_inform_enable:bool' \
'periodic_inform_interval:uinteger' \
'periodic_inform_time:string' \
'url:string' \
'dhcp_url:string' \
'compression:or("GZIP","Deflate","Disabled")' \
'retry_min_wait_interval:range(1, 65535)' \
'retry_interval_multiplier:range(1000, 65535)' \
'https_ssl_capath:file' \
'ipv6_enable:bool'
}
validate_cpe_section()
{
uci_validate_section cwmp cpe "cpe" \
'interface:string' \
'default_wan_interface:string' \
'log_to_console:or("enable","disable")' \
'log_to_file:or("enable","disable")' \
'log_severity:or("EMERG", "ALERT", "CRITIC" ,"ERROR", "WARNING", "NOTICE", "INFO", "DEBUG")' \
'log_file_name:string' \
'log_max_size:uinteger' \
'userid:string' \
'passwd:string' \
'port:uinteger' \
'provisioning_code:string:""' \
'amd_version:range(1, 6)' \
'instance_mode:or("InstanceNumber","InstanceAlias")' \
'session_timeout:uinteger' \
'notification:bool' \
'exec_download:bool' \
'periodic_notify_enable:bool' \
'enable:bool' \
'periodic_notify_interval:uinteger'
}
validate_defaults() {
config_load cwmp
validate_acs_section || {
log "Validation of acs section failed"
return 1;
}
[ -z "${url}" -a -z "${dhcp_url}" ] && {
log "ACS url is empty can't start"
return 1;
}
validate_cpe_section || {
log "Validation of cpe section failed"
return 1;
}
[ -z "${default_wan_interface}" ] && {
log "Wan interface is empty"
return 1;
}
return 0;
}
boot() {
local dhcp_url=""
local discovery="1"
config_load cwmp
config_get_bool dhcp_discovery acs dhcp_discovery 1
config_get dhcp_url acs dhcp_url ""
if [ "${dhcp_discovery}" == "enable" -o "${dhcp_discovery}" == "1" ]; then
if [ -z "${dhcp_url}" ]; then
log "dhcp discovery enabled but no dhcp url, trigger update"
/etc/icwmpd/update.sh
fi
fi
start
}
start_service() {
local enable_cwmp
local wan_interface
local dhcp_discovery
config_load cwmp
config_get_bool enable_cwmp cpe enable 1
config_get dhcp_discovery acs dhcp_discovery
config_get wan_interface cpe default_wan_interface "wan"
if [ "$enable_cwmp" = "0" -o "$enable_cwmp" = "false" ]; then
log "CWMP is not enabled"
return 0
fi
# Set wan interface if not configured
set_wan_interface "${wan_interface}"
# Set dhcp option 43 if dhcp discovery enabled
if [ "${dhcp_discovery}" == "enable" -o "${dhcp_discovery}" == "1" ]; then
enable_dhcp_option43 "${wan_interface}"
fi
[ -f /sbin/netifd ] && log "Waiting for Network to be started ..." && ubus -t 5 wait_for network.interface
[ -f /usr/sbin/dnsmasq ] && log "Waiting for DNS Proxy to be started ..." && ubus -t 5 wait_for dnsmasq
[ -f /etc/config/dhcp ] && log "Waiting for DNS Server(s) ..." && wait_for_resolvfile 20
# Copy backup data so that if it restart latter on it gets the info
copy_cwmp_etc_files_to_varstate
validate_defaults || {
log "Validation of defaults failed"
return 1;
}
procd_open_instance icwmp
procd_set_param command "$PROG"
procd_append_param command -b
procd_set_param respawn \
${respawn_threshold:-5} \
${respawn_timeout:-10} ${respawn_retry:-3}
procd_set_param watch network.interface
procd_close_instance
}
stop_service()
{
copy_cwmp_varstate_files_to_etc
}
reload_service() {
log "Restarting CWMP client"
stop
start
}
service_triggers() {
procd_add_config_trigger "config.change" "cwmp" /etc/init.d/icwmpd reload
procd_add_reload_trigger "cwmp"
procd_open_trigger
json_add_array
json_add_string "" "interface.update"
json_add_array
json_add_array
json_add_string "" "run_script"
json_add_string "" "/etc/icwmpd/update.sh"
json_close_array
json_close_array
json_add_int "" "2000"
json_close_array
procd_close_trigger
}

View File

@@ -1,18 +1,18 @@
# Copy defaults by the factory to the cwmp UCI user section.
# Get Manufacturer OUI.
oui=$(uci -q get cwmp.cpe.manufacturer_oui)
if [ -z "${oui}" ]; then
oui=$(db -q get device.deviceinfo.ManufacturerOUI)
fi
# Get factory base MAC.
baseMac=$(db -q get hw.board.basemac)
# Erase colon and space characters.
baseMac=${baseMac//:/}
baseMac=${baseMac// /}
# Caseing and fixed length string.
mac=$(printf "%12.12X" $((0x$baseMac)))
oui=$(echo "${oui}" | tr 'a-f' 'A-F')
# Get system serial number.
serial=$(db -q get hw.board.serial_number)
serial=$(uci -q get cwmp.cpe.serial_number)
if [ -z "${serial}" ]; then
serial=$(db -q get device.deviceinfo.SerialNumber)
fi
# Get userid values
acs_userid=$(uci -q get cwmp.acs.userid)
@@ -21,12 +21,12 @@ cpe_userid=$(uci -q get cwmp.cpe.userid)
# Only set if they are empty
if [ -z "$acs_userid" ]
then
uci -q set cwmp.acs.userid="${mac:0:6}-${serial}"
uci -q set cwmp.acs.userid="${oui}-${serial}"
fi
if [ -z "$cpe_userid" ]
then
uci -q set cwmp.cpe.userid="${mac:0:6}-${serial}"
uci -q set cwmp.cpe.userid="${oui}-${serial}"
fi
# No need for commit here, it is done by uci_apply_defaults().

View File

@@ -1,54 +0,0 @@
#!/bin/sh
. /lib/functions.sh
set_cwmp_reqopts() {
### Ask for DHCP Option 43 only if CWMP is enabled ###
local wan=$(uci -q get cwmp.cpe.default_wan_interface)
local dhcp_discovery=$(uci -q get cwmp.acs.dhcp_discovery)
local discovery=0
case $dhcp_discovery in
enable|1) discovery=1 ;;
esac
local newreqopts=
local baseopts=
local reqopts="$(uci -q get network.$wan.reqopts)"
local proto="$(uci -q get network.$wan.proto)"
local tropts="43"
local oldreqopts="$reqopts"
local ropt iopt
for ropt in $reqopts; do
case $ropt in
43) ;;
*) baseopts="$baseopts $ropt" ;;
esac
done
ropt=""
reqopts="$baseopts $tropts"
for ropt in $reqopts; do
case $ropt in
43) [ $discovery -eq 1 ] && newreqopts="$newreqopts $ropt" ;;
*) newreqopts="$newreqopts $ropt" ;;
esac
done
if [ "$proto" == "dhcp" ]; then
newreqopts="$(echo $newreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
oldreqopts="$(echo $oldreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
[ "$newreqopts" == "$oldreqopts" ] && return
uci -q set network.$wan.reqopts="$newreqopts"
uci commit network
fi
}
regenerate_ssl_link(){
local cert_dir="/etc/ssl/certs"
local all_file=$(ls $cert_dir/*.pem)
for cfile in $all_file
do
ln -s $cfile $cert_dir/$(openssl x509 -hash -noout -in $cfile).0
done
}
set_cwmp_reqopts
regenerate_ssl_link

View File

@@ -0,0 +1,18 @@
#!/bin/sh
. /lib/functions.sh
regenerate_ssl_link(){
[ ! -d "/etc/ssl/certs" ] && return 0;
[ ! -f "/etc/ssl/certs/*.pem" ] && return 0;
local cert_dir="/etc/ssl/certs"
local all_file=$(ls $cert_dir/*.pem)
for cfile in $all_file
do
ln -s $cfile $cert_dir/$(openssl x509 -hash -noout -in $cfile).0
done
}
regenerate_ssl_link

View File

@@ -1 +1 @@
/etc/icwmpd/.icwmpd_backup_session.xml
/var/run/icwmpd/icwmpd_backup_session.xml

View File

@@ -1,29 +0,0 @@
#!/bin/sh
# As part of sysupgrade we copy CWMP Backup Session XML file.
# Abort on any error.
set -e
# Do nothing if user want to discard old settings.
if [ -n "$SAVE_CONFIG" ] && [ $SAVE_CONFIG -eq 0 ]; then
exit 0
fi
# Source functions.
for f in /lib/upgrade/iopsys*.sh; do
[ -r "$f" -a -s "$f" ] || continue
source $f
done
if [ -s "${2}/etc/icwmpd/.icwmpd_backup_session.xml" ]; then
cat "${2}/etc/icwmpd/.icwmpd_backup_session.xml" > "/etc/icwmpd/.icwmpd_backup_session.xml"
fi
# Report success.
log "post-hooks" "CWMP Backup Session XML file migrated"
exit 0

View File

@@ -1,29 +1,14 @@
if PACKAGE_ieee1905 || PACKAGE_lib1905al
if (PACKAGE_ieee1905)
menu "developer/debug options"
menu "Configurations"
config IEEE1905_MAP_COMPLETE_NETWORK
bool "Create network topology for complete network"
default n
config IEEE1905_EXTENSION_ALLOWED
bool "Allow plugins to extend 1905 CMDUs and/or TLVs"
default y
config IEEE1905_SPEED_UP_DISCOVERY
bool "Speed up discovery of an AL in network"
default y
config IEEE1905_PLATFORM_HAS_WIFI
bool "Platform has WiFi"
default y if PACKAGE_libwifi
config IEEE1905_DO_NOT_ACCEPT_UNAUTHENTICATED_COMMANDS
bool "Do not accept M1/M2 messages from unknown AL(s)"
default y
choice
prompt "Select ALME support"
default IEEE1905_ALME_OVER_UBUS
config IEEE1905_ALME_OVER_UBUS
bool "ALME methods supported over ubus"
#config IEEE1905_ALME_OVER_TCP
# bool "ALME server over TCP port"
endchoice
endmenu
endif

View File

@@ -1,142 +1,140 @@
#
# Copyright (C) 2019 Iopsys
# Copyright (C) 2021 IOPSYS
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ieee1905
PKG_VERSION:=2.1.44
PKG_VERSION:=4.6.0
LOCAL_DEV:=0
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=33d05c2223023ce5b57001008555bd0f82e88541
PKG_SOURCE_VERSION:=373602c3644ead5c61aece58e1f88f52838bb38b
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/ieee1905.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
PKG_MIRROR_HASH:=skip
endif
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/ieee1905
define Package/ieee1905/Default
SECTION:=utils
CATEGORY:=Utilities
TITLE:=IEEE1905 daemon
DEPENDS:= +libuci +libjson-c +libieee1905 +ubox +libpcap +libopenssl +libwifi +libeasy
SUBMENU:=IEEE-1905.1 stack
endef
define Package/ieee1905/config
source "$(SOURCE)/Config.in"
endef
define Package/ieee1905/description
IEEE1905 stack with extended functionalities.
source "$(SOURCE)/Config.in"
endef
define Package/libieee1905
SECTION:=utils
CATEGORY:=Utilities
TITLE:=IEEE1905 cmdu tlv utility library
$(call Package/ieee1905/Default,$(1))
TITLE+= (library for CMDU and TLV handling)
DEPENDS= +libubox +libuci +libubus +libeasy +libnl-genl \
+libjson-c +libblobmsg-json
endef
define Package/libwsc
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Wifi Simple Configuration building and processing library
DEPENDS= +libopenssl +libuci +libubus
define Package/ieee1905
$(call Package/ieee1905/Default,$(1))
TITLE+= ieee1905d (daemon implementing 1905.1 and provides cli)
DEPENDS= +libubox +libuci +libubus +libeasy +libnl-genl \
+libjson-c +libblobmsg-json +ubus +libpthread \
+libieee1905 +IEEE1905_PLATFORM_HAS_WIFI:libwifi
endef
define Package/lib1905hle
SECTION:=utils
CATEGORY:=Utilities
TITLE:=IEEE1905 hle stack library
define Package/map-plugin
$(call Package/ieee1905/Default,$(1))
TITLE:=Multi-AP (Easymesh) plugin
DEPENDS= +libubox +libuci +libubus +libeasy +libnl-genl \
+libjson-c +libblobmsg-json +ieee1905 +libieee1905
endef
LIBS := \
$(if $(CONFIG_PACKAGE_libwsc),libwsc.so)
define Package/ieee1905/description
This package provides IEEE Std 1905.1 stack.
endef
define Package/libieee1905/description
This package provides library functions for IEEE Std 1905.1 stack.
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-D_GNU_SOURCE \
-fstrict-aliasing \
-Wall \
-Wextra
-I$(STAGING_DIR)/usr/include/libnl3 \
-D_GNU_SOURCE
MAKE_FLAGS += \
LIBS="$(LIBS)"
ifeq ($(CONFIG_IEEE1905_SPEED_UP_DISCOVERY),y)
TARGET_CFLAGS += -DSPEED_UP_DISCOVERY
endif
ifeq ($(CONFIG_IEEE1905_DO_NOT_ACCEPT_UNAUTHENTICATED_COMMANDS),y)
TARGET_CFLAGS += -DDO_NOT_ACCEPT_UNAUTHENTICATED_COMMANDS
endif
ifeq ($(CONFIG_IEEE1905_ALME_OVER_TCP),y)
TARGET_CFLAGS += -DALME_OVER_TCP
endif
ifeq ($(CONFIG_IEEE1905_ALME_OVER_UBUS),y)
TARGET_CFLAGS += -DALME_OVER_UBUS
endif
ifeq ($(CONFIG_IEEE1905_MAP_COMPLETE_NETWORK),y)
TARGET_CFLAGS += -DIEEE1905_MAP_COMPLETE_NETWORK
ifeq ($(CONFIG_IEEE1905_PLATFORM_HAS_WIFI),y)
TARGET_CFLAGS += -DHAS_WIFI
endif
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
$(CP) -rf ~/git/ieee1905/* $(PKG_BUILD_DIR)/
endef
endif
MAKE_PATH:=src
define Package/ieee1905/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/ieee1905
$(INSTALL_DIR) $(1)/usr/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/etc/init.d/ieee1905 $(1)/etc/init.d/ieee1905
$(INSTALL_DATA) ./files/etc/config/ieee1905 $(1)/etc/config/ieee1905
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ieee1905d $(1)/usr/sbin/
endef
define Package/lib1905hle/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/lib1905hle.so $(1)/usr/lib/lib1905hle.so
$(INSTALL_DIR) $(1)/usr/lib/ieee1905
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ieee1905d $(1)/usr/sbin/
endef
define Package/libieee1905/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libieee1905.so $(1)/usr/lib/libieee1905.so
$(CP) $(PKG_BUILD_DIR)/src/libieee1905.so $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/src/libmidgen.so $(1)/usr/lib/
endef
define Package/libwsc/install
define Package/map-plugin/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libwsc.so $(1)/usr/lib/libwsc.so
$(INSTALL_DIR) $(1)/usr/lib/ieee1905
$(CP) $(PKG_BUILD_DIR)/src/extensions/map/libmaputil.so $(1)/usr/lib/libmaputil.so
$(CP) $(PKG_BUILD_DIR)/src/extensions/map/map.so $(1)/usr/lib/ieee1905/map.so
endef
define Build/InstallDev/libwsc.so
define Build/InstallDev/map-plugin
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib/ieee1905
$(CP) $(PKG_BUILD_DIR)/src/extensions/map/map2.h $(1)/usr/include/map2.h
$(CP) $(PKG_BUILD_DIR)/src/extensions/map/map_module.h $(1)/usr/include/map_module.h
$(CP) $(PKG_BUILD_DIR)/src/extensions/map/cntlrsync.h $(1)/usr/include/cntlrsync.h
$(CP) $(PKG_BUILD_DIR)/src/extensions/map/map.so $(1)/usr/lib/ieee1905/map.so
$(CP) $(PKG_BUILD_DIR)/src/extensions/map/libmaputil.so $(1)/usr/lib/libmaputil.so
endef
define Build/InstallDev/libieee1905
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libwsc/include/wsc.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/lib/libwsc.so $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib/ieee1905
$(CP) $(PKG_BUILD_DIR)/src/cmdu.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/src/cmdu_ackq.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/src/1905_tlvs.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/src/i1905_wsc.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/src/bufutil.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/src/timer_impl.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/src/libmidgen.so $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/src/libieee1905.so $(1)/usr/lib/
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/include/ieee1905
$(INSTALL_DIR) $(1)/usr/include/ieee1905
$(INSTALL_DIR) $(1)/usr/include/lib1905hle
$(CP) $(PKG_BUILD_DIR)/include/*.h $(1)/usr/include/ieee1905/
$(CP) $(PKG_BUILD_DIR)/libieee1905/include/*.h $(1)/usr/include/ieee1905/
$(CP) $(PKG_BUILD_DIR)/lib1905hle/include/*.h $(1)/usr/include/lib1905hle/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libieee1905.so $(1)/usr/lib
$(foreach lib,$(LIBS),$(call Build/InstallDev/$(lib),$(1),$(2));)
$(call Build/InstallDev/libieee1905,$(1),$(2))
$(call Build/InstallDev/map-plugin,$(1),$(2))
endef
$(eval $(call BuildPackage,libieee1905))
$(eval $(call BuildPackage,lib1905hle))
$(eval $(call BuildPackage,libwsc))
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
rsync -r --exclude=.* ~/git/ieee1905/ $(PKG_BUILD_DIR)/
endef
endif
$(eval $(call BuildPackage,ieee1905))
$(eval $(call BuildPackage,libieee1905))
$(eval $(call BuildPackage,map-plugin))

31
ieee1905/files/etc/config/ieee1905 Normal file → Executable file
View File

@@ -1,17 +1,22 @@
config ieee1905 'ieee1905'
option enabled '1'
option debug true
option debug_level 2
option macaddress 'auto'
option registrar 0
option cmdu_event 1
option map_plugin 1
option enabled '1'
option extension '1'
list extmodule 'map'
option registrar '2 5'
config security 'security'
list method 'PBC'
config ap
option band '2'
option ssid 'TestSSID.2'
option encryption 'psk2'
option key '5555500000'
config ap
option band '5'
option ssid 'TestSSID.5'
option encryption 'psk2'
option key '2222200000'
config al-iface
option enabled 1
option ifname 'br-lan'
option media 'bridge'
option enabled 1
option ifname 'br-lan'
option type 'bridge'

67
ieee1905/files/etc/init.d/ieee1905 Normal file → Executable file
View File

@@ -1,72 +1,25 @@
#!/bin/sh /etc/rc.common
START=96
STOP=22
STOP=21
USE_PROCD=1
PROG=/usr/sbin/ieee1905d
validate_ieee1905_section()
{
uci_validate_section ieee1905 ieee1905 "${1}" \
'debug:bool:false' \
'enabled:bool:false'
}
configure_ieee1905()
{
local enabled debug
validate_ieee1905_section ${1} || {
echo "Validation of ieee1905 section failed"
exit 1;
}
if [ ${debug} -eq 1 ]; then
# Forward stdout of the command to logd
#procd_set_param stdout 1
# Same for stderr
procd_set_param stderr 1
fi
if [ ${enabled} -ne 1 ]; then
exit 0;
fi
}
configure_network()
{
ebtables -L FORWARD|grep -iqE "1:80:C2:(0)+:(0)+:13.*-j.*DROP"
if [ "$?" -ne 0 ]; then
echo "Applying drop rule to drop pkts forwared by kernel to 1905.1 multicast mac"
ebtables -A FORWARD -d 01:80:c2:00:00:13 -j DROP
fi
}
service_running() {
ubus -t 2 wait_for wifi
}
start_service() {
[ -d /usr/lib/ieee1905 ] || mkdir -p /usr/lib/ieee1905
procd_open_instance ieee1905
procd_set_param command ${PROG}
configure_ieee1905 "ieee1905"
configure_network
procd_open_instance
procd_set_param command "/usr/sbin/ieee1905d"
procd_set_param respawn
# procd_set_param stdout 1
# procd_set_param stderr 1
procd_close_instance
}
service_triggers()
{
procd_add_reload_trigger "ieee1905"
}
reload_service() {
stop
start
}
service_triggers() {
procd_add_reload_trigger "network"
procd_add_reload_trigger "wireless"
procd_add_reload_trigger "netmode"
procd_add_reload_trigger "ieee1905"
}

View File

@@ -5,14 +5,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=imonitor
PKG_VERSION:=1.0.0
PKG_VERSION:=1.0.1
PKG_RELEASE:=1
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_SOURCE_PROTO=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/imonitor.git
PKG_SOURCE_VERSION:=532f4900862bcb45d8cd4bf37555fabda81750b6
PKG_SOURCE_VERSION:=4beb1d5d6925507f1850a84c0b83aaf12a082f7f
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}

View File

@@ -1,4 +1,3 @@
CONFIG_BUILD_NLS=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_CCACHE=y
CONFIG_DEBUG=y
@@ -6,7 +5,6 @@ CONFIG_DEVEL=y
CONFIG_PACKAGE_6in4=y
CONFIG_PACKAGE_6rd=y
CONFIG_PACKAGE_6to4=y
CONFIG_PACKAGE_alsa-lib=y
CONFIG_PACKAGE_at=y
CONFIG_PACKAGE_atftp=m
CONFIG_PACKAGE_atftpd=m
@@ -19,18 +17,16 @@ CONFIG_PACKAGE_ddns-scripts=y
CONFIG_PACKAGE_ds-lite=y
CONFIG_PACKAGE_ethtool=y
CONFIG_PACKAGE_getopt=y
CONFIG_PACKAGE_glib2=y
CONFIG_PACKAGE_gre=y
CONFIG_PACKAGE_icwmp=y
CONFIG_PACKAGE_ieee1905=y
CONFIG_PACKAGE_map-1905=y
CONFIG_PACKAGE_map-topology=y
CONFIG_PACKAGE_mosquitto-client-ssl=y
CONFIG_PACKAGE_mosquitto-ssl=y
CONFIG_PACKAGE_wfadatad=y
CONFIG_PACKAGE_wfadatad-collector=y
CONFIG_PACKAGE_imonitor=m
CONFIG_PACKAGE_inbd=y
CONFIG_PACKAGE_iopupgrade=y
CONFIG_PACKAGE_ip-full=y
CONFIG_PACKAGE_iperf3=y
CONFIG_PACKAGE_ipset=y
@@ -40,20 +36,14 @@ CONFIG_PACKAGE_iptables-mod-filter=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
# CONFIG_PACKAGE_iwatchdog is not set
CONFIG_PACKAGE_jq=y
CONFIG_PACKAGE_juci=y
CONFIG_PACKAGE_juci-dnsmasq-dhcp=y
CONFIG_PACKAGE_juci-firewall-fw3=y
CONFIG_PACKAGE_juci-mod-status=y
CONFIG_PACKAGE_juci-mod-system=y
CONFIG_PACKAGE_juci-network-device=y
CONFIG_PACKAGE_juci-network-dsl=y
CONFIG_PACKAGE_juci-network-netifd=y
CONFIG_PACKAGE_juci-sysupgrade=y
CONFIG_PACKAGE_juci-wireless=y
CONFIG_PACKAGE_juci-theme-iopsys=y
CONFIG_PACKAGE_libreswan=m
CONFIG_PACKAGE_libwifi=y
CONFIG_PACKAGE_lscpu=y
CONFIG_PACKAGE_luci-nginx=y
# CONFIG_LUCI_JSMIN is not set
# CONFIG_LUCI_CSSTIDY is not set
CONFIG_PACKAGE_luci-mod-dashboard=y
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
CONFIG_PACKAGE_map=y
CONFIG_PACKAGE_miniupnpd=y
CONFIG_PACKAGE_mwan3=y
@@ -70,6 +60,7 @@ CONFIG_OPENSSL_WITH_COMPRESSION=y
CONFIG_PACKAGE_openvpn-easy-rsa=y
CONFIG_PACKAGE_openvpn-openssl=y
CONFIG_PACKAGE_owsd=y
CONFIG_PACKAGE_periodicstats=y
CONFIG_PACKAGE_peripheral_manager=y
CONFIG_PACKAGE_port-management=y
CONFIG_PACKAGE_ppp-mod-pppoa=y
@@ -88,16 +79,16 @@ CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-rpcsys=y
CONFIG_PACKAGE_rulengd=y
CONFIG_PACKAGE_strace=y
CONFIG_PACKAGE_sulu=y
CONFIG_PACKAGE_swmodd=m
CONFIG_PACKAGE_tc=y
CONFIG_PACKAGE_tcpdump=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_traceroute6=y
CONFIG_PACKAGE_uledd=y
CONFIG_PACKAGE_umbim=y
CONFIG_PACKAGE_uqmi=y
CONFIG_PACKAGE_urlfilter=y
CONFIG_PACKAGE_usb-modeswitch=y
CONFIG_PACKAGE_usbreset=y
CONFIG_PACKAGE_uspd=y
CONFIG_PACKAGE_vsftpd-tls=m
CONFIG_PACKAGE_wwan=y
@@ -197,8 +188,6 @@ CONFIG_LIBCURL_CRYPTO_AUTH=y
CONFIG_LIBCURL_OPENSSL=y
CONFIG_OPENVPN_openssl_ENABLE_IPROUTE2=y
# CONFIG_SIGNED_PACKAGES is not set
CONFIG_KERNEL_DEVTMPFS=y
CONFIG_KERNEL_DEVTMPFS_MOUNT=y
# CONFIG_BUSYBOX_CONFIG_IP is not set
CONFIG_LOCALMIRROR="https://download.iopsys.eu/iopsys/mirror/"
@@ -228,3 +217,6 @@ CONFIG_TARGET_ROOTFS_TARGZ=y
# CONFIG_PACKAGE_urandom-seed is not set
# CONFIG_PACKAGE_urngd is not set
# We use OpenSSL, no need to ship multiple TLS libraries
CONFIG_PACKAGE_libustream-openssl=y
# CONFIG_PACKAGE_libustream-wolfssl is not set

View File

@@ -14,7 +14,7 @@ function feeds_update {
done
git remote -v | grep -q http || developer=1
git remote -v | grep -qE '(git@|ssh://)' && developer=1
cp .config .genconfig_config_bak
@@ -32,7 +32,7 @@ function feeds_update {
fi
# targets need to be installed explicitly
targets="iopsys-brcm63xx-arm iopsys-ramips intel_mips iopsys-x86 iopsys-armvirt iopsys-bcm27xx"
targets="iopsys-brcm63xx-arm iopsys-ramips intel_mips iopsys-x86 iopsys-armvirt iopsys-bcm27xx iopsys-mediatek iopsys-econet"
for target in $targets
do
rm -f target/linux/$target

View File

@@ -5,7 +5,6 @@ function genconfig {
export IMPORT=1
export SRCTREEOVERR=0
export FILEDIR="files/"
export THEMEDIR="tmp/juci-themes"
CURRENT_CONFIG_FILE=".current_config_file"
export CONFIGPATH="package/feeds/iopsys/iop"
CUSTPATH="customerconfigs"
@@ -14,10 +13,9 @@ function genconfig {
export DEVELOPER=0
target="bogus"
target_config_path=""
bcm27xx="target/linux/iopsys-bcm27xx"
brcm63xx_arm="target/linux/iopsys-brcm63xx-arm"
ramips="target/linux/iopsys-ramips"
intel_mips="target/linux/intel_mips"
econet="target/linux/iopsys-econet"
x86="target/linux/iopsys-x86"
armvirt="target/linux/iopsys-armvirt"
@@ -113,17 +111,15 @@ function genconfig {
iopsys_brcm63xx_arm=$(cd $brcm63xx_arm; ./genconfig)
[ -e $ramips/genconfig ] &&
iopsys_ramips=$(cd $ramips; ./genconfig)
[ -e $intel_mips/genconfig ] &&
iopsys_intel_mips=$(cd $intel_mips; ./genconfig)
[ -e $econet/genconfig ] &&
iopsys_econet=$(cd $econet; ./genconfig)
[ -e $x86/genconfig ] &&
iopsys_x86=$(cd $x86; ./genconfig)
[ -e $armvirt/genconfig ] &&
iopsys_armvirt=$(cd $armvirt; ./genconfig)
[ -e $bcm27xx/genconfig ] &&
iopsys_bcm27xx=$(cd $bcm27xx; ./genconfig)
if [ "$profile" == "LIST" ]; then
for list in iopsys_brcm63xx_arm iopsys_ramips iopsys_intel_mips iopsys_x86 iopsys_armvirt iopsys_bcm27xx; do
for list in iopsys_brcm63xx_arm iopsys_ramips iopsys_econet iopsys_x86 iopsys_armvirt; do
echo "$list based boards:"
for b in ${!list}; do
echo -e "\t$b"
@@ -148,10 +144,10 @@ function genconfig {
fi
done
for p in $iopsys_intel_mips; do
for p in $iopsys_econet; do
if [ $p == $profile ]; then
target="intel_mips"
target_config_path="$intel_mips/config"
target="iopsys_econet"
target_config_path="$econet/config"
return
fi
done
@@ -171,25 +167,10 @@ function genconfig {
return
fi
done
for p in $iopsys_bcm27xx; do
if [ $p == $profile ]; then
target="iopsys_bcm27xx"
target_config_path="$bcm27xx/config"
return
fi
done
}
git remote -v | grep -qE '(git@|ssh://)' && {
DEVELOPER=1
bcmAllowed=0
endptAllowed=0
git ls-remote git@dev.iopsys.eu:broadcom/bcmcreator.git -q 2>/dev/null && bcmAllowed=1
git ls-remote git@dev.iopsys.eu:iopsys/endptmngr.git -q 2>/dev/null && endptAllowed=1
}
v() {
@@ -222,7 +203,7 @@ function genconfig {
local ALL="$1"
local CUSTOMER="$2"
if [ "$CUSTOMER" -a -d "$CUSTCONF/$CUSTOMER" ]; then
local boards="$(ls -1 "$CUSTCONF/$CUSTOMER" | grep -v common | grep -v juci-theme)"
local boards="$(ls -1 "$CUSTCONF/$CUSTOMER" | grep -v common)"
if [ "$boards" ]; then
echo "$CUSTOMER has following boards:"
for board in $boards; do
@@ -239,7 +220,7 @@ function genconfig {
if [ "$customers" -a "$ALL" == 1 ]; then
for customer in $customers; do
echo $customer
local boards="$(ls -1 $CUSTCONF/$customer | grep -v common | grep -v juci-theme)"
local boards="$(ls -1 $CUSTCONF/$customer | grep -v common)"
if [ "$boards" ]; then
for board in $boards; do
echo -e "\t$board"
@@ -293,13 +274,6 @@ function genconfig {
v "rm -rf $FILEDIR*"
rm -rf $FILEDIR*
fi
if [ ! -d "$THEMEDIR" ]; then
mkdir -p $THEMEDIR
elif [ -d "$THEMEDIR" -a $CLEAN -eq 1 ]; then
v "rm -rf $THEMEDIR/*"
rm -rf $THEMEDIR/*
fi
}
create_and_copy_files()
@@ -344,27 +318,16 @@ function genconfig {
echo "" >> .config
fi
#special handling for intel_mips/iopsys_ramips which use TARGET_DEVICES
if [ "$target" = "intel_mips" ]; then
subtarget="xrx500"
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config
echo "CONFIG_TARGET_MULTI_PROFILE=y" >> .config
echo "CONFIG_TARGET_PER_DEVICE_ROOTFS=y" >> .config
device=$(echo $BOARDTYPE | tr a-z A-Z)
echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${device}=y" >> .config
elif [ "$target" = "iopsys_ramips" ]; then
# Special handling for targets which use TARGET_DEVICES
if [ "$target" = "iopsys_ramips" ]; then
subtarget="mt7621"
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config
elif [ "$target" = "iopsys_bcm27xx" ]; then
subtarget="iopsys_bcm2711"
echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config
elif [ "$target" = "iopsys_econet" ]; then
subtarget="en7562"
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config
echo "CONFIG_TARGET_MULTI_PROFILE=y" >> .config
echo "CONFIG_TARGET_PER_DEVICE_ROOTFS=y" >> .config
echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config
else
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${BOARDTYPE}=y" >> .config
@@ -383,11 +346,6 @@ function genconfig {
v "cp -ar $CUSTCONF/$CUSTOMER/$BOARDTYPE/fs/* $FILEDIR"
cp -ar $CUSTCONF/$CUSTOMER/$BOARDTYPE/fs/* $FILEDIR
fi
if [ -d "$CUSTCONF/$CUSTOMER/juci-theme" ]; then
customer="$(echo $CUSTOMER | tr 'A-Z' 'a-z')"
v "cp -ar $CUSTCONF/$CUSTOMER/juci-theme $THEMEDIR/juci-theme-$customer"
cp -ar $CUSTCONF/$CUSTOMER/juci-theme $THEMEDIR/juci-theme-$customer
fi
if [ -e "$CUSTCONF/$CUSTOMER/common/common.diff" ]; then
v "Apply $CUSTCONF/$CUSTOMER/common/common.diff"
cat $CUSTCONF/$CUSTOMER/common/common.diff >> .config
@@ -403,11 +361,14 @@ function genconfig {
# Set target version
local GIT_TAG=$(git describe --abbrev=0 --tags)
echo "CONFIG_TARGET_VERSION=\"${GIT_TAG}\"" >> .config
echo "CONFIG_VERSION_CODE=\"${GIT_TAG}\"" >> .config
local GIT_REV=$(git rev-parse --short HEAD)
local GIT_VER="$GIT_TAG"
git describe --contains $GIT_REV >/dev/null 2>&1 || GIT_VER="${GIT_TAG}_${GIT_REV}"
echo "CONFIG_TARGET_VERSION=\"${GIT_VER}\"" >> .config
echo "CONFIG_VERSION_CODE=\"${GIT_VER}\"" >> .config
echo "CONFIG_VERSION_PRODUCT=\"$BOARDTYPE"\" >> .config
# Enable Pckage source tree override if selected
# Enable Package source tree override if selected
[ $SRCTREEOVERR -eq 1 ] && echo CONFIG_SRC_TREE_OVERRIDE=y >> .config
# developer mode selected ?
@@ -415,12 +376,8 @@ function genconfig {
if [ $DEVELOPER -eq 1 ]; then
# rewrite url to clone with ssh instead of http
echo "CONFIG_GITMIRROR_REWRITE=y" >>.config
[ $bcmAllowed -eq 0 ] && echo "CONFIG_BCM_OPEN=y" >> .config
[ $endptAllowed -eq 0 ] && echo "CONFIG_ENDPT_OPEN=y" >> .config
else
echo "# CONFIG_GITMIRROR_REWRITE is not set" >>.config
echo "CONFIG_BCM_OPEN=y" >> .config
echo "CONFIG_ENDPT_OPEN=y" >> .config
fi
if [ -n "$BRCM_MAX_JOBS" ]
@@ -428,9 +385,6 @@ function genconfig {
echo "CONFIG_BRCM_MAX_JOBS=\"1\"" >>.config
fi
# Force regeneration of themes
touch package/feeds/juci/juci/Makefile
# Force regeneration of kernel Makefile
# Needed to disable kmods for iopsys-brcm targets
touch package/kernel/linux/Makefile

View File

@@ -9,14 +9,12 @@ function genconfig_min {
CUSTPATH="customerconfigs"
export CUSTCONF="customerconfigs/customers"
export VERBOSE=0
#always use the mirror
export DEVELOPER=0
target="bogus"
config_path=""
bcm27xx="target/linux/iopsys-bcm27xx"
target_config_path=""
brcm63xx_arm="target/linux/iopsys-brcm63xx-arm"
ramips="target/linux/iopsys-ramips"
intel_mips="target/linux/intel_mips"
econet="target/linux/iopsys-econet"
x86="target/linux/iopsys-x86"
armvirt="target/linux/iopsys-armvirt"
@@ -80,7 +78,7 @@ function genconfig_min {
# Takes a board name and returns the target name in global var $target
set_target() {
local profile=$1
local profile=$1
[ -n "$profile" ] || return
@@ -102,7 +100,7 @@ function genconfig_min {
if [ $pfound -eq 1 ]; then
target="$(echo $TARGET | tr '-' '_')"
config_path="$targetpath/config"
target_config_path="$targetpath/config"
fi
return
@@ -112,17 +110,15 @@ function genconfig_min {
iopsys_brcm63xx_arm=$(cd $brcm63xx_arm; ./genconfig)
[ -e $ramips/genconfig ] &&
iopsys_ramips=$(cd $ramips; ./genconfig)
[ -e $intel_mips/genconfig ] &&
iopsys_intel_mips=$(cd $intel_mips; ./genconfig)
[ -e $econet/genconfig ] &&
iopsys_econet=$(cd $econet; ./genconfig)
[ -e $x86/genconfig ] &&
iopsys_x86=$(cd $x86; ./genconfig)
[ -e $armvirt/genconfig ] &&
iopsys_armvirt=$(cd $armvirt; ./genconfig)
[ -e $bcm27xx/genconfig ] &&
iopsys_bcm27xx=$(cd $bcm27xx; ./genconfig)
if [ "$profile" == "LIST" ]; then
for list in iopsys_brcm63xx_arm iopsys_ramips iopsys_intel_mips iopsys_x86 iopsys_armvirt iopsys_bcm27xx; do
for list in iopsys_brcm63xx_arm iopsys_ramips iopsys_econet iopsys_x86 iopsys_armvirt; do
echo "$list based boards:"
for b in ${!list}; do
echo -e "\t$b"
@@ -134,7 +130,7 @@ function genconfig_min {
for p in $iopsys_brcm63xx_arm; do
if [ $p == $profile ]; then
target="iopsys_brcm63xx_arm"
config_path="$brcm63xx_arm/config"
target_config_path="$brcm63xx_arm/config"
return
fi
done
@@ -142,15 +138,15 @@ function genconfig_min {
for p in $iopsys_ramips; do
if [ $p == $profile ]; then
target="iopsys_ramips"
config_path="$ramips/config"
target_config_path="$ramips/config"
return
fi
done
for p in $iopsys_intel_mips; do
for p in $iopsys_econet; do
if [ $p == $profile ]; then
target="intel_mips"
config_path="$intel_mips/config"
target="iopsys_econet"
target_config_path="$econet/config"
return
fi
done
@@ -158,7 +154,7 @@ function genconfig_min {
for p in $iopsys_x86; do
if [ $p == $profile ]; then
target="iopsys_x86"
config_path="$x86/config"
target_config_path="$x86/config"
return
fi
done
@@ -166,22 +162,13 @@ function genconfig_min {
for p in $iopsys_armvirt; do
if [ $p == $profile ]; then
target="iopsys_armvirt"
config_path="$armvirt/config"
target_config_path="$armvirt/config"
return
fi
done
for p in $iopsys_bcm27xx; do
if [ $p == $profile ]; then
target="iopsys_bcm27xx"
config_path="$bcm27xx/config"
return
fi
done
}
git remote -v | grep -q http || {
git remote -v | grep -qE '(git@|ssh://)' && {
DEVELOPER=1
bcmAllowed=0
@@ -210,7 +197,8 @@ function genconfig_min {
echo -e " -a|--list-all\t\tList all Customers and their board types"
echo -e " -b|--boards\t\tList all board types"
echo
echo "Example ./iop genconfig dg400prime IOPSYS"
echo "Example ./iop genconfig eg400 OPERATORX"
echo "(if no customerconfig is chosen, iopsys config will be used)"
echo
exit 0
}
@@ -260,12 +248,12 @@ function genconfig_min {
generate_config()
{
DIFFFILE="$1"
MASTERFILE="$2"
while read p; do
v "$p"
sed -r -i "$p" $MASTERFILE
done < $DIFFFILE
DIFFFILE="$1"
MASTERFILE="$2"
while read p; do
v "$p"
sed -r -i "$p" $MASTERFILE
done < $DIFFFILE
}
setup_dirs()
@@ -312,35 +300,25 @@ function genconfig_min {
v "cp $CONFIGPATH/config .config"
cp $CONFIGPATH/config .config
if [ -f $config_path/config ]; then
cat $config_path/config >> .config
if [ -f $target_config_path/config ]; then
cat $target_config_path/config >> .config
echo "" >> .config
fi
if [ -f $config_path/$BOARDTYPE/config ]; then
cat $config_path/$BOARDTYPE/config >> .config
if [ -f $target_config_path/$BOARDTYPE/config ]; then
cat $target_config_path/$BOARDTYPE/config >> .config
echo "" >> .config
fi
#special handling for intel_mips/iopsys_ramips which use TARGET_DEVICES
if [ "$target" = "intel_mips" ]; then
subtarget="xrx500"
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config
echo "CONFIG_TARGET_MULTI_PROFILE=y" >> .config
echo "CONFIG_TARGET_PER_DEVICE_ROOTFS=y" >> .config
device=$(echo $BOARDTYPE | tr a-z A-Z)
echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${device}=y" >> .config
elif [ "$target" = "iopsys_ramips" ]; then
# Special handling for targets which use TARGET_DEVICES
if [ "$target" = "iopsys_ramips" ]; then
subtarget="mt7621"
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config
elif [ "$target" = "iopsys_bcm27xx" ]; then
subtarget="iopsys_bcm2711"
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config
echo "CONFIG_TARGET_MULTI_PROFILE=y" >> .config
echo "CONFIG_TARGET_PER_DEVICE_ROOTFS=y" >> .config
device=$(echo $BOARDTYPE | tr a-z A-Z)
echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config
echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config
elif [ "$target" = "iopsys_econet" ]; then
subtarget="en7562"
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config
else
echo "CONFIG_TARGET_${target}=y" >> .config
echo "CONFIG_TARGET_${target}_${BOARDTYPE}=y" >> .config
@@ -362,21 +340,25 @@ function genconfig_min {
if [ -e "$CUSTCONF/$CUSTOMER/common/common.diff" ]; then
v "Apply $CUSTCONF/$CUSTOMER/common/common.diff"
cat $CUSTCONF/$CUSTOMER/common/common.diff >> .config
echo "" >> .config
fi
if [ -e "$CUSTCONF/$CUSTOMER/$BOARDTYPE/$BOARDTYPE.diff" ]; then
v "Apply $CUSTCONF/$CUSTOMER/$BOARDTYPE/$BOARDTYPE.diff"
cat $CUSTCONF/$CUSTOMER/$BOARDTYPE/$BOARDTYPE.diff >> .config
echo "" >> .config
fi
done
fi
# Set target version
local GIT_TAG=$(git describe --abbrev=0 --tags)
echo "CONFIG_TARGET_VERSION=\"${GIT_TAG}\"" >> .config
echo "CONFIG_VERSION_CODE=\"${GIT_TAG}\"" >> .config
local GIT_REV=$(git rev-parse --short HEAD)
local GIT_VER="$GIT_TAG"
git describe --contains $GIT_REV >/dev/null 2>&1 || GIT_VER="${GIT_TAG}_${GIT_REV}"
echo "CONFIG_TARGET_VERSION=\"${GIT_VER}\"" >> .config
echo "CONFIG_VERSION_CODE=\"${GIT_VER}\"" >> .config
echo "CONFIG_VERSION_PRODUCT=\"$BOARDTYPE"\" >> .config
# Enable Package source tree override if selected
[ $SRCTREEOVERR -eq 1 ] && echo CONFIG_SRC_TREE_OVERRIDE=y >> .config
@@ -449,6 +431,8 @@ function genconfig_min {
shift;
done
CUSTREPO="${CUSTREPO:-git@dev.iopsys.eu:consumer/iopsys.git}"
setup_dirs
create_and_copy_files "$@"
fi

View File

@@ -1,12 +1,29 @@
# this is a developer helper script to install the public ssh key in the created image
DROPBEAR_AUTHORIZED_KEYS_FILE=/etc/dropbear/authorized_keys
function get_ssh_public_keys {
(
shopt -s nullglob
# home directory, not all of those are supported by dropbear,
# but let's include them now already to decrease future maintenance
cat /dev/null ~/.ssh/{id_rsa,id_dsa,id_ecdsa,id_ecdsa_sk,id_ed25519,id_ed25519_sk,id_xmss}.pub 2> /dev/null
# keys added manually or automatically to the build dir
cat "files${DROPBEAR_AUTHORIZED_KEYS_FILE}" 2>/dev/null
# keys in the agent (useful when using SSH agent forwarding)
ssh-add -L 2> /dev/null
) | sort | uniq
}
function install_key {
mkdir -p files/etc/dropbear
test -e ~/.ssh/id_dsa.pub && cat ~/.ssh/id_dsa.pub >>files/etc/dropbear/authorized_keys
test -e ~/.ssh/id_rsa.pub && cat ~/.ssh/id_rsa.pub >>files/etc/dropbear/authorized_keys
chmod 0644 files/etc/dropbear/authorized_keys
local build_dir_dropbear_authorized_keys_file="files${DROPBEAR_AUTHORIZED_KEYS_FILE}"
mkdir -p "$(dirname "$build_dir_dropbear_authorized_keys_file")"
get_ssh_public_keys > "$build_dir_dropbear_authorized_keys_file"
chmod 0644 "$build_dir_dropbear_authorized_keys_file"
echo "Keys in "$build_dir_dropbear_authorized_keys_file" are now:"
cat "$build_dir_dropbear_authorized_keys_file"
echo
echo "Disabling login on serial console..."
echo "::sysinit:/etc/init.d/rcS S boot" >files/etc/inittab
echo "::shutdown:/etc/init.d/rcS K shutdown" >>files/etc/inittab
echo "console::askconsolelate:/bin/cttyhack /bin/ash --login" >>files/etc/inittab
@@ -14,4 +31,25 @@ function install_key {
echo Done
}
function ssh_install_key_help() {
echo Usage: $0 ssh_install_key HOSTNAME
echo
echo "Installs SSH public keys to a device's authorized_keys file"
}
# this is a developer helper script to install the public ssh key on host running dropbear
function ssh_install_key {
if [ $# -ne 1 ] || [ "$1" == '--help' ]; then
ssh_install_key_help
[ $# -eq 1 ]; return
fi
host="$1"
local keys="$(get_ssh_public_keys)"
echo "Adding the following keys to $DROPBEAR_AUTHORIZED_KEYS_FILE on $host:"
echo "$keys"
ssh root@$host "echo '$keys' >> '$DROPBEAR_AUTHORIZED_KEYS_FILE'" && echo ok
}
register_command "ssh_install_key" "Install the users public ssh key on host running dropbear"
register_command "install_key" "Install the user's public ssh key in the created image"

View File

@@ -1,17 +0,0 @@
# this is a developer helper script to install the public ssh key on host running dropbear
function ssh_install_key {
if [ -e ~/.ssh/id_rsa.pub ]; then
echo "Adding public RSA key to $1"
KEY=`cat ~/.ssh/id_rsa.pub`
elif [ -e ~/.ssh/id_dsa.pub ]; then
echo "Adding public DSA key to $1"
KEY=`cat ~/.ssh/id_dsa.pub`
else
echo "No public key found"
exit 1
fi
ssh root@$1 "echo '$KEY' >> /etc/dropbear/authorized_keys" && echo ok
}
register_command "ssh_install_key" "Install the users public ssh key on host running dropbear"

View File

@@ -26,14 +26,8 @@ function taas-init() {
exit 1
fi
# NAND erase block size.
nandBlkSz=$(grep CONFIG_TARGET_NAND_BLOCKSZ .config | \
tr -s "=\"" " " | cut -d " " -f 2)
nandBlkSz=$((nandBlkSz / 1024))
# Create a list of all images which might be of use.
for f in ${PWD}/bin/targets/iopsys-*/generic/last.* \
${PWD}/build_dir/target-arm*/bcmkernel/bcm963xx/targets/9*/bcm*_linux_raw_image_${nandBlkSz}.bin; do
for f in ${PWD}/bin/targets/iopsys-*/generic/last.*; do
[[ -s "$f" ]] && images+=("$f")
done

View File

@@ -492,7 +492,8 @@ check_feeds()
echo "Now checking if any changes have been done to the feeds."
echo -e "${Green}_______________________________________________________________________________${Color_Off}"
feeds=$(grep -v "^#" feeds.conf| awk '{print $2}')
feeds="$1"
[ -n "$feeds" ] || feeds=$(grep -v "^#" feeds.conf| awk '{print $2}')
for feed in `echo $feeds`
do
feed_hash=$(feeds_hash $feed)
@@ -552,7 +553,7 @@ check_feeds()
done
}
feeds_at_top()
is_local_and_remote_same()
{
git remote update 2>/dev/null 1>/dev/null
LOCAL=$(git rev-parse @)
@@ -581,7 +582,7 @@ feeds_at_top()
usage(){
echo -e "$0 [flags]"
echo -e "flags:"
echo -e " -v\tVerbose mode"
echo -e " -f\tFeed to update"
echo -e " -h\tShow this help"
echo -e " -u\tUpdate package version\n"
}
@@ -589,7 +590,7 @@ usage(){
# Exported interface
function update_package {
UPDATE=0
UPDATE=0
Color_Off='\033[0m' # Text Reset
@@ -603,18 +604,18 @@ function update_package {
Cyan='\033[0;36m' # Cyan
White='\033[0;37m' # White
while getopts "v:hu" opt; do
while getopts "f:hu" opt; do
case $opt in
v)
verbose=$OPTARG
f)
feed=$OPTARG
;;
h)
usage
exit 1
;;
u)
UPDATE=1
;;
usage
exit 1
;;
u)
UPDATE=1
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
@@ -637,9 +638,9 @@ function update_package {
set -E
trap '[ "$?" -ne 99 ] || exit 99' ERR
feeds_at_top
check_packages
check_feeds
is_local_and_remote_same
[ -n "$feed" ] || check_packages
check_feeds $feed
}
register_command "update_package" "Publish changes to packages and feeds"

View File

@@ -1,59 +0,0 @@
#
# Copyright (C) 2019 iopsys
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=iopupgrade
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_SOURCE_VERSION:=01f2afd6c831d6f9eb2940c7e7af16f7e4d439c2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/iopupgrade
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=LICENSE
# support parallel build
PKG_BUILD_PARALLEL:=1
#re create configure scripts if not present.
PKG_FIXUP:=autoreconf
# run install target when cross compiling. basically, make install DESTDIR=$(PKG_INSTALL_DIR)
# this way we don't need to pick out the resulting files from the build dir.
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/iopupgrade
CATEGORY:=Utilities
TITLE:=Iopsys system upgrade utility
URL:=
# DEPENDS:=
endef
define Package/iopupgrade/description
Application handling peripheral
endef
define Package/iopupgrade/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/etc/
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iopupgrade $(1)/sbin/
endef
$(eval $(call BuildPackage,iopupgrade))

View File

@@ -1,329 +0,0 @@
#!/bin/sh
###############################################################################
# Global variables. can be used directly in any function called.
cur_vol="" # num,[0/1] Number used for ubifs root filesystem volume name.
# eg: rootfs_0 or rootfs_1, currently used
upd_vol="" # num,[0/1] Number used for ubifs root filesystem volume name.
# eg: rootfs_0 or rootfs_1, the one we want to update
cmdline="" # command line settings.
cmdline_match="" # Headers to match to the image
###############################################################################
# file local variables. should not be used in imported functions. Can be used
# by functions declared in this script
chroot_cmdline="" # command line for the iop_chroot command.
board="" # string, Board name that is going to be matched
# against header of firmware image
upd_ubi_id="" # num, UBI volume number for the volume name
# "rootfs_$upd_vol", use to know what volume to run
# ubiupdatevol on.
run_cleanup=0 # if set the cleanup should be run otherwise we skip it.
run_mount_cleanup=0 # set if we should run umount in cleanup
upd_kernel=0 # set to 1 if system has the kernel in own mtd partition
log_stdout=1 # set to 0 to prevent the log to also print to stdout
upd_noreboot=0 # set to 1 if we should not reboot after programming
upd_forceimage=0 # set this to force upgrade even if image is for wrong board.
upd_forceboot=0 # set this to force upgrade of boot loader
upd_keepconfig=0 # set this to keep the current configuration.
###############################################################################
# import external functions
source /lib/upgrade/iopsys.sh
[ -f /lib/upgrade/iopupgrade ] && source /lib/upgrade/iopupgrade
# only call function if it exists
function_call() {
if type "$1" 2>/dev/null >/dev/null
then
$1 $@
fi
}
###############################################################################
# Cleanup and error handling functions.
function log {
TIME=$(date)
[ $log_stdout -eq 1 ] && echo "$@"
echo "[$TIME] $@" >>/tmp/upd_log
}
# we need to handle ctrl-c, segmentation fault, sigpipe and other abnormal
# terminations. no printing to stdout/stderr allowed in this function or
# anyhting it calls as stdout/stderr might no longer exist
function finish {
if [ $run_cleanup -eq 1 ]
then
function_call upd_cleanup
run_cleanup=0
log ""
fi
if [ $run_mount_cleanup -eq 1 ]
then
log "Cleaning up after mount"
umount_newroot
fi
# always kill the timeout process, will leave the sleep but that is harmless
# as long as the kill will nerver be run.
if [ -n "$TIMEOUT_PID" ]; then
kill $TIMEOUT_PID 2>/dev/null
TIMEOUT_PID=""
fi
lock -u /tmp/iopu.lock
}
function ctrl_c {
# on ctrl-c we remove the exit handler as it is called directly.
trap - EXIT
# call cleanup function
finish
# do not continue program
exit 1
}
function sig_pipe {
log_stdout=0 # stdin,stdout,stderr do not exist anymore
log "Got sigpipe. Turning of log printing to stdout"
}
# if a timout happens terminate
function timeout {
exit 1
}
# Not much that can be done if the mount fails but to try again.
# if after 10 seconds there still is errors abort program.
# UBIFS has some wierd time intervall after ubiupdatevol where
# a mount of the newly written data results in a busy error.
function mount_retry {
local tries=0
while [ $tries -lt 10 ]
do
if mount $@ 2>/dev/null
then
return
fi
tries=$((tries + 1))
sleep 1
done
log "mount failed for command [mount $@] so upgrade failed."
exit 1
}
function mount_newroot {
run_mount_cleanup=1
mkdir -p /tmp/newroot
mkdir -p /tmp/newroot_overlay
mount_retry -t ubifs ubi0:rootfs_$upd_vol /tmp/newroot
mount_retry -o noatime,lowerdir=/tmp/newroot,upperdir=/tmp/newroot/overlay,workdir=/tmp/newroot/lib/overlay.tmp -t overlay "overlayfs:/tmp/newroot/overlay" /tmp/newroot_overlay
mount_retry --bind /tmp/newroot/ /tmp/newroot_overlay/rom
mount_retry --bind /dev /tmp/newroot_overlay/dev
mount_retry --bind /proc /tmp/newroot_overlay/proc
mount_retry --bind /sys /tmp/newroot_overlay/sys
mount_retry -t tmpfs -o noatime,mode=0755 root /tmp/newroot_overlay/tmp
mkdir -p /tmp/newroot_overlay/tmp/oldroot
mount_retry --bind / /tmp/newroot_overlay/tmp/oldroot
mount_retry --bind /tmp /tmp/newroot_overlay/tmp/oldroot/tmp
}
function umount_newroot {
umount /tmp/newroot_overlay/tmp/oldroot/tmp
umount /tmp/newroot_overlay/tmp/oldroot
umount /tmp/newroot_overlay/tmp
umount /tmp/newroot_overlay/sys
umount /tmp/newroot_overlay/proc
umount /tmp/newroot_overlay/dev
umount /tmp/newroot_overlay/rom
umount /tmp/newroot_overlay
umount /tmp/newroot
rmdir /tmp/newroot_overlay /tmp/newroot
run_mount_cleanup=0
}
function usage {
echo "usage: $0 iopu [opts] "
echo ""
echo "opts:"
echo ""
echo " -n Do not do the final reboot of the target board"
echo " -c Keep configuration"
echo " -x Force install even if firmware is not for this board"
echo " -b Force install of bootloader regardless of version installed"
echo " -r Jump into chroot env of other system"
echo " -f Firmware file to use"
echo " -C \"command\" Execute command in chroot env of other system"
}
# Execute command in newroot(other system root)
function newroot_exec {
upd_vol=$(get_flashbank_next)
mount_newroot
(ENV=/sbin/iopu_chroot_env chroot /tmp/newroot_overlay "$@")
echo ""
umount_newroot
}
function system_is_y_image {
# find out what rootfs volume is active.
cur_vol=$(get_flashbank_current)
upd_vol=$(get_flashbank_next)
# convert volume name "rootfs_$upd_vol" into ubi volume id
upd_ubi_id=$(ubinfo -d 0 -N rootfs_$upd_vol | awk "/Volume ID:/ {print \$3}")
log "installing Root Fileystem into UBI volume rootfs_$upd_vol"
# prepare to match dsl.
function_call upd_conf_dsl
log "now starting writing data to flash with [ iopupgrade $cmdline -M "$cmdline_match" -u ubi0_$upd_ubi_id ]"
run_cleanup=1 # When we start to actually write data there might be some
# things that need cleanup if we get an error/crash
if ! iopupgrade $cmdline -M "$cmdline_match" -u ubi0_$upd_ubi_id; then
log "iopupgrade program Failed"
exit 1
fi
log "Firmware programmed to flash."
# Force upgrade of boot loader
[ $upd_forceboot -eq 1 ] && chroot_cmdline="$chroot_cmdline -b"
if [ $upd_keepconfig -eq 1 ]; then
log "Transfering configuration to new system."
chroot_cmdline="$chroot_cmdline -c"
fi
mount_newroot
if ! chroot /tmp/newroot_overlay /sbin/iopu_chroot $chroot_cmdline; then
log "Configuration migration failed!"
exit 1
fi
umount_newroot
log "New firmware fully installed."
run_cleanup=0
# Now make sure that we actually boot the new system on the next reboot
upd_finnish
}
function system_is_FIT_image {
# prepare to match dsl.
#function_call upd_conf_dsl
#here we write data
bcm_flasher $firmware_file
bcm_bootstate 1
log "Firmware programmed to flash."
}
###############################################################################
# just one instance
# this check has to be done before we install handler to avoid removing the
# lock even if it was not available.
if ! lock -n /tmp/iopu.lock
then
echo "Another instance of iopu already running"
echo "If you are sure this is wrong remove file /tmp/iopu.lock"
exit 1
fi
trap finish EXIT
trap ctrl_c INT
trap timeout SIGALRM
trap sig_pipe SIGPIPE
while getopts "nrxbhcC:f:" opt; do
case $opt in
n)
upd_noreboot=1
;;
x)
upd_forceimage=1
;;
b)
upd_forceboot=1
;;
c)
upd_keepconfig=1
;;
r)
newroot_exec /bin/sh
exit
;;
C)
newroot_exec "${OPTARG}"
exit
;;
f)
firmware_file="${OPTARG}"
;;
h)
usage
exit 1
;;
esac
done
# put a timeout on this if it takes longer than 120 seconds we should abort
# and clean up
(
sleep 120 && kill -ALRM $$ 2>/dev/null # send it a SIGALRM signal
)&
TIMEOUT_PID=$!
log "Firmware upgrade started"
# Should board name be checked
if [ $upd_forceimage -eq 0 ]
then
board=$(db get hw.board.model_name)
cmdline_match="board=$board"
fi
# BUG: should probably read a config file.
if [ -f /proc/nvram/boardid ]
then
system_is_FIT_image
else
system_is_y_image
fi
# spawn the reboot to a subshell to allow the main program to quit before reset
# to avoid any hanged network connection like ssh
if [ $upd_noreboot -eq 0 ]
then
(
log_stdout=0 # stdin,stdout,stderr do not exist anymore, we are in a
# subshell and then the trap is no longer working.
sleep 1
log "Rebooting NOW!!!"
log ""
reboot
)&
log "Reboot initiated"
else
log "Skipping reboot"
fi

View File

@@ -1,71 +0,0 @@
#!/bin/sh
#
# This program is intended to be run in a chroot environment where the old system
# is mounted in /tmp/oldroot
#
###############################################################################
# Global variables. can be used directly in any function called.
###############################################################################
# file local variables. should not be used in imported functions. Can be used
# by functions declared in this script
upd_forceboot=0
log_stdout=1 # set to 0 to prevent the log to also print to stdout
upd_keepconfig=0 # set this to keep the current configuration.
###############################################################################
# import external functions
source /lib/upgrade/iopsys.sh
[ -f /lib/upgrade/iopupgrade ] && source /lib/upgrade/iopupgrade
# only call function if it exists
function_call() {
if [ -n "$1" ] && type "$1" 2>/dev/null >/dev/null
then
$1 "$@" || exit
fi
}
# Cleanup and error handling functions.
function log {
TIME=$(date)
[ $log_stdout -eq 1 ] && echo "$@"
echo "[$TIME] $@" >>/root/upd_log
}
while getopts "hbc" opt; do
case $opt in
h)
upd_usage
exit 1
;;
c)
upd_keepconfig=1
;;
b)
upd_forceboot=1
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
esac
done
# copy old install log over
cp /tmp/oldroot/tmp/upd_log /root/upd_log
# Upgrade boot loader if needed.
function_call upd_program_boot
# Let the new upgrade do whatever it needs,
# such as configuration migration etc.
if [ $upd_keepconfig -eq 1 -a -x /lib/upgrade/post-rootfs-fixup ]; then
(/lib/upgrade/post-rootfs-fixup /dev/null /tmp/oldroot) || exit
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# this is run when "iopr -r" is executed.
# intended to just show what environment is actually started.
cat /etc/banner
echo "/tmp/oldroot:"
echo " Contains the running root filesystem. It is live so files are in use"
echo " Anything copying/reading files from there needs to make sure it is done safely."
echo ""
Color_Off='\033[0m' # Text Reset
Red='\033[0;31m' # Red
PS1="${Red}chroot_new${Color_Off}:\w\#"
export PS1
export Red
export Color_Off

View File

@@ -1,75 +0,0 @@
#
# Copyright (C) 2019 Iopsys
#
include $(TOPDIR)/rules.mk
PKG_NAME:=map-1905
PKG_VERSION:=0.0.19
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=46afa4c0aa56d8762d9402cfdaddf4adaa8a058a
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/map-1905.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/map-1905
SECTION:=utils
CATEGORY:=Utilities
TITLE:= MultiAP Stack
DEPENDS:= +ubox +ieee1905
endef
define Package/map-1905/description
MultiAP plugin for ieee1905d based on Wifi alliance's MAP-r2 specification
endef
define Package/libmaputils
SECTION:=utils
CATEGORY:=Utilities
TITLE:=WFA MultiAP utility library
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-D_GNU_SOURCE \
-fstrict-aliasing \
-Wall \
-Wextra
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
$(CP) -rf ~/git/map-1905/* $(PKG_BUILD_DIR)/
endef
endif
define Package/map-1905/install
$(INSTALL_DIR) $(1)/usr/
$(INSTALL_DIR) $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/ieee1905
$(CP) $(PKG_BUILD_DIR)/libwifimap2.so $(1)/usr/lib/ieee1905/
endef
define Package/libmaputils/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libmaputils.so $(1)/usr/lib/libmaputils.so
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/include/map1905
$(CP) $(PKG_BUILD_DIR)/include/*.h $(1)/usr/include/map1905/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libmaputils.so $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libmaputils))
$(eval $(call BuildPackage,map-1905))

View File

@@ -1,22 +1,25 @@
#
# Copyright (C) 2020 IOPSYS Software Solutions AB
# Copyright (C) 2020-21 IOPSYS Software Solutions AB
#
include $(TOPDIR)/rules.mk
PKG_NAME:=map-agent
PKG_VERSION:=3.5.17
PKG_VERSION:=6.6.2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=09d80be1eb37f1a822dbf3f55aaa6806e09b192a
PKG_SOURCE_VERSION:=ca0a34926e155338964ff55f8c9e28a80b38bc78
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
PKG_LICENSE:=PROPRIETARY IOPSYS
PKG_LICENSE_FILES:=LICENSE
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git@dev.iopsys.eu:iopsys/map-agent.git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/map-agent
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
PKG_MIRROR_HASH:=skip
endif
include $(INCLUDE_DIR)/package.mk
@@ -24,13 +27,28 @@ define Package/map-agent
SECTION:=utils
CATEGORY:=Utilities
TITLE:=WiFi multi-AP Agent (EasyMesh R2)
DEPENDS:=+libwifi +libuci +libubox +ubus +libmaputils +libwsc +libeasy
DEPENDS:=+libwifi +libuci +libubox +ubus +libeasy +libieee1905 +ieee1905 \
+map-plugin
endef
define Package/dynbhd
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Dynamic Backhaul Daemon
DEPENDS:=+libwifi +libuci +libubox +ubus +libeasy +libieee1905 +ieee1905 \
+map-plugin +map-agent
endef
define Package/map-agent/description
This package implements EasyMesh R2 compliant WiFi Agent.
endef
define Package/dynbhd/description
Dyanmic LAN/WAN port detection and loop avoidance.
endef
define Package/map-agent/config
#source "$(SOURCE)/Config.in"
endef
@@ -42,21 +60,29 @@ TARGET_CFLAGS += \
MAKE_PATH:=src
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/map-agent
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/src/include/*.h $(1)/usr/include/map-agent
$(CP) $(PKG_BUILD_DIR)/src/utils/timer_impl.h $(1)/usr/include/map-agent
$(CP) $(PKG_BUILD_DIR)/src/utils/*.so* $(1)/usr/lib/
endef
define Package/map-agent/install
$(INSTALL_DIR) $(1)/etc
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_BUILD_DIR)/src/utils/*.so* $(1)/usr/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mapagent $(1)/usr/sbin/
endef
define Package/dynbhd/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/lib/wifi/dynbhd
$(INSTALL_DIR) $(1)/etc/hotplug.d/ethernet
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dynbh/dynbhd $(1)/usr/sbin/dynbhd
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dynbh/api $(1)/lib/wifi/dynbhd/api
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dynbh/map-dynamic-backhaul $(1)/etc/hotplug.d/ethernet/map-dynamic-backhaul
endef
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
rsync -r --exclude=.* ~/git/map-agent/ $(PKG_BUILD_DIR)/
endef
endif
$(eval $(call BuildPackage,map-agent))
$(eval $(call BuildPackage,dynbhd))

View File

@@ -4,7 +4,7 @@ config agent 'agent'
option profile '2'
option al_bridge 'br-lan'
#config fh-iface
#config ap
# option ifname 'wl0'
# option steer 'rssi bssload'
# list exclude '00:11:22:33:44:55'
@@ -17,15 +17,17 @@ config agent 'agent'
# option steer_legacy_retry_secs '3600'
# option assoc_ctrl_secs '30'
# option band '2'
# option type 'fronthaul'
#config fh-iface
#config ap
# option ifname 'wl1'
# option steer 'rssi bssload'
# list exclude '00:11:22:33:44:55'
# list exclude_btm '00:aa:bb:cc:dd:ee'
# option band '5'
# option type 'fronthaul'
#config bk-iface
#config bsta
# option ifname 'apclii0'
# option enabled '1'
# option onboarded '0'

View File

@@ -0,0 +1,49 @@
#!/bin/sh
wan=$(db -q get hw.board.ethernetWanPort)
MAPFILE="/tmp/multiap.backhaul"
[ -z "$wan" ] && exit 1 # no configuration
[ "$PORT" != "$wan" ] && exit 0
remove_from_bridge() {
config_get ifname "$section" ifname
ubus call network.interface.$bridge remove_device '{"name":"$ifname"}'
}
update_bstas() {
local section="$1"
local action="$2"
local ifname onboarded
config_get ifname "$section" ifname
config_get_bool enabled "$section" enabled 0
if [ "$action" = "down" ]; then
wpa_cli -i "$ifname" disconnect > /dev/null 2>&1
wpa_cli -i "$ifname" disable_network 0 > /dev/null 2>&1
# wpa_cli -i "$ifname" save_config > /dev/null 2>&1
elif [ "$action" = "up" ]; then
[ "$enabled" -eq 0 ] && return
wpa_cli -i "$ifname" reconnect > /dev/null 2>&1
wpa_cli -i "$ifname" enable_network 0 > /dev/null 2>&1
# wpa_cli -i "$ifname" save_config > /dev/null 2>&1
fi
}
if [ "$LINK" = "up" ]; then
#touch "$MAPFILE"
config_load "mapagent"
bridge=$(uci get mapagent.agent.al_bridge | cut -d '-' -f2)
config_foreach remove_from_bridge bsta $bridge
config_foreach update_bstas bsta down
/lib/wifi/multiap set_uplink "eth" "$PORT"
else
rm -f "$MAPFILE"
config_load "mapagent"
config_foreach update_bstas bsta up
fi

View File

@@ -0,0 +1,46 @@
#!/bin/sh
. /lib/functions.sh
. /usr/share/libubox/jshn.sh
[ "$LINK" == "up" ] || exit 0
[ "$PORT" == "" ] && exit 1
ubus list ieee1905 > /dev/null 2>&1
rc="$?"
[ "$rc" != 0 ] && exit 1
issue_discovery() {
local iface="$1"
res=$(ubus -t5 call ieee1905 buildcmdu "{\"type\":0, \"ifname\":\"${iface}\"}")
json_load "$res" > /dev/null 2>&1
json_get_var data data
[ "$data" == "" ] && return
ubus call ieee1905 cmdu "{\"dst\":\"01:80:c2:00:00:13\", \"type\":0, \"data\":\"${data}\"}"
}
process_vlans() {
section="$1"
config_get ifname "$section" ifname
config_get name "$section" name
[ "$2" == "$ifname" ] || return
[ "$name" == "" ] && return
issue_discovery $name
json_cleanup
}
# find and publish over any vlans
config_load network
config_foreach process_vlans interface $PORT
config_foreach process_vlans device $PORT
issue_discovery $PORT

View File

@@ -5,13 +5,74 @@ STOP=20
USE_PROCD=1
MAP_DEV="map_dev"
MAP_IF="map"
MAP_VETH="lei"
create_map() {
uci -q set network.${MAP_DEV}=device
uci -q set network.${MAP_DEV}.name=br-map
uci -q set network.${MAP_DEV}.type=bridge
uci -q set network.${MAP_DEV}.bridge_empty=1
uci -q set network.${MAP_IF}=interface
uci -q set network.${MAP_IF}.device=br-map
uci -q set network.${MAP_IF}.is_lan=1
uci -q set mapagent.agent.al_bridge=br-map
uci -q commit
ubus call network reload
ubus -t 5 wait_for network.device
ip link add ${MAP_VETH} type veth peer name ${MAP_VETH}_lan 2>/dev/null
brctl addif br-map ${MAP_VETH} 2>/dev/null
brctl addif br-lan ${MAP_VETH}_lan 2>/dev/null
ip link set ${MAP_VETH} up 2>/dev/null
ip link set ${MAP_VETH}_lan up 2>/dev/null
}
remove_map() {
ip link delete ${MAP_VETH} &>/dev/null
uci -q delete network.${MAP_DEV}
uci -q delete network.${MAP_IF}
uci -q set mapagent.agent.al_bridge=br-lan
uci -q commit
ubus call network reload
}
start_dynbhd_service() {
rm -f /tmp/map.agent.bsta_global_disable
procd_open_instance
procd_set_param command "/usr/sbin/dynbhd"
procd_set_param respawn
# procd_set_param stdout 1
# procd_set_param stderr 1
procd_close_instance
}
start_service() {
[ -f /usr/sbin/dynbhd ] && start_dynbhd_service
config_load "mapagent"
ubus -t 5 wait_for wifi
sleep 2
local enabled
config_get_bool enabled agent enabled 1
[ "$enabled" -eq 0 ] && return 1
local ts
config_get_bool ts agent vlan_segregation 0
[ "$ts" -eq 1 ] && create_map #|| remove_map
procd_open_instance
procd_set_param command "/usr/sbin/mapagent" "-d"
procd_set_param respawn
@@ -20,9 +81,13 @@ start_service() {
procd_close_instance
}
#stop_service() {
# remove_map
#}
service_triggers()
{
procd_add_reload_trigger "ieee1905"
procd_add_reload_trigger "mapagent"
}
reload_service() {

764
map-agent/files/lib/wifi/multiap Executable file
View File

@@ -0,0 +1,764 @@
#!/bin/sh
# functions
# wireless_teardown - tear down ifaces based on mapagent config
# setup_network - prepare /etc/config/network if necessary
# setup_wireless - prepare /etc/config/wireless based on mapagent config
# write_credentials - write bBSS credentials to fBSS
. /lib/functions.sh
. /usr/share/libubox/jshn.sh
. /lib/wifi/traffic_separation
MAPFILE="/tmp/multiap.backhaul"
diff=0
onbrd_bssid=0
onbrd_band=0
usage() {
cat <<EOF
Usage: $0 [wireless_teardown|setup_network|setup_wireless|write_credentials]
Platform specific Multi-AP script to prepare network and wifi subsystem based on
mapagent configuration.
wireless_teardown - tear down ifaces in /etc/config/wireless
setup_network - prepare /etc/config/network
setup_wireless - prepare /etc/config/wireless
write_credentials - write bBSS credentials to fBSS
EOF
exit 1
}
type_to_multi_ap () {
type="$1"
if [ "$type" = "backhaul" ]; then
echo "1"
return
elif [ "$type" = "fronthaul" ]; then
echo "2"
return
elif [ "$type" = "combined" ]; then
echo "3"
return
fi
echo "0"
}
get_type_by_section() {
section="$1"
config_get type $section type "0"
echo "$(type_to_multi_ap $type)"
}
brcm_sync_credentials() {
bands=""
mapagent_process_fh() {
local section=$1
local dev=$2
multi_ap=$(get_type_by_section $section)
[ "$multi_ap" == "0" ] && return
config_get device $section device
[ "$dev" != "$device" ] && return
config_get band $section band
config_get ssid $section ssid
config_get encryption $section encryption
config_get key $section key
section=$(uci add ieee1905 ap)
[ "$section" == "" ] && return
uci -q set ieee1905.${section}.band=$band
uci -q set ieee1905.${section}.ssid="$ssid"
uci -q set ieee1905.${section}.encryption=$encryption
uci -q set ieee1905.${section}.key="$key"
}
mapagent_process_radio() {
local section=$1
config_get device $section device
config_get band $section band
config_get dedicated_backhaul $section dedicated_backhaul 0
[ "$dedicated_backhaul" != "0" ] && return
for b in $bands; do
if [ "$b" == "$band" ]; then
return
fi
done
config_foreach mapagent_process_fh ap $device
bands="$bands $band"
}
ieee1905_del_ap() {
local section=$1
uci -q delete ieee1905.${section}
}
config_load ieee1905
config_foreach ieee1905_del_ap ap
config_load mapagent
config_foreach mapagent_process_radio radio
uci commit ieee1905
}
brcm_write_credentials() {
config_load mapagent
mapagent_apply_wireless() {
write_wireless() {
local section=$1
local map_ifname=$2
local bk_ssid="$3"
local bk_key="$4"
config_get ifname $section ifname
#echo found device=$device map=$multi_ap ifname=$ifname mapifname=$map_ifname
[ "$ifname" != "$map_ifname" ] && return
#echo applying bk_ssid = "$bk_ssid" bk_key = "$bk_key"
uci -q set wireless.${section}.multi_ap_backhaul_ssid="$bk_ssid"
uci -q set wireless.${section}.multi_ap_backhaul_key="$bk_key"
}
config_load wireless
config_foreach write_wireless wifi-iface "$1" "$2" "$3"
}
mapagent_find_fbss() {
local section=$1
local dev=$2
local bk_ssid="$3"
local bk_key="$4"
multi_ap=$(get_type_by_section $section)
[ "$multi_ap" == "0" ] && return
config_get device $section device
#echo found dev=$dev device=$device map=$multi_ap
[ "$device" != "$dev" ] && return
[ "$multi_ap" != "2" ] && return
config_get ifname $section ifname
#echo applying bk_ssid = "$bk_ssid" bk_key = "$bk_key"
# subshell in hopes to maintain mapagent config loaded
echo $(mapagent_apply_wireless $ifname "$bk_ssid" "$bk_key") 2> /dev/null
}
mapagent_find_bbss() {
local section=$1
local dev=$2
multi_ap=$(get_type_by_section $section)
[ "$multi_ap" == "0" ] && return
config_get device $section device
config_get enabled $section enabled "1"
#echo found dev=$dev device=$device map=$multi_ap
[ "$enabled" == "0" ] && return
[ "$device" != "$dev" ] && return
[ "$multi_ap" != "1" ] && return
config_get ssid $1 ssid
config_get key $1 key
#echo found ssid="$ssid" key="$key"
config_foreach mapagent_find_fbss ap $dev "$ssid" "$key"
}
mapagent_process_radio() {
local section=$1
config_get device $section device
#echo found dev=$dev
config_foreach mapagent_find_bbss ap $device
}
config_foreach mapagent_process_radio radio
uci commit wireless
}
brcm_set_network() {
local ifname=$1
local num=$2
local bssid=$3
wpa_cli -i $ifname set_n $num bssid $bssid
}
bsta_steer() {
local ifname=$1
local bssid=$2
rc=$(wpa_cli -i $ifname set_n 0 bssid $bssid)
[ "$rc" == "FAIL" ] && {
echo "1"
return;
}
rc=$(wpa_cli -i $ifname roam $bssid)
[ "$rc" == "FAIL" ] && {
echo "1"
return;
}
}
write_bsta_config() {
local ifname=$1
#echo diff = $diff > /dev/console
config_load mapagent
mapagent_apply_wl_bsta() {
apply_config() {
local section=$1
local bsta=$2
local bssid=$3
config_get ifname $section ifname
[ "$bsta" == "$ifname" ] || return
#echo setting diff = $diff > /dev/console
uci -q set wireless.${section}.bssid=$bssid
echo 1
}
config_load wireless
config_foreach apply_config wifi-iface $1 $2
uci commit wireless
}
mapagent_process_bk() {
local section=$1
local bsta=$2
config_get ifname $section ifname
#echo bsta = $bsta > /dev/console
[ "$bsta" == "$ifname" ] || return
#echo found ifname=$ifname > /dev/console
config_get bssid $section bssid
config_get band $section band
ret=$(mapagent_apply_wl_bsta $ifname $bssid)
[ "$ret" == "1" ] && {
diff=1
onbrd_bssid=$bssid
onbrd_band=$band
}
}
mapagent_apply_bssid_same_band() {
apply_config() {
local section=$1
local bsta=$2
config_get ifname $section ifname
[ "$bsta" == "$ifname" ] || return
uci -q set wireless.${section}.bssid=$bssid
}
config_get band $1 band
config_get onboarded $1 onboarded "0"
[ "$onbrd_band" != "$band" -o "$onboarded" = "1" ] && return
config_get ifname $1 ifname
config_load wireless
config_foreach apply_config wifi-iface $ifname $onbrd_bssid
uci commit wireless
}
config_foreach mapagent_process_bk bsta $ifname
#echo result diff = $diff > /dev/console
[ "$diff" == "1" ] && {
config_foreach mapagent_apply_bssid_same_band bsta
ubus call uci commit '{"config":"wireless"}'
#echo reloading wireless > /dev/console
}
}
brcm_teardown_iface() {
config_load mapagent
local iface=$1
mapagent_teardown_wireless() {
write_wireless() {
local section=$1
local map_ifname=$2
config_get ifname $section ifname
[ "$ifname" != "$map_ifname" ] && return
uci -q set wireless.${section}.start_disabled="1"
uci -q set wireless.${section}.ssid="DISABLED-SSID"
uci -q set wireless.${section}.key="DISABLED-KEY"
uci -q delete wireless.${section}.multi_ap_backhaul_ssid
uci -q delete wireless.${section}.multi_ap_backhaul_key
}
config_load wireless
config_foreach write_wireless wifi-iface $1
}
mapagent_teardown_bss() {
local section=$1
local iface=$2
multi_ap=$(get_type_by_section $section)
[ "$multi_ap" == "0" ] && return
config_get ifname $section ifname
[ "$iface" != "$ifname" ] && return
config_get ifname $section ifname
uci -q set mapagent.${section}.enabled="0"
uci -q set mapagent.${section}.ssid="DISABLED-SSID"
uci -q set mapagent.${section}.key="DISABLED-KEY"
# subshell in hopes to maintain mapagent config loaded
$(mapagent_teardown_wireless $ifname)
}
config_foreach mapagent_teardown_bss ap $iface
uci commit wireless
uci commit mapagent
}
brcm_bsta_to_wireless() {
config_load mapagent
mapagent_find_lowest_prio_onboarded() {
mapagent_process_bk() {
config_get priority $1 priority "2"
config_get onboarded $1 onboarded "0"
[ "$onboarded" = "0" ] && return
if [ -z "$sec" -o "$prio" = "-1" -o "$priority" -lt "$prio" ]; then
sec=$1
prio=$priority
fi
}
local sec=""
local prio="-1"
config_foreach mapagent_process_bk bsta
echo $sec
}
mapagent_enable_best() {
#echo 1=$1 best=$best > /dev/console
if [ "$1" = "$best" ]; then
uci -q set mapagent.$1.enabled='1'
else
uci -q set mapagent.$1.enabled='0'
fi
}
mapagent_bsta_to_wireless() {
mapagent_apply_wl_bsta() {
apply_config() {
local section=$1
local bsta=$2
local ssid="$3"
local key="$4"
local encryption=$5
local enabled=$6
local bssid=$7
local disabled="0"
config_get ifname $section ifname
[ -z "$enabled" -o "$enabled" = "0" ] && disabled="1"
[ "$bsta" == "$ifname" ] || return
uci -q set wireless.${section}.ssid="$ssid"
uci -q set wireless.${section}.key="$key"
uci -q set wireless.${section}.encryption=$encryption
uci -q set wireless.${section}.bssid="$bssid"
#uci -q set wireless.${section}.disabled=$disabled
[ "$disabled" != "1" ] && return
wpa_cli -i "$bsta" disconnect > /dev/null 2>&1
wpa_cli -i "$bsta" disable_network 0 > /dev/null 2>&1
wpa_cli -i "$bsta" save_config > /dev/null 2>&1
echo 1
}
config_load wireless
config_foreach apply_config wifi-iface $@
uci commit wireless
}
mapagent_find_other_creds() {
#echo "trying to find other creds for $2" > /dev/console
config_get band $1 band
config_get onboarded $1 onboarded "0"
[ "$3" != "$band" -o "$onboarded" = "0" ] && return
config_get ssid $1 ssid
config_get key $1 key
config_get encryption $1 encryption
config_get enabled $1 enabled "0"
config_get bssid $1 bssid
echo $(mapagent_apply_wl_bsta $2 "$ssid" "$key" $encryption $4 "$bssid")
}
config_get band $1 band
config_get ifname $1 ifname
config_get onboarded $1 onboarded "0"
config_get enabled $1 enabled "0"
if [ "$onboarded" = "0" ]; then
config_foreach mapagent_find_other_creds bsta $ifname $band $enabled
else
config_get ssid $1 ssid
config_get key $1 key
config_get encryption $1 encryption
config_get bssid $1 bssid
echo $(mapagent_apply_wl_bsta $ifname "$ssid" "$key" $encryption $enabled "$bssid")
fi
}
# best=$(mapagent_find_lowest_prio_onboarded)
#
# [ -z "$best" ] && return
#
# band=$1
# sec=""
# prio=""
#
# config_foreach mapagent_enable_best bsta $best
# uci commit mapagent
config_load mapagent
diff=$(config_foreach mapagent_bsta_to_wireless bsta)
# [ "$diff" != "" ] && {
ubus call uci commit '{"config":"wireless"}'
# }
}
sync_mapcontroller_from_wireless() {
ubus -t 5 wait_for wifi
[ "$?" != "0" ] && return
[ ! -f "/etc/config/wireless" ] && return
status=$(ubus -S call wifi status)
device_to_band() {
local ifname=$1
json_load "$status"
json_select "radios"
json_get_keys keys
for key in $keys; do
json_select $key
json_get_var name name
if [ "$name" != "$ifname" ]; then
json_select ..
continue
fi
json_get_var band band
if [ "$band" == "5GHz" ]; then
echo "5"
elif [ "$band" == "2.4GHz" ]; then
echo "2"
fi
break
done
json_cleanup
}
wireless_process_iface() {
local section=$1
local type="ap"
local enabled="1"
config_get multi_ap $section multi_ap 0
[ "$multi_ap" != "1" ] && [ "$multi_ap" != "2" ] && return
config_get mode $section mode "ap"
[ "$mode" != "ap" ] && return
config_get device $section device
band=$(device_to_band $device)
[ "$band" == "" ] && return
config_get ssid $section ssid
config_get key $section key
config_get encryption $section encryption
config_get start_disabled $section start_disabled "0"
config_get network $section network
cntlr_section=$(uci add mapcontroller ${type})
uci -q set mapcontroller.${cntlr_section}.ssid="$ssid"
uci -q set mapcontroller.${cntlr_section}.key="$key"
uci -q set mapcontroller.${cntlr_section}.encryption="$encryption"
uci -q set mapcontroller.${cntlr_section}.band="$band"
uci -q set mapcontroller.${cntlr_section}.vid="1"
uci -q set mapcontroller.${cntlr_section}.network="$network"
[ "$multi_ap" == "1" ] && map_type="backhaul" || map_type="fronthaul"
uci -q set mapcontroller.${cntlr_section}.type="$map_type"
[ "$start_disabled" == "1" ] && enabled="0"
uci -q set mapcontroller.${cntlr_section}.enabled="$enabled"
}
mapcontroller_teardown() {
local section=$1
uci delete mapcontroller.$1
}
config_load mapcontroller
config_foreach mapcontroller_teardown ap
config_load wireless
config_foreach wireless_process_iface wifi-iface
uci commit mapcontroller
}
bsta_scan_on_enabled() {
config_load mapagent
mapagent_enable_bk() {
config_get ifname $1 ifname
config_get enabled $1 enabled
echo ifname $ifname enabled $enabled
[ "$enabled" = "0" ] && return
wpa_cli -i "$ifname" enable_network 0 > /dev/null 2>&1
wpa_cli -i "$ifname" reconnect > /dev/null 2>&1
wpa_cli -i "$ifname" save_config > /dev/null 2>&1
}
config_foreach mapagent_enable_bk bsta
}
bsta_enable_all() {
mapagent_enable_bk() {
config_get ifname $1 ifname "2"
uci -q set mapagent.$1.enabled="1"
}
config_load mapagent
config_foreach mapagent_enable_bk bsta
uci commit mapagent
bsta_scan_on_enabled
}
bsta_disable_lower_priority() {
config_load mapagent
mapagent_get_priority() {
config_get ifname $1 ifname
[ "$ifname" != "$2" ] && return
config_get priority $1 priority "2"
echo "$priority"
}
mapagent_disable_lower_bk() {
mapagent_apply_wl_bsta() {
apply_config() {
local section="$1"
local bsta="$2"
local enabled="$3"
config_get ifname $section ifname
[ "$bsta" == "$ifname" ] || return
[ "$enabled" != "0" ] && return
wpa_cli -i "$ifname" disconnect > /dev/null 2>&1
wpa_cli -i "$ifname" disable_network 0 > /dev/null 2>&1
wpa_cli -i "$ifname" save_config > /dev/null 2>&1
}
local ifname="$1"
local enabled="$2"
[ "$enabled" != "0" ] && return
config_load wireless
config_foreach apply_config wifi-iface $ifname $enabled
}
local enabled="1"
config_get ifname $1 ifname
config_get priority $1 priority
[ "$ifname" != "$2" -a "$priority" -gt "$3" ] && enabled="0"
uci -q set mapagent.$1.enabled="$enabled"
echo $(mapagent_apply_wl_bsta $ifname $enabled) > /dev/null
}
local bsta=$1
prio=$(config_foreach mapagent_get_priority bsta $bsta)
#echo bsta $bsta has prio $prio > /dev/console
config_foreach mapagent_disable_lower_bk bsta $bsta $prio
uci commit mapagent
# ubus call uci commit '{"config":"wireless"}'
}
bsta_use_link() {
config_load mapagent
mapagent_disable_bk() {
local bsta="$2"
config_get ifname $1 ifname
config_get enabled $1 enabled
[ "$bsta" = "$ifname" ] && return
wpa_cli -i "$ifname" disconnect > /dev/null 2>&1
wpa_cli -i "$ifname" disable_network 0 > /dev/null 2>&1
wpa_cli -i "$ifname" save_config > /dev/null 2>&1
}
local bsta=$1
config_foreach mapagent_disable_bk bsta $bsta
}
bsta_swap_to_link() {
bsta_disable_lower_priority $1
bsta_use_link $1
wpa_cli -i "$1" enable_network 0 > /dev/null
wpa_cli -i "$1" reconnect > /dev/null
wpa_cli -i "$1" save_config > /dev/null
}
set_uplink_backhaul_info() {
local ul_1905id=$1
local ul_mac=$2
json_load "$(cat $MAPFILE)"
json_add_string "backhaul_device_id" "$ul_1905id"
json_add_string "backhaul_macddr" "$ul_mac"
json_dump > "$MAPFILE"
json_cleanup
}
set_uplink() {
local type=$1
local ifname=$2
local hwaddr
hwaddr="$(ifconfig $ifname | grep -i hwaddr | awk '{print $5}' | awk '{print tolower($0)}')"
json_init
json_add_string "type" "$type"
json_add_string "ifname" "$ifname"
json_add_string "macaddr" "$hwaddr"
json_dump > "$MAPFILE"
json_cleanup
}
unset_uplink() {
rm "$MAPFILE" > /dev/null 2>&1
}
func=$1
shift
case "$func" in
wireless_teardown) brcm_wireless_teardown;;
setup_network) brcm_setup_network;;
setup_wireless) brcm_setup_wireless;;
write_credentials) brcm_write_credentials;;
sync_credentials) brcm_sync_credentials;;
bsta_steer) bsta_steer $@;;
set_network) brcm_set_network $@;;
write_bsta_config) write_bsta_config $@;;
teardown_iface) brcm_teardown_iface $@;;
bsta_to_wireless) brcm_bsta_to_wireless $@;;
sync_mapcontroller_from_wireless) sync_mapcontroller_from_wireless $@;;
ts) ts_sub $@;;
bsta_enable_all) bsta_enable_all $@;;
bsta_disable_lower_priority) bsta_disable_lower_priority $@;;
bsta_scan_on_enabled) bsta_scan_on_enabled $@;;
bsta_use_link) bsta_use_link $@;;
bsta_swap_to_link) bsta_swap_to_link $@;;
set_uplink) set_uplink $@;;
set_uplink_backhaul_info) set_uplink_backhaul_info $@;;
unset_uplink) unset_uplink $@;;
--help|help) usage;;
*) usage; exit 1;;
esac

View File

@@ -0,0 +1,381 @@
#!/bin/sh
. /lib/functions.sh
### Traffic Separation ###
ts_sub() {
ts_usage() {
cat <<EOF
Usage: $0 [create|delete|populate]
Traffic Separation related functions.
create fh <iface> <vid> - create vlan device and rules for wifi fronthaul
create bh <iface> <vid> <profile> - create vlan device and rules for wifi backhaul
create eth <iface> <vid> <pbits> - create vlan device and rules for logical ethernet interface
delete <iface> - delete vlan device
populate eth <iface> <vid> - add secondary network rules for logical ethernet interface
primary get <iface> - read primary VID for interface from driver (from Association Response frame IE)
EOF
exit 1
}
_get_bridge() {
local bridge=$(ip link show $1 | grep -o "master [^\s]*" | cut -d ' ' -f 2)
echo $bridge
}
ts_create() {
_create_vlan_dev() {
iface=$1 # real iface
vid=$2 # Vlan ID
bridge="$(_get_bridge $iface)" # bridge iface is connected to
vlan_dev=${iface}_vlan${vid} # name of vlan device to create
# remove interface from bridge if it is in one
[ -n "$bridge" ] && brctl delif $bridge $iface &> /dev/null
# create vlan device
vlanctl --mcast --if-create-name $iface $vlan_dev --if $iface --set-if-mode-rg
# bring the vlan device up and add back to bridge if it was in one
[ -n "$bridge" ] && brctl addif $bridge $vlan_dev &> /dev/null
ip link set dev $vlan_dev up
echo $vlan_dev
}
ts_create_fh() {
iface=$1 # fh iface
vid=$2 # SSID specific (secondary) or primary vid
[ -n "$iface" ] && [ -n "$vid" ] || {
cat <<EOF
Adding FH device requires IFACE and VID.
EOF
exit 1
}
# create vlan device
vlan_dev=$(_create_vlan_dev $iface $vid)
# add rules
# Note: removing these for now since these packets are read directly from the iface anyway
# vlanctl --if $iface --rx --tags 0 --filter-ethertype 0x888e --set-rxif $vlan_dev --rule-append # incoming EAPOL
# vlanctl --if $iface --rx --tags 0 --filter-ethertype 0x886c --set-rxif $vlan_dev --rule-append # incoming brcm
vlanctl --if $iface --rx --tags 0 --set-rxif $vlan_dev --push-tag --set-vid $vid 0 --rule-append
vlanctl --if $iface --tx --tags 1 --filter-txif $vlan_dev --filter-vid $vid 0 --pop-tag --dscp2pbits 0 --rule-append
}
# Note: Currently not used (will be needed for Profile 1)
ts_create_bh() {
iface=$1 # bh iface
vid=$2 # primary vid
profile=$3 # agent profile (1 or 2)
[ -n "$iface" ] && [ -n "$vid" ] && [ -n "$profile" ] || {
cat <<EOF
Adding BH device requires IFACE, VID and PROFILE (1 or 2).
EOF
exit 1
}
# create vlan device
vlan_dev=$(_create_vlan_dev $iface $vid)
# add rules
case "$profile" in
1 | profile_1 | profile1 | Profile_1 | Profile1)
vlanctl --if $iface --rx --tags 0 --set-rxif $vlan_dev --push-tag --set-vid $vid 0 --rule-append
vlanctl --if $iface --tx --tags 1 --filter-txif $vlan_dev --pop-tag --rule-append
;;
2 | profile_2 | profile2 | Profile_2 | Profile2)
vlanctl --if $iface --rx --tags 1 --set-rxif $vlan_dev --rule-append
vlanctl --if $iface --tx --tags 1 --filter-txif $vlan_dev --rule-append # note: already default
vlanctl --if $iface --tx --tags 0 --filter-ethertype 0x893a --filter-txif $vlan_dev --push-tag --set-vid $vid 0 --rule-append # note: outgoing IEEE1905.1
vlanctl --if $iface --tx --tags 0 --filter-ethertype 0x888e --filter-txif $vlan_dev --push-tag --set-vid $vid 0 --rule-append # note: outgoing EAPOL
;;
*)
ts_delete $iface
ts_usage
exit 1
;;
esac
}
ts_create_bh_drv() {
iface=$1 # bh iface
vid=$2 # primary vid
profile=$3 # agent profile (1 or 2)
[ -n "$iface" ] && [ -n "$vid" ] && [ -n "$profile" ] || {
cat <<EOF
Adding BH device requires IFACE, VID and PROFILE (1 or 2).
EOF
exit 1
}
wl vlan_mode 0 &> /dev/null # make sure this is OFF, else driver won't handle vlan
wl -i $iface down &> /dev/null
wl -i $iface map_profile $profile &> /dev/null # only has effect on profile 2
wl -i $iface map_8021q_settings $vid &> /dev/null # can only be set on bBSS (read-only on bSTA)
wl -i $iface up &> /dev/null
}
ts_create_eth() {
_ts_setup() {
vlan_bridge=$1
lan_bridge=$2
vlan_dev=$3
lan_dev=${vlan_dev}_lan
ip link show $vlan_dev &> /dev/null || ip link add $vlan_dev type veth peer name $lan_dev
brctl addif $vlan_bridge $vlan_dev &> /dev/null
brctl addif $lan_bridge $lan_dev &> /dev/null
ip link set $vlan_dev up
ip link set $lan_dev up
}
iface=$1 # Multi-AP Logical Ethernet Interface
vid=$2 # primary vid
pbits=$3 # default pbits to apply
vlan_bridge=$4 # name of ts subsystem bridge
lan_bridge=$5 # name of node local bridge
[ -n "$iface" ] && [ -n "$vid" ] && [ -n "$pbits" ] && [ -n "$vlan_bridge" ] && [ -n "$lan_bridge" ] || {
cat <<EOF
Adding ETH device requires IFACE, VID, PBITS and name of vlan and lan bridges.
EOF
exit 1
}
# create virtual eth device between bridges (if it doesn't exist))
_ts_setup $vlan_bridge $lan_bridge $iface
# create vlan device
vlan_dev=$(_create_vlan_dev $iface $vid)
# TODO: how to disable returning traffic back to incoming interface?
# add rules
vlanctl --if $iface --rx --tags 0 --set-rxif $vlan_dev --push-tag --set-vid $vid 0 --set-pbits $pbits 0 --rule-append
vlanctl --if $iface --tx --tags 1 --filter-vid $vid 0 --filter-txif $vlan_dev --pop-tag --rule-append
}
ts_create_dhcp() {
_br_setup() {
local name=$1
local sinkname=$2
local vid=$3
local diff=""
[ -z "$(uci -q get network.${name}_dev)" ] && {
uci -q set network.${name}_dev="device"
uci -q set network.${name}_dev.name="br-${name}"
uci -q set network.${name}_dev.type="bridge"
uci -q set network.${name}_dev.bridge_empty="1"
uci -q add_list network.${name}_dev.ports="${sinkname}"
diff="1"
}
[ -z "$(uci -q get network.${name})" ] && {
uci -q set network.${name}="interface"
uci -q set network.${name}.device="br-${name}"
uci -q set network.${name}.is_lan="1"
uci -q set network.${name}.proto="static"
uci -q set network.${name}.ipaddr="192.168.${vid}.1"
uci -q set network.${name}.netmask="255.255.255.0"
diff="1"
}
[ "$diff" = "1" ] && {
uci -q commit network
ubus call network reload
ubus -t 5 wait_for network.device
}
}
_dhcp_setup() {
local name=$1
[ -n "$(uci -q get dhcp.${name})" ] && return
uci -q set dhcp.${name}=dhcp
uci -q set dhcp.${name}.interface="${name}"
uci -q set dhcp.${name}.start="100"
uci -q set dhcp.${name}.limit="150"
uci -q set dhcp.${name}.leasetime="1h"
uci -q set dhcp.${name}.dhcpv4="server"
uci -q set dhcp.${name}.dhcpv6="server"
uci -q set dhcp.${name}.ra="server"
uci -q set dhcp.${name}.ra_slaac="1"
uci -q add_list dhcp.${name}.ra_flags="managed-config"
uci -q add_list dhcp.${name}.ra_flags="other-config"
uci -q commit dhcp
ubus call uci commit '{"config":"dhcp"}'
}
_wan_setup() {
local name=$1
config_load firewall
_process_zone() {
local section=$1
local sink=$2
local name
local exists=false
config_get name $section name
[ "$name" == "lan" ] || return
_process_list() {
local value=$1
[ "$value" == "$sink" ] && exists=true && return 1
}
config_list_foreach "$section" network _process_list
[ $exists = false ] && {
uci -q add_list firewall.${section}.network="${sink}"
uci -q commit firewall
ubus call uci commit '{"config":"firewall"}'
}
return 1
}
config_foreach _process_zone zone $name
}
vid=$1 # primary vid
[ -n "$vid" ] || {
cat <<EOF
VID required to configure DHCP.
EOF
exit 1
}
br_dev=sink_vlan${vid} # name of vlan device to create
ip l a sink1_vlan${vid} type veth peer name sink2_vlan${vid}
vlanctl --mcast --if-create-name sink2_vlan${vid} sink3_vlan${vid} --if sink2_vlan${vid} --set-if-mode-rg
vlanctl --if sink2_vlan${vid} --rx --tags 1 --filter-vid ${vid} 0 --set-rxif sink3_vlan${vid} --pop-tag --rule-append
vlanctl --if sink2_vlan${vid} --tx --tags 0 --filter-txif sink3_vlan${vid} --push-tag --set-vid ${vid} 0 --rule-append
ip l s sink1_vlan${vid} up
ip l s sink2_vlan${vid} up
ip l s sink3_vlan${vid} up
_br_setup $br_dev sink3_vlan${vid} $vid
_dhcp_setup $br_dev
_wan_setup $br_dev
}
local type=$1
shift
case "$type" in
fh) ts_create_fh $@;;
# bh) ts_create_bh $@;;
bh) ts_create_bh_drv $@;;
eth) ts_create_eth $@;;
dhcp) ts_create_dhcp $@;;
--help|help) ts_usage;;
*) ts_usage; exit 1;;
esac
}
ts_delete() {
iface=$1
path=$(ls -d /sys/class/net/${iface}/upper_*)
[ -z "$path" ] && exit 0
vlan_dev=${path##*upper_}
bridge="$(_get_bridge $vlan_dev)"
vlanctl --if-delete $vlan_dev # note: also removes rules and removes from bridge
brctl addif $bridge $iface &> /dev/null
}
ts_populate() {
local type=$1
shift
[ "$type" == "eth" ] || {
cat <<EOF
Populating ETH rules requires IFACE and VID.
EOF
exit 1
}
iface=$1 # Multi-AP Logical Ethernet Interface
vid=$2 # secondary vid
path=$(ls -d /sys/class/net/${iface}/upper_*)
[ -z "$path" ] && exit 1
vlan_dev=${path##*upper_}
# add rules
vlanctl --if $iface --rx --tags 1 --filter-vid $vid 0 --set-rxif $vlan_dev --rule-append # note: retain secondary vids
vlanctl --if $iface --tx --tags 1 --filter-vid $vid 0 --filter-txif $vlan_dev --rule-append # note: already default
}
ts_primary() {
local func=$1
shift
case "$func" in
get) vid=$(wl -i $1 map_8021q_settings); echo ${vid##* };;
*) ts_usage; exit 1;;
esac
}
ts_unicast() {
local mac=$1
local iface=$2
# TODO: improve?
res=$(ebtables -t broute -L | grep -i "$mac" | grep "$iface")
[ -n "$res" ] && return
ebtables -t broute -D BROUTING -d "$mac" -p 0x893a -j DROP
ebtables -t broute -I BROUTING -i "$iface" -d "$mac" -p 0x893a -j DROP
}
ts_multicast() {
local iface=$1
# TODO: improve?
res=$(ebtables -t broute -L | grep -i "1:80:C2:00:00:13" | grep "$iface")
[ -n "$res" ] && return
ebtables -t broute -D BROUTING -d 01:80:C2:00:00:13 -p 0x893a -j DROP
ebtables -t broute -D BROUTING -i "$iface" -d 01:80:C2:00:00:13 -p 0x893a -j DROP
ebtables -t broute -I BROUTING -i "$iface" -d 01:80:C2:00:00:13 -p 0x893a -j DROP
}
local func=$1
shift
case "$func" in
create) ts_create $@;;
delete) ts_delete $@;;
populate) ts_populate $@;;
primary) ts_primary $@;;
unicast) ts_unicast $@;;
multicast) ts_multicast $@;;
--help|help) ts_usage;;
*) ts_usage; exit 1;;
esac
}

View File

@@ -5,17 +5,20 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=map-controller
PKG_VERSION:=2.4.11
PKG_VERSION:=5.4.5
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=096882c4695e831668056049867c611831c5ccac
PKG_SOURCE_VERSION:=99ef60cc1ef7c00706cd1053c17d8f6a429f52d4
PKG_LICENSE:=PROPRIETARY IOPSYS
PKG_LICENSE_FILES:=LICENSE
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git@dev.iopsys.eu:iopsys/map-controller.git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/map-controller
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
PKG_MIRROR_HASH:=skip
endif
include $(INCLUDE_DIR)/package.mk
@@ -23,7 +26,7 @@ define Package/map-controller
SECTION:=utils
CATEGORY:=Utilities
TITLE:=WiFi Multi-AP Controller (EasyMesh R2)
DEPENDS:=+libuci +libubox +ubus +libmaputils +libwsc +libeasy
DEPENDS:=+libuci +libubox +ubus +libeasy +libieee1905 +ieee1905 +map-plugin
endef
define Package/map-controller/description
@@ -48,4 +51,10 @@ define Package/map-controller/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mapcontroller $(1)/usr/sbin/
endef
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
rsync -r --exclude=.* ~/git/map-controller/ $(PKG_BUILD_DIR)/
endef
endif
$(eval $(call BuildPackage,map-controller))

View File

@@ -2,43 +2,66 @@ config controller 'controller'
option enabled '1'
option registrar '5 2' #bands on which wps registrar supported
option debug '6'
option al_bridge 'br-lan'
option enable_sta_steer '0'
option enable_bsta_steer '0'
option primary_vid '1'
option primary_pcp '0'
config vlan 'lan'
option network 'lan'
option id '1'
config interface 'lan'
option 'dhcp'
config fh-credentials
config ap
option band '5'
option encryption 'psk2'
option encryption 'sae-mixed'
option key '1234567890'
option ssid 'map-net5'
option vlan '1'
option vid '1'
option type 'fronthaul'
option network 'lan'
config fh-credentials
config ap
option band '2'
option encryption 'psk2'
option encryption 'sae-mixed'
option key '1234567890'
option ssid 'map-net2'
# option bk_ssid 'multiap_ssid123'
# option bk_key 'multiap_key123'
option vlan '1'
option vid '1'
option type 'fronthaul'
option network 'lan'
config bk-credentials
config ap
option band '5'
option encryption 'psk2'
option encryption 'sae'
option key '5555555555'
option ssid 'map-bkhaul-5'
option multi_ap '2'
option type 'backhaul'
option disallow_bsta '1' # bitmap, 1 for disallow p1, 2 to disallow p2, 3 to disallow both (probably never applicable)
option vlan '1'
option vid '1'
option network 'lan'
config bk-credentials
config ap
option band '2'
option encryption 'psk2'
option encryption 'sae'
option key '2222222222'
option ssid 'map-bkhaul-2'
option multi_ap '2'
option disallow_bsta '0' # 0 or 1 profile-1 bSTA
option vlan '1'
list disallow_bsta '0' # 0 or 1 profile-1 bSTA
option vid '1'
option type 'backhaul'
option network 'lan'
config policy 'policy'
list steer_exclude '00:11:22:33:44:55'
list steer_exclude_btm '00:aa:bb:cc:dd:ee'
option steer_policy '2' # 0, 1, 2 - see MultiAP spec
option util_threshold '200' # channel-util as in BSS load
option rcpi_threshold '30' # 0 - 220 valid range
option report_scan '0' # 0 or 1 for independent scans
option report_sta_assocfails '1' # 0 or 1 - stas assoc failure
option report_sta_assocfails_rate '2' # reporting rate for STA assoc fails (attempts per minute)
option report_metric_periodic '0' # 0, or 1 - 255 in secs
option report_rcpi_threshold '0' # 0, or 1 - 220
option report_util_threshold '0' # 0, or channel-util value
option rcpi_hysteresis_margin '0' # 0, or > 0 - hysteresis margin
option include_sta_stats '0' # sta stats in AP metric resp
option include_sta_metric '0' # sta metric in AP metric resp
option disallow_bsta_p1 '0' # 0 or 1 profile-1 bSTA
option disallow_bsta_p2 '0' # 0 or 1 profile-2 bSTA

View File

@@ -14,7 +14,6 @@ handle_controller_select() {
start_service() {
local enabled
local local_ctrl=0
config_load "mapcontroller"
config_get_bool enabled controller enabled 1
@@ -23,9 +22,13 @@ start_service() {
procd_open_instance
procd_set_param command "/usr/sbin/mapcontroller" "-d"
config_load "mapagent"
config_foreach handle_controller_select controller_select
[ "$local_ctrl" -eq 0 ] && procd_append_param command "-w"
if [ -f /etc/config/mapagent ]; then
local local_ctrl=0
config_load "mapagent"
config_foreach handle_controller_select controller_select
[ "$local_ctrl" -eq 0 ] && procd_append_param command "-w"
fi
procd_set_param respawn
# procd_set_param stdout 1
@@ -45,6 +48,14 @@ reload_service() {
config_get_bool enabled controller enabled 1
if [ "$enabled" -eq 0 ]; then
stop
# Start but without instance so reload trigger works.
start
return
fi
pidof "mapcontroller" > /dev/null
if [[ $? -ne 0 ]] ; then
start
return
fi

View File

@@ -6,11 +6,11 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=map-topology
PKG_VERSION:=1.5.20
PKG_VERSION:=3.2.0
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_VERSION:=d542c50c81d09f553bdd36dd12fd9eb7618f4463
PKG_SOURCE_VERSION:=d1fae1ff7a8bc8daea08799b9ffbdeb424903e54
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/map-topology.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
@@ -25,12 +25,14 @@ include $(INCLUDE_DIR)/package.mk
define Package/map-topology
CATEGORY:=Utilities
DEPENDS:=+libubox +ubus +libpthread +libuci +libeasy \
+libieee1905 +libavahi-nodbus-support
+libieee1905 +map-plugin +libavahi-nodbus-support
TITLE:=Utility to build topology of a multi-AP network
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include
-I$(STAGING_DIR)/usr/include \
-I$(STAGING_DIR)/usr/include/libnl3 \
-D_GNU_SOURCE
define Package/map-topology/description
Constructs network topology and show it as json structure over UBUS

View File

@@ -0,0 +1,4 @@
config global 'global'
option ageing_timer '1440'
option reboot_persistent '0'

View File

@@ -16,10 +16,9 @@ start_service() {
service_triggers()
{
procd_add_reload_trigger "ieee1905"
procd_add_reload_trigger "network"
}
reload_service() {
stop
start
procd_send_signal "topologyd"
}

View File

@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mcastmngr
PKG_VERSION:=1.0.0
PKG_VERSION:=1.0.2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

View File

@@ -22,7 +22,7 @@ generate_igmp_global_params(){
generate_mcast_config(){
up_itf="$(uci -q get network.wan.ifname)"
up_itf="$(uci -q get network.wan.device)"
uci add mcast proxy
uci rename mcast.@proxy[-1]="igmp_proxy_1"
@@ -35,7 +35,6 @@ generate_mcast_config(){
uci set mcast.@proxy[-1].last_member_query_interval="10"
uci set mcast.@proxy[-1].fast_leave="1"
uci set mcast.@proxy[-1].snooping_mode="2"
uci set mcast.@proxy[-1].lan_to_lan="0"
uci add_list mcast.@proxy[-1].downstream_interface="br-lan"
IFS=" "

View File

@@ -59,10 +59,6 @@ mld_p_up_interfaces=""
mld_p_down_interfaces=""
mld_p_exceptions=""
# Standard parameters need by BCM's multicast daemon
l_2_l_mcast=0
allow_brdevice=0
proxdevs=""
ethwan="$(db -q get hw.board.ethernetWanPort)"
@@ -89,7 +85,6 @@ read_snooping() {
config_get igmp_s_mode "$config" snooping_mode 0
config_get igmp_s_iface "$config" interface
config_get igmp_s_exceptions "$config" filter
config_get l_2_l_mcast "$config" lan_to_lan
return
fi
@@ -104,7 +99,6 @@ read_snooping() {
config_get mld_s_mode "$config" snooping_mode 0
config_get mld_s_iface "$config" interface
config_get mld_s_exceptions "$config" filter
config_get l_2_l_mcast "$config" lan_to_lan
return
fi
}
@@ -133,7 +127,6 @@ read_proxy() {
config_get igmp_p_up_interfaces "$config" upstream_interface
config_get igmp_p_down_interfaces "$config" downstream_interface
config_get igmp_p_exceptions "$config" filter
config_get l_2_l_mcast "$config" lan_to_lan
return
fi
@@ -149,7 +142,6 @@ read_proxy() {
config_get mld_p_up_interfaces "$config" upstream_interface
config_get mld_p_down_interfaces "$config" downstream_interface
config_get mld_p_exceptions "$config" filter
config_get l_2_l_mcast "$config" lan_to_lan
return
fi
}
@@ -175,6 +167,36 @@ config_mcast_querier_params() {
echo "${protocol}-last-member-query-interval $last_mem_q_int" >> $CONFFILE
}
config_snooping_upstream_interface() {
local snooping_upstream_intf=""
json_load "$(devstatus $1)"
logger -t "mcastconf" "$(devstatus $1)"
itr=1
json_select bridge-members
# loop over the bridge and find the device on wan port
while json_get_var dev $itr; do
case "$dev" in
*.*)
port="$(echo "$dev" | cut -d'.' -f 1)"
if [ $port == $ethwan ]; then
ifconfig $dev | grep RUNNING >/dev/null && $snooping_upstream_intf="$dev" && break
fi
;;
esac
itr=$(($itr + 1))
done
json_select ..
# if none of the bridge members are on wan port, set the wan port itself
if [ -n "$snooping_upstream_intf" ]; then
echo "upstream-interface $snooping_upstream_intf" >>$CONFFILE
else
echo "upstream-interface $ethwan" >>$CONFFILE
fi
}
config_snooping_on_bridge() {
local protocol="$1"
local bcm_mcast_p=1
@@ -187,46 +209,11 @@ config_snooping_on_bridge() {
br-*)
# set snooping mode on the bridge
bcmmcastctl mode -i $snpif -p $bcm_mcast_p -m $3
# set L2L snooping mode on the bridge
bcmmcastctl l2l -i $snpif -p $bcm_mcast_p -e $l_2_l_mcast # set L2L snooping mode on the bridge
;;
esac
done
}
handle_bridged_proxy_interface() {
local p2="$1"
local p_enable=0
if [ "$p2" == "igmp" ]; then
p_enable=$igmp_p_enable
else
p_enable=$mld_p_enable
fi
if [ $p_enable -eq 1 -a $allow_brdevice -eq 1 ]
then
proxdevs="$proxdevs $2"
echo "upstream-interface $2" >>$CONFFILE
else
json_load "$(devstatus $2)"
itr=1
json_select bridge-members
while json_get_var dev $itr; do
case "$dev" in
*.*)
port="$(echo "$dev" | cut -d'.' -f 1)"
if [ $port == $ethwan ]; then
ifconfig $dev | grep RUNNING >/dev/null && proxdevs="$proxdevs $dev" && break
fi
;;
esac
itr=$(($itr + 1))
done
json_select ..
fi
}
config_mcast_proxy_interface() {
local itr
local p1="$1"
@@ -241,7 +228,8 @@ config_mcast_proxy_interface() {
for proxif in $2; do
case "$proxif" in
br-*)
handle_bridged_proxy_interface $p1 $proxif
proxdevs="$proxdevs $proxif"
echo "upstream-interface $proxif" >>$CONFFILE
;;
*)
ifconfig $proxif | grep RUNNING >/dev/null && proxdevs="$proxdevs $proxif"
@@ -253,7 +241,12 @@ config_mcast_proxy_interface() {
echo "${p1}-proxy-interfaces $proxdevs" >> $CONFFILE
fi
[ -n "$proxdevs" ] && echo "${p1}-mcast-interfaces $proxdevs" >> $CONFFILE
# if proxdevs is empty set the wan port as mcast-interface
if [ -n "$proxdevs" ]; then
echo "${p1}-mcast-interfaces $proxdevs" >> $CONFFILE
else
echo "${p1}-mcast-interfaces $ethwan" >> $CONFFILE
fi
}
configure_mcpd_snooping() {
@@ -266,14 +259,14 @@ configure_mcpd_snooping() {
if [ "$protocol" == "igmp" ]; then
config_snooping_common_params $protocol $igmp_s_version $igmp_s_robustness $igmp_s_mode
config_mcast_querier_params $protocol $igmp_s_query_interval $igmp_s_q_resp_interval $igmp_s_last_mem_q_int
config_mcast_proxy_interface $protocol "$igmp_s_iface"
config_snooping_upstream_interface "$igmp_s_iface"
config_snooping_on_bridge $protocol $igmp_s_iface $igmp_s_mode
exceptions=$igmp_s_exceptions
fast_leave=$igmp_s_fast_leave
elif [ "$protocol" == "mld" ]; then
config_snooping_common_params $protocol $mld_s_version $mld_s_robustness $mld_s_mode
config_mcast_querier_params $protocol $mld_s_query_interval $mld_s_q_resp_interval $mld_s_last_mem_q_int
config_mcast_proxy_interface $protocol "$mld_s_iface"
config_snooping_upstream_interface "$mld_s_iface"
config_snooping_on_bridge $protocol $mld_s_iface $mld_s_mode
exceptions=$mld_s_exceptions
fast_leave=$mld_s_fast_leave
@@ -350,7 +343,6 @@ disable_snooping() {
for br in $(brctl show | grep 'br-' | awk '{print$1}' | tr '\n' ' '); do
bcmmcastctl mode -i $br -p $bcm_mcast_p -m 0 # disable snooping on all bridges
bcmmcastctl l2l -i $br -p $bcm_mcast_p -e 0 # disable L2L snooping on all bridges
done
}
@@ -466,7 +458,7 @@ read_mcast_stats() {
case $line in
br-*)
found_ip=0
grp_ip="$(echo $line | awk -F ' ' '{ print $9 }')"
grp_ip="$(echo $line | awk -F ' ' '{ print $10 }')"
if [ -z "$mcast_addrs" ]; then
mcast_addrs="$grp_ip"
continue
@@ -518,7 +510,7 @@ read_mcast_stats() {
if [ "$snoop_iface" != "$intf" ]; then
continue
fi
grp_ip="$(echo $line | awk -F ' ' '{ print $9 }')"
grp_ip="$(echo $line | awk -F ' ' '{ print $10 }')"
if [ "$grp_ip" != "$gip_addr" ]; then
continue
fi
@@ -531,12 +523,12 @@ read_mcast_stats() {
fi
json_add_object ""
host_ip="$(echo $line | awk -F ' ' '{ print $13 }')"
host_ip="$(echo $line | awk -F ' ' '{ print $14 }')"
h_ip="$(ipcalc.sh $host_ip | grep IP | awk '{print substr($0,4)}')"
json_add_string "ipaddr" "$h_ip"
src_port="$(echo $line | awk -F ' ' '{ print $2 }')"
json_add_string "device" "$src_port"
timeout="$(echo $line | awk -F ' ' '{ print $14 }')"
timeout="$(echo $line | awk -F ' ' '{ print $15 }')"
json_add_int "timeout" "$timeout"
json_close_object #close the associated device object
;;

42
obudpst/Makefile Normal file
View File

@@ -0,0 +1,42 @@
#
# Copyright (c) 2020, Broadband Forum
# Copyright (c) 2020, AT&T Communications
#
include $(TOPDIR)/rules.mk
PKG_NAME:=obudpst
PKG_VERSION:=7.2.1
PKG_SOURCE_VERSION:=9c448095c9773bd7e5cea143af07817ad9f3c6ba
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/BroadbandForum/obudpst.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/obudpst
CATEGORY:=Utilities
DEPENDS+=+libopenssl
TITLE:=Open Broadband-UDP Speed Test (OB-UDPST)
endef
define Build/Install
:
endef
define Package/obudpst/description
Open Broadband-UDP Speed Test (OB-UDPST) is a client/server software utility to demonstrate
one approach of doing IP capacity measurements described by Broadband Forum TR-471.
endef
define Package/obudpst/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/udpst $(1)/usr/sbin/udpst
endef
$(eval $(call BuildPackage,obudpst))

17
obuspa/Config.in Normal file
View File

@@ -0,0 +1,17 @@
if PACKAGE_obuspa
menu "Configuration"
config OBUSPA_MTP_ENABLE_STOMP
bool "Enable STOMP as mtp protocol"
default y
config OBUSPA_MTP_ENABLE_MQTT
bool "Enable MQTT as mtp protocol"
default y
config OBUSPA_MTP_ENABLE_COAP
bool "Enable CoAP as mtp protocol"
default y
endmenu
endif

View File

@@ -5,14 +5,15 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=3.0.0.25
PKG_VERSION:=4.1.0.18
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=617c724d409bf8d44fb2bf7b4ac47bb6dfe6c0eb
PKG_SOURCE_VERSION:=af3d4663d66942e3b0e3253375c5620629769aa5
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/obuspa.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Vivek Dutta <vivek.dutta@iopsys.eu>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif
@@ -28,6 +29,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/obuspa
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=TRx69
TITLE:=USP agent
DEPENDS:=+libopenssl +libcurl +libsqlite3 +libubox +libubus +uspd +libmosquitto
endef
@@ -36,10 +38,38 @@ define Package/obuspa/description
OB-USP-AGENT is a system daemon providing a User Services Platform (USP) Agent.
endef
define Package/obuspa/config
source "$(SOURCE)/Config.in"
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-D_GNU_SOURCE
ifeq ($(CONFIG_OBUSPA_MTP_ENABLE_STOMP),y)
CONFIGURE_ARGS += \
--enable-stomp
else
CONFIGURE_ARGS += \
--disable-stomp
endif
ifeq ($(CONFIG_OBUSPA_MTP_ENABLE_MQTT),y)
CONFIGURE_ARGS += \
--enable-mqtt
else
CONFIGURE_ARGS += \
--disable-mqtt
endif
ifeq ($(CONFIG_OBUSPA_MTP_ENABLE_COAP),y)
CONFIGURE_ARGS += \
--enable-coap
else
CONFIGURE_ARGS += \
--disable-coap
endif
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
$(CP) -rf ~/git/obuspa/* $(PKG_BUILD_DIR)/
@@ -51,11 +81,11 @@ define Package/obuspa/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/obuspa
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_BIN) $(PKG_BUILD_DIR)/obuspa $(1)/usr/sbin/
$(INSTALL_BIN) ./files/etc/init.d/obuspa $(1)/etc/init.d/
$(INSTALL_DATA) ./files/etc/config/obuspa $(1)/etc/config/
$(INSTALL_BIN) ./files/etc/hotplug.d/iface/85-obuspa $(1)/etc/hotplug.d/iface/
$(INSTALL_DATA) ./files/etc/obuspa/roles.json $(1)/etc/obuspa/roles.json
$(INSTALL_DATA) ./files/etc/obuspa/dmcaching_exclude.json $(1)/etc/obuspa/dmcaching_exclude.json
endef
$(eval $(call BuildPackage,obuspa))

View File

@@ -1,16 +1,19 @@
config obuspa 'global'
option enabled 'true'
option interface 'wan'
#option ifname 'eth0.1'
option debug '0'
option enabled '1'
option interface 'loopback'
#option ifname 'lo'
option debug '1'
option log_level '1'
#option db_file '/tmp/usp.db'
option prototrace '0'
#option db_file '/etc/obuspa/usp.db'
#option role_file '/etc/obuspa/roles.json'
option dm_caching_exclude '/etc/obuspa/dmcaching_exclude.json'
#option trust_cert '/etc/obuspa/rootCA.pem'
#option client_cert '/etc/obuspa/client.pem'
#option log_dest '/var/log/obuspa'
config localagent 'localagent'
option Enable 'true'
option Enable '1'
# Adds Device.LocalAgent.Controller.
config controller 'localcontroller'
@@ -18,6 +21,7 @@ config controller 'localcontroller'
option Protocol 'MQTT'
option Topic '/usp/controller'
option mqtt 'localmqtt'
option assigned_role_name 'full_access'
# Adds Device.LocalAgent.MTP.
config mtp
@@ -30,8 +34,6 @@ config mqtt 'localmqtt'
option BrokerAddress '127.0.0.1'
option BrokerPort '1883'
option TransportProtocol 'TCP/IP'
option Username 'admin'
option Password 'admin'
# Add Device.LocalAgent.Subscription.
config subscription
@@ -41,3 +43,18 @@ config subscription
option Persistent 'true'
option controller 'localcontroller'
#config challenge 'admin'
# option Description 'Request to get Administrative access'
# option role_name 'full_access'
# option Enable '1'
# option Value 'YWRtaW4='
# option Retries 2
# option LockoutPeriod 60
#config challenge 'user'
# option Description 'Request to get User access'
# option role_name 'user'
# option Enable '1'
# option Value 'dXNlcg=='
# option Retries 3
# option LockoutPeriod 30

View File

@@ -1,9 +0,0 @@
#!/bin/sh
[ "$(uci -q get obuspa.global.interface)" == "$INTERFACE" ] || exit 0
[ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit 0
[ "$ACTION" = ifupdate -a -z "$IFUPDATE_ADDRESSES" ] && exit 0
/etc/init.d/obuspa reload

View File

@@ -1,14 +1,12 @@
#!/bin/sh /etc/rc.common
START=99
STOP=2
USE_PROCD=1
PROG=/usr/sbin/obuspa
EXTRA_COMMANDS="remove_db"
EXTRA_HELP=" remove_db Removes obuspa persistent db before restarting"
PARAM_FILE="/tmp/obuspa_param_reset.txt"
CONFIGURATION=obuspa
PARAM_FILE="/tmp/obuspa_param_reset.txt"
KEEP_FILES="/lib/upgrade/keep.d/obuspa"
USP_TEMP_FILE="/tmp/usp.tmp"
controller_num=0
@@ -16,12 +14,24 @@ mtp_num=0
stomp_num=0
mqtt_num=0
subs_num=0
challenge_num=0
index=0
role_def_file=""
PROFILE="/root/.profile"
. /lib/functions/network.sh
. /usr/share/libubox/jshn.sh
cleanup() {
if [ -f "${USP_TEMP_FILE}" ]; then
rm -f "${USP_TEMP_FILE}"
fi
}
trap cleanup EXIT
log() {
echo "${@}"|logger -t obuspa -p debug
echo "${@}"|logger -t obuspa.init -p debug
}
db_set() {
@@ -32,6 +42,19 @@ db_set() {
fi
}
update_keep() {
keep_file=${1}
if [ -z "${keep_file}" ]; then
return;
fi
grep -q "${keep_file}" ${KEEP_FILES}
if [ "$?" -ne 0 ]; then
echo ${keep_file} >> ${KEEP_FILES}
fi
}
get_index() {
index=$(( index + 1 ))
if [ "$1" = "$2" ]; then
@@ -39,10 +62,43 @@ get_index() {
fi
}
get_role_index_from_json() {
local role="${@}"
local num=0
# In case of role is empty or file not present
if [ -z "${role}" -o ! -f "${role_def_file}" ]; then
return 0
fi
json_init
json_load_file ${role_def_file}
json_select roles
json_get_keys roles_obj
for k in ${roles_obj}; do
local rname
json_select $k
json_get_var rname name
json_select ..
if [ "${rname}" != "Untrusted" -a "${rname}" != "full_access" ]; then
num=$(( num + 1 ))
fi
if [ "${role}" = "${rname}" ]; then
return ${num}
fi
done
return 0
}
get_uci_ref_index() {
local val;
[ -f ${USP_TEMP_FILE} ] && rm -f ${USP_TEMP_FILE}
[ -f "${USP_TEMP_FILE}" ] && rm -f ${USP_TEMP_FILE}
index=0
config_load $CONFIGURATION
@@ -62,21 +118,22 @@ validate_obuspa_section()
{
uci_validate_section ${CONFIGURATION} obuspa "${1}" \
'enabled:bool:true' \
'trust_cert:string' \
'client_cert:string' \
'trust_cert:file' \
'client_cert:file' \
'interface:string' \
'ifname:string:"br-lan"' \
'ifname:string:br-lan' \
'debug:bool:false' \
'prototrace:bool:false' \
'log_level:uinteger' \
'log_dest:string' \
'db_file:string'
'db_file:string' \
'role_file:file'
}
validate_localagent_section()
{
uci_validate_section ${CONFIGURATION} localagent "${1}" \
'Enable:bool:true' \
'ParameterName:string:Device.DeviceInfo.SoftwareVersion' \
'EndpointID:string'
}
@@ -85,7 +142,8 @@ validate_controller_section()
uci_validate_section ${CONFIGURATION} controller "${1}" \
'EndpointID:string' \
'Enable:bool:true' \
'AssignedRole:string:Device.LocalAgent.ControllerTrust.Role.1' \
'AssignedRole:string' \
'assigned_role_name:string' \
'PeriodicNotifInterval:uinteger:86400' \
'PeriodicNotifTime:string' \
'USPNotifRetryMinimumWaitInterval:uinteger:5' \
@@ -95,9 +153,10 @@ validate_controller_section()
'Reference:string' \
'Destination:string:controller-notify-dest' \
'Topic:string' \
'coap_host:string' \
'ParameterName:list(string)' \
'coap_host:host' \
'coap_path:string' \
'coap_port:uinteger' \
'coap_port:port' \
'mqtt:string' \
'stomp:string'
}
@@ -124,7 +183,7 @@ validate_mtp_section()
'PublishQoS:uinteger' \
'Destination:string' \
'coap_path:string' \
'coap_port:uinteger' \
'coap_port:port' \
'mqtt:string' \
'stomp:string'
}
@@ -132,12 +191,12 @@ validate_mtp_section()
validate_stomp_connection_section()
{
uci_validate_section ${CONFIGURATION} stomp "${1}" \
'Host:string:usp-controller.com' \
'Host:host' \
'Username:string' \
'Password:string' \
'encryption:bool:true' \
'Enable:bool:true' \
'Port:uinteger:61613' \
'Port:port:61613' \
'VirtualHost:string:/' \
'EnableHeartbeats:bool:true' \
'OutgoingHeartbeat:uinteger:30000' \
@@ -150,13 +209,13 @@ validate_stomp_connection_section()
validate_mqtt_client_section()
{
uci_validate_section ${CONFIGURATION} mqtt "${1}" \
'BrokerAddress:string' \
'BrokerPort:uinteger:1883' \
'BrokerAddress:host' \
'BrokerPort:port:1883' \
'Enable:bool:true' \
'Username:string' \
'Password:string' \
'ProtocolVersion:string:5.0' \
'TransportProtocol:string:TCP/IP' \
'ProtocolVersion:or("3.1", "3.1.1","5.0"):5.0' \
'TransportProtocol:or("TCP/IP","TLS"):TCP/IP' \
'KeepAliveTime:uinteger:60' \
'ClientID:string' \
'ConnectRetryTime:uinteger:5' \
@@ -164,9 +223,55 @@ validate_mqtt_client_section()
'ConnectRetryMaxInterval:uinteger:60'
}
get_oui_from_db() {
local oui="$(db get device.deviceinfo.ManufacturerOUI)"
echo "${oui}"
}
get_serial_from_db() {
local serial="$(db get device.deviceinfo.SerialNumber)"
# this can encoded further
echo "${serial}"
}
publish_endpoint() {
local AgentEndpointID serial oui user pass
local opt=""
# return if mosquitto_pub is not present
if [ ! "$(which mosquitto_pub)" ]; then
log "mosquitto_pub not present can't publish EndpointID"
return 0;
fi
# Get endpoint id from obuspa config first
config_load obuspa
config_get AgentEndpointID localagent EndpointID ""
if [ -z "${AgentEndpointID}" ]; then
serial=$(get_serial_from_db)
oui=$(get_oui_from_db)
AgentEndpointID="os::${oui}-${serial}"
fi
config_get user localmqtt Username
if [ -n "${user}" ]; then
opt="-u ${user}"
fi
config_get pass localmqtt Password
if [ -n "${pass}" ]; then
opt="${opt} -P ${pass}"
fi
# publish Agent's EndpointID in mosquito broker for discovery by usp-js
# This is a work around till obuspa adds supports for mDNS discovery
log "Publishing EndpointID ${AgentEndpointID} to local mqtt broker"
mosquitto_pub -r -t "obuspa/EndpointID" -m "${AgentEndpointID}" ${opt}
}
configure_localagent() {
local Enable ParameterName EndpointID
local _num
validate_localagent_section 'localagent' || {
log "Validation of localagent section failed"
@@ -177,29 +282,20 @@ configure_localagent() {
db_set Device.LocalAgent.EndpointID "${EndpointID}"
fi
_num=1
while [ ${_num} -le ${controller_num} ]
do
db_set Device.LocalAgent.Controller.${_num}.BootParameter.1.Alias "cpe-1"
db_set Device.LocalAgent.Controller.${_num}.BootParameter.1.Enable "${Enable}"
db_set Device.LocalAgent.Controller.${_num}.BootParameter.1.ParameterName "${ParameterName}"
_num=$(( ${_num} + 1 ))
done
db_set
}
configure_controller() {
local EndpointID Enable AssignedRole PeriodicNotifInterval PeriodicNotifTime USPNotifRetryMinimumWaitInterval
local USPNotifRetryIntervalMultiplier ControllerCode Protocol Destination coap_host coap_path coap_port
local Reference Topic mqtt stomp
local Reference Topic mqtt stomp assigned_role_name
validate_controller_section "${1}" || {
log "Validation of controller section failed"
return 1;
}
if [ -z ${EndpointID} -o -z ${Protocol} ]; then
if [ -z "${EndpointID}" -o -z "${Protocol}" ]; then
log "controller:: EndpointID id and Protocol cannot be empty"
return 1;
fi
@@ -209,17 +305,17 @@ configure_controller() {
return 1;
fi
if [ -z ${Reference} ]; then
if [ ${Protocol} = "STOMP" ]; then
if [ -z "${Reference}" ]; then
if [ "${Protocol}" = "STOMP" ]; then
val=$(get_uci_ref_index stomp ${stomp})
if [ ${val} -eq 0 ]; then
if [ "${val}" -eq 0 ]; then
log "Not able to find the referred stomp section"
return 1;
fi
Reference="Device.STOMP.Connection.${val}"
elif [ ${Protocol} = "MQTT" ]; then
elif [ "${Protocol}" = "MQTT" ]; then
val=$(get_uci_ref_index mqtt ${mqtt})
if [ ${val} -eq 0 ]; then
if [ "${val}" -eq 0 ]; then
log "Not able to find the referred mqtt section"
return 1;
fi
@@ -232,7 +328,15 @@ configure_controller() {
db_set Device.LocalAgent.Controller.${controller_num}.Alias "cpe-${controller_num}"
db_set Device.LocalAgent.Controller.${controller_num}.Enable "${Enable}"
db_set Device.LocalAgent.Controller.${controller_num}.EndpointID "${EndpointID}"
#db_set Device.LocalAgent.Controller.${controller_num}.AssignedRole "${AssignedRole}"
if [ -n "${AssignedRole}" ]; then
db_set Device.LocalAgent.Controller.${controller_num}.AssignedRole "${AssignedRole}"
else
if [ -n "${assigned_role_name}" ]; then
AssignedRole=$(get_role_index ${assigned_role_name})
db_set Device.LocalAgent.Controller.${controller_num}.AssignedRole "${AssignedRole}"
fi
fi
db_set Device.LocalAgent.Controller.${controller_num}.PeriodicNotifInterval "${PeriodicNotifInterval}"
if [ -n "${PeriodicNotifTime}" ]; then
db_set Device.LocalAgent.Controller.${controller_num}.PeriodicNotifTime "${PeriodicNotifTime}"
@@ -261,6 +365,17 @@ configure_controller() {
log "Unsupported Protocol ${Protocol}"
fi
local param
local _pnum=1
for param in ${ParameterName}
do
db_set Device.LocalAgent.Controller.${controller_num}.BootParameter.${_pnum}.Alias "cpe-${_pnum}"
db_set Device.LocalAgent.Controller.${controller_num}.BootParameter.${_pnum}.Enable "${Enable}"
db_set Device.LocalAgent.Controller.${controller_num}.BootParameter.${_pnum}.ParameterName "${param}"
_pnum=$(( ${_pnum} + 1 ))
done
db_set
}
@@ -277,9 +392,9 @@ configure_subscription(){
log "No recipient for subscription"
fi
if [ -z ${Recipient} ]; then
if [ -z "${Recipient}" ]; then
val=$(get_uci_ref_index controller ${controller})
if [ ${val} -eq 0 ]; then
if [ "${val}" -eq 0 ]; then
log "Not able to find the referred controller section"
return 1;
fi
@@ -297,6 +412,95 @@ configure_subscription(){
db_set Device.LocalAgent.Subscription.${subs_num}.Recipient "${Recipient}"
}
validate_challenge_section()
{
uci_validate_section ${CONFIGURATION} challenge "${1}" \
'Enable:bool:true' \
'Alias:string' \
'Description:string' \
'role_name:string' \
'Role:string' \
'Value:string' \
'Retries:uinteger:3' \
'LockoutPeriod:uinteger:0'
}
check_json_load()
{
local ret=0
if [ -f "${role_def_file}" ]; then
json_init
json_load_file "${role_def_file}" 2>&1 |grep -q Failed
if [ $? -eq 0 ]; then # In case of invalid json file
log "failed to load [${role_def_file}]"
ret=1
fi
fi
json_init
return ${ret}
}
get_role_index() {
local role="Device.LocalAgent.ControllerTrust.Role"
local idx=0
local role_name="${@}"
case "${role_name}" in
'full_access')
idx=1;
;;
'Untrusted')
idx=2;
;;
*)
local ji=0
check_json_load
if [ $? -eq 0 ]; then
get_role_index_from_json ${role_name}
ji=$?
fi
idx=$(( ji + 2 )) # Add predefined roles
esac
echo "${role}.${idx}"
}
configure_challenges() {
local Enable Description role_name Role Value Retries LockoutPeriod Alias
validate_challenge_section "${1}" || {
log "Validation of challenge section failed"
exit 1;
}
if [ -z "${role_name}" -a -z "${Role}" ]; then
log "Either role_name or Role must defined for a challenge";
return 1;
fi
challenge_num=$(( challenge_num + 1))
db_set Device.LocalAgent.ControllerTrust.Challenge.${challenge_num}.Enable "${Enable}"
if [ -n "${Description}" ]; then
db_set Device.LocalAgent.ControllerTrust.Challenge.${challenge_num}.Description "${Description}"
fi
if [ -z "${Role}" ]; then
Role=$(get_role_index ${role_name})
fi
if [ -z "${Alias}" -a -n "${role_name}" ]; then
Alias=${role_name}
fi
db_set Device.LocalAgent.ControllerTrust.Challenge.${challenge_num}.Alias "${Alias}"
db_set Device.LocalAgent.ControllerTrust.Challenge.${challenge_num}.Role "${Role}"
db_set Device.LocalAgent.ControllerTrust.Challenge.${challenge_num}.Value "${Value}"
db_set Device.LocalAgent.ControllerTrust.Challenge.${challenge_num}.Retries "${Retries}"
db_set Device.LocalAgent.ControllerTrust.Challenge.${challenge_num}.LockoutPeriod "${LockoutPeriod}"
}
configure_mtp() {
local Enable Protocol Reference ResponseTopicConfigured PublishQoS
local stomp mqtt
@@ -306,17 +510,17 @@ configure_mtp() {
return 1;
}
if [ -z ${Reference} ]; then
if [ ${Protocol} = "STOMP" ]; then
if [ -z "${Reference}" ]; then
if [ "${Protocol}" = "STOMP" ]; then
val=$(get_uci_ref_index stomp ${stomp})
if [ ${val} -eq 0 ]; then
if [ "${val}" -eq 0 ]; then
log "Referred stomp section not found"
return 1;
fi
Reference="Device.STOMP.Connection.${val}"
elif [ ${Protocol} = "MQTT" ]; then
elif [ "${Protocol}" = "MQTT" ]; then
val=$(get_uci_ref_index mqtt ${mqtt})
if [ ${val} -eq 0 ]; then
if [ "${val}" -eq 0 ]; then
log "Referred mqtt section not found"
return 1;
fi
@@ -366,7 +570,7 @@ configure_stomp_connection() {
db_set Device.STOMP.Connection.${stomp_num}.Alias "cpe-${stomp_num}"
db_set Device.STOMP.Connection.${stomp_num}.Enable "${Enable}"
db_set Device.STOMP.Connection.${stomp_num}.Port "${Port}"
db_set Device.STOMP.Connection.${stomp_num}.X_ARRIS-COM_EnableEncryption "${encryption}"
db_set Device.STOMP.Connection.${stomp_num}.EnableEncryption "${encryption}"
db_set Device.STOMP.Connection.${stomp_num}.VirtualHost "${VirtualHost}"
db_set Device.STOMP.Connection.${stomp_num}.EnableHeartbeats "${EnableHeartbeats}"
db_set Device.STOMP.Connection.${stomp_num}.OutgoingHeartbeat "${OutgoingHeartbeat}"
@@ -412,24 +616,27 @@ configure_mqtt_client(){
configure_obuspa() {
local enabled trust_cert ifname interface debug log_level db_file log_dest
local enabled trust_cert ifname interface debug prototrace log_level db_file log_dest role_file
validate_obuspa_section "global" || {
log "Validation of global section failed"
return 1;
}
[ ${enabled} -eq 0 ] && exit 0
role_def_file="${role_file}"
if [ ${debug} -eq 1 ]; then
if [ "${debug}" -eq 1 ]; then
# Forward stdout of the command to logd
procd_set_param stdout 1
# Same for stderr
procd_set_param stderr 1
fi
if [ "${debug}" -eq 1 -a "${prototrace}" -eq 1 ]; then
procd_append_param command -p
fi
if [ -n ${log_level} ]; then
if [ "${debug}" -eq 1 -a -n "${log_level}" ]; then
procd_append_param command -v ${log_level}
fi
@@ -438,28 +645,37 @@ configure_obuspa() {
fi
if [ -n "${interface}" ]; then
network_get_device ifname ${interface}
log "ifname from ${interface} is ${ifname}"
network_get_physdev ifname ${interface}
fi
# Set this variable for root user and obuspa -c tool
grep -q "export USP_BOARD_IFNAME=${ifname}" /root/.profile || \
echo "export USP_BOARD_IFNAME=${ifname}" >> /root/.profile
if [ -f "${PROFILE}" ]; then
grep -q "export USP_BOARD_IFNAME=${ifname}" ${PROFILE}
if [ "$?" -ne 0 ]; then
grep -q "export USP_BOARD_IFNAME" ${PROFILE}
if [ "$?" -eq 0 ]; then
sed -i "g/export USP_BOARD_IFNAME/d" ${PROFILE}
fi
echo "export USP_BOARD_IFNAME=${ifname}" >> ${PROFILE}
fi
else
echo "export USP_BOARD_IFNAME=${ifname}" > ${PROFILE}
fi
if [ -n "${db_file}" ]; then
echo "${db_file}" >>${KEEP_FILES}
update_keep "${db_file}"
procd_append_param command -f ${db_file}
fi
if [ -n "${trust_cert}" ]; then
echo "${trust_cert}" >>${KEEP_FILES}
update_keep "${trust_cert}"
if [ -f "${trust_cert}" ]; then
procd_append_param command -t ${trust_cert}
fi
fi
if [ -n "${client_cert}" ]; then
echo "${client_cert}" >>${KEEP_FILES}
update_keep "${client_cert}"
if [ -f "${client_cert}" ]; then
procd_append_param command -a ${client_cert}
fi
@@ -470,10 +686,6 @@ configure_obuspa() {
# Create factory reset file
db_init() {
[ -f ${PARAM_FILE} ] && rm -f ${PARAM_FILE}
[ -f /tmp/usp.db ] && rm -f /tmp/usp.db
[ -f ${KEEP_FILES} ] && rm -f ${KEEP_FILES}
# Load configuration
config_load $CONFIGURATION
config_foreach configure_obuspa obuspa
@@ -483,61 +695,24 @@ db_init() {
config_foreach configure_stomp_connection stomp
config_foreach configure_mqtt_client mqtt
config_foreach configure_subscription subscription
config_foreach configure_challenges challenge
db_set Internal.Reboot.Cause "LocalFactoryReset"
}
# if uci changes for obuspa remove persistent db and then reload
remove_db() {
local db_file
config_load obuspa
config_get db_file global db_file
log "Removing db file (${db_file})"
[ -f ${db_file} ] && rm -f ${db_file}
sed -i "g/export USP_BOARD_IFNAME/d" /root/.profile
log "Restarting service"
stop
start
}
service_running() {
local AgentEndpointID serial oui user pass
local opt=""
ubus -t 10 wait_for usp.raw
config_load obuspa
config_get AgentEndpointID localagent EndpointID ""
if [ -z "${AgentEndpointID}" ]; then
serial=$(ubus -t 1 call usp.raw get '{"path":"Device.DeviceInfo.SerialNumber"}'|jsonfilter -e '@["parameters"][0].value')
oui=$(ubus -t 1 call usp.raw get '{"path":"Device.DeviceInfo.ManufacturerOUI"}'|jsonfilter -e '@["parameters"][0].value')
AgentEndpointID="os::${oui}-${serial}"
fi
config_get user localmqtt Username
if [ -n "${user}" ]; then
opt="-u ${user}"
fi
config_get pass localmqtt Password
if [ -n "${pass}" ]; then
opt="${opt} -P ${pass}"
fi
# publish Agent's EndpointID in mosquito broker for discovery
# This is a work around till obuspa does not support advertising
log "Publishing EndpointID ${AgentEndpointID} to local mqtt broker"
mosquitto_pub -r -t "obuspa/EndpointID" -m "${AgentEndpointID}" ${opt}
procd_running ${CONFIGURATION}
publish_endpoint
}
start_service() {
ubus wait_for usp.raw
if [ "$?" -ne 0 ]; then
log "OBUSPA failed to start usp.raw not available"
exit 0
local enabled
config_load obuspa
config_get enabled global enabled
if [ "${enabled}" -eq 0 ]; then
log "OBUSPA not enabled"
return 0;
fi
procd_open_instance ${CONFIGURATION}
@@ -553,7 +728,19 @@ start_service() {
}
stop_service() {
local db_file
config_load obuspa
config_get db_file global db_file
${PROG} -c stop 2>&1 >/dev/null
if [ -z "${db_file}" ]; then
db_file="/tmp/usp.db"
fi
[ -f "${db_file}" ] && rm -f ${db_file}
[ -f "${PARAM_FILE}" ] && rm -f ${PARAM_FILE}
}
reload_service() {
@@ -562,8 +749,7 @@ reload_service() {
}
service_triggers() {
procd_add_reload_trigger "uspd" "mosquitto"
procd_add_config_trigger "config.change" "${CONFIGURATION}" /etc/init.d/obuspa remove_db
procd_add_reload_trigger "obuspa" "mosquitto"
# Create a reload trigger if schema update avaialble
procd_open_trigger
@@ -582,13 +768,7 @@ service_triggers() {
json_add_string "" "reload"
json_close_array
json_close_array
json_add_int "" "1000"
json_add_int "" "2000"
json_close_array
procd_close_trigger
# local interface
# config_load obuspa
# config_get interface global interface
# [ -n "$interface" ] && procd_add_interface_trigger "interface.*" "$interface" /etc/init.d/obuspa reload
}

View File

@@ -0,0 +1,6 @@
{
"dmcaching_exclude": [
"Device.DeviceInfo.ProcessStatus.Process.",
"Device.Hosts.Host."
]
}

View File

@@ -0,0 +1,97 @@
{
"roles": [
{
"name": "admin",
"permission": [
{
"object": "Device.",
"perm": [
"PERMIT_NONE"
]
},
{
"object": "Device.DeviceInfo.",
"perm": [
"PERMIT_GET",
"PERMIT_GET_INST"
]
},
{
"object": "Device.WiFi.",
"perm": [
"PERMIT_GET",
"PERMIT_SET",
"PERMIT_ADD",
"PERMIT_DEL",
"PERMIT_OPER",
"PERMIT_SUBS_VAL_CHANGE",
"PERMIT_SUBS_OBJ_ADD",
"PERMIT_SUBS_OBJ_DEL",
"PERMIT_SUBS_EVT_OPER_COMP",
"PERMIT_GET_INST",
"PERMIT_OBJ_INFO",
"PERMIT_CMD_INFO"
]
},
{
"object": "Device.IP.",
"perm": [
"PERMIT_GET",
"PERMIT_GET_INST"
]
}
]
},
{
"name": "user",
"permission": [
{
"object": "Device.",
"perm": [
"PERMIT_NONE"
]
},
{
"object": "Device.DeviceInfo.",
"perm": [
"PERMIT_GET",
"PERMIT_GET_INST"
]
},
{
"object": "Device.WiFi.",
"perm": [
"PERMIT_GET",
"PERMIT_OPER",
"PERMIT_SUBS_VAL_CHANGE",
"PERMIT_SUBS_OBJ_ADD",
"PERMIT_SUBS_OBJ_DEL",
"PERMIT_SUBS_EVT_OPER_COMP",
"PERMIT_GET_INST",
"PERMIT_OBJ_INFO",
"PERMIT_CMD_INFO"
]
},
{
"object": "Device.IP.",
"perm": [
"PERMIT_GET",
"PERMIT_GET_INST"
]
}
]
},
{
"name": "undefined-1"
},
{
"name": "undefined-2"
},
{
"name": "undefined-3"
},
{
"name": "undefined-4"
}
]
}

View File

@@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=owsd
PKG_VERSION:=1.1.2
PKG_VERSION:=1.1.3
PKG_RELEASE:=1
PKG_SOURCE_PROTO=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/owsd.git
PKG_SOURCE_VERSION:=fd696e9d1be8278db3eb1d9be97e1a66afd6e1f6
PKG_SOURCE_VERSION:=f78f7198944758cd2140887ecd8970432f678fc1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}

View File

@@ -1,5 +1,6 @@
config owsd 'global'
option sock '/var/run/ubus.sock'
option enable '0'
# option sock '/var/run/ubus/ubus.sock'
option www '/www'
# option redirect '/cgi-bin/luci:/cacheflush.html'
# option www_maxage '3600'

View File

@@ -2,19 +2,6 @@
[ "$ACTION" = ifup ] || exit 0
handle_interface() {
ifname=$(uci get network.$1.ifname)
case "$ifname" in
@*)
alias_interface="$1 $alias_interface"
;;
esac
}
config_load network
config_foreach handle_interface "interface"
compare_owsd_iface() {
local interface
@@ -24,13 +11,6 @@ compare_owsd_iface() {
/etc/init.d/owsd reload
exit
fi
for i in $alias_interface; do
if [ "$INTERFACE" == "$i" ]; then
/etc/init.d/owsd reload
exit
fi
done
}
config_load owsd

View File

@@ -124,6 +124,7 @@ validate_owsd_ubusproxy() {
validate_owsd_global() {
uci_validate_section "owsd" "owsd" "global" \
'enable:bool:1' \
'sock:string' \
'redirect:string' \
'www:string' \
@@ -288,8 +289,8 @@ parser_timeout()
#data format is digital with time unit
#10s-10 seconds 10m-10 minutes 10h-10 hours 10d-10 days
if [ -n "$1" ]; then
flag=$(echo "$1"| tr -d [0-9] | tr '[A-Z]' '[a-z]')
data=$(echo "$1"| tr -cd [0-9])
flag=$(echo "$1"| tr -d '0-9' | tr 'A-Z' 'a-z')
data=$(echo "$1"| tr -cd '0-9')
case $flag in
m)
@@ -320,6 +321,10 @@ start_service() {
load_dhcp_domains
config_load owsd # note: do not overload a config while parsing it
config_get_bool owsd_enable global enable 1
[ $owsd_enable -eq 1 ] || return 0
procd_open_instance
procd_set_param command $PROG

52
periodicstats/Makefile Normal file
View File

@@ -0,0 +1,52 @@
#
# Copyright (C) 2021 IOPSYS
#
include $(TOPDIR)/rules.mk
PKG_NAME:=periodicstats
PKG_VERSION:=1.1.0
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=7426c7458f792cc66920c206d62869c5620f1400
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/periodicstats.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/periodicstats
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Periodic Statistics Daemon
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c +libbbf_api
endef
define Package/periodicstats/description
Manage periodic statistics
endef
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
$(CP) -rf ./periodicstats/* $(PKG_BUILD_DIR)/
endef
endif
define Package/periodicstats/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/lib/bbfdm
$(CP) $(PKG_BUILD_DIR)/bbf_plugin/libperiodicstats.so $(1)/usr/lib/bbfdm
$(INSTALL_BIN) $(PKG_BUILD_DIR)/periodicstatsd $(1)/usr/sbin
endef
$(eval $(call BuildPackage,periodicstats))

View File

@@ -0,0 +1,4 @@
config globals 'globals'
option enable '0'
option base_interval '5'

View File

@@ -0,0 +1,34 @@
#!/bin/sh /etc/rc.common
START=99
STOP=10
USE_PROCD=1
PROG=/usr/sbin/periodicstatsd
service_running() {
ubus -t 10 wait_for usp.raw
}
start_service() {
enable=$(uci -q get periodicstats.globals.enable)
if [ "$(enable)" != "1" ]; then
return 0;
fi
procd_open_instance periodicstatsd
procd_set_param command ${PROG}
procd_set_param respawn
procd_close_instance
}
service_triggers() {
procd_add_reload_trigger periodicstats uspd
}
reload_service() {
stop
start
}

View File

@@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=peripheral_manager
PKG_VERSION:=1.0.5
PKG_VERSION:=1.0.6
PKG_RELEASE:=1
PKG_SOURCE_VERSION:=d9c22221f6cb414126978c92295fdcc0885e3285
PKG_SOURCE_VERSION:=15ba90f01914113e7c5e8f8a6df6279c882e8265
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/peripheral-manager
@@ -38,27 +38,15 @@ define Package/peripheral_manager
CATEGORY:=Utilities
TITLE:=Application deamon for handling of peripheral
URL:=
DEPENDS:=+libuci +libubus +libblobmsg-json @+PACKAGE_bcmkernel:bcmkernel PACKAGE_bcmkernel:bcmkernel
DEPENDS:=+libuci +libubus +libblobmsg-json
endef
define Package/peripheral_manager/description
Application handling peripheral
endef
TARGET_CFLAGS := \
-I$(STAGING_DIR)/usr/include/bcm963xx/shared/opensource/include/bcm963xx \
-I$(STAGING_DIR)/usr/include/bcm963xx/bcmdrivers/opensource/include/bcm963xx \
$(TARGET_CFLAGS)
PERIPHERAL_OPTONS:=-DSELECT_BRCM_BOARD=0
ifneq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),)
PERIPHERAL_OPTONS:= -DSELECT_BRCM_BOARD=1
endif
CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE:String="Release" \
$(PERIPHERAL_OPTONS) \
define Package/peripheral_manager/install
$(CP) ./files/* $(1)/

View File

@@ -6,11 +6,11 @@ usage () {
}
[ $# -ne 1 ] && usage
ledstate=$(echo $1 | tr '[A-Z]' '[a-z]')
ledstate=$(echo $1 | tr 'A-Z' 'a-z')
case $ledstate in
normal|test|allon|alloff|production)
ubus call leds set "{\"state\" : \"$ledstate\"}"
ubus call leds set "{\"state\" : \"$ledstate\"}"
;;
*)
usage

38
ponmngr/Makefile Normal file
View File

@@ -0,0 +1,38 @@
#
# Copyright (C) 2013-2021 iopsys
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=ponmngr
PKG_VERSION:=1.0.0
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/ponmngr
CATEGORY:=Utilities
TITLE:=ponmngr packets manager daemon
endef
define Package/ponmngr/description
Configures pon
endef
#define Build/Prepare
# $(CP) -rf ./ponmngr/* $(PKG_BUILD_DIR)/
#endef
define Build/Compile
endef
define Package/ponmngr/install
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,ponmngr))

36
ponmngr/files/etc/init.d/pon Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/sh /etc/rc.common
START=98
STOP=10
USE_PROCD=1
NAME=ponmngr
PROG="/usr/sbin/omcid start"
include /lib/pon
start_service() {
if [ -f "/etc/config/pon" ]; then
procd_open_instance $NAME
procd_set_param command ${PROG}
procd_set_param respawn
procd_close_instance
start_gpon
fi
}
boot() {
start
}
stop_service() {
service_stop ${PROG}
stop_gpon
}
reload_service() {
stop
start
}

View File

@@ -0,0 +1,27 @@
#!/bin/sh
basemac="$(db -q get hw.board.basemac | tr -d ':')"
if [ -s "/etc/config/pon" ]; then
if uci -q get pon.globals >/dev/null; then
# return if there is any valid content
exit
else
rm -f /etc/config/pon
fi
fi
touch /etc/config/pon
mac=''
if [ -z "$basemac" ]; then
mac="12345678"
else
# read last 8 characters of basemac without :
mac=${basemac: -8}
fi
uci set pon.globals=globals
uci set pon.globals.enabled="1"
uci set pon.globals.serial_number="BRCM$mac"
uci commit pon

View File

@@ -0,0 +1,70 @@
#!/bin/sh
. /lib/functions.sh
. /usr/share/libubox/jshn.sh
configure_snpwd() {
local serial_no password
serial_no="$1"
password="$2"
# serial number comprises of 2 parts, vendor id and vendor specific, the vendor id is
# a string while the vendor specific is a hex, so split the 2 and set accordingly
local vendor_id vendor_specific
vendor_id=${serial_no:0:4}
vendor_specific=${serial_no: -8}
# attempt to conver vendor_id from string to hex
vendor_id=$(echo $vendor_id | hexdump -e '4/1 "%02X" "\n"')
vendor_id=${vendor_id:0:8}
bdmf_shell -c `cat /var/bdmf_sh_id` -cmd /b/configure gpon onu_sn={vendor_id=$vendor_id,vendor_specific=$vendor_specific}
if [ -n "$password" ]; then
password=$(echo $password | hexdump -n ${#password} -e '16/1 "%02X""\n"')
bdmf_shell -c `cat /var/bdmf_sh_id` -cmd /b/configure gpon password=$password
fi
}
configure_gpon() {
local enabled serial_no password
config_load pon
config_get enabled globals "enabled"
if [ "$enabled" == "0" ]; then
exit
fi
config_get serial_no globals "serial_number"
config_get password globals "password"
configure_snpwd $serial_no $password
}
start_gpon() {
if [ -n "$(which gponctl)" ]; then
configure_gpon
gponctl start
fi
}
stop_gpon() {
if [ -n "$(which gponctl)" ]; then
gponctl stop
fi
}
get_gpon_status() {
json_init
status="$(gponctl getstate)"
admin_status="$(echo $status | head -n1 | awk '{print $8;}')"
json_add_string "admin_status" "$admin_status"
op_status="$(echo $status | head -n1 | awk '{print $12;}')"
case $op_status in
NUMBER)
op_status="$(echo $status | head -n1 | awk '{print $13;}')"
;;
esac
op_status=${op_status:1:2}
json_add_string "operational_status" "$op_status"
json_dump
}

View File

@@ -0,0 +1,19 @@
#!/bin/sh
. /usr/share/libubox/jshn.sh
. /lib/functions.sh
include /lib/pon
case "$1" in
list)
echo '{ "status": {} }'
;;
call)
case "$2" in
status)
get_gpon_status
;;
esac
;;
esac

View File

@@ -1,19 +1,9 @@
#!/bin/sh
. /lib/network/utils.sh
populate_config_from_db() {
. /lib/network/utils.sh
populate_config(){
if [ -s "/etc/config/ports" ]; then
if uci -q get ports.@ethport[0] >/dev/null; then
# return if there is any valid content
return 0
else
rm -f /etc/config/ports
fi
fi
touch /etc/config/ports
local portorder="$(db -q get hw.board.ethernetPortOrder)"
portorder="$(db -q get hw.board.ethernetPortOrder)"
for port in $portorder; do
uci add ports ethport
uci rename ports.@ethport[-1]="$(get_port_name $port)"
@@ -35,4 +25,44 @@ populate_config(){
uci commit ports
}
[ -f /sbin/db -a -f /etc/board-db/config/hw ] && populate_config
populate_config_from_device_tree() {
for port in $(find /proc/device-tree/ -name "port@*"); do
port="$(cat $port/label)"
[ -n "$port" ] || continue
[ "$port" = "cpu" ] && continue
PORT="$(echo $port | tr '[a-z]' '[A-Z]')"
uci add ports ethport
uci rename ports.@ethport[-1]="$PORT"
uci set ports.@ethport[-1].enabled=1
uci set ports.@ethport[-1].name="$PORT"
uci set ports.@ethport[-1].ifname="$port"
uci set ports.@ethport[-1].speed=1000
uci set ports.@ethport[-1].duplex="full"
uci set ports.@ethport[-1].autoneg=1
uci set ports.@ethport[-1].eee=0
if [ "$port" = "wan" ]; then
uci set ports.@ethport[-1].pause=1
uci set ports.@ethport[-1].uplink=1
else
uci set ports.@ethport[-1].pause=0
fi
done
uci commit ports
}
if [ -s "/etc/config/ports" ]; then
if uci -q get ports.@ethport[0] >/dev/null; then
# exit if there is any valid content
exit 0
else
rm -f /etc/config/ports
fi
fi
touch /etc/config/ports
if [ -f /sbin/db ] && [ -f /etc/board-db/config/hw ]; then
populate_config_from_db
elif [ -d /proc/device-tree/ ]; then
populate_config_from_device_tree
fi

View File

@@ -1,55 +0,0 @@
#
# Copyright (C) 2021 Iopsys
#
include $(TOPDIR)/rules.mk
PKG_NAME:=prj-unish
PKG_VERSION:=0.2.0
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=8df9d23366407f239946d64f539ad839f556a780
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/prj-unish.git
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
PKG_MIRROR_HASH:=skip
endif
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/prj-unish
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Project unish
DEPENDS:=+libwifi +libuci +libubox +ubus +libpthread +libnl-genl
endef
define Package/prj-unish/description
This package provides unish-paanch.
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-I$(STAGING_DIR)/usr/include/libnl3 \
-D_GNU_SOURCE
MAKE_PATH:=src
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
rsync -r --exclude=.* ~/git/prj-unish/ $(PKG_BUILD_DIR)/
endef
endif
define Package/prj-unish/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/i1905d $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,prj-unish))

View File

@@ -1,23 +0,0 @@
config ieee1905 'ieee1905'
option enabled '1'
option extension 0
option macaddress 'aa:aa:aa:10:20:30'
option registrar '2 5'
config ap
option band '2'
option ssid 'TestSSID.2'
option encryption 'psk2'
option key '5555500000'
config ap
option band '5'
option ssid 'TestSSID.5'
option encryption 'psk2'
option key '2222200000'
config al-iface
option enabled 1
option ifname 'br-lan'
option type 'bridge'

Some files were not shown because too many files have changed in this diff Show More