Commit Graph

667 Commits

Author SHA1 Message Date
Conrad Lara - KG6JEI e5fc675cfc bugfix: OTA Upgrade fails with static WAN.
Wan interface settings are not correctly copied
over after an OTA causing node-setup to fail
when using a static WAN ip.

fixes->AREDN🎫226

Change-Id: I494c05bc0047f1db4c1452cbdbd8e236f4fcd945
2017-04-20 12:41:09 -07:00
Conrad Lara - KG6JEI 60e2310917 bugfix: Remove references to Status 4 LED
AirRouter does not have a Status 4 LED.

The Power LED does similar to the Status 4 on the AirRouter.

Changing the text to be more generic removing reference
to LED's and leave the documentation of how to know
a node has booted to be done elsewhere.

fixes AREDN->ticket:208

Change-Id: I8821f86e89e17d25e4a21abfdd94d989619d081a
2017-04-12 02:32:44 +00:00
Conrad Lara - KG6JEI 835d7e021c bugfix: Upgrades of packages leaves node in upgrade mode.
Due to the removal of odhcpd in
I0897be587cd1f46da758dda3efe65aea32c8a965
uploadctlservices no longer returns successfully.

Remove odhcpd to allow to return correctly.

Change-Id: I8e4bc2ff5846b793e31ce5ffedfba91806df7ed1
2017-04-11 19:26:28 -07:00
Conrad Lara - KG6JEI 474c7e4b86 build: bugfix: Set package repo URL on release build
For example when building 3.17.1.0b01 for Ubiquiti devices
packages would be found at:
http://downloads.aredn.org/releases/3/17/3.17.1.0b01/ar71xx/generic/packages/

This makes BUILD_SET_VERSION setable only for release builds
and not snapshots or development builds.

Change-Id: Ie6218c5e935c48475ed77023131314a7bef890ef
2017-04-09 05:41:04 +00:00
Conrad Lara - KG6JEI 2415c56c3e bugfix: sysupgrade needs more tmpfs space.
Increase space on tmpfs just before launching sysupgrade
when the device has had tmpfs limited to 6.5mb

Change-Id: I5b27e6812017c4cbe5d9cb3f53cb04d09892edf4
2017-04-04 23:31:50 -07:00
Darryl Quinn 7d8496282b bugfix: remove unnecessary packages in order to reduce memory footprint
Change-Id: I0897be587cd1f46da758dda3efe65aea32c8a965
2017-04-04 03:11:46 +00:00
Conrad Lara - KG6JEI a57d5cd08c bugfix: olsrd-watchdog false reports
olsrd-watchdog can trigger when the olsrd service is restarted
Such as when a tunnel comes up, or when a config change is
made to olsrd.

procd already monitors olsrd and makes sure it remains running.

With procd we no longer need olsrd-watchdog and can remove it.

fixes AREDN->ticket:215

Change-Id: I5067d380a22bd0ab5e597746478ef3e1ba05d72d
2017-03-31 19:34:49 +00:00
Conrad Lara - KG6JEI 9c0f5bf7c6 bugfix: DHCP Reservation allows duplicate hostname usage.
The DHCP Name reservation on the ports page would allow
a user to use the name of the mesh node as a hostname
for a reserved host which would mess up the remote display
of hosts on the mesh status screen.

In addition while testing the verification code it was found
that it was case sensitive while dns is case insensitive.

fixes AREDN->ticket:198

Change-Id: Ie51a594f733eca38e8547faeab0260d7b23b8818
2017-03-24 18:27:20 +00:00
Darryl Quinn 507ceed577 bugfix: invalid lat/lon values when dragging marker across wrapped boundry
refs AREDN->ticket:221

Change-Id: Id60213e72428c86f51b17c9c137785e340bca3eb
2017-03-21 16:31:12 +00:00
Conrad Lara - KG6JEI 8ee8fbefe0 bugfix: Increase available memory during upgrade/install process
It is possible for the system to run out of memory when dealing
with large file uploads and installs.

As part of the upgrade procedure shutdown services that are not
essential for node operations to allow more memory for install
to take place.

Includes changes to linkled to indicate this new state as it will
be shutdown as part of the cleanup process.

Memory gain (approximate)

dropbear 100kb
linkled  200kb
logd     200kb
odhcp    100kb
snmpd    500kb
xinetd   100kb

