介绍

LoongGPU 驱动包是龙芯正式发布的第一个支持LG100系列GPU驱动产品包,旨在为LG100系列GPU提供完整的功能和优化的性能支持。它以一个独立的产品包形式提供,通过一个安装包即可实现整个驱动安装,无需额外进行驱动适配,简化了LG100系列GPU的驱动安装过程。

安装说明


1. 驱动安装

安装方法有两种,第一种是网络安装,第二种是本地源安装,任意选择一种方式安装即可。

1.1. loongnix 网络源安装

$ wget https://repos.loongson.cn/loonggpu/repos/loongnix20/loonggpu-keyring_1.0.1-lnd.1_loongarch64.deb
$ sudo dpkg -i loonggpu-keyring_1.0.1-lnd.1_loongarch64.deb
$ sudo apt-get update
$ sudo apt-get -y install loonggpu-driver

1.2. kylin 网络源安装

$ wget https://repos.loongson.cn/loonggpu/repos/kylinv10sp1/loonggpu-keyring_1.0.1-0kylin.1_loongarch64.deb
$ sudo dpkg -i loonggpu-keyring_1.0.1-0kylin.1_loongarch64.deb
$ sudo apt-get update
$ sudo apt-get -y install loonggpu-driver

1.3. uos 网络源安装

$ wget https://repos.loongson.cn/loonggpu/repos/uos20/loonggpu-keyring_1.0.1-ud.1_loongarch64.deb
$ sudo dpkg -i loonggpu-keyring_1.0.1-ud.1_loongarch64.deb
$ sudo apt-get update
$ sudo apt-get -y install loonggpu-driver

1.4. loongnix 本地源安装

$ wget https://repos.loongson.cn/loonggpu/loongnix20/local_installers/loonggpu-repo-loongnix20-local_1.0.1-lnd.1_loongarch64.deb
$ sudo dpkg -i loonggpu-repo-loongnix20-local_1.0.1-lnd.1_loongarch64.deb
$ sudo cp /var/loonggpu-repo-loongnix20-local/loonggpu-*-keyring.gpg /usr/share/keyrings/
$ sudo apt-get update
$ sudo apt-get -y install loonggpu-driver

1.5. kylin 本地源安装

$ wget https://repos.loongson.cn/loonggpu/kylinv10sp1/local_installers/loonggpu-repo-loongnix20-local_1.0.1-0kylin.1_loongarch64.deb
$ sudo dpkg -i loonggpu-repo-kylinv10sp1-local_1.0.1-0kylin.1_loongarch64.deb
$ sudo cp /var/loonggpu-repo-kylinv10sp1-local/loonggpu-*-keyring.gpg /usr/share/keyrings/
$ sudo apt-get update
$ sudo apt-get -y install loonggpu-driver

1.6. uos 本地源安装

$ wget https://repos.loongson.cn/loonggpu/loongnix20/local_installers/loonggpu-repo-loongnix20-local_1.0.1-ud.1_loongarch64.deb
$ sudo dpkg -i loonggpu-repo-uos20-local_1.0.1-ud.1_loongarch64.deb
$ sudo cp /var/loonggpu-repo-uos20-local/loonggpu-*-keyring.gpg /usr/share/keyrings/
$ sudo apt-get update
$ sudo apt-get -y install loonggpu-driver

2. 检查LoongGPU驱动是否正常安装

请根据步骤1所提供的驱动安装方法进行安装,如整个安装过程没有提示任何错误,且顺利完成整个安装过程,即LoongGPU驱动已顺利完成安装。

请注意:安装完后需要重启才能正常的使能显卡加速功能。

3. 针对LG100系列显卡,请检查2D和3D是否使用了LoongGPU进行加速

3.1. 查看X日志文件

查看/var/log/Xorg.0.log可以看到有多个“loonggpu”关键字样且没有EE错误表示2D驱动正常。如下:

[     7.479] (II) Applying OutputClass "LoongGPU" to /dev/dri/card0
[     7.479]    loading driver: loonggpu
.................
[    14.066] (II) HAVE EDID BLOB, SCREEN-0
[    14.066] (II) loonggpu(0): EDID vendor "DHP", prod id 57124
[    14.066] (II) loonggpu(0): Using hsync ranges from config file
[    14.066] (II) loonggpu(0): Using vrefresh ranges from config file
[    14.066] (II) loonggpu(0): Printing DDC gathered Modelines:
[    14.066] (II) loonggpu(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
.................

3.2. 运行glxinfo

查看OpenGL renderer string字段发现有LoongGPU字样,代表3D加速正常,如下:

OpenGL renderer string: LoongGPU(TM) LG110
©龙芯开源社区 all right reserved,powered by Gitbook文档更新时间: 2024-09-19 21:01:59

results matching ""

    No results matching ""

    results matching ""

      No results matching ""