Is the package included in the available packages in the buildroot? If it is it’s pretty easy to add it your image. You need to edit the config file for the busybox build. Just edit the file and add BR2_PACKAGE_PACKAGE_NAME=Y in the file duo-buildroot-sdk/buildroot-2021.05/configs/milkv-duo_musl_riscv64_defconfig. If it’s not part of the packages available as part of the buildroot I know there is a way to add a custom package but I havn’t done it.
Thank you, I got it to work, and successfully compiled and added light to the rootfs. But some packages, such as modem manager, require glibc and not musl toolchane. is it possible to change the toolchain to either ulibc or glibc?
there is no way to use glibc via official toolchain,because of the issue is from thead(the soc’s source CPU IP manufacturer).
But you can try rv64imafdc instead, it can compile glibc softwares,however, maybe have some bugs?
the best way is discard glibc use musl