This package supplies the support for special hardware components.
Supported are:
The following systems, mainboards and VPN cards are supported:
The configuration is made, as for all fli4l packages, by adjusting the file
path/fli4l-3.10.17/<config>/hwsupp.txt to meet your own demands.
The setting 'no' deactivates the OPT_HWSUPP package completely. There will be no changes made to the fli4l boot medium or the archive opt.img. OPT_HWSUPP does not overwrite any other parts of the fli4l installation. To activate OPT_HWSUPP set the variable OPT_HWSUPP to 'yes'.
This configuration variable sets the type of supported hardware. Following values can be used:
The list of possible indications can be extended by other packages. For example, if the WLAN package is loaded the information
In apppendix B.10 package developers can get some hints on how to create such extensions.
Here you either have to enter a LED device (to be found at /sys/class/leds/ in the router's file system) or a GPIO4.7number.
A list of valid LED device names for a specific HSUPP_TYPE can be found in the appendix B.7.1.
The GPIO number has to be enterd in the format gpio::x. If a GPIO is entered, the corresponding LED device will be created automatically. By preceding the char / the GPIO functionality may be inverted.
Examples:
HWSUPP_LED_1_DEVICE='apu::1' # LED 1 on PC engines APU HWSUPP_LED_2_DEVICE='gpio::237' # GPIO 237 HWSUPP_LED_3_DEVICE='/gpio::245' # inverted GPIO 245
Depending on the selection in in HWSUPP_LED_x, in HWSUPP_LED_x_PARAM different settings are possible.
If HWSUPP_LED_x='trigger' is set, the trigger name has to be specified in HWSUPP_LED_x_PARAM.
Available triggers can be displayed with the shell command cat /sys/class/leds/*/trigger.
Besides triggers created by e.g. netfilter or hardware drivers like ath9k, further trigger modules can be loaded via HWSUPP_DRIVER_x.
Examples:
HWSUPP_LED_1='trigger' HWSUPP_LED_1_TRIGGER='heartbeat' HWSUPP_LED_2='trigger' HWSUPP_LED_2_TRIGGER='netfilter-ssh'
If 'HWSUPP_LED_x' has the value 'user' in HWSUPP_LED_PARAM a valid script name including path has to be entered.
Example:
HWSUPP_LED_1='user' HWSUPP_LED_1_PARAM='/usr/local/bin/myledscript'
When HWSUPP_LED_x='wlan' is set, the WLAN devices have to be entered in HWSUPP_LED_x_PARAM.
Defines one ore more WLAN devices, whose state shall be displayed. Multiple WLAN devices have to be separated by spaces.
When the state of multiple WLAN devices should be indicated by a single LED, the LED has the following meaning:
Example:
HWSUPP_LED_1='wlan' HWSUPP_LED_1_WLAN='wlan0 wlan1'
When HWSUPP_LED_x='ready' is set for any LED, this setting is used and HWSUPP_BOOT_LED will be ignored.
Th e list of possible actions can be extended by other packages. If the WLAN package is loaded, eg. the action
Here has to be entered a GPIO number in the format gpio::x. By preceding the char / the GPIO functionality may be inverted.
A list of predefined GPIO's for a specific HSUPP_TYPE can be found in the appendix B.7.2.
Examples:
HWSUPP_BUTTON_1_DEVICE='gpio::252' HWSUPP_BUTTON_2_DEVICE='/gpio::237'
Depending on the action HWSUPP_BUTTON_x_PARAM has different meanings.
If HWSUPP_BUTTON_x='user' is set, HWSUPP_BUTTON_x_PARAM defines a script to be executed on button press.
Example:
HWSUPP_BUTTON_1='user' HWSUPP_BUTTON_2_WLAN='/usr/local/bin/myscript'
If HWSUPP_BUTTON_x is set to 'wlan', the HWSUPP_BUTTON_x_PARAM defines one ore more WLAN devices, which shall be activated or deactivated on button press. Multiple WLAN devices have to be separated by spaces.
Example:
HWSUPP_BUTTON_2='wlan' HWSUPP_BUTTON_2_WLAN='wlan0 wlan1'
[HWSUPP_DRIVER_N]Number of additional drivers. The drivers in HWSUPP_DRIVER_x will be loaded in the denoted order.
[HWSUPP_DRIVER_x]Driver name (without file extension .ko).
Example:
HWSUPP_DRIVER_N='2' HWSUPP_DRIVER_1='i2c-piix4' # I2C bus driver HWSUPP_DRIVER_2='gpio-pcf857x' # I2C GPIO expander
[HWSUPP_I2C_N]Number of I2C devices to be loaded.
I2C doesn't support any PnP mechanismn. Hence for each I2C device the bus number, the device address and the device type have to be specified.
[HWSUPP_I2C_x_BUS]I2C bus number the device is attached to.
The bus number has to be entered as i2c-x.
[HWSUPP_I2C_x_ADDRESS]The device's I2C address.
The address has to be entered as a hex number in the range between 0x03 and 0x77.
[HWSUPP_I2C_x_DEVICE]The type of I2C device which is supported by an already loaded driver.
Example:
HWSUPP_I2C_N='1' HWSUPP_I2C_1_BUS='i2c-1' HWSUPP_I2C_1_ADDRESS='0x38' HWSUPP_I2C_1_DEVICE='pcf8574a' # supported by gpio-pcf857x driver
[OPT_VPN_CARD]The setting 'no' deactivates the OPT_VPN_CARD package completely. There will be no changes made to the fli4l boot mediums or the archive opt.img. OPT_VPN_CARD does not overwrite any other parts of the fli4l installation. To activate OPT_VPN_CARD set the variable OPT_VPN_CARD to 'yes'.
This configuration variable defines the type of the VPN accelerator. The following values are supported: