SDK installation of HiSilicon 3518ev200
1. Copy Hi3518E_SDK_V1.0.3.0.tgz to Ubuntu. Put it in the shared folder share folder.
Then copy Hi3518E_SDK_V1.0.3.0.tgz from the share folder to a folder in the Linux home directory, ready to decompress. Here is copied to ~/work/project/Hisi3518E_V200 folder.
2. Unzip in the ~/work/project/Hisi3518E_V200 folder and execute
tar -zxf Hi3518E_SDK_V1.0.3.0_20200728.tar.gz
After the decompression is complete, an extra folder will appear: Hi3518E_SDK_V1.0.3.0
3. Enter the Hi3518E_SDK_V1.0.3.0 directory and
execute the command to clean up the compiled
files./sdk.cleanup
When running the above command, an error may appear:
./sdk.unpack: source: not found
Solution: The
default SH (script parser) of the ubuntu16.04 system is dash, you can use the ls -l /bin/sh command to view
Modify the default script parser to bash, the method is as follows:
1. Command line input: sudo dpkg-reconfigure dash
2. Select <no>
3. ls -l /bin/sh query confirmation
Then execute the command to install the SDK
./sdk.unpack
After the execution is complete, the SDK installation is successful!
Next is to install the cross-compilation tool chain
4. Install the cross-compilation tool chain
. Find the tool chain installation package arm-hisiv300-linux.tar.bz2 in the SDK
Enter the directory location of the
toolchain and its installation program cd osdrv/opensource/toolchain/arm-hisiv300-linux/
Install toolchain
sudo ./cross.install.v300
Import environment variable
export PATH=/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin:$PATH
Print out the value of the environment variable and check whether the environment variable is successfully imported into
echo $PATH
Note that if vim is not installed on Ubuntu at this time, execute the following command to install vim first.
sudo apt-get install vim
Open bashrc with vim
vim ~/.bashrc
Then add the above environment variable import statement command
export PATH=/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin:$PATH at the bottom
Make sure to make the configuration effective
source ~/.bashrc
Use the ping command to test the network to ensure that the virtual machine can access the Internet and
ping www.baidu.com to
install the 32-bit compatible package
sudo apt install lib32z1 to
install the shared library
sudo apt install lib32stdc++6-4.8-dbg
Make the configuration in
/etc/profile take effect immediately source /etc/profile (otherwise arm-hisiv300-linux-gcc: command not found will be reported when compiling)
Enter the command
arm-hisiv300-linux-gcc -v,
if it prints out
gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v300)
, the installation is successful!
Reference article: https://www.cnblogs.com/Ocean-Star/p/8902397.html .