遇到的问题以及解决办法

1.dnw驱动问题
win10操作系统会自动验证驱动数字签名,所以需要禁止数字签名。
2.ubuntu连网问题
虚拟机网卡不出现vet0和未找到适应的主机适配器不能桥联问题,彻底删除VM虚拟机,使用ccclean 软件清除安装VM过程中产生的各种注册表,重新安装VM,在网络配置恢复默认设置,网卡会重新安装,本地网络里也会出现虚拟机网卡。
3. scuercrt 无法登陆ubuntu
可能原因1,ubuntu没有安装ssh服务,可以使用localhost查看。
可能原因2,需要修改sshd-config配置文件,大致为修改响应时间,允许root用户登录等,网上都能查到。
可能原因3,就是和我一样,scurecrt登陆ubuntu不弹出输入密码也不显示已连接,使用filezilla登陆显示network error:software caused connection abort,确认自己ssh服务什么都没有问题的话,可以尝试在ubuntu里面删除ssh服务,之后再重新登陆。这个原因很是奇葩,不清楚为什么。
4.虚拟机开启时显示已经在运行。
原因是虚拟机不正常关闭,在自己ubuntu目录下找到.lck文件和文件夹然后删除即可。
5.uboot添加命令无法执行
不能在uboot单独的文件下执行make,应该在顶层目录下执行。其他文件下的make会使用顶层目录。如果单独在其他文件下执行make会报错。
6.在Linux环境make menuconfig的时候出现一下错误。
  1. In file included from scripts/kconfig/lxdialog/checklist.c:24:0:  
  2. scripts/kconfig/lxdialog/dialog.h:32:20: fatal error: curses.h: No such file or directory  
  3. compilation terminated.  
  4. make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1  
  5. make: *** [menuconfig] Error 2  

红帽或者FC的安装ncurses-devel
sudo yum install ncurses-devel
Ubuntu的需要安装libncurses5-dev
sudo apt-get install libncurses5-dev
7.问题: # make zImage
make: arm-linux-gcc:命令未找到
scripts/kconfig/conf -s arch/arm/Kconfig
make: arm-linux-gcc:命令未找到
  CHK     include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      kernel/bounds.s
/bin/sh: arm-linux-gcc: not found
make[1]: *** [kernel/bounds.s] 错误 127
make: *** [prepare0] 错误 2
即出现make: arm-linux-gcc:命令未找到的错误提示。
后来发现原因如下:
exportPATH=$PATH:/usr/local/arm/4.4.3/bin
是设置当前用户的 PATH ,而 sudo 执行 make 的时候,使用的是超级用户权限,那也就使用了超级用户的 PATH (但是这个 PATH 里,并没有 /usr/local/arm/4.4.3/bin
解决办法: 1.先打开一个超级用户权限的 shell
     命令:sudo –s
2.在当前 shell 下,设置环境变量:
      命令:gedit /etc/profile
在文件末端加上 export PATH=$PATH:/usr/local/arm/4.4.3/bin,并保存。
3. 执行source /etc/profile    这是避免重新启动ubuntu而又使刚刚修改的环境变量生效的方法

猜你喜欢

转载自blog.csdn.net/zl6481033/article/details/79731586
今日推荐