On 2024-02-05, наб wrote: > From a strace: > 1390 openat(AT_FDCWD, "/tmp/tmp.j2DX6x1MgV/Image-6.6.11.lz4", O_RDONLY) = 3 > 1390 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=12611929, ...}, > AT_EMPTY_PATH) = 0 > 1390 close(3) = 0 > 1390 openat(AT_FDCWD, "mt8173-elm-hana-6.6.11.dtb", O_RDONLY) = 3 > 1390 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=43853, ...}, > AT_EMPTY_PATH) = 0 > 1390 close(3) = 0 > 1390 mmap(NULL, 12660736, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0xffffafecd000 > 1390 openat(AT_FDCWD, "/tmp/tmp.j2DX6x1MgV/Image-6.6.11.lz4", O_RDWR) = 3 > 1390 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=12611929, ...}, > AT_EMPTY_PATH) = 0 > 1390 read(3, "\4\"M\30dp\271\361K!\0\225\37 \3\325'\360X\24\0\1\0 > \243\1\6\0/\n\0\1"..., 12611929) = 12611929 > 1390 close(3) = 0 > 1390 openat(AT_FDCWD, "mt8173-elm-hana-6.6.11.dtb", O_RDWR) = -1 EACCES > (Permission denied) > 1390 write(2, "mkimage: Can't open mt8173-elm-h"..., 66) = 66 > 1390 write(2, "mkimage: Failed to build FIT ima"..., 35) = 35 > 1390 munmap(0xffffafecd000, 12660736) = 0 > here, the dtb is unwritable. > > An analogous error happens if the Image is unwritable, > but as we can see here, it doesn't write to it anyway. > (Nor should it, given this is an input file.) > > Please turn this into an O_RDONLY.
It would be helpful to list the exact command you are running, although best to take this upstream. live well, vagrant
signature.asc
Description: PGP signature