2
0
forked from Ivasoft/openwrt

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>
This commit is contained in:
Thibaut VARENE
2017-02-15 11:40:06 +01:00
committed by Felix Fietkau
parent 53c862705d
commit f6a52bf337
4 changed files with 17 additions and 32 deletions

View File

@@ -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"
;;