-
Thibaut VARÈNE authored
This driver exposes the data encoded in the "soft_config" flash segment of MikroTik RouterBOARDs devices. It presents the data in a sysfs folder named "soft_config" through a set of human-and-machine-parseable attributes. Changes can be discarded by writing 0 to the 'commit' attribute, or they can be committed to flash storage by writing 1. This driver does not reuse any of the existing code previously found in the "rbcfg" utility and makes this utility obsolete by providing a clean sysfs interface. Like "rbcfg", this driver requires 4K_SECTORS support since the flash partition in which these parameters are stored is typically 4KB in size. Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> Tested-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
Thibaut VARÈNE authoredThis driver exposes the data encoded in the "soft_config" flash segment of MikroTik RouterBOARDs devices. It presents the data in a sysfs folder named "soft_config" through a set of human-and-machine-parseable attributes. Changes can be discarded by writing 0 to the 'commit' attribute, or they can be committed to flash storage by writing 1. This driver does not reuse any of the existing code previously found in the "rbcfg" utility and makes this utility obsolete by providing a clean sysfs interface. Like "rbcfg", this driver requires 4K_SECTORS support since the flash partition in which these parameters are stored is typically 4KB in size. Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> Tested-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
Kconfig 441 B
menuconfig MIKROTIK
bool "Platform support for MikroTik RouterBoard virtual devices"
default n
help
Say Y here to get to see options for the MikroTik RouterBoard platform.
This option alone does not add any kernel code.
if MIKROTIK
config MIKROTIK_RB_SYSFS
tristate "RouterBoot sysfs support"
depends on MTD
select LZO_DECOMPRESS
select CRC32
help
This driver exposes RouterBoot configuration in sysfs.
endif # MIKROTIK