nios2: Enable support for fitImage
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.
--- 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
configs/10m50_defconfig +1 -0
@@ -25,3 +25,4 @@ CONFIG_ALTERA_TSE=y CONFIG_SYS_NS16550=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y +CONFIG_FIT=y
configs/3c120_defconfig +1 -0
@@ -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
Signature · 1 line
2.1.4
PATCH v2 2/2 nios2: Soup up the shell experience
Enable command auto completion and enable $version variable. This makes working with U-Boot far more enjoyable.
--- include/configs/10m50_devboard.h | 2 ++ include/configs/3c120_devboard.h | 2 ++ 2 files changed, 4 insertions(+)
V2: Drop the default prompt setting
include/configs/10m50_devboard.h +2 -0
@@ -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 */
include/configs/3c120_devboard.h +2 -0
@@ -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 */
Signature · 1 line
2.1.4
PATCH v2 2/2 nios2: Soup up the shell experience
Hi Marek,
Quoted 31 lines · Marek Vasut
Enable command auto completion and enable $version variable. This makes working with U-Boot far more enjoyable.
Signed-off-by Marek Vasut <[email protected]>Cc Thomas Chou <[email protected]>--- include/configs/10m50_devboard.h | 2 ++ include/configs/3c120_devboard.h | 2 ++ 2 files changed, 4 insertions(+)V2: Drop the default prompt setting
include/configs/10m50_devboard.h +2
-0@@ -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 */ include/configs/3c120_devboard.h +0
-0
include/configs/3c120_devboard.h line 109
Quoted 8 lines
include/configs/3c120_devboard.h +2
-0@@ -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
PATCH v2 1/2 nios2: Enable support for fitImage
In reply to Marek VasutHi Marek,
Quoted 30 lines · Marek Vasut
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 <[email protected]>Cc Thomas Chou <[email protected]>--- configs/10m50_defconfig | 1 + configs/3c120_defconfig | 1 + 2 files changed, 2 insertions(+)V2: Move
CONFIG_FITintoKconfig
Drop duplicateCONFIG_OF_LIBFDTdefinitionconfigs/10m50_defconfig +1
-0@@ -25,3 +25,4 @@ CONFIG_ALTERA_TSE=y CONFIG_SYS_NS16550=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y +CONFIG_FIT=yconfigs/3c120_defconfig +0
-0
configs/3c120_defconfig CONFIG_ALTERA_JTAG_UART=y · line 29
Quoted 4 lines
configs/3c120_defconfig +1
-0@@ -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
PATCH v2 1/2 nios2: Enable support for fitImage
Quoted 37 lines · Thomas Chou
Hi Marek,
Quoted 34 lines · Marek Vasut
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 <[email protected]>Cc Thomas Chou <[email protected]>---
configs/10m50_defconfig | 1 + configs/3c120_defconfig | 1 + 2 files changed, 2 insertions(+)V2: Move
CONFIG_FITintoKconfigDrop duplicate
CONFIG_OF_LIBFDTdefinitionconfigs/10m50_defconfig +1
-0@@ -25,3 +25,4 @@ CONFIG_ALTERA_TSE=y CONFIG_SYS_NS16550=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y +CONFIG_FIT=yconfigs/3c120_defconfig +0
-0@@ -26,3 +26,4 @@ CONFIG_ALTERA_JTAG_UART=y
Quoted 7 lines
configs/3c120_defconfig CONFIG_ALTERA_JTAG_UART=y · line 29
Quoted 5 lines
configs/3c120_defconfig +1
-0CONFIG_ALTERA_JTAG_UART_BYPASS=y CONFIG_TIMER=y CONFIG_ALTERA_TIMER=y +CONFIG_FIT=yAmended 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
PATCH v2 1/2 nios2: Enable support for fitImage
Hi Marek,
Quoted 9 lines · Marek Vasut
Quoted 3 lines
Quoted 1 line
+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
PATCH v2 1/2 nios2: Enable support for fitImage
Quoted 1 line · Thomas Chou
Hi Marek,
Hi!
Quoted 5 lines · Marek Vasut
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
+CONFIG_FIT=y
Amended with savedefconfig and applied to u-boot-nios. Thanks.
Quoted 8 lines
Quoted 5 lines
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