错误一:
arm-hisiv500-linux-gcc: error: unrecognized command line option ‘-m64’
arm-hisiv500-linux-gcc: error: unrecognized command line option ‘-mno-red-zone’
arm-hisiv500-linux-gcc: error: unrecognized command line option ‘-mcmodel=kernel’
arm-hisiv500-linux-gcc: error: unrecognized command line option ‘-mno-sse’
.
.
解决方法:
export ARCH=arm
在命名行和Makefile中添加都可以
错误二:
macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
解决方法:
在相应的Makefile中添加
EXTRA_CFLAGS +=-Wno-date-time
错误三:
mt7601_v1.12/os/linux/../../common/p2p_cfg.c:8888:8: error: unused variable ‘IsAPConfigured’ [-Werror=unused-variable]
os/linux/config.mk 去掉-Werror
错误四:
加载mt7601内核模块的错误
Error in Alloc Bulk buffer for TxNullContext!
ERROR!!! Failed to allocate memory - TxRxRing
<-- RTMPAllocAdapterBlock, Status=3
解决办法
dma空间大小不够导致,在启动参数中添加 coherent_pool=2M
setenv bootargs 'console=ttyAMA0,115200 root=/dev/ram0 rw rootfstype=ext2 initrd=0x82500000,50M **coherent_pool=2M** rootwait mem=356M init=/linuxrc mtdparts=hinand:1M(boot),4M(kernel),80M(ramdisk),110M(app_filesystem),