box86 icon indicating copy to clipboard operation
box86 copied to clipboard

Need Help with emulated Nvidia i386 driver on Nvidia Jetson

Open theofficialgman opened this issue 2 years ago • 1 comments

the title says it all. I am testing using the nvidia i386 compatibility layer in box86 to hopefully get HW accelerated x86 gpu on jetsons.

running into issues with global symbols not found with the simple i386 glxinfo/glxgears. to avoid downloading excess i386 bins, I am using the ones provided in the steam runtime

(bionic-arm64)garrett@garrett-usb:~/apps/mesa-utils/usr/bin$ export BOX86_EMULATED_LIBS=libGL.so.0:libGL.so.1:libGLX.so.0:libXext.so.6:libxcb.so.1:libXau.so.6:libXdmcp.so.6:libX11.so.6:libpng12.so.0:libGLX_nvidia.so.0
(bionic-arm64)garrett@garrett-usb:~/apps/mesa-utils/usr/bin$ export BOX86_LD_LIBRARY_PATH=/home/garrett/nvidia-i386-drivers:/home/garrett/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu
(bionic-arm64)garrett@garrett-usb:~/apps/mesa-utils/usr/bin$ ./glxinfo
Debug level is 1
Box86 v0.2.7 308a546c built on Jul  8 2022 19:29:13
BOX86_LD_LIBRARY_PATH: /home/garrett/nvidia-i386-drivers/:/home/garrett/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/
BOX86 will force the used of emulated libs for libGL.so.0 libGL.so.1 libGLX.so.0 libXext.so.6 libxcb.so.1 libXau.so.6 libXdmcp.so.6 libX11.so.6 libpng12.so.0 libGLX_nvidia.so.0 
Using default BOX86_PATH: ./:bin/
Counted 23 Env var
Looking for ./glxinfo
Rename process to "glxinfo"
Using emulated /home/garrett/nvidia-i386-drivers/libGL.so.1
Using emulated libX11.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libdl.so.2
Using emulated /home/garrett/nvidia-i386-drivers/libGLX.so.0
Using emulated /home/garrett/nvidia-i386-drivers/libGLdispatch.so.0
Using emulated /home/garrett/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Using emulated /home/garrett/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libxcb.so.1
Using emulated /home/garrett/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXau.so.6
Using emulated /home/garrett/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXdmcp.so.6
name of display: :0
Using emulated /home/garrett/nvidia-i386-drivers/libGLX_nvidia.so.0
Using emulated /home/garrett/nvidia-i386-drivers/libnvidia-tls.so.410.78
Using emulated /home/garrett/nvidia-i386-drivers/libnvidia-glcore.so.410.78
Using native(wrapped) libm.so.6
Error: Global Symbol __register_frame_info_bases not found, cannot apply R_386_GLOB_DAT @0xebbd8154 ((nil)) in /home/garrett/nvidia-i386-drivers/libnvidia-glcore.so.410.78
Error: Global Symbol __deregister_frame_info_bases not found, cannot apply R_386_GLOB_DAT @0xebbd8158 ((nil)) in /home/garrett/nvidia-i386-drivers/libnvidia-glcore.so.410.78
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  41
  Current serial number in output stream:  42

theofficialgman avatar Jul 08 '22 20:07 theofficialgman

I don't think the 2 missing symbols are the source of the issue. Globals symbols are somethime missing, and I doubt it would provoque a GLX BadValue issue.

ptitSeb avatar Oct 12 '22 20:10 ptitSeb