petalinux-build禁用串口后build错误

一个棘手问题:

如果不把串口插在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错误_第1张图片petalinux-build禁用串口后build错误_第2张图片

petalinux-build禁用串口后build错误_第3张图片

 

 

petalinux-build禁用串口后build错误_第4张图片

你可能感兴趣的:(petalinux-build禁用串口后build错误)