User Tools

Site Tools


software:switch:fedora

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:switch:fedora [2019/06/13 15:29]
chris [What?]
software:switch:fedora [2019/06/29 04:18] (current)
chris [Fedora 30 mesa rebuild attempts Xorg 3D support]
Line 53: Line 53:
 # rpm2cpio /​tmp/​NetworkManager-wifi*.rpm | \ # rpm2cpio /​tmp/​NetworkManager-wifi*.rpm | \
 #    cpio --extract --verbose --make-directories --preserve #    cpio --extract --verbose --make-directories --preserve
 +</​code>​
 +
 +===== Fedora30 sound notes =====
 +These steps are probably not required, but parking the commands here for a while.
 +<​code>​
 +# Now copying drivers from an L4T installation on partition2.
 +mount /​dev/​mmcblk0p2 /mnt/tmp2/
 +cd /mnt/tmp2
 +
 +# mv /​lib/​firmware/​nvidia /​lib/​firmware/​nvidia.org
 +# cp -r lib/​firmware/​nvidia /​lib/​firmware
 +# cp lib/​firmware/​tegra21x_xusb_firmware /​lib/​firmware
 +# cp lib/​firmware/​nv-BT-Version lib/​firmware/​bcm4354.hcd /​lib/​firmware
 +
 +### before reboot, configure services
 +cd /​etc/​systemd/​system/​multi-user.target.wants/​
 +
 +### restores settings, not needed
 +# ln -s ../​nvfb-early.service ​
 +# ln -s ../​nvfb.service ​
 +
 +# are following services needed?
 +#ln -s ../​nv.service ​
 +#ln -s ../​nvargus-daemon.service
 +
 +### physical zones service?
 +#ln -s ../​nvphs.service ​
 +### nvidia power model tool
 +#ln -s ../​nvpmodel.service ​
 +### NVS-SERVICE Embedded Sensor HAL Daemon
 +#ln -s ../​nvs-service.service ​
 </​code>​ </​code>​
  
Line 83: Line 114:
 chmod +x etc/​rc.local chmod +x etc/​rc.local
 ln -s /​etc/​rc.local etc/​rc.d/​rc.local ln -s /​etc/​rc.local etc/​rc.d/​rc.local
 +</​code>​
 +
 +===== LXDE standalone =====
 +<​code>​
 +# adding LXDE to the startfile
 +echo 'exec /​usr/​bin/​startlxde'​ >​~/​.xinitrc
 +
 +# On my system, I use synergy to be able to use keyboard
 +# and mouse from a different system. ​ The third line runs
 +# synergy in client mode.
 +mkdir -p ~/​.config/​lxsession/​LXDE
 +cat >​~/​.config/​lxsession/​LXDE/​autostart<<​EOT
 +@lxpanel --profile LXDE
 +@pcmanfm --desktop --profile LXDE
 +@synergy-core --client 192.168.0.3
 +EOT
 +
 +# then, X can be started manually
 +startx
 </​code>​ </​code>​
  
