首页 > 系统服务 > 详细

petalinux-build禁用串口后build错误

时间:2016-05-12 22:24:46      阅读:549      评论:0      收藏:0      [点我收藏+]

一个棘手问题:

如果不把串口插在PC机上,petalinux系统就无法启动。然后想把串口禁用,disable掉以后,重新petalinux-config --get-hw-description -p../

 

然后petalinux-build,出现错误

.../build/linux/u-boot/src/u-boot-plnx/common/board_f.c: In function ‘init_baud_rate‘:[ALL  ]

 /home//...build/linux/u-boot/src/u-boot-plnx/common/board_f.c:143:46: error:‘CONFIG_BAUDRATE‘ undeclared

查看build日志

build log:

[ALL  ]   CC      common/board_f.o
[ALL  ] /home/christine/peta_2014.4/1/2/3/lan/build/linux/u-boot/src/u-boot-plnx/common/board_f.c: In function ‘init_baud_rate‘:
[ALL  ] /home/christine/peta_2014.4/1/2/3/lan/build/linux/u-boot/src/u-boot-plnx/common/board_f.c:143:46: error: ‘CONFIG_BAUDRATE‘ undeclared (first use in this function)
[ALL  ]   gd->baudrate = getenv_ulong("baudrate", 10, CONFIG_BAUDRATE);
[ALL  ]                                               ^
[ALL  ] /home/Christinepeta_2014.4/1/2/3/lan/build/linux/u-boot/src/u-boot-plnx/common/board_f.c:143:46: note: each undeclared identifier is reported only once for each function it appears in

看看下面几张图 就知道解决方案了:

技术分享技术分享

技术分享

 

 

技术分享

petalinux-build禁用串口后build错误

原文:http://blog.csdn.net/christne1225i/article/details/51351112

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!