Raspberry Pi VC4 - Gentoo Wiki
文章推薦指數: 80 %
Using the "VC4" driver on the raspberry pi to enable hardware acceleration (in X, Wayland, opengl applications) presents many challenges. Jumpto: content RaspberryPiVC4 FromGentooWiki Jumpto:navigation Jumpto:search NoteTheRaspberryPi3VC4driverisnotavailableon64-bit(ARM64/AARCH64)systems.TheRaspberryPifoundationhasstated"wearenotworkingonthis,andareunlikelytodosointhenearfuture".Usingtheopensourcevc4-kms-v3ddriverlistedbelowinsteadisrecommended Usingthe"VC4"driverontheraspberrypitoenablehardwareacceleration(inX,Wayland,openglapplications)presentsmanychallenges.There'splentyofinstructionsfloatingaroundforRaspbian,butforGentoo,notsomuch.Thispagecontainsacoupleofnuggetsofwisdomthatmayhelpyougetthere. Contents 1Kernel 2Mesaandfriends 2.1EnablingtheVC4kernelmodule 2.2Ismymoduleloaded? 2.3Isitworking? Kernel TohaveproperGPUaccelerationwithVideoCore,youneeditskernelmoduleloaded.Thatmodulehasbeenintegratedinv4.5,butit'salsopresentinrpi'skernelv4.4. TogetVC4coreworkingyouneedtouselatestfirmwarefromsys-boot/raspberrypi-firmware9999ebuild.Tohaveinstalledonlyfirmwarefilesandnotkernel-followthisguidemodifyingebuildfile. Mesaandfriends BeforeenablingkernelmoduleandswitchingRPitoGPUyouneedtorebuildmedia-libs/mesawithsupportofVideoCore4plusincaseofaRaspberryPi4VideoCoreVI.Todosoaddfollowingtoyour/etc/portage/make.conf: FILE/etc/portage/make.confVIDEO_CARDS="v3dvc4" Andrebuildmedia-libs/mesa. Itisalsoagoodideatoaddeglgles1gles2asglobaluseflags. EnablingtheVC4kernelmodule OnceyouhavemesaVC4supportyoucanenablekernelmoduleandtrytoswitchtoVC4GPU. Toenablethekernelmodule,youhavetoenabletheoptionaloverlayinyourconfig.txtwithdtoverlay=vc4-kms-v3d.It'salsorecommendedtobumpyourgpu_memto128(it'swhatraspi-configdoeswhenyouenablethedriverthroughit). Makesurethatyou'veinstalledlatestversionofsys-boot/raspberrypi-firmwareoryou'llhaveablankscreen! Also,youshouldknowthatbecausethatdriverisakernelmodule,youwon'thaveanyHDMIoutputuntilit'sloaded,whichissomewhereinthemiddleofyourinitprocedure. Ismymoduleloaded? Onceyou'rebootedup,youcanverifythatyourmoduleisproperlyloadedwithlsmod.You'resupposedtohaveavc4moduleinthere.Also,it'simportanttoverifythat/dev/dri/card0exists.Ifyoudon'thavethatdevice,nothing'sgoingtowork. Isitworking? Totestyoursetup,youneedtoinstallx11-apps/mesa-progs.Thisprovidesglxgears,whichyoucanrunwithglxgears-info.IfyouhavesomethinglikeGL_RENDERER=Gallium0.4onVC4intheoutput,thenit'sasuccess!Ifit'susingllvmpipe,you'realmostthere.Ifit'susingthesoftwarerasterizer,you'renotthere. Ifitisusingllvmpipeand/usr/share/X11/xorg.conf.d/99-fbturbo.confexists,trytoremoveDriver"fbturbo"fromthatfile. Retrievedfrom"https://wiki.gentoo.org/index.php?title=Raspberry_Pi_VC4&oldid=1062935" Category:RaspberryPi
延伸文章資訊
- 1vc4-kms-v3d driver not working with custom HDMI mode ...
The max pixel clock for vc4-kms-v3d is dictated by the driver, and there's no override provided. ...
- 2Raspberry Pi VC4 - Gentoo Wiki
Using the "VC4" driver on the raspberry pi to enable hardware acceleration (in X, Wayland, opengl...
- 3drm/vc4 Broadcom VC4 Graphics Driver - The Linux Kernel ...
The Broadcom VideoCore 4 (present in the Raspberry Pi) contains a OpenGL ES 2.0-compatible 3D eng...
- 4VC4 and V3D OpenGL drivers for Raspberry Pi: an update
The GPU bundled with Raspberry Pi 4 is a VideoCore VI capable of OpenGL ES 3.2, a significant ste...
- 5Raspberry Pi 4 Graphics Driver Update Improves 4K Output
The developer trying to bring support to the Linux kernel, Maxime Ripard, has revised the DRM of ...