Skip to contentSkip to conversation

vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

PATCH New Kristian Amlie 3 participants 13 messages Feb 25, 2020 – Mar 30, 2020 Arm/versatile express platform

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

---
 configs/vexpress_ca9x4_defconfig  | 2 +-
 include/configs/vexpress_common.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
configs/vexpress_ca9x4_defconfig +1 -1
index 2119df6b10..6bd1f253b6 100644
@@ -34,4 +34,4 @@ CONFIG_SMC911X_32_BIT=y
 CONFIG_BAUDRATE=38400
 CONFIG_CONS_INDEX=0
 CONFIG_OF_LIBFDT=y
-# CONFIG_EFI_LOADER is not set
+CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
include/configs/vexpress_common.h +2 -1
index 7f215a6707..e73658a9e6 100644
@@ -207,7 +207,8 @@
 			"devtmpfs.mount=0  vmalloc=256M\0" \
 		"bootflash=run flashargs; " \
 			"cp ${ramdisk_addr} ${ramdisk_addr_r} ${maxramdisk}; " \
-			"bootm ${kernel_addr} ${ramdisk_addr_r}\0"
+			"bootm ${kernel_addr} ${ramdisk_addr_r}\0" \
+		"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
 
 /* FLASH and environment organization */
 #define PHYS_FLASH_SIZE			0x04000000	/* 64MB */
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 25 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

---
 configs/vexpress_ca9x4_defconfig  | 2 +-
 include/configs/vexpress_common.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
configs/vexpress_ca9x4_defconfig +1 -1
index 2119df6b10..6bd1f253b6 100644
@@ -34,4 +34,4 @@ CONFIG_SMC911X_32_BIT=y
 CONFIG_BAUDRATE=38400
 CONFIG_CONS_INDEX=0
 CONFIG_OF_LIBFDT=y
-# CONFIG_EFI_LOADER is not set
+CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
include/configs/vexpress_common.h +0 -0
index 7f215a6707..e73658a9e6 100644

include/configs/vexpress_common.h line 214

Quoted 9 lines
include/configs/vexpress_common.h +2 -1
@@ -207,7 +207,8 @@
 			"devtmpfs.mount=0  vmalloc=256M\0" \
 		"bootflash=run flashargs; " \
 			"cp ${ramdisk_addr} ${ramdisk_addr_r} ${maxramdisk}; " \
-			"bootm ${kernel_addr} ${ramdisk_addr_r}\0"
+			"bootm ${kernel_addr} ${ramdisk_addr_r}\0" \
+		"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
 
 /* FLASH and environment organization */
 #define PHYS_FLASH_SIZE			0x04000000	/* 64MB */

Did you test build all of the vexpress platforms? There's a common file for the 5 different ones. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200228/0b1fee9e/attachment.sig>
#2 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 34 lines · Tom Rini
Quoted 32 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

---
 configs/vexpress_ca9x4_defconfig  | 2 +-
 include/configs/vexpress_common.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
configs/vexpress_ca9x4_defconfig +1 -1
index 2119df6b10..6bd1f253b6 100644
@@ -34,4 +34,4 @@ CONFIG_SMC911X_32_BIT=y
 CONFIG_BAUDRATE=38400
 CONFIG_CONS_INDEX=0
 CONFIG_OF_LIBFDT=y
-# CONFIG_EFI_LOADER is not set
+CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
include/configs/vexpress_common.h +2 -1
index 7f215a6707..e73658a9e6 100644
@@ -207,7 +207,8 @@
 			"devtmpfs.mount=0  vmalloc=256M\0" \
 		"bootflash=run flashargs; " \
 			"cp ${ramdisk_addr} ${ramdisk_addr_r} ${maxramdisk}; " \
-			"bootm ${kernel_addr} ${ramdisk_addr_r}\0"
+			"bootm ${kernel_addr} ${ramdisk_addr_r}\0" \
+		"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
 
Quoted 5 lines

include/configs/vexpress_common.h line 214

Quoted 2 lines
include/configs/vexpress_common.h +0 -0
 /* FLASH and environment organization */
 #define PHYS_FLASH_SIZE			0x04000000	/* 64MB */

Did you test build all of the vexpress platforms? There's a common file for the 5 different ones. Thanks!

The two boards vexpress_aemv8a_juno_defconfig and vexpress_aemv8a_semi_defconfig don't compile at all, even without the patch. The other three compile just fine both with and without the patch.

Signature · 9 lines
Kristian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200302/f6be7f6f/attachment.sig>
#3 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 41 lines · Kristian Amlie
Quoted 34 lines · Tom Rini
Quoted 32 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

