diff --git a/recipes-bsp/u-boot/files/0001-Add-sysmocom-specific-tweaks.patch b/recipes-bsp/u-boot/files/0001-Add-sysmocom-specific-tweaks.patch new file mode 100644 index 0000000..4bfbd58 --- /dev/null +++ b/recipes-bsp/u-boot/files/0001-Add-sysmocom-specific-tweaks.patch @@ -0,0 +1,140 @@ +From 18de7878e95d0c4fe7afcda22fa69b11c170c185 Mon Sep 17 00:00:00 2001 +From: Pau Espin Pedrol +Date: Fri, 28 Jul 2017 12:12:05 +0200 +Subject: [PATCH] Add sysmocom specific tweaks + +--- + common/autoboot.c | 2 +- + include/configs/litecell15.h | 48 ++++++++++++++++++++++++++++----------- + include/configs/ti_armv7_common.h | 2 +- + 3 files changed, 37 insertions(+), 15 deletions(-) + +diff --git a/common/autoboot.c b/common/autoboot.c +index c4e21452df..369f2c55a1 100644 +--- a/common/autoboot.c ++++ b/common/autoboot.c +@@ -352,7 +352,7 @@ const char *bootdelay_process(void) + s = getenv("bootcmd"); + + process_fdt_options(gd->fdt_blob); +- stored_bootdelay = bootdelay; ++ stored_bootdelay = CONFIG_BOOTDELAY; + + return s; + } +diff --git a/include/configs/litecell15.h b/include/configs/litecell15.h +index bb6629a3ce..fd270a76f4 100644 +--- a/include/configs/litecell15.h ++++ b/include/configs/litecell15.h +@@ -81,13 +81,19 @@ + #define CONFIG_SYS_NS16550_COM9 UART9_BASE /* GPS Port B */ + #define CONFIG_BAUDRATE 115200 + +-/* These 3 lines keep from inadvertly stopping u-boot by any serial glitch, at least a specific character must be pressed */ ++#define CONFIG_SYS_AUTOLOAD "n" /* No autoload */ ++/* These lines keep from inadvertly stopping u-boot by any serial glitch, at least a specific character must be pressed */ + #define CONFIG_AUTOBOOT_KEYED +-#define CONFIG_AUTOBOOT_DELAY_STR "c" +-#define CONFIG_AUTOBOOT_PROMPT "Autoboot in %d seconds, press <" CONFIG_AUTOBOOT_DELAY_STR "> to abort...\n",bootdelay ++#define CONFIG_AUTOBOOT_DELAY_STR "bts-delay" ++#define CONFIG_AUTOBOOT_STOP_STR "bts-stop" ++#define CONFIG_BOOTDELAY 8 /* -1 disables auto-boot */ ++#define CONFIG_AUTOBOOT_PROMPT "Autoboot in %d seconds, press <" CONFIG_AUTOBOOT_STOP_STR "> to abort...\n" + + #define CONFIG_SYS_OMAP_ABE_SYSCK + ++/* Write to ext4 partitions */ ++#define CONFIG_CMD_EXT4_WRITE ++ + /* CONFIG_HW_WATCHDOG when activated implies a lot of boot mechanisms to allow wdt reboot, boot counting, reset event detection (available for kernel info also), */ + /* multiple u-boot qspi images alternance, hardware watchdog ticking, failsafe boot alternative after a specific boot count limit exausted, */ + /* autoboot failing protection, etc. */ +@@ -99,9 +105,9 @@ + /*#define CONFIG_WDT_LOCK*/ + + /* Comment the following 3 definitions to allow to stay at u-boot command prompt forever when autoboot was manually stopped (defeat WDT safe boot protection in that case) */ +-#define CONFIG_BOOT_RETRY_TIME 600 +-#define CONFIG_BOOT_RETRY_MIN 60 +-#define CONFIG_RESET_TO_RETRY ++/* #define CONFIG_BOOT_RETRY_TIME 600 */ ++/* #define CONFIG_BOOT_RETRY_MIN 60 */ ++/* #define CONFIG_RESET_TO_RETRY */ + + /* WDT by default 128 secs (2< + + /* Internal memory boot */ + #ifdef CONFIG_SPL_INTMEM_BOOT +-#undef CONFIG_SPL_STACK ++#undef CONFIG_SPL_STACK + #undef CONFIG_SPL_BSS_START_ADDR + #undef CONFIG_SPL_BSS_MAX_SIZE + #undef CONFIG_SYS_SPL_MALLOC_START + #undef CONFIG_SYS_SPL_MALLOC_SIZE + +-#define CONFIG_SPL_STACK 0x40400000 +-#define CONFIG_SPL_BSS_START_ADDR 0x40500000 +-#define CONFIG_SPL_BSS_MAX_SIZE 0x00080000 +-#define CONFIG_SYS_SPL_MALLOC_START 0x40580000 +-#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00080000 ++#define CONFIG_SPL_STACK 0x40400000 ++#define CONFIG_SPL_BSS_START_ADDR 0x40500000 ++#define CONFIG_SPL_BSS_MAX_SIZE 0x00080000 ++#define CONFIG_SYS_SPL_MALLOC_START 0x40580000 ++#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00080000 + #endif + + /* Overwrite extra settings */ +@@ -226,6 +246,7 @@ + #define CONFIG_EXTRA_ENV_SETTINGS \ + DEFAULT_LINUX_BOOT_ENV \ + "console=" CONSOLEDEV ",115200n8\0" \ ++ "bootdelay=" __stringify(CONFIG_BOOTDELAY) "\0" \ + "fdtfile=litecell15.dtb\0" \ + "bootdir=/boot\0" \ + "bootfile=zImage\0" \ +@@ -292,7 +313,8 @@ + MYBOOT_LIMIT \ + NANDARGS \ + FLASH_UBOOT_LINUXFS \ +- FLASH_UBOOT2 ++ FLASH_UBOOT2 \ ++ FLASH_ROOTFS_TFTP + + #undef CONFIG_BOOTCOMMAND + #define CONFIG_BOOTCOMMAND \ +diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h +index 6011cf8c65..9680246feb 100644 +--- a/include/configs/ti_armv7_common.h ++++ b/include/configs/ti_armv7_common.h +@@ -93,7 +93,7 @@ + /* + * Default to a quick boot delay. + */ +-#define CONFIG_BOOTDELAY 1 ++/* #define CONFIG_BOOTDELAY 1 */ + + /* + * DDR information. If the CONFIG_NR_DRAM_BANKS is not defined, +-- +2.13.3 + diff --git a/recipes-bsp/u-boot/u-boot-litecell15-2015.07.inc b/recipes-bsp/u-boot/u-boot-litecell15-2015.07.inc index 6022c5f..0e42858 100644 --- a/recipes-bsp/u-boot/u-boot-litecell15-2015.07.inc +++ b/recipes-bsp/u-boot/u-boot-litecell15-2015.07.inc @@ -29,6 +29,7 @@ SRC_URI = "${@ '${DEV_SRCURI}' if d.getVar('NRW_BSP_DEVEL', False) else '${REL_S SRC_URI += "file://0001-fw_env-missing-header.patch" SRC_URI += "file://fix-build-error-under-gcc6.patch" +SRC_URI += "file://0001-Add-sysmocom-specific-tweaks.patch" addtask showversion after do_compile before do_install do_showversion() {