Latest Buildroot fails

I checked out the latest buildroot this evening

and ran a build
./build.sh milkv-duos-glibc-arm64-sd

It fails on :
/mnt/buildroot_volume/MilkVDuoS/duo-buildroot-sdk-v2
‘/mnt/buildroot_volume/MilkVDuoS/duo-buildroot-sdk-v2/tdl_sdk/install/lib/libcvi_tdl.so’ → ‘/mnt/buildroot_volume/MilkVDuoS/duo-buildroot-sdk-v2/install/soc_sg2000_milkv_duos_glibc_arm64_sd/rootfs/mnt/system/lib/libcvi_tdl.so’
Run build_pqtool_server() function
[aarch64-linux-gnu-g++] cvi_streamer.o
[aarch64-linux-gnu-g++] main.o
[aarch64-linux-gnu-gcc] stream_porting.o
/mnt/buildroot_volume/MilkVDuoS/duo-buildroot-sdk-v2/cvi_mpi/lib/libcvi_audio.so: undefined reference to pcm_read' /mnt/buildroot_volume/MilkVDuoS/duo-buildroot-sdk-v2/cvi_mpi/lib/libcvi_audio.so: undefined reference to pcm_open’
/mnt/buildroot_volume/MilkVDuoS/duo-buildroot-sdk-v2/cvi_mpi/lib/libcvi_audio.so: undefined reference to pcm_close' /mnt/buildroot_volume/MilkVDuoS/duo-buildroot-sdk-v2/cvi_mpi/lib/libcvi_audio.so: undefined reference to pcm_write’
/mnt/buildroot_volume/MilkVDuoS/duo-buildroot-sdk-v2/cvi_mpi/lib/libcvi_audio.so: undefined reference to `pcm_get_error’
collect2: error: ld returned 1 exit status
make: *** [Makefile:103: isp_tool_daemon] Error 1
Error: Build board milkv-duos-glibc-arm64-sd failed!

Turning on alsa-lib does not solve the issue.
I had updated from git this evening, prior to that everything built without issue.

1 Like

It can be a hard to compile without the host being configured correctly, and even then it’s problematic.

Use Docker, such as GitHub - CrocNet/duo-docker-builder: Build Milk-V Duo Ubuntu images ARM64 & RISC-V

1 Like

Thank you, that fixed my build issue, but I cannot boot the resulting image. I keep getting:
WD.C.SCS/0/0.WD.URPL.SDI/25000000/6000000.BS/SD.PS.SD/0x0/0x1000/0x1000/0.PE.BS.SD/0x1000/0xc400/0xc400/0.BE.J. E:RESET:plat/mars/platform.c:114
WD.C.SCS/0/0.WD.URPL.SDI/25000000/6000000.BS/SD.PS.SD/0x0/0x1000/0x1000/0.PE.BS.SD/0x1000/0xc400/0xc400/0.BE.J. E:RESET:plat/mars/platform.c:114
WD.C.SCS/0/0.WD.URPL.SDI/25000000/6000000.BS/SD.PS.SD/0x0/0x1000/0x1000/0.PE.BS.SD/0x1000/0xc400/0xc400/0.BE.J. E:RESET:plat/mars/platform.c:114

Inspecting the card it seems fine, a boot sector with boot.sd and flip.bin and a val rootfs as well.

Inspecting with file I get:

file out/milkv-duos-glibc-arm64-sd_2025-0424-2014.img
out/milkv-duos-glibc-arm64-sd_2025-0312-2001.img: DOS/MBR boot sector; partition 1 : ID=0xc, active, start-CHS (0x0,0,2), end-CHS (0x10,81,2), startsector 1, 262144 sectors; partition 3 : ID=0x83, start-CHS (0x10,146,4), end-CHS (0x72,122,9), startsector 266241, 1572864 sectors

The SD seems fine. If I clone a previous working image on to the card it boots fine, just fails to boot after flashing with this image.

1 Like

You have built for ARM. At the risk of asking the obvious, have you switched the DuoS into ARM mode?

1 Like

Yes, I have built for arm from the start. Switch is set for Arm.

1 Like

For reference,this issue is being tracked here: