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.

0
U

Property:alw flash util

From BoxMatrix
(Redirected from 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

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:

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-03-28 07:36 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 1 7.39 - 7.59 USB Device Firmware Updater (DFU) for the ZigBee Network Co-Processor AVM
Depends on lib libalwptest.so 1 7.39 - 7.59 ZigBee production test AVM
Depends on lib libalwswdutil.so 1 7.39 - 7.59 ZigBee Network Co-Processor low-level management utilities AVM
Depends on lib libavmcsock.so 1 7.39 - 7.59 Networking, I/O and helper functions AVM
Depends on lib libbacktrace.so 1 7.39 - 7.59 Crash handler and logger AVM
Depends on lib libc.so 1 7.39 - 7.59 Standard C library Linux
Depends on lib libgpiod.so 1 7.39 - 7.59 Linux GPIO character device API LibGpiod
Depends on lib libminneapolis.so 1 7.39 - 7.59 Minneapolis datastore encoder / decoder AVM
Depends on lib libudev.so 1 7.39 - 7.59 API for enumerating and introspecting local devices Linux
Depends on lib libusb.so 1 7.39 - 7.59 Userspace access API to USB devices. Linux
Depends on lib libyajl.so 1 7.57 - 7.59 Event-driven JSON parser Linux
11 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-03-28 15:46 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) label in the Model column shows which CPU is meant for models with multiple Linux instances.
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 (arm) 7.61 /usr/bin 13.5k
FRITZ!Box 6670 Cable (atom) 7.61 /usr/bin 13.5k
FRITZ!Smart Gateway 7.39 - 7.59 /usr/bin 9.4k
3 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-03-28 07:36 GMT.

Firmware Symbol
7.57 - 7.59 alw_ptest_udev_get_ctx
7.57 - 7.59 alw_ptest_udev_task_start
7.57 - 7.59 alw_ptest_udev_task_stop
7.57 - 7.59 alw_ptest_udev_task_terminate
4 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

a