嵌入式
嵌入式linux
hoba-1202
云计算、网络、linux
展开
-
基于Qemu虚拟vexpress-a9开发板,实现完整系统启动(uboot+kernel+rootfs)
目标:基于Qemu虚拟vexpress-a9单板,完整复现单板启动过程:uboot引导+加载linux内核+加载文件系统,最终进入命令行界面命令参考:sudo qemu-system-arm -M vexpress-a9 -m 512M -nographic -kernel u-boot -net nic -net tap -sd ~/a9rootfs.ext3结果:book@100ask:~/sss/u-boot-2012.04.01$ sudo qemu-system-arm -M vexp原创 2020-07-29 08:33:58 · 2370 阅读 · 0 评论 -
u-boot-2012.04.01编译问题8:libgcc.a(_udivmoddi4.o) uses VFP register arguments, u-boot does not
编译uboot时遇到问题:arm-linux-gnueabihf-ld: error: /home/ToolChain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/libgcc.a(_udivmoddi4.o) uses VFP register arguments, u-boot does not错误的意思是:编译器使用了VFP(virtual float poi原创 2020-06-11 11:12:11 · 1514 阅读 · 0 评论 -
u-boot-2012.04.01编译问题7:warning: right-hand operand of comma expression has no effect [-Wunused-value
编译uboot时遇到问题:devextras.h:202:25: warning: right-hand operand of comma expression has no effect [-Wunused-value] for (pos = (head)->next, prefetch(pos->next); pos != (head); \就是prefetch(pos->next)没有作用简单的解决办法就是把prefetch(pos->next)删掉就可以解决问题.原创 2020-06-10 18:18:50 · 5340 阅读 · 0 评论 -
u-boot-2012.04.01编译问题6:hush.c:2744:2: warning: this ‘if’ clause does not guard...
编译uboot时遇到问题:hush.c:2744:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]找出源文件并打开:~/test/u-boot-2012.04.01$ find -name hush.c./common/hush.c~/test/u-boot-2012.04.01$ vim ./common/hush.c +2744发现是程序对齐错误static char *lookup_pa原创 2020-06-10 12:25:36 · 4613 阅读 · 0 评论 -
u-boot-2012.04.01编译问题5:linux/compiler-gcc6.h: No such file or directory
编译uboot时遇到问题:/home/book/test/u-boot-2012.04.01/include/linux/compiler-gcc.h:87:30: fatal error: linux/compiler-gcc6.h: No such file or directory#include gcc_header(__GNUC__)搜索compiler-gcc*~/test/u-boot-2012.04.01$ find -name compiler-gcc*./include/l.原创 2020-06-10 11:37:03 · 1131 阅读 · 0 评论 -
u-boot-2012.04.01编译问题4:‘coloured_LED_init’ aliased to external symbol ‘__coloured_LED_init’
编译uboot时遇到问题:board.c:87:6: error: 'coloured_LED_init' aliased to external symbol '__coloured_LED_init'找出源文件:find -name board.c~/test/u-boot-2012.04.01$ find -name board.c./board/nvidia/common/board.c./board/xes/common/board.c./arch/arm/cpu/armv7/oma原创 2020-06-09 16:18:52 · 933 阅读 · 0 评论 -
u-boot-2012.04.01编译问题3:multiple definition of ‘__raw_writesb’
编译uboot时遇到问题:/home/book/test/u-boot-2012.04.01/include/asm/io.h:79: multiple definition of `__raw_writesb'很明显是多个文件包含同一个头文件io.h导致的,在编译器连接时,就会将工程中所有的符号整合在一起,由于,文件中有重名变量,于是就出现了重复定义的错误。查看io.h文件:vim /home/book/test/u-boot-2012.04.01/include/asm/io.h,发现存在编译条原创 2020-06-09 11:10:33 · 934 阅读 · 0 评论 -
u-boot-2012.04.01编译问题2:inline function ‘fit_parse_subimage’ declared but never defined
编译uboot时遇到问题:/home/book/test/u-boot-2012.04.01/include/image.h:536:12: warning: inline function ‘fit_parse_subimage’ declared but never defined问题中文意思是:内联函数声明但未定义,网上搜索解决方法是需要在编译时加上-fgnu89-inline为什么?原因是gcc编译器对于inline函数处理的方式变化导致告警;在gcc4.3及以上的版本中,编译选项采用C原创 2020-06-08 17:30:53 · 392 阅读 · 0 评论 -
u-boot-2012.04.01编译问题1:‘_sha1_src’ defined but not used [-Wunused-const-variable=]
系统环境:Ubuntu 18.04kernel : Linux version 5.3.0-53-generic原创 2020-06-08 11:58:24 · 739 阅读 · 0 评论 -
简单设置解决vmware player虚拟机窗口自动缩放问题
使用vmware player运行ubuntu虚拟机发现虚拟机窗口太小,全屏操作后还是太小,多次重启也不能解决,运行2个以上的应用后无法对照查看信息,很麻烦。如何设置调整窗口变大呢?网上查询的方案大多是要安装vmware tools,其实有个简单设置就可以解决问题:首先:打开vmware player,按下图依次选择:player->管理->虚拟机设置修改显示器...原创 2020-04-30 12:29:32 · 10384 阅读 · 4 评论 -
Centos7 无图形界面 自动登录 简化配置
Centos7 无图形界面 自动登录 简化配置网上找的大部分都是修改gdm,或者是centos6版本开机的配置文件修改,centos7无图形界面的自动登录配置有些介绍的又较复杂。https://blog.csdn.net/weixin_41586635/article/details/82456360其实只要一步修改/etc/systemd/system/getty.target.wants...原创 2020-01-10 14:43:09 · 1164 阅读 · 0 评论