Wifi problem
#9
(11-28-2018, 05:07 AM)Nether494 Wrote:
(11-28-2018, 04:43 AM)evilbunny Wrote:
(11-28-2018, 04:28 AM)Nether494 Wrote:
(11-27-2018, 07:33 PM)evilbunny Wrote:
(11-27-2018, 06:21 PM)Nether494 Wrote: Okay I see. My wifi dongle is not appropriate. If I buy the same wifi dongle that the official website Pine64 is good? will it work with OMV?


Same problem, you will need to build drivers for nearly all 802.11ac devices. A quick google of rtl8811au brought up the following driver on github.

https://github.com/sloretz/rtl8811au

Hi thanks !

Code:
root@rock64:/usr/src/rtl8811au# make
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1/build M=/usr/src/rtl8811au  modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1'
Makefile:645: arch/aarch64/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/aarch64/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1'
Makefile:1551: recipe for target 'modules' failed
make: *** [modules] Error 2

Impossible to make this driver, I try to find a another git

Best regards


I forgot how painful it is, you need to set ARCH=arm64, setting -j4 will speed things up as it'll use all cores, and finally you have to disable various warnings because the compiler will fail there too.

Hi,

Please excuse me I am a beginner. I try to do the best I can

Code:
root@rock64:/usr/src/rtl8811au# sudo make clean
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
root@rock64:/usr/src/rtl8811au# make ARCH=arm64 -j4
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1/build M=/usr/src/rtl8811au  modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1'
 CC [M]  /usr/src/rtl8811au/core/rtw_cmd.o
 CC [M]  /usr/src/rtl8811au/core/rtw_security.o
 CC [M]  /usr/src/rtl8811au/core/rtw_debug.o
 CC [M]  /usr/src/rtl8811au/core/rtw_io.o
 CC [M]  /usr/src/rtl8811au/core/rtw_ioctl_query.o
 CC [M]  /usr/src/rtl8811au/core/rtw_ioctl_set.o
/usr/src/rtl8811au/core/rtw_security.c: In function 'aes_cipher':
/usr/src/rtl8811au/core/rtw_security.c:1598:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
error, forbidden warning:rtw_security.c:1598
    for (j = 0; j < 8; j++)
    ^~~
/usr/src/rtl8811au/core/rtw_security.c:1601:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
 payload_index = hdrlen + 8;
 ^~~~~~~~~~~~~
/usr/src/rtl8811au/core/rtw_security.c: In function 'aes_decipher':
/usr/src/rtl8811au/core/rtw_security.c:1984:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
error, forbidden warning:rtw_security.c:1984
    for (j = 0; j < 8; j++)
    ^~~
/usr/src/rtl8811au/core/rtw_security.c:1987:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
 payload_index = hdrlen + 8;
 ^~~~~~~~~~~~~
scripts/Makefile.build:277: recipe for target '/usr/src/rtl8811au/core/rtw_security.o' failed
make[2]: *** [/usr/src/rtl8811au/core/rtw_security.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:1474: recipe for target '_module_/usr/src/rtl8811au' failed
make[1]: *** [_module_/usr/src/rtl8811au] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1'
Makefile:1551: recipe for target 'modules' failed
make: *** [modules] Error 2

Best regards

Long story short, I built the driver but it produced kernel modules for the RTL8821AU, the steps I took are as follows:

nano Makefile and add the following lines:
Code:
EXTRA_CFLAGS += -Wno-unused-variable
EXTRA_CFLAGS += -Wno-unused-value
EXTRA_CFLAGS += -Wno-unused-label
EXTRA_CFLAGS += -Wno-unused-parameter
EXTRA_CFLAGS += -Wno-unused-function
EXTRA_CFLAGS += -Wno-unused
EXTRA_CFLAGS += -Wno-ignored-qualifiers
EXTRA_CFLAGS += -Wno-misleading-indentation
EXTRA_CFLAGS += -Wno-implicit-function-declaration

Then towards the bottom replace the following:

Code:
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)  modules

with
Code:
$(MAKE) ARCH=arm64 -j4 CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)  modules

Then run make
  Reply


Messages In This Thread
Wifi problem - by Nether494 - 11-27-2018, 08:36 AM
RE: Wifi problem - by Nether494 - 11-27-2018, 11:59 AM
RE: Wifi problem - by evilbunny - 11-27-2018, 03:42 PM
RE: Wifi problem - by Nether494 - 11-27-2018, 06:21 PM
RE: Wifi problem - by evilbunny - 11-27-2018, 07:33 PM
RE: Wifi problem - by Nether494 - 11-28-2018, 04:28 AM
RE: Wifi problem - by evilbunny - 11-28-2018, 04:43 AM
RE: Wifi problem - by Nether494 - 11-28-2018, 05:07 AM
RE: Wifi problem - by evilbunny - 11-28-2018, 05:37 AM
RE: Wifi problem - by Nether494 - 11-28-2018, 05:51 AM
RE: Wifi problem - by evilbunny - 11-28-2018, 06:26 AM
RE: Wifi problem - by Nether494 - 11-28-2018, 06:32 AM
RE: Wifi problem - by mcerveny - 11-28-2018, 09:48 AM
RE: Wifi problem - by Nether494 - 11-28-2018, 01:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with debian emmc boot G4zCDzWb 10 1,635 11-01-2024, 04:32 PM
Last Post: bits
  Rock64 Debian 11 (Bullseye) install problem jbize 15 11,241 10-12-2023, 05:14 PM
Last Post: tpaul
  External hard drive problem k8Va 17 24,827 03-09-2021, 02:31 PM
Last Post: calinb
  Arch Linux Arm - external RTC problem max 1 3,317 08-17-2020, 10:35 AM
Last Post: max
  Read-only problem mikedhoore 5 7,643 07-14-2020, 11:41 AM
Last Post: zein
Question bluetooth rock64 problem deta 3 5,677 05-06-2020, 11:29 PM
Last Post: deta
  Fedora 31 crosscompilation fdt problem mimics debian 888789 kf5zmi 2 4,654 01-20-2020, 12:25 PM
Last Post: kf5zmi
  Ayufan Debian Stretch Openmediavault 4 5G Wifi Not Connecting Poincare 0 2,482 03-26-2019, 07:28 PM
Last Post: Poincare
  ROCK64 Kernel compilation problem cao 0 2,699 01-21-2019, 01:21 AM
Last Post: cao
  Can't connect to wifi on a Rock64 SuperSaiyanCaleb 2 4,671 12-18-2018, 11:51 PM
Last Post: SuperSaiyanCaleb

Forum Jump:


Users browsing this thread: 2 Guest(s)