When running inside a QEMU microvm with the source directory shared via 9pfs, the kernel build process fails > Error: Could not mmap file: vmlinux Thus, we need to run the build in a path on a local filesystem. To support this, the Makefile now supports an `O` option, and all the build scripts have been adjusted to make use of it as needed. Since building in a local filesystem would ultimately discard the final artifacts when the VM terminates, we need yet a different location for the files we want to keep. The `IMAGESDIR` option can be used to specify this path. This path can be on a shared filesystem, thus saving the artifacts outside the microvm. |
||
---|---|---|
host-portage | ||
overlay | ||
patches | ||
portage | ||
u-boot@62e2ad1cea | ||
.gitignore | ||
.gitmodules | ||
Makefile | ||
README.md | ||
build-all.sh | ||
build-grub.sh | ||
build-host-tools.sh | ||
build-kernel.sh | ||
build-rootfs.sh | ||
build-squashfs.sh | ||
build-uboot.sh | ||
build-update.sh | ||
build.sh | ||
busybox.symlinks | ||
config | ||
config-portage.sh | ||
config.txt | ||
genimage.cfg | ||
genimage.sh | ||
grub.cfg | ||
install-update.sh | ||
linux.config | ||
patch-uboot.sh | ||
podman-build.sh | ||
post-build.sh | ||
prepare.sh | ||
setup-local-repo.sh | ||
squashfs.exclude | ||
start-container.sh | ||
u-boot.config |
README.md
Errors
SWIOTLB Buffer
OF: reserved mem: failed to allocate memory for node … Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer
Ensure start_x=1
is in config.txt
and start_file
/fixup_file
are not
specified.
U-Boot: Overwrite Reserved Memory
** Reading file would overwrite reserved memory **
Set CONFIG_LMB_MAX_REGIONS=16
in u-boot/.config