From f6a52bf3374682475e92c1960c19df8e6c1ea9b2 Mon Sep 17 00:00:00 2001 From: Thibaut VARENE Date: Wed, 15 Feb 2017 11:40:06 +0100 Subject: ar71xx: Enable mtdsplit support for RB SPI NOR devices This patch enables mtdsplit for the MikroTik subtarget. It converts mach-rbspi.c to use a single "firmware" partition. Finally, it converts the SPI NOR profile to metadata images: the original combined-image format is gone, the images are now "standard" sysupgrade images with metadata appended. Note: kernel2minor apparently pads the kernel container to erase-block boundary, but this is undocumented behaviour, so we do not rely on it and call pad-to anyway. Note: in platform.sh, the boards are tested last in platform_check_image() as this should eventually become the "*)" default case when more devices switch to metadata images. Signed-off-by: Thibaut VARENE --- .../linux/ar71xx/base-files/lib/upgrade/platform.sh | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'target/linux/ar71xx/base-files') diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 7423c38c5f..d48135a6d3 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -344,11 +344,6 @@ platform_check_image() { ls-sr71|\ pb42|\ pb44|\ - rb-750-r2|\ - rb-750up-r2|\ - rb-941-2nd|\ - rb-951ui-2nd|\ - rb-mapl-2nd|\ routerstation-pro|\ routerstation|\ wp543|\ @@ -637,6 +632,14 @@ platform_check_image() { return 0; ;; + # these boards use metadata images + rb-750-r2|\ + rb-750up-r2|\ + rb-941-2nd|\ + rb-951ui-2nd|\ + rb-mapl-2nd) + return 0 + ;; esac echo "Sysupgrade is not yet supported on $board." @@ -707,14 +710,6 @@ platform_do_upgrade() { local board=$(ar71xx_board_name) case "$board" in - rb-750-r2|\ - rb-750up-r2|\ - rb-941-2nd|\ - rb-951ui-2nd|\ - rb-mapl-2nd) - PLATFORM_DO_UPGRADE_COMBINED_SEPARATE_MTD=1 - platform_do_upgrade_combined "$ARGV" - ;; all0258n) platform_do_upgrade_allnet "0x9f050000" "$ARGV" ;; -- cgit v1.2.3