[PATCH] tftp: allocate at least 4096 bytes for FIFO

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Mon Sep 5 02:03:05 PDT 2022


Ahmad Fatoum <a.fatoum at pengutronix.de> writes:

> On one board, boots from /mnt/tftp currently fail for me with:
>
> ERROR: tftp: tftp: not enough room in kfifo (only 1376 out of 1432 written

Thanks for noticing that; I sent fixups for the recent patchset.

Perhaps, can you test it on your failing platform with changing

| #define TFTP_EXTRA_BLOCKS	2

to

| #define TFTP_EXTRA_BLOCKS	0

?

This should turn off the workaround of over-allocating memory and isolate
(and verify) the fix for the real problem.



Enrico



More information about the barebox mailing list