[U-Boot] [PATCH V2 1/2] nios2: Enable support for fitImage

The uImage format is legacy for years now, enable support for the fitImage format, which allows combining multiple files (kernel and dtb) into a single file, offers better protection of the payload and so on.
Signed-off-by: Marek Vasut marex@denx.de Cc: Thomas Chou thomas@wytron.com.tw --- configs/10m50_defconfig | 1 + configs/3c120_defconfig | 1 + 2 files changed, 2 insertions(+)
V2: Move CONFIG_FIT into Kconfig Drop duplicate CONFIG_OF_LIBFDT definition
diff --git a/configs/10m50_defconfig b/configs/10m50_defconfig index 0d18e8d..c179a0f 100644 --- a/configs/10m50_defconfig +++ b/configs/10m50_defconfig @@ -25,3 +25,4 @@ CONFIG_ALTERA_TSE=y CONFIG_SYS_NS16550=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y +CONFIG_FIT=y diff --git a/configs/3c120_defconfig b/configs/3c120_defconfig index 8bc13f3..2fdff87 100644 --- a/configs/3c120_defconfig +++ b/configs/3c120_defconfig @@ -26,3 +26,4 @@ CONFIG_ALTERA_JTAG_UART=y CONFIG_ALTERA_JTAG_UART_BYPASS=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y +CONFIG_FIT=y

Enable command auto completion and enable $version variable. This makes working with U-Boot far more enjoyable.
Signed-off-by: Marek Vasut marex@denx.de Cc: Thomas Chou thomas@wytron.com.tw --- include/configs/10m50_devboard.h | 2 ++ include/configs/3c120_devboard.h | 2 ++ 2 files changed, 4 insertions(+)
V2: Drop the default prompt setting
diff --git a/include/configs/10m50_devboard.h b/include/configs/10m50_devboard.h index 608127f..8dfe2a8 100644 --- a/include/configs/10m50_devboard.h +++ b/include/configs/10m50_devboard.h @@ -99,6 +99,8 @@ CONFIG_ENV_SIZE - \ CONFIG_SYS_MALLOC_LEN - \ 0x10000) +#define CONFIG_VERSION_VARIABLE +#define CONFIG_AUTO_COMPLETE #define CONFIG_CMDLINE_EDITING
#endif /* __CONFIG_H */ diff --git a/include/configs/3c120_devboard.h b/include/configs/3c120_devboard.h index 6c9dc3f..2e94b69 100644 --- a/include/configs/3c120_devboard.h +++ b/include/configs/3c120_devboard.h @@ -102,6 +102,8 @@ CONFIG_ENV_SIZE - \ CONFIG_SYS_MALLOC_LEN - \ 0x10000) +#define CONFIG_VERSION_VARIABLE +#define CONFIG_AUTO_COMPLETE #define CONFIG_CMDLINE_EDITING
#endif /* __CONFIG_H */

Hi Marek,
On 2015年12月16日 08:32, Marek Vasut wrote:
Enable command auto completion and enable $version variable. This makes working with U-Boot far more enjoyable.
Signed-off-by: Marek Vasut marex@denx.de Cc: Thomas Chou thomas@wytron.com.tw
include/configs/10m50_devboard.h | 2 ++ include/configs/3c120_devboard.h | 2 ++ 2 files changed, 4 insertions(+)
V2: Drop the default prompt setting
diff --git a/include/configs/10m50_devboard.h b/include/configs/10m50_devboard.h index 608127f..8dfe2a8 100644 --- a/include/configs/10m50_devboard.h +++ b/include/configs/10m50_devboard.h @@ -99,6 +99,8 @@ CONFIG_ENV_SIZE - \ CONFIG_SYS_MALLOC_LEN - \ 0x10000) +#define CONFIG_VERSION_VARIABLE +#define CONFIG_AUTO_COMPLETE #define CONFIG_CMDLINE_EDITING
#endif /* __CONFIG_H */ diff --git a/include/configs/3c120_devboard.h b/include/configs/3c120_devboard.h index 6c9dc3f..2e94b69 100644 --- a/include/configs/3c120_devboard.h +++ b/include/configs/3c120_devboard.h @@ -102,6 +102,8 @@ CONFIG_ENV_SIZE - \ CONFIG_SYS_MALLOC_LEN - \ 0x10000) +#define CONFIG_VERSION_VARIABLE +#define CONFIG_AUTO_COMPLETE #define CONFIG_CMDLINE_EDITING
#endif /* __CONFIG_H */
Applied to u-boot-nios. Thanks.
Best regards, Thomas

