Skip to content

Commit

Permalink
sysupgrade platform.sh: Add Huawei AP5030DN: Write beginning of 'firm…
Browse files Browse the repository at this point in the history
…ware' partition to BootupA/B as boot address. doesn't seem to work, so use dd
  • Loading branch information
CodingMarco committed Nov 19, 2023
1 parent 6caa386 commit efb9bb8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ platform_do_upgrade() {
ROOTFS_FILE="root.squashfs"
platform_do_upgrade_failsafe_datachk "$1"
;;
huawei,ap5030dn)
# Write beginning address of "firmware" partition as KernelA address and KernelB address, each to BootupA & BootupB
echo "Setting Huawei-custom kernel addresses..."
echo -n -e "\x9e\x10\x00\x00\x9e\x10\x00\x00" | dd of=/dev/mtdblock1 bs=1 seek=$((0x254)) conv=notrunc
echo -n -e "\x9e\x10\x00\x00\x9e\x10\x00\x00" | dd of=/dev/mtdblock2 bs=1 seek=$((0x254)) conv=notrunc
default_do_upgrade "$1"
;;
jjplus,ja76pf2)
platform_do_upgrade_redboot_fis "$1" linux
;;
Expand Down

0 comments on commit efb9bb8

Please sign in to comment.