[U-Boot] [PATCH v2 5/7] bootcount: add support for bootcounter on EXT filesystem

Tom Rini trini at konsulko.com
Wed Nov 1 02:09:11 UTC 2017


On Tue, Oct 31, 2017 at 12:16:28PM +0000, Martyn Welch wrote:
> From: Ian Ray <ian.ray at ge.com>
> 
> Add support for bootcounter on an EXT filesystem.
> Sync configuration whitelist.
> 
> Signed-off-by: Ian Ray <ian.ray at ge.com>
> Signed-off-by: Martyn Welch <martyn.welch at collabora.co.uk>
> ---
> Changes for v2:
>    - Adding Kconfig for EXT bootcount.
> 
>  README                            |  7 +++++
>  drivers/Kconfig                   |  2 ++
>  drivers/bootcount/Kconfig         | 46 ++++++++++++++++++++++++++++++
>  drivers/bootcount/Makefile        |  1 +
>  drivers/bootcount/bootcount_ext.c | 59 +++++++++++++++++++++++++++++++++++++++
>  5 files changed, 115 insertions(+)
>  create mode 100644 drivers/bootcount/Kconfig
>  create mode 100644 drivers/bootcount/bootcount_ext.c
> 
> diff --git a/README b/README
> index f288176..6336c5c 100644
> --- a/README
> +++ b/README
> @@ -2362,6 +2362,13 @@ The following options need to be configured:
>  			CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
>  						    the bootcounter.
>  			CONFIG_BOOTCOUNT_ALEN = address len
> +		CONFIG_BOOTCOUNT_EXT
> +		enable support for the bootcounter in EXT filesystem
> +			CONFIG_SYS_BOOTCOUNT_ADDR = RAM address used for read
> +                                                    and write.
> +			CONFIG_SYS_BOOTCOUNT_EXT_INTERFACE = interface
> +			CONFIG_SYS_BOOTCOUNT_EXT_DEVPART = device and part
> +			CONFIG_SYS_BOOTCOUNT_EXT_NAME = filename
>  
>  - Show boot progress:
>  		CONFIG_SHOW_BOOT_PROGRESS
> diff --git a/drivers/Kconfig b/drivers/Kconfig
> index 613e602..c2e813f 100644
> --- a/drivers/Kconfig
> +++ b/drivers/Kconfig
> @@ -10,6 +10,8 @@ source "drivers/ata/Kconfig"
>  
>  source "drivers/block/Kconfig"
>  
> +source "drivers/bootcount/Kconfig"
> +
>  source "drivers/clk/Kconfig"
>  
>  source "drivers/cpu/Kconfig"
> diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig
> new file mode 100644
> index 0000000..a261ec9
> --- /dev/null
> +++ b/drivers/bootcount/Kconfig
> @@ -0,0 +1,46 @@
> +#
> +# Boot count configuration
> +#
> +
> +menu "Boot count support"
> +
> +config BOOTCOUNT_EXT
> +	bool "Boot counter on EXT filesystem"
> +	help
> +	  Add support for bootcounter on an EXT filesystem.
> +
> +if BOOTCOUNT_EXT

Can you add an entry for BOOTCOUNT itself please too?  Yes, that would
be a new symbol, but that will make the rest of the migrations easier I
think.  Thanks!

-- 
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/20171031/75b27776/attachment.sig>


More information about the U-Boot mailing list