Skip to content

Commit

Permalink
[asus] Fix support TRX images of version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
remittor committed Jan 31, 2024
1 parent 02a7657 commit 96b8726
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=facinstall
PKG_VERSION:=1.4
PKG_RELEASE:=20240123
PKG_VERSION:=1.5
PKG_RELEASE:=20240131

PKG_MAINTAINER:=remittor <remittor@gmail.com>
PKG_LICENSE:=MIT
Expand Down
5 changes: 4 additions & 1 deletion files/asus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ FI_UBIFS_PART="UBI_DEV"
FI_KERNEL_VOL="linux"
FI_ROOTFS_VOL="rootfs"
FI_KERNEL_SIZE=
FI_DEL_TRX_HEADER=


fi_get_vol_id_by_name() {
Expand Down Expand Up @@ -79,7 +80,9 @@ fi_platform_do_upgrade() {

skip_size=0
if [ "$FI_IMAGE_MAGIC" = "$FI_MAGIC_TRX" ]; then
skip_size=64
if [ "$FI_DEL_TRX_HEADER" = "1" ]; then
skip_size=64
fi
fi

filog "Flash data to '$FI_KERNEL_VOL' (dev: $kernel_vol_dev)..."
Expand Down
4 changes: 4 additions & 0 deletions files/fi_boards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ fi_init_board() {
asus,rt-ax52)
FI_HW_MODEL="RT-AX52"
FI_KERNEL_SIZE=0x45fe000
FI_DEL_TRX_HEADER=1
;;
asus,rt-ax59u)
FI_HW_MODEL="RT-AX59U"
FI_KERNEL_SIZE=0x45fe000
FI_DEL_TRX_HEADER=1
;;
asus,rt-ax89x)
FI_HW_MODEL="RT-AX89U"
Expand All @@ -94,10 +96,12 @@ fi_init_board() {
asus,tuf-ax4200)
FI_HW_MODEL="TUF-AX4200"
FI_KERNEL_SIZE=0x45fe000
FI_DEL_TRX_HEADER=1
;;
asus,tuf-ax6000)
FI_HW_MODEL="TUF-AX6000"
FI_KERNEL_SIZE=0x45fe000
FI_DEL_TRX_HEADER=1
;;
xiaomi,mi-router-3-pro)
FI_HDR_MODEL_ID=10
Expand Down

0 comments on commit 96b8726

Please sign in to comment.