Total(approximate): 1200kb (around %4 on 32mb devices)

This is somewhat similar to files/usr/local/bin/upgrade_kill_prep
except that it kills only a select group of services
so that the system can handle the file upload while
upgrade_kill_prep does the final system cleanup to run the full
upgrade.

ref AREDN->ticket:204

Change-Id: Ic6d3aa028725064a97c4723f6d9b36e1e51d87a7
2017-03-08 03:23:52 +00:00
Conrad Lara - KG6JEI a2208dbc5a bugfix: Prevent users from uploading files when tunnels are active.
If a user tries to upload a file (especially firmware images) while
a tunnel is active the nodes run a high risk of running out of
available RAM.

Change-Id: I6c31a5c641c7266f337aa4b209367ae0491703ad
2017-03-05 16:57:37 -08:00
Conrad Lara - KG6JEI 24a3243215 Bugfix: read_postdata() accepts files when not expected
Correct read_postdata() to only accept files from pages that are
specifically designed to accept files.

This should be limited to authenticated pages only.

SCS-2017-001

Change-Id: Ic40f19a88e543d83a8097abcd4e7254ccea90f49
2017-03-05 02:45:04 +00:00
Darryl Quinn 8e08363414 bugfix: extend admin page reload time after reboot to 3 mins
Change-Id: Iffa664bf495fdb20d1d8450e00457722399bfcbf
2017-02-08 03:55:22 +00:00
Darryl Quinn 956c6b7cd8 bugfix: change charts to be time linear
Change-Id: I06e0c8d1d5d39e9faa46bfec3442bf2e3071c8ff
2017-02-03 16:34:25 +00:00
Darryl Quinn ed8939b3da bugfix: add upgrademode web page
This will depend on Change-Id: f7cbcef9aec2fb420bd88cdc6345c5c5bfca78fa
ref AREDN->ticket:204

Change-Id: I4e83dab801a21b9389744af19b4613152a6feb1a
2017-01-22 02:39:20 +00:00
Darryl Quinn bb0cb625d3 bugfix: add reboot button to admin page to support upgrade_mode recovery
ref AREDN->ticket:204

Change-Id: I0274dc9dd0ed02a2461e2ae0c8aaf4917dae4b16
2017-01-20 22:12:43 -06:00
Conrad Lara - KG6JEI 8ddf49ba32 bugfix: OTA Upgrade may mask backup errors.
During creation of the backup file some errors may be masked.

While this isn't confirmed to be the cause of any known report it
is possible users have in the past experienced this and we just
couldn't see it.

Change-Id: I12136b7c53aabfb243445170b91c69928206bb1b
2017-01-12 20:32:47 -08:00
Conrad Lara - KG6JEI a9eefa0032 Make supporttool cleanup after itself.
Make supporttool clean up its temporary folder when done
executing.

ref AREDN->ticket:204
ref AREDN->ticket:44

Change-Id: Ibc0bc1205ce8f66d382fad238877c881f2a21e3b
2017-01-12 17:14:19 +00:00
Darryl Quinn d3a93925e2 bugfix: sysinfo.json errors when tunnel interfaces are installed
Change-Id: Ib9b343b47e8147ad61e3d7a98105de467df16b0f
2016-12-30 22:47:56 -06:00
Conrad Lara - KG6JEI c592f44ab0 Sourcecode license text spelling correction.
Inside the source files the word "contained" was mispelled
as "conained"

The website currently lists this correctly as "contained"

This was an error in the intial stamping of the source files in
changeset:5c3ee1d0686c6e6f2907fe4fc393d86d6c5a69b5/aredn_ar71xx

Line is part of "Additional Conditions" permitted by GPLv3.
Line does not impact coders prior to the AREDN setup date
as it was added by the AREDN team.

Change-Id: I3bc09aea548100f35c08aebe8686b8d4808d56d8
Signed-off-by: Conrad Lara - KG6JEI <KG6JEI@amsat.org>
Signed-off-by: Joe Ayers <ae6xe@arrl.net>
Signed-off-by: Darryl Quinn <k5dlq@arrl.net>
Signed-off-by: Trevor Paskett - K7FPV <snoopytjp@gmail.com>
2016-12-30 18:54:05 +00:00
Conrad Lara - KG6JEI e5ff9ebdfb feature: Allow supporttool to be run from shell
Allows the supporttool to generate support files
when run from the shell for times that it may
be required when the web interface is offline.

