duo-buildroot-sdk
It’s a litte weird and they don’t do everything by the book. My notes:
Milk-v’s duo-buildroot-sdk
tells you to go to duo-buildroot-sdk/buildroot-YYYY.MM/output/milkv-*/
and run make menuconfig
to set up your build.
Do not select to build a kernel in this menu. It will only waste time. The milkv scripts will build a different kernel and install it to the boot partition, so the one you configure won’t get used.
Instead, it uses the kernel defined in duo-buildroot-sdk/linux_5.10
(as of 5/2024). If you go to this directory and make menuconfig
, though, it will only let you set x86 options, not cross-compile options. Easiest thing for me was to do this:
duo-buildroot-sdk/build.sh
get_toolchain
export MILKV_BOARD="${MILKV_BOARD}"
prepare_env
build_info
menuconfig_kernel # this line is new
milkv_build
milkv_pack
Now when you run ./build.sh
, it will prompt you to set up your kernel first.
These will cause your build to fail, and with lots of parallel builds happening and limited logging output in br.log
it is hard to troubleshoot, so avoid these: