Building for RPi CM4

  • Hi all,

    I'm working on something with a pi cm4 where I need the hardware acceleration of the h264 and h265 decoder blocks.

    feel free to tell me I'm in the wrong place, but asking here because you guys doing the development seem to understand the hardware far better than me.

    I'm trying to set this up in buildroot and given that everything I need seems to work under libreelec I've cherry picked and patched into buildroot the versions of:

    • kernel
    • bootloader
    • mesa
    • libdrm
    • ffmpeg

    that are being used in liberelec, but i can't get the vc4-kms-v3d driver working.

    the error message i'm getting in the logs is:

    Code
    # cat /var/log/messages | grep vc4
    Jan  1 00:00:04 buildroot user.info kernel: [    4.284570] fb0: switching to vc4 from simple
    Jan  1 00:00:04 buildroot user.info kernel: [    4.413565] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
    Jan  1 00:00:04 buildroot user.err kernel: [    4.421757] vc4-drm gpu: failed to bind fef00700.hdmi (ops vc4_hdmi_ops [vc4]): -22
    Jan  1 00:00:04 buildroot user.info kernel: [    4.436318] vc4-drm gpu: master bind failed: -22
    Jan  1 00:00:04 buildroot user.warn kernel: [    4.448451] vc4-drm: probe of gpu failed with error -22

    and the screen works initially until it tries to switch the framebuffer and then nothing.

    the modules do appear to be loading:

    really stuck on this, any help would be appreciated

    Thanks