diff options
author | Sergey Ryazanov <ryazanov.s.a@gmail.com> | 2021-02-07 05:52:27 +0300 |
---|---|---|
committer | Sergey Ryazanov <ryazanov.s.a@gmail.com> | 2021-02-12 00:13:29 +0300 |
commit | fe23f181f4161b301f66b2fa7ab633279d3f90f5 (patch) | |
tree | e7aad6995a209c650f226382eb135fc7a9426bec /utils/atheepmgr | |
parent | c729a86f152072ef3635a4d2177e6a8aefbea731 (diff) |
atheepmgr: add new package
This utility is intended to analyze EEPROM/boarddata content of Atheros
based boards: load, dump, parse and perform quick edit. Mostly it is
used to work with binary dumps/blobs on a host, but sometime it is
useful to be able to run it on a board, e.g. to make an EEPROM content
dump or to quickly analyze ART/boarddata without copying it to a host.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Diffstat (limited to 'utils/atheepmgr')
-rw-r--r-- | utils/atheepmgr/Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/utils/atheepmgr/Makefile b/utils/atheepmgr/Makefile new file mode 100644 index 000000000..fc0283ffa --- /dev/null +++ b/utils/atheepmgr/Makefile @@ -0,0 +1,71 @@ +# +# Copyright (c) 2021 Sergey Ryazanov <ryazanov.s.a@gmail.com> +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=atheepmgr +PKG_VERSION:=2.1.1 +PKG_RELEASE:=1 + +PKG_SOURCE_VERSION:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/rsa9000/$(PKG_NAME).git +PKG_MIRROR_HASH:=dc77354538bd16343afb3e93c50cdd46792ced0f1632c7be0ddf56d2fcd75ba4 + +PKG_MAINTAINER:=Sergey Ryazanov <ryazanov.s.a@gmail.com> +PKG_LICENSE:=ISC +PKG_LICENSE_FILES:=LICENSE + +PKG_CONFIG_DEPENDS:=\ + CONFIG_ATHEEPMGR_DANGEROUS_FUNCTIONS \ + +include $(INCLUDE_DIR)/package.mk + +define Package/atheepmgr + SECTION:=utils + CATEGORY:=Utilities + TITLE:=EEPROM/boarddata management utility for Atheros WLAN chips + MENU:=1 +endef + +define Package/atheepmgr/description + This utility is intended to investigate the content of Atheros WLAN + chips EEPROM (OTP, boarddata, ART, etc.). It supports data extraction, + unpacking, parsing, dumping in a text form, saving binary data for + further analysis, as well as quick editing of some basic fields (e.g. + MAC address, etc.). + + The utility supports both data access methods: direct EEPROM (OTP) + access (via the chip) and offline binary dumps handling. + +endef + +define Package/atheepmgr/config + if PACKAGE_atheepmgr + config ATHEEPMGR_DANGEROUS_FUNCTIONS + bool "Enable dangerous functions" + default n + help + This option enables some functions, the use of which could cause + permanent hardware damages and (or) make the operation of the + equipment illegal due to RF spectre usage violation. + + These functions are intended for use by developers and radio + engineers. + + You have been warned. If unsure, say no. + endif +endef + +MAKE_VARS += \ + OS=Linux \ + HAVE_LIBPCIACCESS=n \ + CONFIG_I_KNOW_WHAT_I_AM_DOING=$(CONFIG_ATHEEPMGR_DANGEROUS_FUNCTIONS) \ + +define Package/atheepmgr/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/atheepmgr $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,atheepmgr)) |