Skip to contentSkip to conversation

Boot android with FIT image

PATCH New Praneeth Bajjuri 3 participants 9 messages Apr 25, 2018 – May 8, 2018 Library code

lore
Share & tools
lore
#0 lore raw

cover Boot android with FIT image

Enable the FDT library overlay support for all TI SOC family and while at it
Enable android over emmc by default thru FIT image

Praneeth Bajjuri (2):
configs: TI: Enable FIT Library overlay support
env: ti: android: boot with FIT Image

 include/environment/ti/boot.h | 3 ++-
 lib/Kconfig                   | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 configs: TI: Enable FIT Library overlay support

Enable the FDT library overlay support for all TI SOC family.

Without this option, when Loading fdt from FIT image, the following warning is seen.

"config with overlays but CONFIG_OF_LIBFDT_OVERLAY not set".

---
 lib/Kconfig | 1 +
 1 file changed, 1 insertion(+)
lib/Kconfig +1 -0
index 436b90f..6d5306a 100644
@@ -252,6 +252,7 @@ config OF_LIBFDT
 
 config OF_LIBFDT_OVERLAY
 	bool "Enable the FDT library overlay support"
+	default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
 	help
 	  This enables the FDT library (libfdt) overlay support.
 
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/2 configs: TI: Enable FIT Library overlay support

Quoted 9 lines · Praneeth Bajjuri

Enable the FDT library overlay support for all TI SOC family.

Without this option, when Loading fdt from FIT image, the following warning is seen.

"config with overlays but CONFIG_OF_LIBFDT_OVERLAY not set".

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/20180426/178189fb/attachment.sig>
#3 lore raw

PATCH 1/2 configs: TI: Enable FIT Library overlay support

In reply to Praneeth Bajjuri
Quoted 9 lines · Praneeth Bajjuri

Enable the FDT library overlay support for all TI SOC family.

Without this option, when Loading fdt from FIT image, the following warning is seen.

"config with overlays but CONFIG_OF_LIBFDT_OVERLAY not set".

Quoted 19 lines
---
 lib/Kconfig | 1 +
 1 file changed, 1 insertion(+)
lib/Kconfig +1 -1
index 436b90f..6d5306a 100644
@@ -252,6 +252,7 @@ config OF_LIBFDT
 
 config OF_LIBFDT_OVERLAY
        bool "Enable the FDT library overlay support"
+       default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
        help
          This enables the FDT library (libfdt) overlay support.
 
--

1.9.1

#4 lore raw

PATCH 1/2 configs: TI: Enable FIT Library overlay support

In reply to Praneeth Bajjuri
Quoted 11 lines · Praneeth Bajjuri

Enable the FDT library overlay support for all TI SOC family.

Without this option, when Loading fdt from FIT image, the following warning is seen.

"config with overlays but CONFIG_OF_LIBFDT_OVERLAY not set".

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/20180508/b60af350/attachment.sig>
#5 lore raw

PATCH 2/2 env: ti: android: boot with FIT Image

In reply to Praneeth Bajjuri

Boot android over emmc by default thru FIT image

---
 include/environment/ti/boot.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/environment/ti/boot.h +2 -1
index 24b7783..a1767b4 100644
@@ -37,6 +37,7 @@
 		"run mmcboot;\0" \
 	"emmc_android_boot=" \
 		"echo Trying to boot Android from eMMC ...; " \
+		"run update_to_fit; " \
 		"setenv eval_bootargs setenv bootargs $bootargs; " \
 		"run eval_bootargs; " \
 		"setenv mmcdev 1; " \
@@ -49,7 +50,7 @@
 		"part size mmc ${mmcdev} boot boot_size; " \
 		"mmc read ${fdtaddr} ${fdt_start} ${fdt_size}; " \
 		"mmc read ${loadaddr} ${boot_start} ${boot_size}; " \
-		"bootm $loadaddr $loadaddr $fdtaddr;\0"
+		"bootm ${loadaddr}#${fdtfile};\0 "
 
 #ifdef CONFIG_OMAP54XX
 
Signature · 1 line
1.9.1
#6 lore raw

PATCH 2/2 env: ti: android: boot with FIT Image

Quoted 4 lines · Praneeth Bajjuri

Boot android over emmc by default thru FIT image

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/20180426/713ffb42/attachment.sig>
#7 lore raw

PATCH 2/2 env: ti: android: boot with FIT Image

In reply to Praneeth Bajjuri
Quoted 5 lines · Praneeth Bajjuri

Boot android over emmc by default thru FIT image

---

Quoted 27 lines
 include/environment/ti/boot.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/environment/ti/boot.h +2 -2
index 24b7783..a1767b4 100644
@@ -37,6 +37,7 @@
                "run mmcboot;\0" \
        "emmc_android_boot=" \
                "echo Trying to boot Android from eMMC ...; " \
+               "run update_to_fit; " \
                "setenv eval_bootargs setenv bootargs $bootargs; " \
                "run eval_bootargs; " \
                "setenv mmcdev 1; " \
@@ -49,7 +50,7 @@
                "part size mmc ${mmcdev} boot boot_size; " \
                "mmc read ${fdtaddr} ${fdt_start} ${fdt_size}; " \
                "mmc read ${loadaddr} ${boot_start} ${boot_size}; " \
-               "bootm $loadaddr $loadaddr $fdtaddr;\0"
+               "bootm ${loadaddr}#${fdtfile};\0 "
 
 #ifdef CONFIG_OMAP54XX
 
--

1.9.1

#8 lore raw

PATCH 2/2 env: ti: android: boot with FIT Image

In reply to Praneeth Bajjuri
Quoted 6 lines · Praneeth Bajjuri

Boot android over emmc by default thru FIT image

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/20180508/4a9a14c0/attachment.sig>