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
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
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
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
Make supporttool clean up its temporary folder when done
executing.
ref AREDN->ticket:204
ref AREDN->ticket:44
Change-Id: Ibc0bc1205ce8f66d382fad238877c881f2a21e3b
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>
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
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
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
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
After Change-Id: I4ac2a7aa903fb0d86f9a5200a4160e5028352fdd the build
version is being put into the middle of the file name.
Change-Id: I36c0d9b4c5bc509f45f3a8861bbfc1e97fea3f46
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
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
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
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
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
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
Adjust power levels to reflect what is in the board.info
This was likely a typo when I put the device in the first time.
In addition adjust naming to match Ubiquiti device rename.
{{{
board.sysid=0xe4e5
board.cpurevision=0x00001122
board.name=PowerBeam M5
board.shortname=P5B
board.subtype=400
board.netmodes=7
board.hwaddr=0418D65EEB39
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=0xe4e5
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:185
Change-Id: I71d2a944b6abb9e30862d7ada7f46b80df2c731c
Mesh nodes would need a significant amount of configuration
including some operational checks everytime an interface comes up
to be able to handle this.
The more sane method is to only allow a node to be a mesh_gw when
the WAN port is utilized and the node is in DIRECT mode.
This changes the UI to prevent this setup from being allowed.
fixes AREDN->ticket:184
Change-Id: I1a1289bc914a349149f5842812dbebc0a70442f7
Primary purpose is to add LUA support.
While adding LUA support we will be replacing some files with LUA equivalents.
By uniforming the tests under single scripts for each folder file renames will less impact test results order.
Change-Id: I067ffc994bc60b8c872710c686022117801f65ea
User UI login uses http-basic authentication which is just base64 encoded
for transit but not encrypted.
This is a long standing error in documentation.
Change-Id: Ib3e49533b2acb32496e5e2a9b9b93e1436bc5f0d