---
 configs/vexpress_ca9x4_defconfig  | 2 +-
 include/configs/vexpress_common.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
configs/vexpress_ca9x4_defconfig +1 -1
index 2119df6b10..6bd1f253b6 100644
@@ -34,4 +34,4 @@ CONFIG_SMC911X_32_BIT=y
 CONFIG_BAUDRATE=38400
 CONFIG_CONS_INDEX=0
 CONFIG_OF_LIBFDT=y
-# CONFIG_EFI_LOADER is not set
+CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
include/configs/vexpress_common.h +2 -1
index 7f215a6707..e73658a9e6 100644
@@ -207,7 +207,8 @@
 			"devtmpfs.mount=0  vmalloc=256M\0" \
 		"bootflash=run flashargs; " \
 			"cp ${ramdisk_addr} ${ramdisk_addr_r} ${maxramdisk}; " \
-			"bootm ${kernel_addr} ${ramdisk_addr_r}\0"
+			"bootm ${kernel_addr} ${ramdisk_addr_r}\0" \
+		"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
 
Quoted 5 lines

include/configs/vexpress_common.h line 214

Quoted 2 lines
include/configs/vexpress_common.h +0 -0
 /* FLASH and environment organization */
 #define PHYS_FLASH_SIZE			0x04000000	/* 64MB */

Did you test build all of the vexpress platforms? There's a common file for the 5 different ones. Thanks!

Quoted 3 lines

The two boards vexpress_aemv8a_juno_defconfig and vexpress_aemv8a_semi_defconfig don't compile at all, even without the patch. The other three compile just fine both with and without the patch.

Don't compile where / how? All 5 compile with their defconfigs today. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200302/ca1e1930/attachment.sig>
#4 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 42 lines · Tom Rini
Quoted 41 lines · Kristian Amlie
Quoted 39 lines · Tom Rini
Quoted 25 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

---
 configs/vexpress_ca9x4_defconfig  | 2 +-
 include/configs/vexpress_common.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
configs/vexpress_ca9x4_defconfig +1 -1
index 2119df6b10..6bd1f253b6 100644
@@ -34,4 +34,4 @@ CONFIG_SMC911X_32_BIT=y
 CONFIG_BAUDRATE=38400
 CONFIG_CONS_INDEX=0
 CONFIG_OF_LIBFDT=y
-# CONFIG_EFI_LOADER is not set
+CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
include/configs/vexpress_common.h +0 -0
index 7f215a6707..e73658a9e6 100644

include/configs/vexpress_common.h line 214

Quoted 9 lines
include/configs/vexpress_common.h +2 -1
@@ -207,7 +207,8 @@
 			"devtmpfs.mount=0  vmalloc=256M\0" \
 		"bootflash=run flashargs; " \
 			"cp ${ramdisk_addr} ${ramdisk_addr_r} ${maxramdisk}; " \
-			"bootm ${kernel_addr} ${ramdisk_addr_r}\0"
+			"bootm ${kernel_addr} ${ramdisk_addr_r}\0" \
+		"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
 
 /* FLASH and environment organization */
 #define PHYS_FLASH_SIZE			0x04000000	/* 64MB */

Did you test build all of the vexpress platforms? There's a common file for the 5 different ones. Thanks!

Quoted 6 lines
Quoted 3 lines

The two boards vexpress_aemv8a_juno_defconfig and vexpress_aemv8a_semi_defconfig don't compile at all, even without the patch. The other three compile just fine both with and without the patch.

Don't compile where / how? All 5 compile with their defconfigs today. Thanks!

Oh, those are 64-bit boards, sorry I missed that part. All five are compiling fine then, both with and without the patch!

Signature · 10 lines
Kristian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200302/6553d035/attachment.sig>
#5 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 47 lines · Kristian Amlie
Quoted 46 lines · Tom Rini
Quoted 44 lines · Kristian Amlie
Quoted 34 lines · Tom Rini
Quoted 32 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

---
  configs/vexpress_ca9x4_defconfig  | 2 +-
  include/configs/vexpress_common.h | 3 ++-
  2 files changed, 3 insertions(+), 2 deletions(-)
configs/vexpress_ca9x4_defconfig +1 -1
index 2119df6b10..6bd1f253b6 100644
@@ -34,4 +34,4 @@ CONFIG_SMC911X_32_BIT=y
  CONFIG_BAUDRATE=38400
  CONFIG_CONS_INDEX=0
  CONFIG_OF_LIBFDT=y
