Miscellaneous operation problem records

1. The USB to serial port driver installation is invalid. The
problem; after using the CH340 chip, the previous PL2303 driver cannot be recognized.
Solution; download the driver wizard to scan and identify to install the driver corresponding to CH340

2. The host can ping the same virtual machine and development board, but the virtual machine cannot ping the
problem; the host can ping the same virtual machine and development board, but the virtual machine cannot ping the
solution; turn off the firewall
Insert picture description here
3. Prompt /bin/sh: 1 : pushd: not found error The
online solution, in fact, the root cause is to
enter the /bin directory, check the link file of sh, the display is as follows: it means that the sh command is linked to dash, and the pushd command needs to be executed in the bash environment. Therefore, in fact, you can modify the link file of sh, and directly use the command to process
https://blog.csdn.net/wangweiqiang1325/article/details/53443024

Insert picture description here
4. The cross-compilation tool chain is 32-bit and does not match the 64-bit system, and aptitude also fails
. Install the 32-bit compatibility package for ubuntu16.0403X64
(1) Reference: http://blog.csdn.net/ma57457/article/ details/68923623
or: https://www.cnblogs.com/leaven/p/5084902.html
(2) Use aptitude to install lib32z1. Using sudo apt-get install lib32z1, I found that it could not be installed. The reason is that ubuntu is too new. Many libraries in it are new versions, but lib32z1 based on this new version is not available yet, so it cannot be installed. The solution is to use the aptitude tool to install.
Note that aptitude is not necessarily successful.
First, ensure that the virtual machine is connected to the Internet, and you can try the NYY option. Otherwise, sometimes you have not downloaded a thing for a long time. Try the first option N and then choose Y to succeed.

(3) Test execution arm-xxx-gcc -v, prompting stdc++ not found error:
./arm-hisiv300-linux-uclibcgnueabi-gcc -v
./arm-hisiv300-linux-uclibcgnueabi-gcc: error while loading shared libraries : libstdc++.so.6: cannot open shared object file: No such file or directory
(4) Use aptitude to install lib32stdc++6-4.8-dbg
sudo aptitude install lib32stdc++6-4.8-dbg
to test arm-xxx again -gcc -v, it can finally run.

Guess you like

Origin blog.csdn.net/zw1996/article/details/114219651