Line 158: Line 208:
 startx startx
 glxgears glxgears
 +</​code>​
 +
 +===== Fedora 30 mesa rebuild attempts Xorg 3D support =====
 +3D setup is not running proper, supertuxkart fails with '​libEGL warning: DRI2: failed too authenticate'​. I got hinted that mesa needs to support GLVND, yet mesa-19.0.6-1.fc30 is already compiled with it. Recompiling does not change the issue. Compare compile flags with L4T? The m/mesa/ packages from L4T are original from Ubuntu, not switchroot. chromium on L4T nicely runs webgl sites like https://​phoboslab.org/​wipeout/​
 +
 +Attempting to rebuild mesa, but I can still not run webgl in firefox.
 +<​code>​
 +sudo dnf install rpm-build rpmdevtools
 +
 +# as user
 +echo '​%_topdir /​root/​rpmbuild'​ >​~/​.rpmmacros
 +rpmdev-setuptree
 +cd ~/rpmbuild
 +dnf download --source mesa mesa-libGLU mesa-libGLw
 +rpm -ivh mesa-19.0.6-1.fc30.src.rpm
 +
 +sudo dnf builddep /​home/​chris/​rpmbuild/​SPECS/​mesa.spec
 +rpmbuild -bb SPECS/​mesa.spec >&​rpmbuild.log
 +
 +# the build is with glvnd:
 +$ grep -i glvnd rpmbuild.log |grep -v '​USE_LIBGLVND=1'​|grep glvnd
 +[..] -Dglx=dri -Degl=true -Dglvnd=true [..]
 +Dependency libglvnd found: YES 1.1.0
 +
 +rpm -Fvh RPMS/​aarch64/​mesa*
 +</​code>​
 +
 +== investigations ==
 +What is different on Fedora30 and L4T? I compared the buildflags for mesa. rebuilding the Fedora30 rpm, I see these:
 +<​code>​
 ++ /​usr/​bin/​meson --buildtype=plain --prefix=/​usr --libdir=/​usr/​lib64 --libexecdir=/​usr/​libexec --bindir=/​usr/​bin --sbindir=/​usr/​sbin --includedir=/​usr/​include --datadir=/​usr/​share --mandir=/​usr/​share/​man --infodir=/​usr/​share/​info --localedir=/​usr/​share/​locale --sysconfdir=/​etc --localstatedir=/​var --sharedstatedir=/​var/​lib --wrap-mode=nodownload --auto-features=enabled . aarch64-redhat-linux-gnu -Dcpp_std=gnu++11 -Dplatforms=x11,​wayland,​drm,​surfaceless -Ddri3=true -Ddri-drivers=nouveau,​r100,​r200 -Dgallium-drivers=swrast,​virgl,​r300,​nouveau,​radeonsi,​r600,​freedreno,​etnaviv,​tegra,​vc4,​kmsro -Dgallium-vdpau=true -Dgallium-xvmc=false -Dgallium-omx=bellagio -Dgallium-va=true -Dgallium-xa=true -Dgallium-nine=true -Dgallium-opencl=icd -Dvulkan-drivers=amd -Dshared-glapi=true -Dgles1=false -Dgles2=true -Dopengl=true -Dgbm=true -Dglx=dri -Degl=true -Dglvnd=true -Dasm=true -Dllvm=true -Dshared-llvm=true -Dvalgrind=true -Dbuild-tests=false -Dselinux=true -Dosmesa=gallium
 +</​code>​
 +[[https://​launchpadlibrarian.net/​410595395/​buildlog_ubuntu-bionic-arm64.mesa_18.2.8-0ubuntu0~18.04.2_BUILDING.txt.gz|Here]] is the log from building the ubuntu mesa packages, this got used:
 +<​code>​
 +../​configure --build=aarch64-linux-gnu --prefix=/​usr --includedir=\${prefix}/​include --mandir=\${prefix}/​share/​man --infodir=\${prefix}/​share/​info --sysconfdir=/​etc --localstatedir=/​var --disable-silent-rules --libdir=\${prefix}/​lib/​aarch64-linux-gnu --libexecdir=\${prefix}/​lib/​aarch64-linux-gnu --runstatedir=/​run --disable-maintainer-mode --disable-dependency-tracking --enable-dri "​--with-dri-drivers= nouveau r200 radeon"​ --with-dri-driverdir=/​usr/​lib/​aarch64-linux-gnu/​dri --with-dri-searchpath=/​usr/​lib/​aarch64-linux-gnu/​dri:​\\\$\${ORIGIN}/​dri:/​usr/​lib/​dri "​--with-vulkan-drivers= radeon"​ --enable-libglvnd --enable-osmesa --enable-glx-tls --enable-shared-glapi --disable-xvmc --disable-omx-bellagio --enable-driglx-direct --enable-gbm --enable-dri3 "​--with-platforms=x11,​surfaceless wayland drm" --enable-llvm --enable-opencl --enable-opencl-icd ac_cv_path_LLVM_CONFIG=llvm-config-7 --enable-nine --enable-vdpau --enable-va --enable-gallium-extra-hud --enable-lmsensors "​--with-gallium-drivers= nouveau virgl freedreno tegra vc4 v3d r600 r300 radeonsi swrast"​ --disable-gles1 --enable-gles2
 +</​code>​
 +I can not spot relevant differences. Removed the similarities,​ its down to this:
 +<​code>​
 +fedora
 +-Dgallium-xvmc=false -Dgallium-omx=bellagio -Dgallium-xa=true -Dshared-glapi=true -Dopengl=true -Dglx=dri -Degl=true -Dasm=true -Dvalgrind=true -Dbuild-tests=false -Dselinux=true -Dosmesa=gallium
 +
 +l4t
 + ​--enable-dri --enable-osmesa --enable-glx-tls --enable-shared-glapi --disable-xvmc --disable-omx-bellagio --enable-driglx-direct --enable-opencl --enable-gallium-extra-hud --enable-lmsensors
 </​code>​ </​code>​
software/switch/fedora.1560432552.txt ยท Last modified: 2019/06/13 15:29 by chris