Skip to contentSkip to conversation

cmd: fitupd: Convert CONFIG_CMD_FITUPD

PATCH New Marek Vasut 2 participants 6 messages Feb 10, 2018 – Feb 14, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 cmd: fitupd: Convert CONFIG_CMD_FITUPD

Convert the CONFIG_CMD_FITUPD symbol to Kconfig.

---
 cmd/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)
cmd/Kconfig +6 -0
index 7368b6df52..7c51749398 100644
@@ -308,6 +308,12 @@ config CMD_SPL_WRITE_SIZE
 	  flash used by Falcon-mode boot. See the documentation until CMD_SPL
 	  for detail.
 
+config CMD_FITUPD
+	bool "fitImage update command"
+	help
+	  Implements the 'fitupd' command, which allows to automatically
+	  store software updates present on a TFTP server in NOR Flash
+
 config CMD_THOR_DOWNLOAD
 	bool "thor - TIZEN 'thor' download"
 	help
Signature · 1 line
2.15.1
#1 lore raw

PATCH 2/3 cmd: fitupd: Convert CONFIG_UPDATE_TFTP and co.

Convert the CONFIG_UPDATE_TFTP and related symbols to Kconfig.

---
 common/Kconfig               | 21 +++++++++++++++++++++
 scripts/config_whitelist.txt |  3 ---
 2 files changed, 21 insertions(+), 3 deletions(-)
common/Kconfig +21 -0
index dcab69d321..d5bc37e4c7 100644
@@ -601,4 +601,25 @@ config HASH
 
 endmenu
 
+menu "Update support"
+
+config UPDATE_TFTP
+	bool "Auto-update using fitImage via TFTP"
+	depends on FIT
+	help
+	  This option allows performing update of NOR with data in fitImage
+	  sent via TFTP boot.
+
+config UPDATE_TFTP_CNT_MAX
+	int "The number of connection retries during auto-update"
+	default 0
+	depends on UPDATE_TFTP
+
+config UPDATE_TFTP_MSEC_MAX
+	int "Delay in mSec to wait for the TFTP server during auto-update"
+	default 100
+	depends on UPDATE_TFTP
+
+endmenu
+
 source "common/spl/Kconfig"
scripts/config_whitelist.txt +0 -3
index 1be3f23432..e5b6831633 100644
@@ -4740,9 +4740,6 @@ CONFIG_ULPI_REF_CLK
 CONFIG_UMSDEVS
 CONFIG_UPDATEB
 CONFIG_UPDATE_LOAD_ADDR
-CONFIG_UPDATE_TFTP
-CONFIG_UPDATE_TFTP_CNT_MAX
-CONFIG_UPDATE_TFTP_MSEC_MAX
 CONFIG_USART1
 CONFIG_USART_BASE
 CONFIG_USART_ID
Signature · 1 line
2.15.1
#2 lore raw

PATCH 2/3 cmd: fitupd: Convert CONFIG_UPDATE_TFTP and co.

Quoted 4 lines · Marek Vasut

Convert the CONFIG_UPDATE_TFTP and related symbols to Kconfig.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180213/b6357dee/attachment.sig>
#3 lore raw

PATCH 3/3 tftp: update: Include missing cfi_flash.h header

In reply to Marek Vasut

Add the missing header, otherwise CONFIG_SYS_MAX_FLASH_BANKS may be undeclared.

---
 common/update.c | 1 +
 1 file changed, 1 insertion(+)
common/update.c +1 -0
index 33bffaa89e..ef61790f4b 100644
@@ -24,6 +24,7 @@
 #include <malloc.h>
 #include <dfu.h>
 #include <errno.h>
+#include <mtd/cfi_flash.h>
 
 /* env variable holding the location of the update file */
 #define UPDATE_FILE_ENV		"updatefile"
Signature · 1 line
2.15.1
#4 lore raw

PATCH 3/3 tftp: update: Include missing cfi_flash.h header

Quoted 5 lines · Marek Vasut

Add the missing header, otherwise CONFIG_SYS_MAX_FLASH_BANKS may be undeclared.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180213/917f16af/attachment.sig>
#5 lore raw

PATCH 1/3 cmd: fitupd: Convert CONFIG_CMD_FITUPD

In reply to Marek Vasut
Quoted 4 lines · Marek Vasut

Convert the CONFIG_CMD_FITUPD symbol to Kconfig.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180213/6ad9c564/attachment.sig>