-# CONFIG_EFI_LOADER is not set
+CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
include/configs/vexpress_common.h +2 -1
index 7f215a6707..e73658a9e6 100644
@@ -207,7 +207,8 @@
  			"devtmpfs.mount=0  vmalloc=256M\0" \
  		"bootflash=run flashargs; " \
  			"cp ${ramdisk_addr} ${ramdisk_addr_r} ${maxramdisk}; " \
-			"bootm ${kernel_addr} ${ramdisk_addr_r}\0"
+			"bootm ${kernel_addr} ${ramdisk_addr_r}\0" \
+		"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
 
Quoted 5 lines

include/configs/vexpress_common.h line 214

Quoted 2 lines
include/configs/vexpress_common.h +0 -0
  /* FLASH and environment organization */
  #define PHYS_FLASH_SIZE			0x04000000	/* 64MB */

Did you test build all of the vexpress platforms? There's a common file for the 5 different ones. Thanks!

The two boards vexpress_aemv8a_juno_defconfig and vexpress_aemv8a_semi_defconfig don't compile at all, even without the patch. The other three compile just fine both with and without the patch.

Quoted 5 lines
Quoted 2 lines

Don't compile where / how? All 5 compile with their defconfigs today. Thanks!

Oh, those are 64-bit boards, sorry I missed that part. All five are compiling fine then, both with and without the patch!

Anything I can do to help this along?

Signature · 10 lines
Kristian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200320/4cbf7744/attachment.sig>
#6 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

In reply to Kristian Amlie
Quoted 5 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

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: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200326/e1f7a6d7/attachment.sig>
#7 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 10 lines · Tom Rini
Quoted 5 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

Applied to u-boot/master, thanks!

Since this patch is merged I get errors on Gitlab for vexpress_ca9x4:

https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/jobs/69269

Filename 'lib/efi_loader/helloworld.efi'.
Load address: 0x60000000
Loading: *#

	 1.8 MiB/s

done
Bytes transferred = 1840 (730 hex)
smc911x: MAC 52:54:00:12:34:56
=> => crc32 60000000 $filesize
CRC32 for 60000000 ... 6000072f ==> f5c77855
=> => bootefi 60000000
78Scanning disks on mmc...
Card did not respond to voltage select!
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 0 disks
ERROR: need device tree

Best regards

Heinrich

#8 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 25 lines · Heinrich Schuchardt
Quoted 10 lines · Tom Rini
Quoted 5 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

Applied to u-boot/master, thanks!

Since this patch is merged I get errors on Gitlab for vexpress_ca9x4:

https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/jobs/69269

Filename 'lib/efi_loader/helloworld.efi'.
Load address: 0x60000000
Loading: *#
???? 1.8 MiB/s
done
Bytes transferred = 1840 (730 hex)
smc911x: MAC 52:54:00:12:34:56
=> => crc32 60000000 $filesize
CRC32 for 60000000 ... 6000072f ==> f5c77855

Quoted 8 lines

=> => bootefi 60000000
78Scanning disks on mmc...
Card did not respond to voltage select!
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 0 disks
ERROR: need device tree

Is the "bootefi 60000000" command correct? Doesn't "bootefi" need to be called with both an EFI binary address and a device tree address?

Signature · 9 lines
Kristian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200327/525145c7/attachment.sig>
#9 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 35 lines · Kristian Amlie
Quoted 25 lines · Heinrich Schuchardt
Quoted 10 lines · Tom Rini
Quoted 5 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

Applied to u-boot/master, thanks!

Since this patch is merged I get errors on Gitlab for vexpress_ca9x4:

https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/jobs/69269

Filename 'lib/efi_loader/helloworld.efi'.
Load address: 0x60000000
Loading: *#
???? 1.8 MiB/s
done
Bytes transferred = 1840 (730 hex)
smc911x: MAC 52:54:00:12:34:56
=> => crc32 60000000 $filesize
CRC32 for 60000000 ... 6000072f ==> f5c77855

Quoted 8 lines

=> => bootefi 60000000
78Scanning disks on mmc...
Card did not respond to voltage select!
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 0 disks
ERROR: need device tree

Quoted 2 lines

Is the "bootefi 60000000" command correct? Doesn't "bootefi" need to be called with both an EFI binary address and a device tree address?

It is I believe what we do elsewhere. I'm going to revert this for now until it can be sorted out, sorry.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200327/a57adec6/attachment.sig>
#10 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

In reply to Kristian Amlie
Quoted 35 lines · Kristian Amlie
Quoted 25 lines · Heinrich Schuchardt
Quoted 10 lines · Tom Rini
Quoted 5 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

