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:ar7-lite

From BoxMatrix
(Redirected from ar7-lite)


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

Chipset-Command

Goto:   Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

ar7-lite is a FIT-Image transfer and boot command using simple FTP to a remote EVA bootloader, like a Recovery.exe does.
It is used in upx-hwk-boot-prx on a Hawkeye to first set the remote Bootloader-Environment and then transfer and boot the
Falcon firmware fit-image on a 5590.

The name of this program likely comes from the fact that the remote side is not the Falcon PRX CPU itself but an AR7 lite
helper CPU, which also received the upload of the bootloader through a serial interface in upx-hwk-send-urlader-prx.
The mostly crypted bootloader binary contains the string 4Kc, which is the MIPS core of an AR7. The Falcon uses a 34Kc
MIPS core. This is just an assumption for the moment but may well be true.

fw 7.29 help:

root@fake:# ar7-lite -?

usage: ar7-lite [OPTIONS] HOST FIT_IMAGE

Options:
    -u USER       Use the user USER to log into the ftp server. (Default: adam2)
    -p PASS       Use the password PASS to log into the ftp server. (Default: adam2)
    -h            Print this help text.
    -s NAME=VALUE Set the urlader environment value NAME to VALUE. (Default: Empty)
    -t TIME*NUM/P Try connecting for TIME ms up to NUM times before
                  giving up. Each P tries there is a progress output (0:
                  disabled). (Default: 100*300/5)
    -c COL        Print the progress when uploading a file with at
                  most COL columns. Disabled by setting the value
                  to 0. (Default: 62)
    -e ADDR       Load the image into a memory area ending at the address ADDR
    -f LEN        Explicitly specify the image size (0: use the file
                  size). (Default: 0)

Send the firmware <fit_image> over the network to a cooperating bootloader
on <host>, which will load it into the host's memory and boot it.

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.29 source files:

$ strings /bin/ar7-lite | grep -e '\.c$' -e '\.cpp$'

ar7-lite.c
avm_fit.c
crtstuff.c
deadline.c
dynalloc.c
ext_err.c
ftp.c
fw_flash.c
gai_connect.c
misc.c
progress.c
Scrt1.c
timespec.c
trace.c

A very helpful finding for FIT-Image research is this:

$ strings -n 3 /bin/ar7-lite | grep fit

avm_fit.c
avm_fit_ed25519_hdr_htox
avm_fit_ed25519_hdr_xtoh

Now we finally know the signature algorithm in the AVM FIT-Image header is ED25519.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-04-18 19:26 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 libbasis.so 1 7.51 - 7.90 TODO AVM
Depends on lib libc.so 1 7.27 - 7.90 Standard C library Linux
2 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-04-19 05:14 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 5590 Fiber (arm) 7.27 - 7.90 /bin 17.3k - 29.2k
1 model uses this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-04-18 19:26 GMT.

Firmware Symbol
7.27 - 7.30 main
1 symbol for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

a