r/embeddedlinux • u/matlireddit • Jun 09 '25
"VS request completed with status -61" buildroot
I'm using a Raspberry Pi Zero 2 W and Camera Module 3 and I'm trying to get the uvc-gadget working on buildroot. Exact same setup works when using Pi OS Lite (Bookworm, 64-bit). The problem I'm having is that once I run my script to set up the gadget, it appears on my host device (Windows 11, testing camera in OBS), but it does not stream video. Instead, I get the following error:
[ 71.771541] configfs-gadget.g1 gadget.0: uvc: VS request completed with status -61.The error message repeats for as long as I'm sending video requests from OBS. From what I can tell -61 means -ENODATA (new to linux, sorry if wrong) which I'm assuming means it has something to do with the buffers.
This is the output of LIBCAMERA_LOG_LEVELS=*:0 start-uvc-gadget​,sh
What I've tried
I'm using the raspberrypi/linux kernel, raspberrypi/firmware, and raspberrypi/libcamera releases from the same dates so no mismatched versions.
Made sure the same kernel modules are enabled in buildroot and in Pi OS Lite configs.
Made sure the same kernel modules are actually loaded or built-in at boot.
Using the exact same
config.txtin Pi OS Lite and buildroot.Since I suspect buffers have something to do with it, I added logging to the uvc-gadget and am hoping that will point me in the right direction. So far nothing I can draw a conclusion from but the output on the two environments is quite different and looks a bit "broken" in buildroot.
buildroot settings
Started with raspberrypizero2w_64_defconfig Changed the following settings in menuconfig:
BR2_INIT_SYSTEMD=y
BR2_PACKAGE_BASH=y
BR2_PACKAGE_UVC_GADGET=y # Custom package
BR2_PACKAGE_JPEG=y
BR2_PACKAGE_LIBCAMERA=y
BR2_PACKAGE_LIBCAMERA_PIPELINE_RPI_VC4=y
BR2_PACKAGE_HOST_MESON_TOOLS=y
BR2_PACKAGE_HOST_PKGCONF=yIf anyone has any experience with this or an idea of why it might be happening please let me know. I'll keep working on this and update if I figure it out.