# boot delay (time to autostart boot command)
export CONFIG_BOOTDELAY=1
+# uncomment following line, to disable output in U-Boot console
+#export DISABLE_CONSOLE_OUTPUT=1
+
tplink_mr3020: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr3020
tplink_mr3020: export MAX_UBOOT_SIZE=64
tplink_mr3020: export COMPRESSED_UBOOT=1
@echo "#define CFG_PLL_FREQ "$(CFG_PLL_FREQ) >> include/config.h
endif
+ifdef DISABLE_CONSOLE_OUTPUT
+ @echo "#define CONFIG_SILENT_CONSOLE 1" >> include/config.h
+endif
+
@echo "#define CONFIG_DELAY_TO_AUTORUN_HTTPD 3" >> include/config.h
@echo "#define CONFIG_DELAY_TO_AUTORUN_CONSOLE 5" >> include/config.h
@echo "#define CONFIG_DELAY_TO_AUTORUN_NETCONSOLE 7" >> include/config.h
// are we going to run web failsafe mode, U-Boot console, U-Boot netconsole or just boot command?
if(reset_button_status()){
+#ifdef CONFIG_SILENT_CONSOLE
+ if(gd->flags & GD_FLG_SILENT){
+ /* Restore serial console */
+ console_assign(stdout, "serial");
+ console_assign(stderr, "serial");
+ }
+
+ /* enable normal console output */
+ gd->flags &= ~(GD_FLG_SILENT);
+#endif
+
// wait 0,5s
milisecdelay(500);
#define CFG_MEMTEST_END 0x83800000
#define CFG_RX_ETH_BUFFER 16
+#if defined(CONFIG_SILENT_CONSOLE)
+ #define CONFIG_EXTRA_ENV_SETTINGS "silent=1\0"
+#endif
+
/*
** PLL Config for different CPU/DDR/AHB frequencies
*/