From: Dan Haab Date: Tue, 15 Oct 2019 15:35:08 +0000 (-0600) Subject: bcm53xx: sysupgrade: support Luxul NAND devices X-Git-Tag: v19.07.0-rc1~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f4b1926be022ee87b5707776abefe3fa53d65ac4;p=oweals%2Fopenwrt.git bcm53xx: sysupgrade: support Luxul NAND devices This adds support for UBI-aware sysupgrade using Luxul formats. Signed-off-by: Dan Haab (cherry picked from commit 63c43e5674f346b8ed13377d551e5699afbeb673) --- diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh index 6b12c847d6..1686462cde 100644 --- a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh @@ -402,6 +402,8 @@ platform_do_upgrade() { case "$file_type" in "chk") platform_do_upgrade_nand_trx "$1" $((0x$(get_magic_long_at "$1" 4)));; "cybertan") platform_do_upgrade_nand_trx "$1" 32;; + "lxl") platform_do_upgrade_nand_trx "$1" $(get_le_long_at "$1" 8);; + "lxlold") platform_do_upgrade_nand_trx "$1" 64;; "seama") platform_do_upgrade_nand_seama "$1";; "trx") platform_do_upgrade_nand_trx "$1";; esac