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:modpib

From BoxMatrix


BoxMatrix >> Shell-Commands >> modpib @ 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

Linux-Command

Goto:   Examples  -  Defaults  -  GPL-Browser  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

modpib is the Qualcomm Atheros PIB File Editor. It is part of the open-plc-utils package, see the GPL-Browser below.
AVM uses the proprietary plc-utils package by QCA, which differs from the source on the GPL-Browser.

The PIB is the checksummed Parameter Information Block stored on each QCA AMP based Powerline controller.

modpib is called by the startup script E80-bootplc, see the Examples below.

See also the modpib(1) man page.

Fw 7.29 help:

root@fake:/var/mod/root# ./modpib -?

program: modify selected PIB parameters and update checksum

command: modpib [options] file [file] [...] 

options: [C:D:L:M:N:S:T:U:v!?]

 -C n	CCo Selection is n
 -D x	DAK as xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
 -L n	security level is n
 -M x	MAC as xx:xx:xx:xx:xx:xx
 -N x	NMK as xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
 -S s	MFG string is s
 -T s	NET string is s
 -U s	USR string is s
 -v	verbose messages
 -!	version information
 -?	help summary
root@fake:/var/mod/root# ./modpib -!

modpib plc-utils-2.1.12 QCAOSR-5422 ISO C Qualcomm Atheros, Santa Clara CA, USA 
       17:18:54 Jul 19 2021 QCA Proprietary License

Powerline stack:

Examples

Simplified from E80-bootplc fw 7.29 - sets DAK, MAC, NMK and the target region specific default PIB:

DAK = substr( $plc_dak_nmk, 0, 47 )
MAC = $usb_rndis_mac
NMK = substr( $plc_dak_nmk, 48, 47 )

cp /usr/share/plc/factorydefault-$HWSubRevision-ce.pib factorydefault_ce.pib
cp /usr/share/plc/factorydefault-$HWSubRevision-en.pib factorydefault_en.pib

modpib -D $DAK -M $MAC -N $NMK factorydefault_ce.pib
modpib -D $DAK -M $MAC -N $NMK factorydefault_en.pib

Defaults

FRITZ!OS stores a bunch of default PIB files, which already contain vendor and model specific definitions.
These need to be merged with the per device definitions DAK, MAC, NMK using modpib:

This is a subset of the Binary-Files section, filtered for '*.pib*' binaries or descriptions.

Daily updated index of all binaries found scanning Firmware-Probes . Last update: 2024-12-21 05:44 GMT.
The label (static) in the Binary column shows there are other objects in this wiki using this name.
The Mod column shows the amount of models using the respective file. Click the column header to sort by this number.
You can hover or click a possible Link in the Type column to see the target of that link.

GPL-Browser

Daily updated index of all modpib code findings on the GPL-Browser. Last update: 2024-12-21 05:03 GMT.
The Browse column points to the Path containing the respective source code on the gpl.boxmatrix.info service.
The SoC column lists the Chip-Codenames, the Model column lists the nicks of the Box-Models.
The Diff column links the comparison of the AVM Kernel to the pristine original from Kernel.org.
The Download column links the full tarball the respective directory content is extracted from.
The presence of the source does not mean it fits the respective model and architecture. See the Model-Matrix where it's used.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-12-21 07:44 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 ld.so 5 7.08 - 7.29 Dynamic linker / loader Linux
Depends on lib libc.so 5 5.50 - 7.29 Standard C library Linux
Depends on lib libgcc_s.so 2 5.50 - 6.92 GCC low-level runtime library Linux
Depends on lib libm.so 4 5.50 - 7.01 C math library Linux
4 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-12-21 05:44 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!Powerline 540E 5.58 - 7.15 /usr/bin 18.9k - 45.1k
FRITZ!Powerline 546E 5.50 - 7.15 /usr/bin 18.9k - 45.1k
FRITZ!Powerline 1240E 6.33 - 7.16 /usr/bin 18.9k - 35.4k
FRITZ!Powerline 1260E 6.90 - 7.29 /usr/bin 14.5k - 29.4k
FRITZ!Powerline 1260 7.27 - 7.29 /usr/bin 21.4k
5 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-12-21 07:44 GMT.

Firmware Symbol
5.50 - 7.16 HPAVKeyNID
7.08 - 7.16 SHA256Block
5.50 - 7.16 SHA256Fetch
5.50 - 7.16 SHA256Reset
5.50 - 7.16 SHA256Write
5.50 - 7.16 checksum32
5.50 - 6.32 error
5.50 - 7.16 fdchecksum32
5.50 - 7.16 getoptv
5.50 - 7.16 hexdecode
5.50 - 7.16 hexencode
5.50 - 7.16 hexstring
6.33 - 7.16 lightning_pib_peek
5.50 - 7.29 main
5.50 - 7.16 memincr
6.33 - 7.16 panther_pib_peek
5.50 - 6.32 pibfile1
5.50 - 6.32 pibfile2
5.50 - 6.32 pibpeek1
5.50 - 6.32 pibpeek2
5.50 - 7.16 putoptv
6.33 - 7.16 synonym
5.50 - 7.16 todigit
5.50 - 7.16 uintspec
5.50 - 7.16 version
25 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.