[PATCH] commands: go: start files 4 KiB aligned
Sascha Hauer
s.hauer at pengutronix.de
Mon Nov 9 01:00:04 PST 2026
On Sun, 08 Nov 2026 21:15:42 +0100, Ahmad Fatoum wrote:
> go memmaps the file and jumps to wherever its data happens to be. For a
> file in ramfs, that's a malloc'ed chunk, but barebox on ARM64 addresses
> its data with adrp and needs to run 4 KiB aligned.
>
> Let's read files that can't be memmapped 4 KiB aligned into an aligned
> buffer instead. This also makes go work with files that can't be
> memmapped at all, like those on TFTP.
>
> [...]
Applied, thanks!
[1/1] commands: go: start files 4 KiB aligned
https://git.pengutronix.de/cgit/barebox/commit/?id=7fa5fc73ccf4 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list