]> git.sur5r.net Git - u-boot/commitdiff
display5: config: Remove support for Linux initramfs recovery image boot
authorLukasz Majewski <lukma@denx.de>
Fri, 11 May 2018 14:51:05 +0000 (16:51 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 18 Jun 2018 13:42:38 +0000 (15:42 +0200)
This is a prerequisite patch to combine SWUpdate and Linux recovery
initramfs images.

It removes the support for it.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
configs/display5_defconfig
configs/display5_factory_defconfig
include/configs/display5.h

index ee0947fbc1442a1e961fa5ec35cba11c69e5d732..196b20240c3e229cdf21bb215f0136faf1bedc2a 100644 (file)
@@ -48,7 +48,7 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_CMD_MTDPARTS=y
 CONFIG_MTDIDS_DEFAULT="nor0=02008000.spi.1"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=02008000.spi.1:128k(SPL),1m(u-boot),64k(env1),64k(env2),8m(lin-recovery),4m(swu-kernel),8m(swu-initramfs),1m(factory),-(reserved)"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=02008000.spi.1:128k(SPL),1m(u-boot),64k(env1),64k(env2),4m(swu-kernel),8m(swu-initramfs),1m(factory),-(reserved)"
 CONFIG_EFI_PARTITION=y
 # CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_OF_CONTROL=y
index 10b025ce04e78f63801310a5a5d4d85484897652..e1b533492138f0bffccbd03a3d0371ee03c2b489 100644 (file)
@@ -53,7 +53,7 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_CMD_MTDPARTS=y
 CONFIG_MTDIDS_DEFAULT="nor0=02008000.spi.1"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=02008000.spi.1:128k(SPL),1m(u-boot),64k(env1),64k(env2),8m(lin-recovery),4m(swu-kernel),8m(swu-initramfs),-(reserved)"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=02008000.spi.1:128k(SPL),1m(u-boot),64k(env1),64k(env2),4m(swu-kernel),8m(swu-initramfs),-(reserved)"
 # CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_PARTITION_TYPE_GUID=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
index 420ced73c276971a2263285f6e1758ce627af89b..9bae8bc8a7021930ad02568de8dbd34ea9de85e6 100644 (file)
@@ -30,7 +30,6 @@
  * 0x020000 - 0x120000 : SPI.u-boot (1MiB)
  * 0x120000 - 0x130000 : SPI.u-boot-env1 (64KiB)
  * 0x130000 - 0x140000 : SPI.u-boot-env2 (64KiB)
- * 0x140000 - 0x940000 : SPI.fitImage-recovery (8MiB)
  * 0x940000 - 0xD40000 : SPI.swupdate-kernel-FIT (4MiB)
  * 0xD40000 - 0x1540000 : SPI.swupdate-initramfs  (8MiB)
  * 0x1540000 - 0x1640000 : SPI.factory  (1MiB)
        "run tftp_sf_SPL;" \
        "run tftp_sf_uboot;" \
        TFTP_UPDATE_KERNEL \
-       "run tftp_sf_fitImg_recovery;" \
        "run tftp_sf_fitImg_SWU;" \
        "run tftp_sf_initramfs_SWU;" \
        TFTP_UPDATE_ROOTFS \
        "sf read ${loadaddr_swu_initramfs} swu-initramfs;" \
        "bootm ${loadaddr} ${loadaddr_swu_initramfs};reset;"
 
-#define KERNEL_RECOVERY_PROCEDURE \
-       "echo '#######################';" \
-       "echo '# RECOVERY KERNEL IMG #';" \
-       "echo '#######################';" \
-       "sf probe;" \
-       "sf read ${loadaddr} lin-recovery;" \
-       "bootm;reset;"
-
 #define SETUP_BOOTARGS \
        "run set_rootfs_part;" \
        "setenv bootargs ${bootargs} console=${console} "         \
                "sf write ${loadaddr} swu-initramfs ${filesize};" \
        "; fi\0"          \
 
-#define TFTP_UPDATE_RECOVERY_KERNEL_INITRAMFS \
-       "kernel_recovery_file=fitImage-initramfs\0" \
-       "tftp_sf_fitImg_recovery=" \
-           "if tftp ${loadaddr} ${kernel_recovery_file}; then " \
-               "sf probe;" \
-               "sf erase lin-recovery +${filesize};" \
-               "sf write ${loadaddr} lin-recovery ${filesize};" \
-       "; fi\0"          \
-
 #define TFTP_UPDATE_BOOTLOADER \
        "ubootfile=u-boot.img\0" \
        "ubootfileSPL=SPL\0" \
             "setenv serverip 192.168.1.2;" \
             "echo BOOT: FACTORY (LEG);" \
             "run boot_nfs\0" \
-       "boot_kernel_recovery=" KERNEL_RECOVERY_PROCEDURE "\0" \
        "boot_swu_recovery=" SWUPDATE_RECOVERY_PROCEDURE "\0" \
        "recovery=" \
-       "if test ${BOOT_FROM_RECOVERY} = SWU; then " \
             "echo BOOT: RECOVERY: SWU;" \
-            "run boot_swu_recovery;" \
-       "else " \
-            "echo BOOT: RECOVERY: Linux;" \
-            "run boot_kernel_recovery;" \
-       "fi\0" \
+            "run boot_swu_recovery\0" \
        "boot_tftp=" \
        "if run download_kernel; then "   \
             "setenv bootargs console=${console} " \
             "run recovery;" \
        "fi;fi\0" \
        "BOOT_FROM=ACTIVE\0" \
-       "BOOT_FROM_RECOVERY=Linux\0" \
        TFTP_UPDATE_BOOTLOADER \
        TFTP_UPDATE_SPINOR \
        "kernel_part_active=1\0" \
        "rootfs_part_backup=4\0" \
        "rootfs_file=core-image-lwn-display5.ext4\0" \
        __TFTP_UPDATE_ROOTFS \
-       TFTP_UPDATE_RECOVERY_KERNEL_INITRAMFS \
        TFTP_UPDATE_RECOVERY_SWU_KERNEL \
        TFTP_UPDATE_RECOVERY_SWU_INITRAMFS \
        "\0" \