用户不再使用通过DEB包安装的KAE,或想进行新版本KAE的安装时,请参考本节内容卸载KAE。由于存在依赖关系,卸载uacce驱动软件包前须先卸载hisi_hpre,hisi_sec2,hisi_rde驱动软件包,卸载libwd前须先卸载libkae引擎软件包。
操作步骤
- 使用SSH远程登录工具,以root账号进入Linux操作系统命令行界面。
- 卸载KAE加速引擎软件包并检查卸载情况。
- 卸载KAE加速引擎软件包。
使用dpkg -r 软件包名命令,例如卸载hisi_sec2。
- 运行命令查询软件包是否卸载成功。
使用dpkg -L 软件包名命令,例如查询hisi_sec2是否卸载成功。
如下示例演示了卸载所有KAE加速引擎软件包的过程。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 | [root@localhost output]# dpkg -r hisi-hpre
(Reading database ... 79192 files and directories currently installed.)
Removing hisi-hpre (1.3.2) ...
hisi_hpre modules uninstalling
hisi_hpre modules uninstalled
[root@localhost output]# dpkg -r hisi-sec2
(Reading database ... 79190 files and directories currently installed.)
Removing hisi-sec2 (1.3.2) ...
hisi_sec2 modules uninstalling
hisi_sec2 modules uninstalled
[root@localhost output]# dpkg -r hisi-rde
(Reading database ... 79186 files and directories currently installed.)
Removing hisi-rde (1.3.2) ...
hisi_rde modules uninstalling
hisi_rde modules uninstalled
[root@localhost output]# dpkg -r uacce
(Reading database ... 79184 files and directories currently installed.)
Removing uacce (1.3.2) ...
uacce modules uninstalling
uacce modules uninstalled
[root@localhost output]# dpkg -r libwd libkae
(Reading database ... 79181 files and directories currently installed.)
Removing libkae (1.3.2) ...
Removing libwd (1.3.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
[root@localhost output]# dpkg -L uacce hisi-hpre hisi-sec2 hisi-rde
Package 'uacce' does not contain any files (!)
Package 'hisi-hpre' does not contain any files (!)
Package 'hisi-sec2' does not contain any files (!)
[root@localhost output]# dpkg -L libwd libkae
/usr
/usr/local
/usr/local/include
/usr
/usr/local
/usr/local/lib
/usr/local/lib/engines-1.1
[root@localhost output]#
|
- 重启系统或者通过命令行手动将已加载到内核的驱动卸载掉,并查看是否卸载成功。
- 查看已加载到内核的驱动。
回显已加载到内核的驱动。
| uacce 36864 3 hisi_sec2,hisi_qm,hisi_hpre,hisi_rde
|
- 卸载已加载的驱动。
| rmmod hisi_hpre
rmmod hisi_sec2
rmmod hisi_rde
rmmod hisi_qm
rmmod uacce
|
- 查看是否已经卸载,没有回显内容即卸载成功。