Hi Marek,
On 2015年12月16日 08:32, Marek Vasut wrote:
The uImage format is legacy for years now, enable support for the fitImage format, which allows combining multiple files (kernel and dtb) into a single file, offers better protection of the payload and so on.
Signed-off-by: Marek Vasut marex@denx.de Cc: Thomas Chou thomas@wytron.com.tw
configs/10m50_defconfig | 1 + configs/3c120_defconfig | 1 + 2 files changed, 2 insertions(+)
V2: Move CONFIG_FIT into Kconfig Drop duplicate CONFIG_OF_LIBFDT definition
diff --git a/configs/10m50_defconfig b/configs/10m50_defconfig index 0d18e8d..c179a0f 100644 --- a/configs/10m50_defconfig +++ b/configs/10m50_defconfig @@ -25,3 +25,4 @@ CONFIG_ALTERA_TSE=y CONFIG_SYS_NS16550=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y +CONFIG_FIT=y diff --git a/configs/3c120_defconfig b/configs/3c120_defconfig index 8bc13f3..2fdff87 100644 --- a/configs/3c120_defconfig +++ b/configs/3c120_defconfig @@ -26,3 +26,4 @@ CONFIG_ALTERA_JTAG_UART=y CONFIG_ALTERA_JTAG_UART_BYPASS=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y +CONFIG_FIT=y
Amended with savedefconfig and applied to u-boot-nios. Thanks.
Best regards, Thomas

On Wednesday, December 16, 2015 at 06:38:47 AM, Thomas Chou wrote:
Hi Marek,
On 2015年12月16日 08:32, Marek Vasut wrote:
The uImage format is legacy for years now, enable support for the fitImage format, which allows combining multiple files (kernel and dtb) into a single file, offers better protection of the payload and so on.
Signed-off-by: Marek Vasut marex@denx.de Cc: Thomas Chou thomas@wytron.com.tw
configs/10m50_defconfig | 1 + configs/3c120_defconfig | 1 + 2 files changed, 2 insertions(+)
V2: Move CONFIG_FIT into Kconfig
Drop duplicate CONFIG_OF_LIBFDT definition
diff --git a/configs/10m50_defconfig b/configs/10m50_defconfig index 0d18e8d..c179a0f 100644 --- a/configs/10m50_defconfig +++ b/configs/10m50_defconfig @@ -25,3 +25,4 @@ CONFIG_ALTERA_TSE=y
CONFIG_SYS_NS16550=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y
+CONFIG_FIT=y diff --git a/configs/3c120_defconfig b/configs/3c120_defconfig index 8bc13f3..2fdff87 100644 --- a/configs/3c120_defconfig +++ b/configs/3c120_defconfig @@ -26,3 +26,4 @@ CONFIG_ALTERA_JTAG_UART=y
CONFIG_ALTERA_JTAG_UART_BYPASS=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y
+CONFIG_FIT=y
Amended with savedefconfig and applied to u-boot-nios. Thanks.
Thanks!
How exactly did you regenerate those defconfigs please ? Did you do just make nnn_config ; make savedefconfig ; cp defconfig configs/nnn_defconfig ?
Best regards, Marek Vasut

Hi Marek,
On 2015年12月16日 18:26, Marek Vasut wrote:
+CONFIG_FIT=y
Amended with savedefconfig and applied to u-boot-nios. Thanks.
Thanks!
How exactly did you regenerate those defconfigs please ? Did you do just make nnn_config ; make savedefconfig ; cp defconfig configs/nnn_defconfig ?
Yes, make nnn_config ; make savedefconfig ; cp defconfig configs/nnn_defconfig .
Best regards, Thomas

On Wednesday, December 16, 2015 at 02:15:35 PM, Thomas Chou wrote:
Hi Marek,
Hi!
On 2015年12月16日 18:26, Marek Vasut wrote:
+CONFIG_FIT=y
Amended with savedefconfig and applied to u-boot-nios. Thanks.
Thanks!
How exactly did you regenerate those defconfigs please ? Did you do just make nnn_config ; make savedefconfig ; cp defconfig configs/nnn_defconfig ?
Yes, make nnn_config ; make savedefconfig ; cp defconfig configs/nnn_defconfig .
Thanks :)
Best regards, Marek Vasut
participants (2)
-
Marek Vasut
-
Thomas Chou