Skip to contentSkip to conversation

cmd: pxe: Increase maximum path length

PATCH New Ben Wolsieffer 2 participants 2 messages Dec 3, 2019 – Dec 5, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: pxe: Increase maximum path length

On NixOS, cross compiled kernels have long suffixes that cause them to exceed the current maximum path length. The PXE/TFTP max path length is used for extlinux.conf support as well, which is where this problem usually manifest's itself.

---

 cmd/pxe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/pxe.c +1 -1
index 2059975446..744cd82730 100644
@@ -21,7 +21,7 @@
 #include "menu.h"
 #include "cli.h"
 
-#define MAX_TFTP_PATH_LEN 127
+#define MAX_TFTP_PATH_LEN 512
 
 const char *pxe_default_paths[] = {
 #ifdef CONFIG_SYS_SOC
Signature · 1 line
2.24.0
#1 lore raw

PATCH 1/1 cmd: pxe: Increase maximum path length

Quoted 7 lines · Ben Wolsieffer

On NixOS, cross compiled kernels have long suffixes that cause them to exceed the current maximum path length. The PXE/TFTP max path length is used for extlinux.conf support as well, which is where this problem usually manifest's itself.

We'll try it and see if it blows any memory limits.

Quoted 26 lines

---

 cmd/pxe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/pxe.c +1 -2
index 2059975446..744cd82730 100644
@@ -21,7 +21,7 @@
 #include "menu.h"
 #include "cli.h"
 
-#define MAX_TFTP_PATH_LEN 127
+#define MAX_TFTP_PATH_LEN 512
 
 const char *pxe_default_paths[] = {
 #ifdef CONFIG_SYS_SOC
--

2.24.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot