要使其工作,首先需要驱动程序。Eric Anholt 最近开发了适用于 Broadcom VC4 的 Mesa 和 DRM 驱动程序。这是一个 OpenGL 驱动程序。
http://dri.freedesktop.org/wiki/VC4/
https://www.youtube.com/watch?v=EXDeketJNdk
除了作者之外还有人能使它运行吗?
PS:我看到的是:
bcm2835 的 defconfig 根本无法编译,所以我坚持使用修改后的 bcm2709_defconfig(好吧,也许我搞乱了 4.1-rc3 内核上的 Ubuntu、rpi 和驱动程序分支的重新定基)
arch/arm/Kconfig:312:error: recursive dependency detected! arch/arm/Kconfig:312: choice <choice> contains symbol ARCH_AT91 arch/arm/Kconfig:365: symbol ARCH_AT91 depends on ARCH_MULTI_V4T arch/arm/Kconfig:823: symbol ARCH_MULTI_V4T depends on ARCH_MULTIPLATFORM arch/arm/Kconfig:317: symbol ARCH_MULTIPLATFORM is part of choice <choice>
和
In file included from arch/arm/kernel/asm-offsets.c:21:0: ./arch/arm/include/asm/glue-df.h:99:2: error: #error Unknown data abort handler type #error Unknown data abort handler type ^ In file included from arch/arm/kernel/asm-offsets.c:22:0: ./arch/arm/include/asm/glue-pf.h:54:2: error: #error Unknown prefetch abort handler type #error Unknown prefetch abort handler type ^
为什么有关于构建 X 服务器的指南http://dri.freedesktop.org/wiki/VC4/? 看起来像是默认的。
为了测试这个东西,我使用 qtdeclarative5-examples 包中的 Qt5 qml 示例和 xfce4 DE。它不像安装了某些驱动程序一样。
$ LD_LIBRARY_PATH=/usr/local/lib /usr/lib/arm-linux-gnueabihf/qt5/examples/quick/demos/clocks/clocks libEGL warning: DRI2: failed to authenticate libEGL warning: DRI2: failed to open swrast (search paths /usr/local/lib/dri) Cant find EGLConfig, returning null config Unable to find an X11 visual which matches EGL config 0 Could not initialize OpenGL Aborted