반응형
안녕하세요. 기존에 kgsl을 사용하도록하는 빌드가 있었는데요.
이제는 파일이 제공되지 않아 직접 빌드를 해야하는 상황입니다.
일단 termux-packages repository의 경우 최신 소스가 아니면 termux native 빌드에 어려움이 있기 때문에
직접 rebase 를 진행하였습니다.
https://github.com/djjproject/termux-packages
현재 글을 작성하는 시점으로는 rebase 한 소스가 최신 소스와 맞을 수 있지만 몇일 지나면 안맞을 수도 있습니다.
그래서 빌드한 prebuilt 바이너리를 아래 링크로 제공해 드립니다.
https://download.djjproject.com/termux/
그리고 mesa 최신버전에 위에 해당하는 패치를 맞출 수 없어 버전은 기존에 xMeM 이 분이 공개한 버전으로 그대로 빌드를 진행합니다. mesa 소스 변동이 너무 커서 최신빌드에서는 enable 하여 빌드가 하기 굉장히 어렵네요.
에러만 수만가지 나서 해결이 너무 어려운 상태입니다.
1. 소스 클론
~ $ mkdir termux-build ~ $ cd termux-build ~/termux-build $ git clone https://github.com/djjproject/termux-packages |
2. 빌드환경 준비
~/termux-build/termux-packages $ ./scripts/setup-termux.sh |
3. 빌드하기
~/termux-build/termux-packages $ ./build-package.sh -I -f packages/mesa |
Downloading mesa@24.3.4 source from 'https://archive.mesa3d.org/mesa-24.3.4.tar. xz' if necessary... Applying patch: 0000-disable-android-detection.patch Applying patch: 0001-disable-multithreading-for-llvmpipe.patch Applying patch: 0002-fix-for-getprogname.patch Applying patch: 0003-fix-for-anon-file.patch Applying patch: 0004-do-not-check-xlocale.patch Applying patch: 0005-virgl-socket-path.patch Applying patch: 0006-wsi-no-pthread_cancel.patch Applying patch: 0007-use-mtx_t-operations-in-turnip.patch Applying patch: 0008-workaround-fortify-check.patch Applying patch: 0009-disable-resource_create_front-for-vtest.patch Applying patch: 0010-fix-zink.patch Applying patch: 0011-freedreno-drm-kgsl-Add-KGSL-backend-for-freedreno.patch Applying patch: 0012-freedreno-drm-Add-more-APIs-to-per-backend-API.patch Applying patch: 0013-fix-bad-syscall.patch Applying patch: 0014-freedreno-HACK-GL_ARB_timer_query.patch Applying patch: 0015-termux-x11-kgsl.patch The Meson build system Version: 1.7.2 |
4. 패키지 확인하기
~/.../termux-packages/output $ ls mesa-dev_24.3.4-1_all.deb mesa_24.3.4-1_aarch64.deb mesa-vulkan-icd-freedreno_24.3.4-1_aarch64.deb osmesa_24.3.4-1_aarch64.deb mesa-vulkan-icd-swrast_24.3.4-1_aarch64.deb |
5. 적용 확인하기
~/mesa_24.3.4_freedreno_kgsl $ glxinfo -B name of display: :0.0 display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: freedreno (0x5143) Device: FD740 (0xffffffff) Version: 24.3.4 Accelerated: yes Video memory: 11046MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 4.6 Max compat profile version: 4.6 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo): VBO free memory - total: 11046 MB, largest block: 11046 MB VBO free aux. memory - total: 0 MB, largest block: 0 MB Texture free memory - total: 11046 MB, largest block: 11046 MB Texture free aux. memory - total: 0 MB, largest block: 0 MB Renderbuffer free memory - total: 11046 MB, largest block: 11046 MB Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 11046 MB Total available memory: 11046 MB Currently available dedicated video memory: 11046 MB OpenGL vendor string: freedreno OpenGL renderer string: FD740 OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.3.4 OpenGL core profile shading language version string: 4.60 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.3.4 OpenGL shading language version string: 4.60 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.3.4 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 os_same_file_description couldn't determine if two DRM fds reference the same file description. (Try again) Let's just assume that file descriptors for the same file probablyshare the file description instead. This may cause problems whenthat isn't the case. |
반응형
'안드로이드' 카테고리의 다른 글
termux mesa-25.1.1 freedreno kgsl (0) | 2025.06.20 |
---|---|
홍미노트 12 프로 4G 리뷰 (1) | 2025.06.13 |
Khadas VIM3L 회로도 / 데이타시트 (0) | 2025.03.10 |
Khadas VIM3L 개봉기 및 케이스 조립 / 작성글 (1) | 2025.03.06 |
Khadas VIM3L UART 콘솔 연결하기 (디버깅 및 부팅 콘솔) (0) | 2025.03.05 |
댓글