If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
Property:alw flash util
BoxMatrix >> Shell-Commands >> alw_flash_util | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl |
News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media |
Startup-Scr | Hotplug-Scr | BusyBox-Cmds | Bash-Cmds | AVM-Cmds | Chipset-Cmds | Linux-Cmds | Shared-Libs | Kernel-Mods | Research |
AVM-Command
Command: | alw_flash_util - type Exec | Wiki | Freetz | IPPF | whmf | AVM | Web |
Location: | Shell-Commands >> AVM-Commands - Origin: AVM | ||||||
Path: | Release: /usr/bin Lab+Rel: /usr/bin | ||||||
Properties: | Size: 9.4k - 13.5k - Firmware: 7.52 - 7.61 | ||||||
Function: | Flash utility for the ZigBee Network Co-Processor application firmware. |
Goto: Examples - Source - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
alw_flash_util is a flash utility for the ZigBee Network Co-Processor (NCP) application firmware.
It uses libalwswdutil.so to locate the NCP app firmware (ie. zncp-1.1.1.bin) and libalwncpdfu.so to flash it.
So far it is neither used by the install script, nor anywhere in FRITZ!OS.
The Examples output and the Source show it is used in production test context.
The Examples output names this command dfu-util
which means Device Firmware Update Util
.
fsgw fw 7.57 - calling without options prints help:
root@zigbee:/var/mod/root# alw_flash_util Usage: alw_flash_util [OPTION] -n, --ncp_app Flash NCP app
ZigBee stack:
- Lexicon: ZigBee, LR-WPAN
- Components: NRF52
- Firmware: zncp-0.2.0.bin, zncp-1.0.0.bin, zncp-1.0.1.bin, zncp-1.0.2.bin
- Firmware: zncp-1.1.1.bin, zncp-1.2.0.bin, zncp-1.2.1.bin, zncp-1.3.2.bin
- Devices: ttyACM0, ttyACM1, ttyLRWPAN_NCP, ttyLRWPAN_PTEST
- Sockets: alw_gw_uds.sock
- Sinks: aflrwpan_gw_app
- Commands: alw_zb_gw_app, alw_zb_gw_cli, alw_flash_util, alw_zb_gw_stop
- Commands: supportdata.aha, zb_pcap_dump, uart_flash_tool
- Libraries: liblrwpan.so, libahamodaflrwpan.so, libalwptest.so
- Libraries: libalwncpdfu.so, libalwswdutil.so, libalwncpmgmt.so, libalwudsmsg.so
- Libraries: libcodsu.so, libudev.so, libusb.so, libgpiod.so
- Config: lrwpan.cfg, 95-lrwpan_usb.rules, 95-aflrwpan_usb.rules, alw_zb_gw_app.service
- UI-Modules: lrwpan
- Logs: alw_runtime.log, alw_zb_coordinator.log, alw_gw_crashlog.json
- Temp: supportdata.lrwpan
- Procfs: lrwpan
Examples
fsgw fr 7.57:
We need to stop the ZigBee stack to release the SWD GPIO lines:
root@fritz:/var/mod/root# ps | grep alw_gw_main 10907 root 1572 S grep alw_gw_main kill -INT 10907
Let's flash the app firmware:
root@fritz:/var/mod/root# alw_flash_util -n Setting up... [alw_ptest: alw_imgversion.c:265] Using target folder /lib/firmware/lrwpan/hw265_2 [alw_ptest: alw_imgversion.c:281] Bootloader bin file not found [alw_ptest: alw_imgversion.c:297] ptest app bin file not found [alw_ptest: alw_imgversion.c:309] NCP app bin file found: zncp-1.0.2.bin with version 1.0.2 (hwrev: 265, hwvar: 2) Requesting versions... Chip bootloader version: 1.8.0 (type: 0, hwrev: 0, hwvar: 0) Chip app version: 1.0.2(type: 2, hwrev: 265, hwvar: 2) Local app version (to be flashed): 1.0.2(type: 2, hwrev: 265, hwvar: 2) Flashing app... Invalid DFU suffix signature A valid DFU suffix will be required in a future dfu-util release!!! [alw_ptest: alw_dfu_tools.c:58] Cannot release interface Opening DFU USB Device...Copying data from PC to DFU device Download [=========================] 100% 375692 bytes Download done. state(2) = dfuIDLE, status(0) = No error condition is present Done! [alw_ptest: alw_udev_monitor.c:459] Error on epoll_wait: ret -1, errno 22 (Invalid argument) Sucessfully flashed NCP app
Now start the ZigBee stack again:
root@fritz:/var/mod/root# alw_zb_gw_app &
Source
The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.57 source files:
$ strings /usr/bin/alw_flash_util | grep -e '\.c$' -e '\.cpp$' /GU/LRWPAN_maple_lowmem_build/src/main/aflrwpan_ptest_lib/src/internal/alw_ptest_udev.c
Dependencies
Daily updated index of all dependencies of this command. Last update: 2024-11-14 07:42 GMT.
A *
in the Mod
column marks info from Supportdata-Probes, which will always stay incomplete.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
Depends on | lib | libalwncpdfu.so | 2 | 7.52 - 7.61 | USB Device Firmware Updater (DFU) for the ZigBee Network Co-Processor | AVM |
Depends on | lib | libalwptest.so | 2 | 7.52 - 7.61 | ZigBee production test | AVM |
Depends on | lib | libalwswdutil.so | 2 | 7.52 - 7.61 | ZigBee Network Co-Processor low-level management utilities | AVM |
Depends on | lib | libavmcsock.so | 2 | 7.52 - 7.61 | Networking, I/O and helper functions | AVM |
Depends on | lib | libbacktrace.so | 2 | 7.52 - 7.61 | Crash handler and logger | AVM |
Depends on | lib | libc.so | 2 | 7.52 - 7.61 | Standard C library | Linux |
Depends on | lib | libgpiod.so | 2 | 7.52 - 7.61 | Linux GPIO character device API | LibGpiod |
Depends on | lib | libminneapolis.so | 2 | 7.52 - 7.61 | Minneapolis datastore encoder / decoder | AVM |
Depends on | lib | libpthread.so | 1 | 7.61 | POSIX threading library | Linux |
Depends on | lib | libudev.so | 2 | 7.52 - 7.61 | API for enumerating and introspecting local devices | Linux |
Depends on | lib | libusb.so | 2 | 7.52 - 7.61 | Userspace access API to USB devices. | Linux |
Depends on | lib | libyajl.so | 2 | 7.57 - 7.61 | Event-driven JSON parser | Linux |
12 dependencies for this command |
Model-Matrix
Daily updated index of the presence, path and size of this command for each model. Last update: 2024-11-15 05:53 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl)
label in the Model
column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.
Model | Firmware | Path | Size |
---|---|---|---|
FRITZ!Box 6670 Cable (atom) | 7.61 | /usr/bin | 13.5k |
FRITZ!Smart Gateway | 7.52 - 7.59 | /usr/bin | 9.4k |
2 models use this command |
Symbols
Daily updated index of all symbols of this command. Last update: 2024-11-14 07:42 GMT.
Firmware | Symbol |
---|---|
7.57 - 7.61 | alw_ptest_udev_get_ctx |
7.57 - 7.61 | alw_ptest_udev_task_start |
7.57 - 7.61 | alw_ptest_udev_task_stop |
7.57 - 7.61 | alw_ptest_udev_task_terminate |
4 symbols for this command |