AXCL 安装加载

我们提供deb包以及rpm包。百度网盘获取方式联系淘宝客服或者芯茧技术支持

deb和rpm包安装

deb 安装

  1. chmod +x 给deb添加执行权限

 [axera@localhost ~]$ chmod +x axcl_host_V2.16.1_20241112130139_NO4433.deb
  1. sudo dpkg -i 安装deb,安装完之后自动加载子卡固件。

    [axera@localhost ~]$ sudo dpkg -i axcl_host_V2.16.1_20241112130139_NO4433.deb
    输入密码          
    (正在读取数据库 ... 系统当前共安装有 202167 个文件和目录。)
    准备解压 axcl_host_V2.16.1_20241112130139_NO4433.deb  ...
    正在解压 axclhost (1.0) 并覆盖 (1.0) ...
    正在设置 axclhost (1.0) ...
    Need manual execute: source /etc/profile
    正在处理用于 libc-bin (2.31-0kylin9.2k0.2) 的触发器 ...
    
  2. 执行source /etc/profile更新环境变量

[axera@localhost ~]$ source /etc/profile

deb 卸载

[axera@localhost ~]$ sudo dpkg -r axclhost
(正在读取数据库 ... 系统当前共安装有 198866 个文件和目录。)
正在卸载 axclhost (1.0) ...
正在处理用于 libc-bin (2.31-0kylin9.2k0.2) 的触发器 ...

rpm 安装

  1. chmod +x 给rpm添加执行权限

 [axera@localhost ~]$ chmod +x axcl_host-1.0-1.el9.x86_64.rpm
  1. sudo rpm -Uvh --nodeps 安装rpm,安装完之后自动加载子卡固件。

    [axera@localhost rpmbuild]$ sudo rpm -Uvh --nodeps RPMS/x86_64/axcl_host-1.0-1.el9.x86_64.rpm
    [sudo] password for axera:
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:axcl_host-1.0-1.el9              ################################# [100%]
    [axera@localhost rpmbuild]$
    

    对于 ssh 的连接,还可以通过断开重连的方式更新环境。

  2. 执行source /etc/profile更新环境变量

[axera@localhost ~]$ source /etc/profile

rpm 卸载

rpm 包卸载后会自动 reset 子卡,子卡会进入 pcie download mode。卸载命令如下:

sudo rpm -e axcl_host

开发板驱动移植

市面上绝大部分的开发板不具备在板端进行驱动模块编译的环境,所以上面的步骤无法直接在板端进行。 为了解决这个问题,我们提供一份特别的文件去支持。这份文件可以联系 淘宝客服 或者 芯茧技术支持 去获取。

文件说明

# 解压压缩包
tar zxvf axclhost_V2.18.0_rk3588.tar.gz

# 文件说明
axclhost_aarch64_V2.18.0.deb # deb安装包(已经移除驱动部分),需要安装在开发板上
drv.tar   # axcl的驱动源码
linux.sh  # 一个脚本,将驱动源码放置到 sdk 的 linux 源码目录下

使用说明

驱动移植

我们提供一个脚本去完成移植过程。

# 将驱动源码放置到linux源码目录
./linux.sh ~/rk3588/kernel

安装包使用

安装方式参考上文的 deb和rpm包安装。

# 使用任一方式将deb/rpm安装包放到开发板上

# 安装安装包
sudo dpkg -i axclhost_aarch64_V2.18.0.deb