Hisi transplants mt7601, -m64 error, macro __TIME__ error

Error uno:

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’
.

.

Solución:

export ARCH=arm

Se puede agregar en la línea nombrada y Makefile

Error dos:

macro "__TIME__" might prevent reproducible builds [-Werror=date-time]

Solución:
agregue el Makefile correspondiente

EXTRA_CFLAGS +=-Wno-date-time

Error tres:

mt7601_v1.12/os/linux/../../common/p2p_cfg.c:8888:8: error: unused variable ‘IsAPConfigured’ [-Werror=unused-variable]

os / linux / config.mk eliminar -Werror

Error 4: Error al
cargar el módulo del kernel mt7601

Error in Alloc Bulk buffer for TxNullContext!
ERROR!!! Failed to allocate memory - TxRxRing
<-- RTMPAllocAdapterBlock, Status=3

Inserte la descripción de la imagen aquí

La solución es
causada por espacio dma insuficiente, agregue coherent_pool = 2M a los parámetros de inicio

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),

Supongo que te gusta

Origin blog.csdn.net/WANGYONGZIXUE/article/details/106608631
Recomendado
Clasificación