aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorThibaut VARENE <hacks@slashdirt.org>2017-02-15 11:40:06 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-22 22:52:20 +0100
commitf6a52bf3374682475e92c1960c19df8e6c1ea9b2 (patch)
treefab3799d76c561a1c4ab490c8febb7a3e07574dd /target/linux/ar71xx/base-files
parent53c862705dc04b6a499c2ed47158bcc20954184c (diff)
downloadupstream-f6a52bf3374682475e92c1960c19df8e6c1ea9b2.tar.gz
upstream-f6a52bf3374682475e92c1960c19df8e6c1ea9b2.tar.bz2
upstream-f6a52bf3374682475e92c1960c19df8e6c1ea9b2.zip
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 <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh21
1 files changed, 8 insertions, 13 deletions
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"
;;