image: fit: Show firmware configuration property if present
PATCH 1/2 image: fit: Show firmware configuration property if present
SPL ATF support requires to have firmware property which should be also listed by mkimage -l when images is created.
The patch is also using this macro in spl_fit to match keyword.
When image is created:
Default Configuration: 'config'
Configuration 0 (config)
Description: ATF with full u-boot Kernel: unavailable Firmware: atf FDT: dtb
---
common/image-fit.c | 4 ++++ common/spl/spl_fit.c | 3 ++- include/image.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-)
common/image-fit.c +4 -0
@@ -1610,6 +1610,10 @@ void fit_conf_print(const void *fit, int noffset, const char *p)if (uname)printf ("%s Init Ramdisk: %s\n" , p, uname); + uname =fdt_getprop (fit, noffset,FIT_FIRMWARE_PROP ,NULL ); +if (uname) +printf ("%s Firmware: %s\n" , p, uname); + for (fdt_index = 0; uname = fdt_stringlist_get(fit, noffset, FIT_FDT_PROP, fdt_index, NULL), uname;
common/spl/spl_fit.c +2 -1
@@ -395,7 +395,8 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,* - fall back to using the first 'loadables' entry */ if (node <0 ) - node =spl_fit_get_image_node (fit, images,"firmware" ,0 ); + node =spl_fit_get_image_node (fit, images,FIT_FIRMWARE_PROP , +0 );#ifdef CONFIG_SPL_OS_BOOT if (node <0 ) node =spl_fit_get_image_node (fit, images,FIT_KERNEL_PROP ,0 );
include/image.h +1 -0
@@ -919,6 +919,7 @@ int booti_setup(ulong image, ulong *relocated_addr, ulong *size);#define FIT_DEFAULT_PROP "default"#define FIT_SETUP_PROP "setup"#define FIT_FPGA_PROP "fpga" +#define FIT_FIRMWARE_PROP "firmware"#define FIT_MAX_HASH_LEN HASH_MAX_DIGEST_SIZE
Signature · 1 line
1.9.1
PATCH 2/2 image: fit: Show information about OS type in firwmare case too
SPL ATF implementation requires FIT image with partitions where the one is Firmware/ATF and another one Firmware/U-Boot. OS field is used for recording that difference that's why make sense to show values there for Firmware types.
For example:
Image 0 (atf)
Description: ATF bl31.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 51152 Bytes = 49.95 KiB = 0.05 MiB Architecture: ARM OS: ARM Trusted Firmware Load Address: 0xfffe0000 Hash algo: md5 Hash value: 36a4212bbb698126bf5a248f0f4b5336 Image 1 (uboot) Description: u-boot.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 761216 Bytes = 743.38 KiB = 0.73 MiB
Architecture: ARM
OS: U-Boot
Load Address: 0x08000000
Hash algo: md5
Hash value: f22960fe429be72296dc8dc59a47d566
---
common/image-fit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
common/image-fit.c +2 -1
@@ -419,7 +419,8 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)printf ("%s Architecture: %s\n" , p,genimg_get_arch_name (arch)); } -if ((type ==IH_TYPE_KERNEL ) || (type ==IH_TYPE_RAMDISK )) { +if ((type ==IH_TYPE_KERNEL ) || (type ==IH_TYPE_RAMDISK ) || + (type ==IH_TYPE_FIRMWARE )) {fit_image_get_os (fit, image_noffset, &os);printf ("%s OS: %s\n" , p,genimg_get_os_name (os)); }
Signature · 1 line
1.9.1
PATCH 2/2 image: fit: Show information about OS type in firwmare case too
Quoted 29 lines · Michal Simek
SPL ATF implementation requires FIT image with partitions where the one is Firmware/ATF and another one Firmware/U-Boot. OS field is used for recording that difference that's why make sense to show values there for Firmware types.
For example:
Image 0 (atf)Description: ATF bl31.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 51152 Bytes = 49.95 KiB = 0.05 MiB Architecture: ARM OS: ARM Trusted Firmware Load Address: 0xfffe0000 Hash algo: md5 Hash value: 36a4212bbb698126bf5a248f0f4b5336 Image 1 (uboot) Description: u-boot.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 761216 Bytes = 743.38 KiB = 0.73 MiBArchitecture: ARM
OS: U-Boot
Load Address:0x08000000
Hash algo: md5
Hash value:f22960fe429be72296dc8dc59a47d566
Quoted 5 lines
Signed-off-by Michal Simek <[email protected]>---
common/image-fit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
But please fix the commit subject 'firwmare'.
PATCH 2/2 image: fit: Show information about OS type in firwmare case too
Quoted 33 lines · Simon Glass
Quoted 32 lines · Michal Simek
SPL ATF implementation requires FIT image with partitions where the one is Firmware/ATF and another one Firmware/U-Boot. OS field is used for recording that difference that's why make sense to show values there for Firmware types.
For example:
Image 0 (atf)Description: ATF bl31.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 51152 Bytes = 49.95 KiB = 0.05 MiB Architecture: ARM OS: ARM Trusted Firmware Load Address: 0xfffe0000 Hash algo: md5 Hash value: 36a4212bbb698126bf5a248f0f4b5336 Image 1 (uboot) Description: u-boot.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 761216 Bytes = 743.38 KiB = 0.73 MiBArchitecture: ARM
OS: U-Boot
Load Address:0x08000000
Hash algo: md5
Hash value:f22960fe429be72296dc8dc59a47d566Signed-off-by Michal Simek <[email protected]>---
Quoted 7 lines
Quoted 2 lines
common/image-fit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Reviewed-by Simon Glass <[email protected]>But please fix the commit subject 'firwmare'.
ok. Fixed.
Thanks,
Michal
PATCH 2/2 image: fit: Show information about OS type in firwmare case too
In reply to Michal Simek2018-03-26 22:31 GMT+08:00 Michal Simek <[email protected]>:
Quoted 23 lines
SPL ATF implementation requires FIT image with partitions where the one is Firmware/ATF and another one Firmware/U-Boot. OS field is used for recording that difference that's why make sense to show values there for Firmware types.
For example:
Image 0 (atf)Description: ATF bl31.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 51152 Bytes = 49.95 KiB = 0.05 MiB Architecture: ARM OS: ARM Trusted Firmware Load Address: 0xfffe0000 Hash algo: md5 Hash value: 36a4212bbb698126bf5a248f0f4b5336 Image 1 (uboot) Description: u-boot.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 761216 Bytes = 743.38 KiB = 0.73 MiB
Quoted 9 lines
Architecture: ARM
OS: U-Boot
Load Address:0x08000000
Hash algo: md5
Hash value:f22960fe429be72296dc8dc59a47d566Signed-off-by Michal Simek <[email protected]>---
PATCH 2/2 image: fit: Show information about OS type in firwmare case too
In reply to Michal SimekQuoted 29 lines · Michal Simek
SPL ATF implementation requires FIT image with partitions where the one is Firmware/ATF and another one Firmware/U-Boot. OS field is used for recording that difference that's why make sense to show values there for Firmware types.
For example:
Image 0 (atf)Description: ATF bl31.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 51152 Bytes = 49.95 KiB = 0.05 MiB Architecture: ARM OS: ARM Trusted Firmware Load Address: 0xfffe0000 Hash algo: md5 Hash value: 36a4212bbb698126bf5a248f0f4b5336 Image 1 (uboot) Description: u-boot.bin Created: Mon Mar 26 15:58:14 2018 Type: Firmware Compression: uncompressed Data Size: 761216 Bytes = 743.38 KiB = 0.73 MiBArchitecture: ARM
OS: U-Boot
Load Address:0x08000000
Hash algo: md5
Hash value:f22960fe429be72296dc8dc59a47d566
Quoted 3 lines
Signed-off-by Michal Simek <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Jun Nie <[email protected]>
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/20180407/1c4c4723/attachment.sig>
PATCH 1/2 image: fit: Show firmware configuration property if present
In reply to Michal SimekQuoted 13 lines · Michal Simek
SPL ATF support requires to have firmware property which should be also listed by mkimage -l when images is created.
The patch is also using this macro in
spl_fitto match keyword.When image is created:
Default Configuration: 'config'
Configuration 0 (config)Description: ATF with full u-boot Kernel: unavailable Firmware: atf FDT: dtb
Quoted 8 lines
Signed-off-by Michal Simek <[email protected]>---
common/image-fit.c | 4 ++++ common/spl/spl_fit.c | 3 ++- include/image.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-)
PATCH 1/2 image: fit: Show firmware configuration property if present
In reply to Michal Simek2018-03-26 22:31 GMT+08:00 Michal Simek <[email protected]>:
Quoted 8 lines
SPL ATF support requires to have firmware property which should be also listed by mkimage -l when images is created.
The patch is also using this macro in
spl_fitto match keyword.When image is created:
Default Configuration: 'config'
Configuration 0 (config)
Quoted 8 lines
Description: ATF with full u-boot Kernel: unavailable Firmware: atf FDT: dtbSigned-off-by Michal Simek <[email protected]>---
PATCH 1/2 image: fit: Show firmware configuration property if present
In reply to Michal SimekQuoted 11 lines · Michal Simek
SPL ATF support requires to have firmware property which should be also listed by mkimage -l when images is created.
The patch is also using this macro in
spl_fitto match keyword.When image is created:
Default Configuration: 'config'
Configuration 0 (config)
Quoted 6 lines
Description: ATF with full u-boot Kernel: unavailable Firmware: atf FDT: dtbSigned-off-by Michal Simek <[email protected]>
PATCH 1/2 image: fit: Show firmware configuration property if present
In reply to Michal SimekQuoted 13 lines · Michal Simek
SPL ATF support requires to have firmware property which should be also listed by mkimage -l when images is created.
The patch is also using this macro in
spl_fitto match keyword.When image is created:
Default Configuration: 'config'
Configuration 0 (config)Description: ATF with full u-boot Kernel: unavailable Firmware: atf FDT: dtb
Quoted 4 lines
Signed-off-by Michal Simek <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Jun Nie <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>
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/20180407/4051fc67/attachment.sig>