Commit Graph

184 Commits

Author SHA1 Message Date
Conrad Lara - KG6JEI b920402b1f build: Create test scripts for basic code quality
Test scripts run to ensure the programs will execute and report back into junit format for Jenkins reporting.

These scripts can be run manually outside of the build system to check code prior to commiting.

usrlocalbinshell requires that shellcheck be installed on the testing system.
2015-04-13 11:37:45 -07:00
Conrad Lara - KG6JEI 6d66446d12 Add shell2junit for use of creating junit reports of the tests.
NOTE: sh2ju is under the ASF2 license
2015-04-09 20:18:01 -07:00
Conrad Lara - KG6JEI 82611bb57e bugfix: NanoStation M5 XW device config was malformed
ref AREDN->ticket:43
2015-04-07 22:11:56 -07:00
Conrad Lara - KG6JEI 96636f442e Merge branch 'NanoStationXW' into develop
Add initial testing support for NanoStation M5 XW into develop tree.

ref AREDN->ticket:43
2015-04-07 20:39:33 -07:00
Conrad Lara - KG6JEI 853430dbdf hardware: Add testing support for NanoStation M5 XW
ref: AREDN->ticket:43
2015-04-07 20:37:58 -07:00
Conrad Lara - KG6JEI 908626336f bugfix: Configuration NOT Saved? Can't open '/etc/ared_include/system_netled'
File wasn't created on boot due to a missing space in if statment.

In addition other services would not start.
2015-04-07 08:51:32 -07:00
Conrad Lara - KG6JEI f6f3aaef9e Merge branch 'TPLinkCPE' into develop 2015-04-06 21:14:39 -07:00
Darryl Quinn 9b4382e3b3 Merge branch 'refresh_sysupgrade' into develop 2015-04-06 23:09:55 -05:00
Darryl Quinn 3ba26cea4c fix: added .local.mesh to sys upgrade links 2015-04-06 23:08:52 -05:00
Conrad Lara - KG6JEI e7c3cdc909 bugfix: CPE510: Network activity led's broke after config save
Save the port mapping for link_lan led's for use in the system file so that the link led's will work after save and reboot
2015-04-06 21:03:13 -07:00
Darryl Quinn 1fc6c27362 Merge branch 'refresh_sysupgrade' into develop 2015-04-06 19:29:14 -05:00
Darryl Quinn bb4f43ca4c feature: auto-refresh after sys upgrade, chg link to codename when sys upgrade 2015-04-06 17:10:06 -05:00
Conrad Lara - KG6JEI b6805ca15f bugfix: CPE510: LINK1 LED doesn't illuminiate with neigbors in range
LINK1 LED was based on Ubiquiti file names, changed to determine base on file name instead.

This should open up more device support long term as well as solve the initial issue.
2015-04-06 11:57:37 -07:00
Conrad Lara - KG6JEI 5629ce93b7 bugfix: CPE510: Does not set nodecall or other mac based settings on boot
Change the location lookup to looup based on the radio0.path setting to obtain the mac address.
2015-04-06 11:27:50 -07:00
Conrad Lara - KG6JEI 6e74aaf0f4 bugfix: CPE510: networking does not function after initial config save
After saving the config the lack of the root level switch entry which enables vlans and resets the switch causes the network to shutdown.
2015-04-06 10:44:05 -07:00
Conrad Lara - KG6JEI 3c07872f06 bugfix: Make sure we create the swconfig file even if it will end up empty.
If we don't create the file the system will have nothing to include later on and the script will run on every boot
2015-04-05 23:05:42 -07:00
Conrad Lara - KG6JEI 79902f0876 hardware: CPE510: Retain device path information and import into configs at save time.
Save the intial path at install and include it each time we save the config
2015-04-05 23:04:32 -07:00
Conrad Lara - KG6JEI 8faab9c11c wireless: Let the OS build the default wireless config
The first wireless config will be built by OpenWRT instead of us.
2015-04-05 22:40:02 -07:00
Conrad Lara - KG6JEI 63bb07b617 hardware: CPE510: Add initial hardware support for TPLink CPE510 in testing
Testing mode for CPE510

Offset needs to be looked into, OS reports a max power of 23dbm need to see if this is kernel, or offset related.

Should provide enough details for the board to be registered in the UI
2015-04-05 22:16:24 -07:00
Conrad Lara - KG6JEI 7c152d7c1e hardware: Expand board_id routine to allow TPLink devices to be obtained
When a device does not have a subsystem device ID we will fall back to the board_detect routine.

In the case of a TPLink CPE510 the model will be along the lines of "TP-Link CPE510 v1.0"

