asusuimage: new tool for creating TRX-images compatible with AsusWRT
authorOleg S <remittor@gmail.com>
Tue, 20 Feb 2024 07:40:29 +0000 (10:40 +0300)
committerRobert Marko <robimarko@gmail.com>
Sun, 30 Jun 2024 09:57:46 +0000 (11:57 +0200)
commit3d09357fc7b5cd102f83bb88563ba51054ec3c26
tree6d5fdc82257dc124e48229b569937a3a1c24cd7f
parent0cfd1043e6c48ba82ce85c13fa1928b60385590f
asusuimage: new tool for creating TRX-images compatible with AsusWRT

This tool allows you to create `trx`-images for many Asus routers.
Supported v2 and v3 format of `trx`-images.

This format and tool use the mkimage generated uImage or multi images
and add Asus specific tail to pass AsusWRT validation.

Tested on Asus RT-AX89X which uses the v2 format.

Signed-off-by: Oleg S <remittor@gmail.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
[Major code cleanup, use generic endian conversion instead of defines,
use switches, move info printing to a separate function, use zlib CRC32]
[Remove VSC compatibility, fix warnings, rename to asusimage,
move variables to top of functions]
Link: https://github.com/openwrt/firmware-utils/pull/31
Signed-off-by: Robert Marko <robimarko@gmail.com>
CMakeLists.txt
src/asusuimage.c [new file with mode: 0644]