NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-arm/54494: Olimex Teres laptop display is unresponsive after initial boot prompt



Please apply the following patch, run 'make dependall' in sys/stand/efiboot/bootaa64, then copy the resulting 'bootaa64.efi' to /boot/EFI/BOOT (replacing the current one).

Index: efifdt.c
===================================================================
RCS file: /cvsroot/src/sys/stand/efiboot/efifdt.c,v
retrieving revision 1.18
diff -u -p -r1.18 efifdt.c
--- efifdt.c	1 Aug 2019 13:11:16 -0000	1.18
+++ efifdt.c	29 Aug 2019 10:05:22 -0000
@@ -292,8 +292,15 @@ efi_fdt_gop(void)
 			continue;
 		}

+		fdt_setprop_u32(fdt_data,
+		    fdt_path_offset(fdt_data, FDT_CHOSEN_NODE_PATH), "#address-cells", 2);
+		fdt_setprop_u32(fdt_data,
+		    fdt_path_offset(fdt_data, FDT_CHOSEN_NODE_PATH), "#size-cells", 2);
+		fdt_setprop_empty(fdt_data,
+		    fdt_path_offset(fdt_data, FDT_CHOSEN_NODE_PATH), "ranges");
+
 		snprintf(buf, sizeof(buf), "framebuffer@%" PRIx64, mode->FrameBufferBase);
-		fb = fdt_add_subnode(fdt_data, fdt_path_offset(fdt_data, "/chosen"), buf);
+		fb = fdt_add_subnode(fdt_data, fdt_path_offset(fdt_data, FDT_CHOSEN_NODE_PATH), buf);
 		if (fb < 0)
 			panic("FDT: Failed to create framebuffer node");

@@ -327,10 +334,6 @@ efi_fdt_bootargs(const char *bootargs)
 	if (chosen < 0)
 		panic("FDT: Failed to create " FDT_CHOSEN_NODE_PATH " node");

-	fdt_setprop_u32(fdt_data, chosen, "#address-cells", 2);
-	fdt_setprop_u32(fdt_data, chosen, "#size-cells", 2);
-	fdt_setprop_empty(fdt_data, chosen, "ranges");
-
 	if (*bootargs)
 		fdt_setprop_string(fdt_data, chosen, "bootargs", bootargs);




Home | Main Index | Thread Index | Old Index