In the case of TPLink CPE510 this also includes a hardware version so should the hardware be changed in the future we will be able to key off that as well.
2015-04-05 22:07:47 -07:00
Conrad Lara - KG6JEI 08600fd4e8 hardware: Update get_model to use the ar71xx board detect routines
Returns the same data for devices as CPUInfo would of returned for previous devices and for new devices like the CPE510 causes the system to list the exact model instead of of the family.
2015-04-05 21:58:03 -07:00
Conrad Lara - KG6JEI 31bd519266 hardware: AR934x: Pull in stored swconfig information when saving configs 2015-04-05 21:06:39 -07:00
Conrad Lara - KG6JEI dccd1ea42c hardware: AR934x: Store swconfig information for future use 2015-04-05 21:03:50 -07:00
Darryl Quinn 4f18f20495 Merge branch 'develop' of ssh://git.aredn.org/aredn_ar71xx into dyn_css 2015-04-05 21:20:04 -05:00
Darryl Quinn df0bc42208 feature: converted css to use symlinks and multiple files 2015-04-05 21:19:32 -05:00
AE6XE a82b4be70f Merge branch 'wscan' into develop 2015-04-04 22:29:35 -07:00
AE6XE 8b9ac8639a Enhancement: wscan vendor column replaced with mode 2015-04-04 22:27:51 -07:00
AE6XE 7c216480a5 Merge branch 'wscan' into develop 2015-04-04 22:01:21 -07:00
Darryl Quinn 6672996cd3 added ability to have multiple css files 2015-04-04 23:49:31 -05:00
AE6XE 982bff9cf0 Merge branch 'wscan_css' into wscan 2015-04-04 20:05:45 -07:00
Darryl Quinn 61c15f7eeb added style for wscan nodes 2015-04-04 10:44:45 -05:00
AE6XE c4b64d1609 Merge branch 'wscan' into develop 2015-04-02 22:15:19 -07:00
AE6XE 2dd866b7a0 Fix for wscan to accept AREDN and custom SSID formats 2015-04-02 22:13:23 -07:00
AE6XE f3fc5c645f Merge branch 'wscan' into develop 2015-04-01 22:01:53 -07:00
AE6XE 0ab44e4731 wscan update to show neighbor mesh node signals 2015-04-01 21:49:07 -07:00
Conrad Lara - KG6JEI a73e459263 Merge branch 'DynamicInterfaceNames' into develop 2015-03-27 23:56:14 -07:00
Conrad Lara - KG6JEI 8df5b5ff49 Merge branch 'cleanupoldfiles' into develop 2015-03-27 19:24:27 -07:00
Conrad Lara - KG6JEI ef941fe9a4 cleanup: BuildImage.sh is no longer needed as it was for use under the Image Builder
We now let the BuildRoot build the system, as such this script no longer works.
2015-03-27 19:21:37 -07:00
Conrad Lara - KG6JEI 303c9c264f cleanup: opkg.conf is now built by the BuildRoot and is no longer needed. 2015-03-27 19:20:23 -07:00
Conrad Lara - KG6JEI 0dbe83c61e feature: Make nodes advertised targeted network routes to mesh.
Makes the nodes advertise using DHCP Options 121 and 249 routes to the mesh (10.0.0.0/8) and the reserved (172.16.0.0/12) address ranges.

This change allows directing systems to prefer the mesh node for mesh ranges unless another network rule is more specific (such as a directly connected network)
This is mostly useful where a PC may have multiple network connections active as it improves the desire for the packets to travel via the mesh network.

Currently the:

10.0.0.0/8 range is used by mesh nodes and dtdlinking of mesh nodes.
172.27.0.0/16 is used for default LAN network on NAT nodes.
172.33.0.0/16 is for ad-hoc tunnels

All others in the advertised range are reserved for future network use.
2015-03-27 11:30:52 -07:00
Conrad Lara - KG6JEI 16576d7bde bugfix: dtdlink is by default on eth0.2 not eth0.1 2015-03-26 16:47:33 -07:00
Conrad Lara - KG6JEI 93b922596f bugfix: node setup errors out on saving network file
Several _intf entries in the network file were named in reverse causing the node-setup script to be unable to save them
2015-03-26 01:47:06 -07:00
Conrad Lara - KG6JEI dc22c906b0 bugfix: node-setup errors out with =for error.
Remove extra line added to first line in node-setup in 99182e2b52
2015-03-26 01:38:58 -07:00
Conrad Lara - KG6JEI 0d11af70b9 bugfix: Unknown interfaces wouldn't return default interface. 2015-03-26 01:31:50 -07:00
Conrad Lara - KG6JEI ee16f91c95 Remove programs that are not used by us. 2015-03-25 17:03:23 -07:00
Conrad Lara - KG6JEI 99182e2b52 feature: Convert network settings files to use dynamic interfaces
config.*/network files now use dynamic interface names so that they can be changed on the fly in the future.
2015-03-25 14:02:38 -07:00
Conrad Lara - KG6JEI ac93a0346f feature: migrate scripts to use get_interface
nvram-setup may be the only script we have to worry about as it may call configs for interfaces that do not exist in the current mode.

By default get_interface will return a static mapping when it can't find an active config entry meaning that eventually get_interface will need an update routine to pull out of local running config

The lack of this update routine should be acceptable for now as we have no GUI for users to change the mapping.
2015-03-24 23:41:51 -07:00
Conrad Lara - KG6JEI 9444716fbd feature: Add function and code to UI code to prepare for changing interface names in the core OS.
Create get_interface which will lookup in the current uci network config the realname for the logical interface name.

When the interface is not found it will fall back to a hard coded list.

Configure the UI to use the new get_interface function.
2015-03-24 23:25:18 -07:00
Conrad Lara - KG6JEI 097d62ae01 bugfix: OLSRD doesn't start on node reboot
Under Barrier Breaker sometimes OLSRD gets started before any interface is up causing OLSRD to shutdown because no interfaces exist.

Forces OLSRD to stay on and wait for the interfaces to come online.
2015-03-23 22:57:48 -07:00
Conrad Lara - KG6JEI 50c4e0ed11 bugfix: nodes sometimes show up as mid1
Nodes sometimes show up as a mid1 entry when dtdlink and RF connected.

Sometimes the nodes will get the eth0 ip because wlan0 is not up yet.

Under Barrier Breaker the MainIP option is now supported as part of the uci system which allows us to restore using this setting.

We can now force the IP address that is claimed (wlan0) for the primary IP of the node.
2015-03-23 22:55:09 -07:00