Change-Id: I696289ea10c2e5b57f3e93d81ec7004469c4bba0
2016-12-28 04:55:46 +00:00
Darryl Quinn 1e08847db0 change: add chart null on timeout, skip signal 0 in archive.
Change-Id: Ia30bfebb3d5df097e69f1fb9e8cb75e8f317e3ff
2016-12-28 04:54:34 +00:00
Conrad Lara - KG6JEI a39abd3813 bugfix: Typo in comment header for perl scripts
This is at the top of the license header.

It prevents the code from being processed but doesn't
actually impact the license terms in any way.

Change-Id: Ic91f2400f9694056b6f06fa43d1074411d6c6262
2016-12-23 16:45:47 -08:00
Conrad Lara - KG6JEI db2046092f bugfix: Make get_model return model of device instead of board type
Fixes the fact that get_model has done the same as other functions.

This probably always should of been a real model of active device
not just of the hardware type from the begining.

DEV NOTE:
This is in perl, even though we intended to migrate to LUA the
core library that contains this data has yet to be migrated
so we need to add this as a perl program.

Change-Id: Ib8a4ea6dd881c32e6d7660607576aeb5218b1e7a
2016-12-23 19:30:15 +00:00
Conrad Lara - KG6JEI 83a0b08a3a build: Add tests for final image name.
Checks to make sure the correct images are in the
bin/*/ directory.

Has an adjustable paramater for setting the expected files count.

This will likely require more complex logic if we add a new
platform to our build environment.

Change-Id: I1bb28cfb2ac4dc5e30823918c3fc884c9848bef3
2016-12-21 23:12:43 -08:00
Conrad Lara - KG6JEI e8c0417e5e buildroot: Add post-build tests framework
Add framework for post-build tests.

Change-Id: Ia51ef30f2297cc3ce535333d3e8f81aee45072b7
2016-12-21 23:12:43 -08:00
Conrad Lara - KG6JEI 579692d15d bugfix: Correct final output image file name.
After Change-Id: I4ac2a7aa903fb0d86f9a5200a4160e5028352fdd the build
version is being put into the middle of the file name.

Change-Id: I36c0d9b4c5bc509f45f3a8861bbfc1e97fea3f46
2016-12-21 23:12:32 -08:00
Darryl Quinn 39ebd6b45e bugfix: force sysinfo.json mac addresses to uppercase
Change-Id: Ib62e758a30b8d68064e76e4a0e61b01c37820f49
2016-12-19 18:36:56 -06:00
Darryl Quinn f65482a74c enhancements/clarifications to the help file
Change-Id: I16b513360d891938631007b631254b96abd18fc0
2016-12-17 00:54:35 +00:00
Conrad Lara - KG6JEI 905995eb23 feature: Automate banner file creation Patch 1 of 2
Remove banner from the files set as it will override the build
version of the banner.

Patch 2 will be in arednbase repo.

Change-Id: Iefb8288985b39b8942419f43925d00aaab53d610
2016-12-16 22:47:46 +00:00
Conrad Lara - KG6JEI bc1046f705 bugfix: Build version not correctly set by build system.
Parent options were not enabled in kconfig for setting the version
information in the buildroot.

In addition the release version strings need to be quoted to
be processed.

Change-Id: I4ac2a7aa903fb0d86f9a5200a4160e5028352fdd
2016-12-16 22:42:01 +00:00
Darryl Quinn b9c77fa551 change: snrlog to keep logs longer after signal loss
Change-Id: Ifab054fcc2bd1578789dbe61f1ae300cce4c2ccd
2016-12-14 14:18:37 -06:00
Darryl Quinn 37a7b57c0a feature: add mcs/rate info to snrlog for archive
Change-Id: I8caa8a0b8cdef74be646283fa458e89b378e608b
2016-12-12 20:18:27 +00:00
Conrad Lara - KG6JEI 27ea95209e bugfix: Have UI keep timezone after OTA
After OTA upgrade the timezone was kept in the system file
but not in the UI so when a user would save the timezone
would be overwritten.

fixes AREDN->ticket:186

Change-Id: I593afab0c3f67ba9d300228e9cbb47d7e3d894d1
2016-12-12 08:39:35 +00:00
Darryl Quinn d662e1ce97 update help file with chart info
Change-Id: I9c298f9be0efd3ce0ffb2f8acf38cd60cb4f8613
2016-12-11 08:51:39 -06:00
Darryl Quinn a1e55b3679 migrate sysinfo.json to lua
Change-Id: I9b092f496d660185e0db9318700c17e0349c7b81
2016-12-03 20:18:44 +00:00
Darryl Quinn ffc76619cc convert signal.json to lua, changed style, add tx/rx rates
Change-Id: Id46fc2cd74a39f1a1ec6922ba93154df33b95654
2016-12-03 20:18:35 +00:00
Darryl Quinn a1da9c0ad7 migrate snrlog to lua
Change-Id: Icecf72e370c5e938d8d689a858d57094fe847e45
2016-12-03 20:18:24 +00:00
Darryl Quinn 8d137bbfa3 bugfix: uci options are single-quoted in CC
fixes AREDN->ticket:203

Change-Id: Ia94e3154d618c2baa7122166bfc3756c762d31c6
2016-12-02 03:08:37 +00:00
AE6XE 50332f76d2 bugfix: NSM5 Loco XW no channel number shown in setup
Change-Id: I5e5673767572ca28e5345803cadc4a8c3119cc3c
fixes: AREDN->ticket:202
2016-11-23 14:58:54 +00:00
Conrad Lara - KG6JEI 811f52f93b bugfix: SSID handling in system tools.
Corrects flaws in how the web user interface displays SSID's
picked up by wifi scanning.

In addition remove the defunct (never supported) connect program
since we never use it (no more client  mode) and it could have
issues with correctly passing SSID's from the shell.

Change-Id: I0444c1b3226b9bc5c3d3044fd5c9849a0d2bf67d
2016-11-22 22:06:57 +00:00
Darryl Quinn 316f6d6acd feature: link logo to localnode.local.mesh
fixes: AREDN->ticket:187

Change-Id: I69542d33e351f652815d368ff1a04e3447a657eb
2016-11-18 03:52:09 +00:00
Darryl Quinn 25dc984988 security: protect wifi scan page
fixes AREDN->ticket:195

Change-Id: I30f8087aa59483cdbf73cfde8029ccc7bbd42cb5
2016-11-17 14:50:10 -05:00
Conrad Lara - KG6JEI d9cd982818 bugfix: Correct buildroot package selection flaw.
Introduced in changeset:48452725543d70dedc183f54d645f9551158c48e/aredn_ar71xx
(Change-ID of I693bed9fb2a4f7ee1471a8dbf440bbd391d3e783)

when using the feeds file we don't want "origin/develop" (used in Jenkins elsewhere) just "develop"

Strip off the prefix to correct.

Change-Id: I847b0878bf591eba81e7896dd6a099d0be3bfe3c
2016-11-04 14:41:51 -07:00
Conrad Lara - KG6JEI 4845272554 build: Make buildroot correctly build packages from correct branch.
This is intended for the Gerrit buildbot's use only.

When environment variable $GERRIT_PROJECT=aredn_packages

Assumptions:
$BUILDROOTBASE/../aredn_packages exists.
The changeset/refspec/patchset_revision has already been checked out into this aredn_pacakges folder
$GERRIT_PATCHSET_REVISION is set.

When GIT_BRANCH is set and not on aredn_packages gerrit project ensure aredn_packages is checked out
as above or system may fallback to sane defaults.

Change-Id: I693bed9fb2a4f7ee1471a8dbf440bbd391d3e783
2016-10-27 10:57:01 -07:00
Darryl Quinn bbeabbfec8 hardware: Add PowerBeam M5 XW 0xe3e5 device config
{{{
board.sysid=0xe3e5
board.cpurevision=0x00001122
board.name=PowerBeam M5
board.shortname=P5B
board.subtype=300
board.netmodes=7
board.hwaddr=44D9E7CE9D90
board.reboot=40
board.upgrade=150
board.phycount=1
board.phy.1.maxmtu=2024
board.phy.2.maxmtu=2024
radio.1.name=
radio.1.shortname=
radio.1.bus=ahb
radio.1.subsystemid=0xe3e5
radio.1.subvendorid=0x0777
radio.1.txpower.max=26
radio.1.txpower.min=-4
radio.1.txpower.offset=4
radio.1.antennas=2
radio.1.def_antenna=1
radio.1.antenna.1.id=1
radio.1.antenna.1.name=300
radio.1.antenna.1.gain=22
radio.1.antenna.2.id=2
radio.1.antenna.2.name=Feed only
radio.1.antenna.2.gain=3
}}}
ref AREDN->ticket:196

Change-Id: Icefe3df76bf2c19b5385aad4dcd94da5f0321bb3
2016-10-24 19:25:57 +00:00
AE6XE c5e0d869e8 hardware: Add PowerBeam M5 620 XW 0xe885 device config
{{{
board.sysid=0xe885
board.cpurevision=0x00001122
board.name=PowerBeamM5
board.shortname=P5B
board.subtype=620
board.netmodes=7
board.hwaddr=0418D6AE868A
board.reboot=40
board.upgrade=150
board.phycount=1
board.phy.1.maxmtu=2024
board.phy.2.maxmtu=2024
radio.1.name=
radio.1.shortname=
radio.1.bus=ahb
radio.1.subsystemid=0xe885
radio.1.subvendorid=0x0777
radio.1.txpower.max=26
radio.1.txpower.offset=4
radio.1.antennas=2
radio.1.def_antenna=1
radio.1.antenna.1.id=1
radio.1.antenna.1.name=400
radio.1.antenna.1.gain=25
radio.1.antenna.2.id=2
radio.1.antenna.2.name=Feed only
radio.1.antenna.2.gain=3
}}}
ref AREDN->ticket:199

Change-Id: Iaafda611e08ca76507712fbd487b7b05cc254b84
2016-10-24 19:25:39 +00:00
Darryl Quinn 159680c0c9 hardware: Add NanoBeam M5-16 0xe815 device config
{{{
board.sysid=0xe815
board.cpurevision=0x00001122
board.name=NanoBeam M5
board.shortname=N5B
board.subtype=16
board.netmodes=7
board.hwaddr=44D9E7DCC91B
board.reboot=40
board.upgrade=150
board.phycount=1
board.phy.1.maxmtu=2024
board.phy.2.maxmtu=2024
radio.1.name=
radio.1.shortname=
radio.1.bus=ahb
radio.1.subsystemid=0xe815
radio.1.subvendorid=0x0777
radio.1.txpower.max=26
radio.1.txpower.min=-4
radio.1.txpower.offset=4
radio.1.antennas=1
radio.1.def_antenna=4
radio.1.antenna.1.id=4
radio.1.antenna.1.name=Combined
radio.1.antenna.1.gain=16
}}}
ref AREDN->ticket:197

Change-Id: I227accf342ef02395297d2b2f6e37c5aff6f4053
2016-10-23 22:14:06 -05:00
AE6XE f303bb3341 hardware: Add AirGrid M5 XW 0xe835 device config
{{{
board.sysid=0xe835
board.cpurevision=0x00001122
board.name=AirGrid M5
board.shortname=AG5
board.subtype=HP
board.netmodes=7
board.hwaddr=24A43CAE0D77
board.reboot=40
board.upgrade=150
board.phycount=1
board.phy.1.maxmtu=2024
board.phy.2.maxmtu=2024
radio.1.name=
radio.1.shortname=
radio.1.bus=ahb
radio.1.subsystemid=0xe835
radio.1.subvendorid=0x0777
radio.1.txpower.max=25
radio.1.txpower.offset=6
radio.1.antennas=4
radio.1.def_antenna=4
radio.1.antenna.1.id=4
radio.1.antenna.1.name=Not specified
radio.1.antenna.1.gain=0
radio.1.antenna.2.id=3
radio.1.antenna.2.name=Feed only
radio.1.antenna.2.gain=3
radio.1.antenna.3.id=1
radio.1.antenna.3.name=11x14
radio.1.antenna.3.gain=23
radio.1.antenna.4.id=2
radio.1.antenna.4.name=17x24
radio.1.antenna.4.gain=28
}}}
ref AREDN->ticket:190
Change-Id: I8d079f6a2c6f0d433d17611b292f04980b0bfc0e
2016-10-11 21:32:45 +00:00
AE6XE a34a20d7e3 bugfix: hardware PBE-M5-400 change rfband to 5800ubntus
fixes AREDN->ticket:188
Change-Id: I3b4a74b71400760474887ea6c7be8979c449ff2e
2016-10-11 03:28:10 +00:00