MT7688 编译过程中的一些错误的解决方法

来源:互联网 发布:重生之网络娱乐txt下载 编辑:程序博客网 时间:2024/06/15 06:26
1.将编译好的固件烧录到板子中,在启动时出现 LZMA ERROR 1 - must RESET board to recove
解决:这是由于系统中lzma的版本太高的愿意所致,解决方法就是降低版本!
1)解压lzma-4.32.7.tar.gz   (1)./configure  (2) make (3)make install
2)cd lzma-4.32.7/src/lzma
3)cp lzma RT288x_SDK/source/
4) 修改makefile文件:(1)cd RT288x_SDK/source/vendors/Ralink/MT7628#  (2) vim Makefile  (3)修改第123行,将 cd $(IMAGEDIR) ; rm -f $(KERNELZ).*; $(COMP) -9 -f -S .$(COMP) $(    KERNELZ) 修改为: cd $(IMAGEDIR) ; rm -f $(KERNELZ).*; ../$(COMP) -9 -f -S .$(COMP) $(    KERNELZ)

2.在make menuconfig的时候出现错误:

/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
-e 
>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/home/osama/mt7688/RT288x_SDK/source/config/scripts/lxdialog'
make: *** [menuconfig] Error 2

解决:安装libncurses

sudo apt-get install libncurses5-dev


3.fatal error: lzma.h: No such file or director

解决:apt-get install -y liblzma-dev

4.编译过程遇到 error: conflicting types for 'change_oem_password'的错误
解决:把SDK 删除,重新解压,用普通用户去编译
0 0