[OpenWrt-Devel] bcm53xx: sysupgrade: support Luxul NAND devices
diff mbox series

Message ID 1571153708-22316-1-git-send-email-dan.haab@luxul.com
State Accepted
Headers show
Series
  • [OpenWrt-Devel] bcm53xx: sysupgrade: support Luxul NAND devices
Related show

Commit Message

Rip Route Oct. 15, 2019, 3:35 p.m. UTC
From: Dan Haab <dan.haab@legrand.com>

This adds support for UBI-aware sysupgrade using Luxul formats.
---
 target/linux/bcm53xx/base-files/lib/upgrade/platform.sh | 2 ++
 1 file changed, 2 insertions(+)

Comments

Rip Route Oct. 15, 2019, 5:51 p.m. UTC | #1
On Tue, Oct 15, 2019 at 9:35 AM Dan Haab <riproute@gmail.com> wrote:
>
> From: Dan Haab <dan.haab@legrand.com>
>
> This adds support for UBI-aware sysupgrade using Luxul formats.
> ---
>  target/linux/bcm53xx/base-files/lib/upgrade/platform.sh | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
> index 6b12c84..1686462 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
> --
> 1.9.1
>

Signed-off-by: Dan Haab <dan.haab@legrand.com>

Patch
diff mbox series

diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
index 6b12c84..1686462 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