- May 14, 2017
-
-
Alberto Bursi authored
uci_set_leds_ataport() allows to set a led to show activity on a specific (s)ata port, which is needed for devices that have a Sata led for each sata port. The led trigger is from the 834-ledtrig-libata.patch LEDE kernel patch. uci_set_leds_usbhost() allows to set a led to show total usb activity. Signed-off-by:
Alberto Bursi <alberto.bursi@outlook.it> [Jo-Philipp Wich: use a single underscore to denote private functions] Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Alberto Bursi authored
create a function with code common to all led functions, create another function with code common to functions setting a simple led trigger, restore alphabetical order in function names. Signed-off-by:
Alberto Bursi <alberto.bursi@outlook.it> [Jo-Philipp Wich: use a single underscore to denote private functions] Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 03, 2017
-
-
Jo-Philipp Wich authored
Commit 2036ae4 (base-files: support hostname and ntp servers through board.d) was supposed to implement these procedures but lacked the required changes to uci-defaults.sh. Add the missing procedures now to fix config generation on targets relying on hostname or NTP server presetting. Fixes FS#754. Reported-by:
Cristian Morales Vega <cristian@samknows.com> Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Mar 11, 2017
-
-
Mathias Kresin authored
Overwrite an already set proto if a new one is passed to _ucidef_set_interface() similar to what is done for the interface. It is required when using ""ucidef_set_interface_wan 'ptm0' 'pppoe'" after some initial wan interface configuration is already done by ucidef_add_switch. The "json_is_a protocol string" guard is meant to not reset an earlier set interface proto in case something like "ucidef_set_interface_lan 'eth0'" is used afterwards. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Feb 01, 2017
-
-
Jo-Philipp Wich authored
Instead of only using tagged CPU port configurations when more than one VLAN is present on the switch, always emit tagged configurations unless a board explicitely opts out of this behaviour by using the previously introduced [0-9]u@netdev syntax. Emitting default tagged configurations has the following benefits: - Relation of switch vlans to netdevs is easier to understand, especially for multi-cpu-port switches - Adding additional VLANs (e.g. to break out a LAN port for other purposes) becomes easier as users are not forced to change the existing untagged VLAN to tagged and the existing ifname notation from ethX to ethX.Y anymore, drastly reducing the likelyhood of soft-bricks. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Nov 02, 2016
-
-
Jo-Philipp Wich authored
Introduce support for a new [0-9]u@netdev syntax to ucidev_add_switch() to let board.d network files request default network switch configurations which do not use tagged CPU ports. This commit itself has no effect on generated configurations at the moment since we still emit untagged configurations by default but it allows boards to opt-out from default tagged configs in case we start emitting tagged settings by default. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Oct 22, 2016
-
-
Rafał Miłecki authored
This helper allows using usbport trigger directly. It requires usbport compatible syntax and supports specifying multiple USB ports, e.g.: ucidef_set_led_usbport "usb" "USB" "devicename:colour:function" "usb1-port1" "usb2-port1" This adds a proper object to the board.json, e.g. "usb": { "name": "USB", "type": "usbport", "sysfs": "devicename:colour:function", "ports": [ "usb1-port1", "usb2-port1" ] } and supports translating it into uci section. Signed-off-by:
Rafał Miłecki <rafal@milecki.pl>
-
- Aug 13, 2016
-
-
Jonas Gorski authored
Allow passing a filename to change the location of the generated board.json. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
- Aug 04, 2016
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Jun 07, 2016
-
-
Jo-Philipp Wich authored
Add support for handling port_state LEDs as used by ADM5120. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Mar 10, 2016
-
-
John Crispin authored
base-files: add function ucidef_set_interface_raw to enable default configuration on interfaces other than lan and wan. Signed-off-by:
Micke Prag <micke.prag@telldus.se> SVN-Revision: 48976
-
- Mar 07, 2016
-
-
Felix Fietkau authored
We are now shipping a DSL firmware, do not set it by default to some file name. Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48941
-
- Feb 26, 2016
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48806
-
- Feb 25, 2016
-
-
Felix Fietkau authored
This patch adds extra parameter to switch LED trigger initialization functions. New functionality maintains backward compatibility, so calling functions without setting new speed_mask parameter works as expected. Signed-off-by:
Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl> SVN-Revision: 48776
-
John Crispin authored
oneshot and timer have the same configuration options, just a different trigger name. Signed-off-by:
Karl Palsson <karlp@etactica.com> SVN-Revision: 48770
-
- Dec 19, 2015
-
-
Felix Fietkau authored
Remove usage of dd, as per request from Yousong Zhou. <https://lists.openwrt.org/pipermail/openwrt-devel/2015-December/037743.html > Signed-off-by:
Chris R Blake <chrisrblake93@gmail.com> SVN-Revision: 47949
-
Felix Fietkau authored
The MR18 stores the ath9k eeprom values on the NAND. This patch makes it possible to retrieve the images from there. Signed-off-by:
Chris R Blake <chrisrblake93@gmail.com> SVN-Revision: 47948
-
- Dec 11, 2015
-
-
Jo-Philipp Wich authored
Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one and update all users accordingly. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47867
-
- Dec 04, 2015
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47762
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47752
-
Jo-Philipp Wich authored
This adds support for specifying the dsl modem, atm bridge configs and setting the pppoe protocol for wan. These additions are required to port the Lantiq target to board.d. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47750
-
- Dec 03, 2015
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47744
-
Jo-Philipp Wich authored
Some boards, e.g. the Sheeva Plug, require the lan interface to be set to DHCP instead of a static address, therfore support that. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47732
-
Jo-Philipp Wich authored
Add ucidef_set_led_timer() and handling for it to config_generate. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47731
-
Jo-Philipp Wich authored
Add ucidef_set_led_ide() to define "ide-disk" triggered leds. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47729
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47728
-
Jo-Philipp Wich authored
This changes uci-defaults-new.sh, config_generate and all relevant board.d files in order combine ucidef_add_switch() and ucidef_add_switch_ports() into a single function. Also removes now superfluous enable and reset arguments. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47721
-
Jo-Philipp Wich authored
Out of 69 switch definitions, only 3 pass something different than "1" as values for reset and enable, with one of those three being invalid. This change ... * removes the reset and enable arguments from ucidef_add_switch() * unconditionally writes reset:1 and enable:1 to JSON * converts the three users of nonstandard values to ucidef_add_switch_attr() Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47720
-
Jo-Philipp Wich authored
Remove support for now unused ucidef_add_switch_vlan(), move port->vlan and vlan->interfaces conversion to uci-defaults-new.sh and massively simplify config_generate. This change prepares the following upcoming steps: * Eliminate use of ucidef_set_interface_lan_wan() for switch only devices * Merge ucidef_add_switch() with ucidef_add_switch_ports() Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47719
-
- Nov 30, 2015
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47679
-
Jo-Philipp Wich authored
Properly quote variables in ucidef_set_interface_lan() and ucidef_set_interface_lan(), otherwise interfaces with multiple devices are not properly written into the configuration. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47673
-
Jo-Philipp Wich authored
Add ucidef_set_board_id() and ucidef_set_model_name() procedures to store model information in the board.json file. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47671
-
- Nov 26, 2015
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47660
-
Jo-Philipp Wich authored
The only user was the hg255d board and config_generate did not even emit proper uci for it. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47658
-
Jo-Philipp Wich authored
Remove extra nesting of rssi leds in the led object and move rssi monitor declaration to its own object. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47655
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47652
-
- Nov 25, 2015
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47645
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47644
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47643
-
- Nov 24, 2015
-
-
Jo-Philipp Wich authored
Add further helper functions to uci-defaults-new.sh for easier declarations of complex switch layouts. Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47638
-