Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 54

Thread: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

  1. #31
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,363
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Let's dig deeper:
    Code:
    modinfo 8812au | grep 0811
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  2. #32
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    There was no result with that code

  3. #33
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,363
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    You STILL have the wrong driver installed. We'll have to struggle a bit to remove it.
    Code:
    cd  ~/Documents/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51
    sudo make uninstall
    Reboot and check:
    Code:
    dmesg | grep 8812
    If it shows nothing, then do:
    Code:
    cd ~/Documents/wifi_adapter/rtl8812AU
    make clean
    make
    sudo make install
    sudo modprobe 8812au
    dmesg | grep 8812
    We hope you see:
    [27600.727609] 8812au: loading out-of-tree module taints kernel.
    [27600.728463] 8812au: module verification failed: signature and/or required key missing - tainting kernel
    [27600.731628] RTL871X: module init start
    [27600.731630] RTL871X: rtl8821au v4.3.14
    [27600.731630] RTL871X: rtl8821au BT-Coex version = BTCOEX20150128-51
    [27600.731678] usbcore: registered new interface driver rtl8821au
    And we hope the wireless is working.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  4. #34
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    So I wanted to show you everything in case I'm doing something wrong. Running 'make clean' and 'make' gave errors:

    Code:
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ 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
    rm: cannot remove '.tmp_versions/8812au.mod': Permission denied
    Makefile:1597: recipe for target 'clean' failed
    make: *** [clean] Error 1
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ make
    make ARCH=i386 CROSS_COMPILE= -C /lib/modules/4.4.0-43-generic/build M=/home/nick/Documents/wifi_adapter/rtl8812AU  modules
    make[1]: Entering directory '/usr/src/linux-headers-4.4.0-43-generic'
    rm: cannot remove '/home/nick/Documents/wifi_adapter/rtl8812AU/.tmp_versions/8812au.mod': Permission denied
    Makefile:1390: recipe for target 'crmodverdir' failed
    make[1]: *** [crmodverdir] Error 1
    make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-43-generic'
    Makefile:1576: recipe for target 'modules' failed
    make: *** [modules] Error 2
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ sudo make install
    install -p -m 644 8812au.ko  /lib/modules/4.4.0-43-generic/kernel/drivers/net/wireless/
    install: cannot stat '8812au.ko': No such file or directory
    Makefile:1582: recipe for target 'install' failed
    make: *** [install] Error 1
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ sudo modprobe 8812au
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ dmesg | grep 8812
    [  266.779406] 8812au: module verification failed: signature and/or required key missing - tainting kernel
    [  266.786530] RTL871X: rtl8812au v4.3.8_12175.20140902
    [  266.786629] usbcore: registered new interface driver rtl8812au
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$

  5. #35
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,363
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Please remove the incorrect driver first as per my instructions. It is still loaded and we need for it to be removed. Then reboot.

    Next, we see permission problems, so let's try to solve those with:
    Code:
    cd ~/Documents/wifi_adapter/rtl8812AU
    sudo make clean
    sudo make
    sudo make install
    sudo modprobe 8812au
    dmesg | grep 8812
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  6. #36
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    I removed the incorrect driver as you specified and your most recent code...

    Code:
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ sudo modprobe 8812au
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ dmesg | grep 8812
    [  356.011300] 8812au: module verification failed: signature and/or required key missing - tainting kernel
    [  356.024190] RTL871X: rtl8812au v4.3.8_12175.20140902
    [  356.024287] usbcore: registered new interface driver rtl8812au
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$

  7. #37
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,363
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    RTL871X: rtl8812au v4.3.8_12175.20140902
    I am still suspicious that you have the incorrect driver. Let's compare to what I get when I compile the git version:
    [ 177.415028] 8812au: loading out-of-tree module taints kernel.
    [ 177.415637] 8812au: module verification failed: signature and/or required key missing - tainting kernel
    [ 177.418229] RTL871X: module init start
    [ 177.418230] RTL871X: rtl8821au v4.3.14
    [ 177.418231] RTL871X: rtl8821au BT-Coex version = BTCOEX20150128-51
    [ 177.418272] usbcore: registered new interface driver rtl8821au
    Check to see if your version claims your device:
    Code:
    modinfo 8812au | grep 0811
    The git version reports:
    Code:
    alias:          usb:v0BDAp0811d*dc*dsc*dp*ic*isc*ip*in*
    So we know that your device is covered in the git version. Finally, check the version:
    Code:
    modinfo 8812au | grep -i version
    The git version I compiled reports:
    Code:
    version:        v4.3.14
    srcversion:     AAD75FABBBEC53147DA66EB
    How about yours?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  8. #38
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    This is what I got:

    Code:
    nick@ubuntu:~$ modinfo 8812au | grep 0811
    nick@ubuntu:~$ 
    nick@ubuntu:~$ 
    nick@ubuntu:~$ modinfo 8812au | grep -i version
    version:        v4.3.8_12175.20140902
    srcversion:     5E9D12706FAF7E2BB4F284E
    vermagic:       4.4.0-43-generic SMP mod_unload modversions 686 
    parm:           rtw_chip_version:int
    nick@ubuntu:~$ ^C
    nick@ubuntu:~$
    Should I try to reinstall the git version?

  9. #39
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,363
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Quote Originally Posted by hunterni View Post
    This is what I got:

    Code:
    nick@ubuntu:~$ modinfo 8812au | grep 0811
    nick@ubuntu:~$ 
    nick@ubuntu:~$ 
    nick@ubuntu:~$ modinfo 8812au | grep -i version
    version:        v4.3.8_12175.20140902
    srcversion:     5E9D12706FAF7E2BB4F284E
    vermagic:       4.4.0-43-generic SMP mod_unload modversions 686 
    parm:           rtw_chip_version:int
    nick@ubuntu:~$ ^C
    nick@ubuntu:~$
    Should I try to reinstall the git version?
    Uninstall the downloaded version; reboot; reinstall the git version and then post these again:
    Code:
    dmesg | grep 8812
    modinfo 8812au | grep -e 0811 -e version
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  10. #40
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    I uninstalled the old version as instructed in post #33 but I still got the same output when reinstalling with the git version:

    Code:
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ dmesg | grep 8812
    [  310.898302] 8812au: module verification failed: signature and/or required key missing - tainting kernel
    [  310.904755] RTL871X: rtl8812au v4.3.8_12175.20140902
    [  310.904854] usbcore: registered new interface driver rtl8812au
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$ modinfo 8812au | grep -e 0811 -e version
    version:        v4.3.8_12175.20140902
    srcversion:     5E9D12706FAF7E2BB4F284E
    vermagic:       4.4.0-43-generic SMP mod_unload modversions 686 
    parm:           rtw_chip_version:int
    nick@ubuntu:~/Documents/wifi_adapter/rtl8812AU$
    I know you posted a link about this problem:
    Code:
    [  310.898302] 8812au: module verification failed: signature and/or required key missing - tainting kernel
    Could that be the problem?

Page 4 of 6 FirstFirst ... 23456 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •