Skip to contentSkip to conversation

pxe_utils: Increase feedback to user when fdt file is not found

PATCH In review Michael Trimarchi 3 participants 3 messages Dec 7, 2023 – Dec 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pxe_utils: Increase feedback to user when fdt file is not found

extlinux.conf can set fdtdir. fdtdir look for fdt file using information found in the enviroment variable. The function does not report any error in the case the file is not found

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning global bootmeth 'efi_mgr':
No EFI system partition
No EFI system partition
Failed to persist EFI variables
Scanning bootdev '[email protected]':
0 extlinux ready mmc 1 [email protected]_ /boot/extlinux/extlinux.conf
** Booting bootflow '[email protected]_1' with extlinux
1: am62x-sk-buildroot
Retrieving file: /boot/Image
append: console=ttyS2,115200n8 root=PARTUUID=c586a30c-0bf1-4323-aba8-779c814ee135 rw

		rootfstype=ext4 rootwait earlycon=ns16550a,mmio32,0x02800000

Retrieving file: /boot/k3-am623_ccm_m3.dtb
Skipping fdtdir /boot/ for failure retrieving dts

---
 boot/pxe_utils.c | 5 +++++
 1 file changed, 5 insertions(+)
boot/pxe_utils.c +5 -0
index a92bb896c6..83bc167785 100644
@@ -700,6 +700,11 @@ static int label_boot(struct pxe_context *ctx, struct pxe_label *label)
 					       label->name);
 					goto cleanup;
 				}
+
+				if (label->fdtdir) {
+					printf("Skipping fdtdir %s for failure retrieving dts\n",
+						label->fdtdir);
+				}
 			}
 
 			if (label->kaslrseed)
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 18 lines · Michael Trimarchi

extlinux.conf can set fdtdir. fdtdir look for fdt file using information found in the enviroment variable. The function does not report any error in the case the file is not found

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning global bootmeth 'efi_mgr':
No EFI system partition
No EFI system partition
Failed to persist EFI variables
Scanning bootdev '[email protected]':
0 extlinux ready mmc 1 [email protected]_ /boot/extlinux/extlinux.conf
** Booting bootflow '[email protected]_1' with extlinux
1: am62x-sk-buildroot
Retrieving file: /boot/Image
append: console=ttyS2,115200n8 root=PARTUUID=c586a30c-0bf1-4323-aba8-779c814ee135 rw

Quoted 8 lines
                rootfstype=ext4 rootwait earlycon=ns16550a,mmio32,0x02800000

Retrieving file: /boot/k3-am623_ccm_m3.dtb
Skipping fdtdir /boot/ for failure retrieving dts

---
 boot/pxe_utils.c | 5 +++++
 1 file changed, 5 insertions(+)
#2 lore raw
In reply to Michael Trimarchi
Quoted 6 lines · Michael Trimarchi

extlinux.conf can set fdtdir. fdtdir look for fdt file using information found in the enviroment variable. The function does not report any error in the case the file is not found

Scanning for bootflows in all bootdevs
Seq Method State Uclass Part Name Filename

Applied to u-boot/next, thanks!

Signature · 1 line
Tom