From 960066228e0c34325af4117d812f725e6217eb07 Mon Sep 17 00:00:00 2001 From: Andrii Pientsov Date: Mon, 24 May 2021 14:01:54 +0300 Subject: MTX-4048 SEL-2021: U-boot shall not be accessible by default GP-1237 --- .../u-boot/u-boot-2016.09.01/mtre_disable_access.patch | 13 +++++++++++++ recipes-bsp/u-boot/u-boot_2016.09.01.bb | 1 + 2 files changed, 14 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/mtre_disable_access.patch (limited to 'recipes-bsp') diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/mtre_disable_access.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/mtre_disable_access.patch new file mode 100644 index 0000000..8b7ba2e --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-2016.09.01/mtre_disable_access.patch @@ -0,0 +1,13 @@ +# This change disables shell access for u-boot by default. +diff -Naru orig/configs/at91sam9x5ek_nandflash_defconfig new/configs/at91sam9x5ek_nandflash_defconfig +--- orig/configs/at91sam9x5ek_nandflash_defconfig 2021-05-22 23:33:29.000000000 +0300 ++++ new/configs/at91sam9x5ek_nandflash_defconfig 2021-05-22 23:36:25.946840766 +0300 +@@ -3,7 +3,7 @@ + CONFIG_TARGET_AT91SAM9X5EK=y + CONFIG_SPL=n + CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9X5,SYS_USE_NANDFLASH" +-CONFIG_BOOTDELAY=0 ++CONFIG_BOOTDELAY=-2 + CONFIG_HUSH_PARSER=y + CONFIG_SYS_PROMPT="U-Boot> " + CONFIG_CMD_BOOTZ=y diff --git a/recipes-bsp/u-boot/u-boot_2016.09.01.bb b/recipes-bsp/u-boot/u-boot_2016.09.01.bb index 3f4d2d5..475dd5e 100644 --- a/recipes-bsp/u-boot/u-boot_2016.09.01.bb +++ b/recipes-bsp/u-boot/u-boot_2016.09.01.bb @@ -29,6 +29,7 @@ SRC_URI_append_mtrv1 = "\ " SRC_URI_append_mtre = "\ file://mtre.patch \ + file://mtre_disable_access.patch \ " SRC_URI[md5sum] = "61c628f8034477c946e173ed174efeb4" -- cgit v1.2.3