Parameters
Description
One-click installation is supported in the command line. You can select parameters as required to complete the installation. All parameters are optional.
Installation command format: ./*.run [options]
For details, see Table A-1.
If the parameters queried by running the ./*.run --help command are not described in the following table, this parameter is reserved or applies to other chip versions. You do not need to pay attention to this parameter.
Parameter |
Description |
---|---|
--run |
Indicates the running mode, which installs only the files required in a running scenario. |
--devel |
Indicates the development mode, which contains the header files that users need to use for development. The firmware subpackage does not support this parameter. |
--full |
Full mode: installs all files. |
--docker |
Docker mode: applies to the driver only. Other components are installed in full mode by default. |
--install-username=<username> |
Initial installation: You can specify the running user name. Otherwise, HwHiAiUser is used by default. Overwrite: The user name used in the last installation is adopted. NOTE:
|
--install-usergroup=<usergroup> |
Initial installation: You can specify the running user group name. Otherwise, HwHiAiUser is used by default. Overwrite: The user group name used in the last installation is adopted. NOTE:
This parameter must be used together with --install-username=<username>, and the value of usergroup must be the same as that of the created user group created (Creating a Running User). |
--install-path=<path> |
Specifies the installation directory. If the directory is not specified, the default installation path /usr/local/Ascend is used. The running user must have the read and write permissions on the specified installation path. NOTE:
The firmware installation path cannot be specified. The driver installation path is shared. |
--uninstall |
Uninstalls. |
--noexec |
Does not run the installation script. This parameter is used together with the --extract=path parameter. Format: --noexec --extract=path |
--extract=path |
Decompresses the installation package to a specified directory. |
--upgrade |
Performs upgrade, which takes effect immediately. The upgrade can be performed only in the path where a software package is stored. |
--help/-h |
Displays the help information. |
--check |
Check the integrity of a software package. |
--version |
Display the version information. |
--tar arg1 [arg2 ...] |
Runs the tar command on the software package. Use the arguments following tar as the command arguments. For example, the --tar xvf command indicates that the .run package will be decompressed to the current directory. |
--list |
Lists the files in a software package. |
--info |
Displays detailed information of a package. |
--quiet |
Indicates the silent installation, which skips interactive messages. |
--pylocal |
Installs Python to a local path. |
--install-for-all |
If this parameter is included in the installation or upgrade command, the permission of the directories and files is changed to the group permission. This parameter must be used in pair with any one among --run, --devel, --full, and --upgrade, for example, ./*.run --full --install-for-all. NOTE:
The firmware does not support this parameter. |
--repack [package_name] |
Builds a new driver package. package_name indicates the name of the newly built .run driver package. NOTE:
If package_name is left blank, a file named Original driver package name-custom.run is generated in the current path. |
--repack-path=<path> [package_name] |
Builds a new driver package in the specified path.
NOTE:
If package_name is left blank, a file named Original driver package name-custom.run is generated in the current path. |
Example:
- Installation in full mode
- Unspecified installation directory: ./*.run --full
- Specified installation directory: ./*.run --full --install-path=installation directory
- Installation in Docker mode (applies to the driver only)
- ./*.run --docker: without installation path specified
- ./*.run --docker --install-path=<installation_path>: with installation path specified
- Installation in run mode
- Unspecified installation directory: ./*.run--run
- Specified installation directory: ./*.run --run --install-path=installation_path