Problems creating an Access Point on Radxa Zero

This are my system information from uname -a:
Linux radxa-zero 5.10.69-12-amlogic-g98700611d064 #amlogic SMP PREEMPT Tue Jun 14 12:47:53 UTC 2022 aarch64 GNU/Linux

TL DR: Scroll down to This is the result for the error message.

I want to create an AP on the Zero. For this i’m following this tutorial:
https://wiki.radxa.com/Rock/Wireless/AP_mode_manually

I really need your help. I’ve been trying way too long.
Unfortunately i have a few problems:
Even though i appended this in /root/.bashrc:
export ARCH=arm export CROSS_COMPILE=/home/rock/Downloads/32_sys_arm/arm-eabi-4.6/bin/arm-eabi-
and tested it after a reboot:
root@radxa-zero:~# /home/rock/Downloads/32_sys_arm/arm-eabi-4.6/bin/arm-eabi-gcc Box86 with Dynarec v0.3.1 13bbf105 built on Mar 27 2023 09:25:26 arm-eabi-gcc: fatal error: no input files compilation terminated.

So i think the root user should be able to use it as a command, but executing arm-eabi-gcc gives me a command not found.

Notice that i’m using the 32 version of arm-eabi because the 64 version doesn’t even work when i call it
root@radxa-zero:~# /home/rock/Downloads/arm-eabi-4.6/bin/arm-eabi-gcc -bash: /home/rock/Downloads/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

Also since the tutorial moves files inbetween steps, without mentioning it, i’ve decided that

  • the RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta goes into the Downloads folder.
  • The Makefile file line 605 looks like this: KSRC := /media/radxa_rock_linux/linux-rockchip because i put the
  • linux rockchip kernel into the /media/radxa_rock_linux folder instead of the tmp folder like the tutorial does
  • arm-eabi-4.6 goes into the /home/rock/Downloads/32_sys_arm folder

The tutorial says:

Build wifi driver

root@radxa:/tmp/driver/rtl8723A_Wi…3.3_beta# make
but after the reboot required to make changes in .bashrc take effect the tmp folder would be empty again.
So i executed make in the /home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta/ folder.

This is the result:

root@radxa-zero:/home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta# make
make ARCH=arm CROSS_COMPILE=arm-eabi- -C /media/radxa_rock_linux/linux-rockchip M=/home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta modules
make[1]: Entering directory ‘/media/radxa_rock_linux/linux-rockchip’
make[1]: arm-eabi-gcc: Command not found

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run ‘make oldconfig && make prepare’ on kernel src to fix it.

WARNING: Symbol version dump /media/radxa_rock_linux/linux-rockchip/Module.symvers
is missing; modules will have no dependencies and modversions.

Building modules, stage 2.
/media/radxa_rock_linux/linux-rockchip/scripts/Makefile.modpost:42: include/config/auto.conf: No such file or directory
make[2]: *** No rule to make target ‘include/config/auto.conf’. Stop.
make[1]: *** [Makefile:1378: modules] Error 2
make[1]: Leaving directory ‘/media/radxa_rock_linux/linux-rockchip’
make: *** [Makefile:758: modules] Error 2

Feel free to give me step by step instructions, because i’m not educated enough to understand kernel development.

EDIT:

After doing the make oldconfig && make prepare that the error message suggested, i get a new error after running make:

root@radxa-zero:/home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta# make
make ARCH=arm CROSS_COMPILE=/home/rock/Downloads/32_sys_arm/arm-eabi-4.6/bin/arm-eabi- -C /media/radxa_rock_linux/linux-rockchip M=/home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta modules
make[1]: Entering directory ‘/media/radxa_rock_linux/linux-rockchip’

WARNING: Symbol version dump /media/radxa_rock_linux/linux-rockchip/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta/core/rtw_cmd.o
Box86 with Dynarec v0.3.1 13bbf105 built on Mar 27 2023 09:25:26
Box86 with Dynarec v0.3.1 13bbf105 built on Mar 27 2023 09:25:26
In file included from include/linux/irqflags.h:15:0,
from /media/radxa_rock_linux/linux-rockchip/arch/arm/include/asm/system.h:61,
from /media/radxa_rock_linux/linux-rockchip/arch/arm/include/asm/bitops.h:27,
from include/linux/bitops.h:22,
from include/linux/thread_info.h:52,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta/include/osdep_service.h:748,
from /home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta/core/rtw_cmd.c:23:
/media/radxa_rock_linux/linux-rockchip/arch/arm/include/asm/irqflags.h: In function ‘arch_local_irq_save’:
/media/radxa_rock_linux/linux-rockchip/arch/arm/include/asm/irqflags.h:57:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
make[2]: *** [scripts/Makefile.build:306: /home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1374: module/home/rock/Downloads/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta] Error 2
make[1]: Leaving directory ‘/media/radxa_rock_linux/linux-rockchip’
make: *** [Makefile:758: modules] Error 2

can i undo the make oldfile && make prepare?
seems like i went a step in the wrong direction there

Those are instructions for a different device with a different SoC and chipset. They will not work on the Radxa Zero.

ok thank you. Is there a guide on how to do it with the Radxa Zero? I’ve searched the whole net and haven’t found a working guide.