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:upx-hwk-boot-prx

From BoxMatrix


BoxMatrix >> Shell-Commands >> upx-hwk-boot-prx @ 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:   Transscript  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

upx-hwk-boot-prx is an Inter-CPU helper for upx-hwk-mgmtd setting the Bootloader-Environment and uploading
and booting the Falcon firmware from the Hawkeye of a 5590. It simplified does the following:

First the shell environment is cleared to create a Bootloader-Environment in it from /proc/sys/urlader/environment,
filtered for these variables:

Next the kernel_args variable is collected from /proc/cmdline filtered for these arguments:

  • prx.*=

Next the device name of the currently running fit-image is gathered from sysfs, simplified:

if sys_path=$(grep -l '^fit-image$' /sys/class/mtd/*/name); then

        # loaded from ram: support mtd(ram) partitions called fit-image
        sys_path=${sys_path%/name}

elif sys_path=$(grep -l "^PARTNAME=fit${linux_fs_start}\$" /sys/class/block/*/uevent); then

        # loaded from persistent storage: support block devices called fit0/fit1
        # depending on linux_fs_start
        sys_path=${sys_path%/uevent}

dev_path=/dev/$(sed -n "s/^DEVNAME=//p" "${sys_path}"/uevent)

Then the interface to the Falcon bootloader is initialized, simplified:

ip -n upx-hwk-fw-ns link set netns 1 dev wanmodem
ip netns add upx-hwk-fw-ns
ip link set netns upx-hwk-fw-ns dev wanmodem
ip -n upx-hwk-fw-ns addr add 192.168.178.2/24 dev wanmodem
ip -n upx-hwk-fw-ns link set up dev wanmodem

Finally the upload and boot is performed. "${@}" forwards all arguments passed to upx-hwk-boot-prx to ar7-lite.

ip netns exec upx-hwk-fw-ns ar7-lite -e 0x30000000 "${@}" 192.168.178.1 "${dev_path}"

The Bootloader-Environment created above in the shell environment is inherited by ar7-lite and sent to EVA:

Transscript

Transscript of the ar7-lite FTP session to EVA while uploading the fit-image:

220 ADAM2 FTP Server ready
USER adam2
331 Password required for adam2
PASS adam2
230 User adam2 successfully logged in

TYPE I
200 Type set to BINARY
MEDIA SDRAM
200 Media set to MEDIA_SDRAM

SETENV annex Ohne,pon
200 SETENV command successful
SETENV firmware_info 272.07.29,slot1=07.29-95450,slot0=07.29-95450
200 SETENV command successful
SETENV firmware_version avme
200 SETENV command successful
SETENV gpon_serial AVMGXXXXXXXX
200 SETENV command successful
SETENV linux_fs_start 0
200 SETENV command successful
SETENV maca B0:F2:08:xx:xx:xx
200 SETENV command successful
SETENV macb B0:F2:08:xx:xx:xx
200 SETENV command successful
SETENV macdsl B0:F2:08:xx:xx:xx
200 SETENV command successful
SETENV kernel_args 
200 SETENV command successful

PASV
227 Entering Passive Mode (192,168,178,1,12,5)
STOR 0x2d540000 0x30000000
150 Opening BINARY data connection
226 Transfer complete

You see the shell environment passed to ar7-lite is translated to SETENV commands.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-12-23 07:59 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
0 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-23 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!Box 5590 Fiber (main) 7.29 - 7.81 /bin 1.8k - 1.9k
1 model uses this command

Symbols

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

Firmware Symbol
0 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

u