一個棘手問題:
如果不把串口插在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
看看下面幾張圖 就知道解決方案了: