马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
在ubuntu 22.04版本安装驱动后无法使用(例如:metax-driver-mxc500-2.32.0.6-deb-x86_64.run,kenrel版本:Linux ub22-4c16g-zhiyuan 5.15.0-139-generic)
但可以用pci查看是由沐曦的设备:
- muxiuser@ub22-4c16g-zhiyuan:~$ lspci|grep -i 9999
- 00:09.0 Display controller: Device 9999:4001 (rev 01)
复制代码
安装驱动报错信息如下:
- root@ub22-4c16g-zhiyuan:~# ./metax-driver-mxc500-2.32.0.6-deb-x86_64.run
- Verifying archive integrity... 100% MD5 checksums are OK. All good.
- Uncompressing MetaX driver installer 100%
- uninstalling metax-linux
- (Reading database ... 110384 files and directories currently installed.)
- Removing metax-linux (2.14.6) ...
- metax-linux package uninstalled successfully
- Purging configuration files for metax-linux (2.14.6) ...
- metax-linux package uninstalled successfully
- uninstalling mxsmt
- (Reading database ... 110334 files and directories currently installed.)
- Removing mxsmt (2.32.0.6) ...
- mxsmt package uninstalled successfully
- Purging configuration files for mxsmt (2.32.0.6) ...
- mxsmt package uninstalled successfully
- dpkg: warning: while removing mxsmt, directory '/opt/mxdriver' not empty so not removed
- uninstalling mxfw
- (Reading database ... 110321 files and directories currently installed.)
- Removing mxfw (1.24.3.0) ...
- mxfw package uninstalled successfully
- Purging configuration files for mxfw (1.24.3.0) ...
- mxfw package uninstalled successfully
- installing packages under /opt/mxdriver
- installing deb/mxfw_1.24.3.0-1.all.deb
- Selecting previously unselected package mxfw.
- (Reading database ... 110289 files and directories currently installed.)
- Preparing to unpack deb/mxfw_1.24.3.0-1.all.deb ...
- Unpacking mxfw (1.24.3.0) ...
- Setting up mxfw (1.24.3.0) ...
- mxfw package installed successfully
- installing deb/mxsmt_2.32.0.6.amd64.deb
- Selecting previously unselected package mxsmt.
- (Reading database ... 110321 files and directories currently installed.)
- Preparing to unpack deb/mxsmt_2.32.0.6.amd64.deb ...
- Unpacking mxsmt (2.32.0.6) ...
- Setting up mxsmt (2.32.0.6) ...
- mxsmt package installed successfully
- Processing triggers for libc-bin (2.35-0ubuntu3.9) ...
- installing deb/metax-linux_2.14.6-1_amd64.deb
- Selecting previously unselected package metax-linux.
- (Reading database ... 110334 files and directories currently installed.)
- Preparing to unpack .../metax-linux_2.14.6-1_amd64.deb ...
- Unpacking metax-linux (2.14.6) ...
- Setting up metax-linux (2.14.6) ...
- Notice: The current kernel version (5.15.0-139-generic) is not supported.
- Please upgrade your kernel to one of the following versions:
- 5.10.0-0.deb10.28-amd64
- 5.10.0-29-amd64
- 5.15.0-100-generic
复制代码
安装驱动后,无法用命令mx-smi查看卡,如下:
- muxiuser@ub22-4c16g-zhiyuan:~$ mx-smi
- mx-smi version: 2.2.3
- No available devices were discovered
复制代码
问题原因:
1. 驱动不支持现在已安装的kernel版本,需要切换支持的列表。
解决方法:
1) 查看已安装的kernel列表
- root@ub22-4c16g-zhiyuan:~# dpkg --list | grep 'linux-image' | grep '^ii'
- ii linux-image-5.15.0-119-generic 5.15.0-119.129 amd64 Signed kernel image generic
- ii linux-image-5.15.0-139-generic 5.15.0-139.149 amd64 Signed kernel image generic
- ii linux-image-generic 5.15.0.139.135 amd64 Generic Linux kernel image
复制代码 2)编辑 GRUB 配置文件:使用文本编辑器打开 GRUB 的配置文件。你可以使用 sudo 权限编辑 /etc/default/grub 文件:
- root@ub22-4c16g-zhiyuan:~# vim /etc/default/grub
复制代码
3)修改 GRUB_DEFAULT:在文件中找到 GRUB_DEFAULT 这一行。你可以设置它为特定的内核版本,例如:
- GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.15.0-119-generic"
- GRUB_TIMEOUT_STYLE=hidden
- GRUB_TIMEOUT=0
- GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
- GRUB_CMDLINE_LINUX_DEFAULT=""
- GRUB_CMDLINE_LINUX=""
复制代码 4)更新 GRUB:保存文件并关闭编辑器,然后运行以下命令以更新 GRUB 配置:
5)确认结果
查看启动kernel版本:
- muxiuser@ub22-4c16g-zhiyuan:~$ uname -a
- Linux ub22-4c16g-zhiyuan 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
复制代码
查看是否解决,安装驱动metax-driver-mxc500-2.32.0.6-deb-x86_64.run,执行mx-smi命令查看设备。
- muxiuser@ub22-4c16g-zhiyuan:~$ mx-smi
- mx-smi version: 2.2.3
- =================== MetaX System Management Interface Log ===================
- Timestamp : Tue May 13 10:23:12 2025
- Attached GPUs : 1
- +---------------------------------------------------------------------------------+
- | MX-SMI 2.2.3 Kernel Mode Driver Version: 2.14.6 |
- | MACA Version: unknown BIOS Version: 1.16.2.0 |
- |------------------------------------+---------------------+----------------------+
- | GPU NAME | Bus-id | GPU-Util |
- | Temp Pwr:Usage/Cap | Memory-Usage | |
- |====================================+=====================+======================|
- | 0 MetaX C500 | 0000:00:09.0 | 0% |
- | 35C 51W / NA | 858/65536 MiB | |
- +------------------------------------+---------------------+----------------------+
- +---------------------------------------------------------------------------------+
- | Process: |
- | GPU PID Process Name GPU Memory |
- | Usage(MiB) |
- |=================================================================================|
- | no process found |
- +---------------------------------------------------------------------------------+
- End of Log
复制代码
|