Applied to u-boot/master, thanks!

Since this patch is merged I get errors on Gitlab for vexpress_ca9x4:

https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/jobs/69269

Filename 'lib/efi_loader/helloworld.efi'.
Load address: 0x60000000
Loading: *#
????? 1.8 MiB/s
done
Bytes transferred = 1840 (730 hex)
smc911x: MAC 52:54:00:12:34:56
=> => crc32 60000000 $filesize
CRC32 for 60000000 ... 6000072f ==> f5c77855

Quoted 8 lines

=> => bootefi 60000000
78Scanning disks on mmc...
Card did not respond to voltage select!
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 0 disks
ERROR: need device tree

Quoted 3 lines

Is the "bootefi 60000000" command correct? Doesn't "bootefi" need to be called with both an EFI binary address and a device tree address?

bootefi uses $fdtcontroladdr as fallback for the device tree. But this variable is only available if CONFIG_OF_CONTROL is set. We should adjust the python test to check this.

CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb" This line is incorrect. We never use a .dtb extension here.

Best regards

Heinrich

#11 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 40 lines · Heinrich Schuchardt
Quoted 35 lines · Kristian Amlie
Quoted 25 lines · Heinrich Schuchardt
Quoted 10 lines · Tom Rini
Quoted 5 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

Applied to u-boot/master, thanks!

Since this patch is merged I get errors on Gitlab for vexpress_ca9x4:

https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/jobs/69269

Filename 'lib/efi_loader/helloworld.efi'.
Load address: 0x60000000
Loading: *#
????? 1.8 MiB/s
done
Bytes transferred = 1840 (730 hex)
smc911x: MAC 52:54:00:12:34:56
=> => crc32 60000000 $filesize
CRC32 for 60000000 ... 6000072f ==> f5c77855

Quoted 8 lines

=> => bootefi 60000000
78Scanning disks on mmc...
Card did not respond to voltage select!
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 0 disks
ERROR: need device tree

Quoted 3 lines

Is the "bootefi 60000000" command correct? Doesn't "bootefi" need to be called with both an EFI binary address and a device tree address?

Quoted 6 lines

bootefi uses $fdtcontroladdr as fallback for the device tree. But this variable is only available if CONFIG_OF_CONTROL is set. We should adjust the python test to check this.

CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb" This line is incorrect. We never use a .dtb extension here.

I got that wrong. There are two variables which are somewhat related:

CONFIG_DEFAULT_DEVICE_TREE="meson-gxbb-odroidc2"
CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"

One uses the extension, the other doesn't.

So your patch seems to be correct. The error is in the Python test that does not check if OF_CONTROL is set.

Best regards

Heinrich

#12 lore raw

PATCH 1/1 vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

Quoted 50 lines · Heinrich Schuchardt
Quoted 40 lines · Heinrich Schuchardt
Quoted 35 lines · Kristian Amlie
Quoted 25 lines · Heinrich Schuchardt
Quoted 10 lines · Tom Rini
Quoted 5 lines · Kristian Amlie

EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04) correctly.

Applied to u-boot/master, thanks!

Since this patch is merged I get errors on Gitlab for vexpress_ca9x4:

https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/jobs/69269

Filename 'lib/efi_loader/helloworld.efi'.
Load address: 0x60000000
Loading: *#
????? 1.8 MiB/s
done
Bytes transferred = 1840 (730 hex)
smc911x: MAC 52:54:00:12:34:56
=> => crc32 60000000 $filesize
CRC32 for 60000000 ... 6000072f ==> f5c77855

Quoted 8 lines

=> => bootefi 60000000
78Scanning disks on mmc...
Card did not respond to voltage select!
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 0 disks
ERROR: need device tree

Quoted 3 lines

Is the "bootefi 60000000" command correct? Doesn't "bootefi" need to be called with both an EFI binary address and a device tree address?

Quoted 6 lines

bootefi uses $fdtcontroladdr as fallback for the device tree. But this variable is only available if CONFIG_OF_CONTROL is set. We should adjust the python test to check this.

CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb" This line is incorrect. We never use a .dtb extension here.

I got that wrong. There are two variables which are somewhat related:

Quoted 7 lines

CONFIG_DEFAULT_DEVICE_TREE="meson-gxbb-odroidc2"
CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"

One uses the extension, the other doesn't.

So your patch seems to be correct. The error is in the Python test that does not check if OF_CONTROL is set.

Thanks for figuring that out!

Signature · 9 lines
Kristian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200330/cf816f9a/attachment.sig>