Subsections

4.11 HWSUPP - Hardware support

4.11.1 Description

This package supplies the support for special hardware components.

Supported are:

The following systems, mainboards and VPN cards are supported:

4.11.2 Configuration of the HWSUPP package

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.

OPT_HWSUPP

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'.

HWSUPP_TYPE

This configuration variable sets the type of supported hardware. Following values can be used:

HWSUPP_WATCHDOG
The setting 'yes' activates the watchdog daemon if the hardware contains a watchdog. The watchdog will automatically restart a non responding system.

HWSUPP_CPUFREQ
The setting 'yes' activates CPU frequency adjustment controls.

HWSUPP_CPUFREQ_GOVERNOR
Selection of CPU frequency governor. The selected governor controls the frequency adjustment behaviour. It's a selection of one of:

HWSUPP_LED_N
Defines the number of LEDs. The number of LEDs of the hardware in use should be entered here.

HWSUPP_LED_x
Defines the information indicated by the LED. The following informations are possible:

The list of possible indications can be extended by other packages. For example, if the WLAN package is loaded the information

is possible.

In apppendix B.10 package developers can get some hints on how to create such extensions.

HWSUPP_LED_x_DEVICE
Specifies the LED device.

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

HWSUPP_LED_x_PARAM
Defines parameters for the selected LED information.

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'

HWSUPP_BOOT_LED
Definies a LED to indicate the boot progress by a blink sequence.

When HWSUPP_LED_x='ready' is set for any LED, this setting is used and HWSUPP_BOOT_LED will be ignored.

HWSUPP_BUTTON_N
Defines the number of buttons.
The number of buttons of the hardware in use should be entered here.

HWSUPP_BUTTON_x
Defines the action which should be executed on button press.
The following actions are supported:

Th e list of possible actions can be extended by other packages. If the WLAN package is loaded, eg. the action

is possible.

HWSUPP_BUTTON_x_DEVICE
Specifies the button device an.

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'

HWSUPP_BUTTON_x_PARAM
Defines parameters for the action selected in HWSUPP_BUTTON_x.

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'

4.11.3 Expert settings

The following settings should only be touched if you know exactly Activating the expert settings will issue a warning during the mkfli4l build.

[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

4.11.4 Support for VPN cards

[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'.

[VPN_CARD_TYPE]

This configuration variable defines the type of the VPN accelerator. The following values are supported:



Footnotes

... operation4.6
If HWSUPP_LED_x='ready' is set, the boot progress is indicated by a blink sequence (see appendix B.9).
... GPIO4.7
A GPIO (General Purpose Input/Output) is a generic pin on an integrated circuit whose behavior can be programmed at run time, including whether it is an input or output pin.
...2C4.8
An I2C bus or SMBus is a serial bus used in PCs eg. to read temperature sensor values. In many cases an I2C bus or SMBus is available on a pin header and can be used for own hardware extensions.
© 2001-2019 The fli4l-Team - 28 April 2019