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
延伸文章資訊
- 1Porting Raspberry Pi graphics -- VC4 DRM driver (350h)
Raspberry Pi is a very popular ARM board. It has a modern graphical driver, VC4. NetBSD already s...
- 2Raspberry Pi VC4 - Gentoo Wiki
Using the "VC4" driver on the raspberry pi to enable hardware acceleration (in X, Wayland, opengl...
- 3VC4 - Phoronix
- 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...
- 5VC4 — The Mesa 3D Graphics Library latest documentation
Mesa's vc4 graphics driver supports multiple implementations of Broadcom's VideoCore IV GPU. It i...