64位ubuntu16.04搭建嵌入式linux开发环境的奇葩问题

奇葩问题1:选择ubuntu镜像启动安装时,黑屏,使用网上方法去掉3D图形加速也不行

宿主机上运行如下命令,重启宿主机

netsh winsock reset

 

奇葩问题2:将交叉编译链路径添加进PATH 后运行arm-none-linux-gnueabi-gcc依然出现:No such file or directory

sudo apt-get install lib32ncurses5

 

奇葩问题3:编译内核出现Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.

将kernel/timeconst.pl 文件中的

if (!defined(@val)) {

替换为

if (!@val) {

 

奇葩问题4:不能make menuconfig,会出现error "mixed implicit and normal rules"

将编译目录下的Makefile中的

config %config: scripts_basic outputmakefile FORCE

改为

%config: scripts_basic outputmakefile FORCE

 

奇葩问题5:编译内核出现drivers/Makefile:59: *** missing separator.  Stop.

查看drivers/Makefile发现

obj-$(CONFIG_TC)		+= tc/
+ obj-$(CONFIG_UWB)		+= uwb/
obj-$(CONFIG_USB_OTG_UTILS)	+= usb/otg/

将其改为

obj-$(CONFIG_TC)		+= tc/
obj-$(CONFIG_UWB)		+= uwb/
obj-$(CONFIG_USB_OTG_UTILS)	+= usb/otg/

 

奇葩问题6:编译内核出现arm-none-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

网上方法

sudo apt-get install lib32ncurses5 ia32-libs

发现不行,提示

Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32ncurses5 lib32z1

使用

sudo apt-get install lib32ncurses5 lib32z1

成功解决

 

你可能感兴趣的:(linux,嵌入式,交叉编译,ubuntu)