lan口配置 petalinux_petalinux-build禁用串口后build错误

在不使用串口的情况下,Petalinux系统启动失败。尝试禁用串口后,通过petalinux-config --get-hw-description -p../进行配置,但在petalinux-build时遇到错误,具体为'CONFIG_BAUDRATE'未声明。查看build日志显示在board_f.c文件的init_baud_rate函数中出现该错误。解决方案见原文链接。
摘要由CSDN通过智能技术生成

一个棘手问题:

如果不把串口插在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

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值