8812au wifi driver OS
#1
Hi,

I am trying to get the 8812au driver working for wifi. I have checked and there are some threads here that address this. However, if I try and build from source or from packages, I cannot get it to work for various reasons. The way I tried most recently was evilbunny's .deb from his/her fileserver. I am using ayufan's Debian Stretch image, then just pull the file from evilbunny's server and attempt an install using apt: sudo apt install ./<debName>

I end up with an error bad return aarch64, which I assume is something to do with building for aarch64 and not arm64 as we should, but I think evilbunny has this working for arm64... Am I using the wrong image? Which OS is evilbunny's .deb for 8812au confirmed to be working for? Here is the link to evilbunny's server: https://files.evilbunny.org/

Note that I also tried manually building from source from gordboy's repo, but after some modifications the build fails because of directory reference issues (i.e directory does not exist) even though the directory does exist... 

Anyway, I think simplest is to install the driver from evilbunny's .deb, but cannot get it to work.

Any help would be very appreciated.

Best Regards,
pane
  Reply
#2
(11-18-2018, 09:16 PM)pane Wrote: Anyway, I think simplest is to install the driver from evilbunny's .deb, but cannot get it to work.


What system image are you trying to install into?

The reason I ask is because some use aarch64 and others use arm64 and I am yet to get it to build on armhf.
  Reply
#3
(11-18-2018, 09:31 PM)evilbunny Wrote:
(11-18-2018, 09:16 PM)pane Wrote: Anyway, I think simplest is to install the driver from evilbunny's .deb, but cannot get it to work.


What system image are you trying to install into?

The reason I ask is because some use aarch64 and others use arm64 and I am yet to get it to build on armhf.

Hi evilbunny, I did not expect a reply this quickly Smile

The system image I am trying to install into is stretch-minimal-rock64-0.7.9-1067-arm64.img.xz from ayufan's repo. I have tried on others too. I do not need to use any OS in particular, I just need an image that works with this wifi driver. It can be desktop or headless, I don't mind as long as the 8812au driver works

thanks for your help



[url=https://github.com/ayufan-rock64/linux-build/releases/download/0.7.9/stretch-minimal-rock64-0.7.9-1067-arm64.img.xz][/url]
  Reply
#4
(11-18-2018, 10:06 PM)pane Wrote: The system image I am trying to install into is stretch-minimal-rock64-0.7.9-1067-arm64.img.xz from ayufan's repo. I have tried on others too. I do not need to use any OS in particular, I just need an image that works with this wifi driver. It can be desktop or headless, I don't mind as long as the 8812au driver works

I mostly use deb minimal, and that deb package should work fine. The only thing I can think of is I use dpkg -i <package>.deb rather than apt. I also have dkms and build-essential packages installed.
  Reply
#5
(11-19-2018, 12:35 AM)evilbunny Wrote:
(11-18-2018, 10:06 PM)pane Wrote: The system image I am trying to install into is stretch-minimal-rock64-0.7.9-1067-arm64.img.xz from ayufan's repo. I have tried on others too. I do not need to use any OS in particular, I just need an image that works with this wifi driver. It can be desktop or headless, I don't mind as long as the 8812au driver works

I mostly use deb minimal, and that deb package should work fine. The only thing I can think of is I use dpkg -i <package>.deb rather than apt. I also have dkms and build-essential packages installed.

Alright, thanks. I did update but did not build essentials and manually installed python instead. I will try using your method now, and report back with how I go
  Reply
#6
(11-19-2018, 12:35 AM)evilbunny Wrote:
(11-18-2018, 10:06 PM)pane Wrote: The system image I am trying to install into is stretch-minimal-rock64-0.7.9-1067-arm64.img.xz from ayufan's repo. I have tried on others too. I do not need to use any OS in particular, I just need an image that works with this wifi driver. It can be desktop or headless, I don't mind as long as the 8812au driver works

I mostly use deb minimal, and that deb package should work fine. The only thing I can think of is I use dpkg -i <package>.deb rather than apt. I also have dkms and build-essential packages installed.

Hi evilbunny, I tried your method and got the aarch64 error i.e "Error! Bad return status for module build on kernel: 4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1 (aarch64)"
Are your makefiles already customised for arm64? Or do I have to adjust that myself. I don't see how I can do that if the binary is already packaged. I can provide the make.log if you like. Any ideas? Thanks
  Reply
#7
(11-19-2018, 01:41 AM)pane Wrote: Hi evilbunny, I tried your method and got the aarch64 error i.e "Error! Bad return status for module build on kernel: 4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1 (aarch64)"
Are your makefiles already customised for arm64? Or do I have to adjust that myself. I don't see how I can do that if the binary is already packaged. I can provide the make.log if you like. Any ideas? Thanks


I just reinstalled on my rock64 just now, and no warnings or errors:

Code:
root@rock64:~# dpkg -i rtl8812au-dkms_4.3.22-4_all.deb
Selecting previously unselected package rtl8812au-dkms.
(Reading database ... 88461 files and directories currently installed.)
Preparing to unpack rtl8812au-dkms_4.3.22-4_all.deb ...
Unpacking rtl8812au-dkms (4.3.22-4) ...
Setting up rtl8812au-dkms (4.3.22-4) ...
Loading new rtl8812au-4.3.22 DKMS files...
Building for 4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1
Building initial module for 4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1
Done.

8812au:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1/updates/dkms/

depmod...

DKMS: install completed.
The makefile is hardcoded with the architect because letting it pick would always fail. If you go into /usr/src/rtl8812au-4.3.22/ you should be able to make changes and manually run make
  Reply
#8
(11-19-2018, 01:52 AM)evilbunny Wrote:
(11-19-2018, 01:41 AM)pane Wrote: Hi evilbunny, I tried your method and got the aarch64 error i.e "Error! Bad return status for module build on kernel: 4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1 (aarch64)"
Are your makefiles already customised for arm64? Or do I have to adjust that myself. I don't see how I can do that if the binary is already packaged. I can provide the make.log if you like. Any ideas? Thanks


I just reinstalled on my rock64 just now, and no warnings or errors:

Code:
root@rock64:~# dpkg -i rtl8812au-dkms_4.3.22-4_all.deb
Selecting previously unselected package rtl8812au-dkms.
(Reading database ... 88461 files and directories currently installed.)
Preparing to unpack rtl8812au-dkms_4.3.22-4_all.deb ...
Unpacking rtl8812au-dkms (4.3.22-4) ...
Setting up rtl8812au-dkms (4.3.22-4) ...
Loading new rtl8812au-4.3.22 DKMS files...
Building for 4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1
Building initial module for 4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1
Done.

8812au:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1/updates/dkms/

depmod...

DKMS: install completed.
The makefile is hardcoded with the architect because letting it pick would always fail. If you go into /usr/src/rtl8812au-4.3.22/ you should be able to make changes and manually run make

Thanks for that, I manually ran make, eventually got the build to work. Am trying to load the kernel module in now and am having depmod link issues i.e modprobe says the kernel object is not in /lib/module even though I run ls and it is there... I ran depmod again and then tried to load it again and failed. I'm attempting to fix this now

EDIT: I managed to get it working now Smile I used insmod instead of modprobe and just pointed to the built .ko which was in /usr/src/...

Thanks very much for the help in debugging evilbunny, and for providing a fileserver with useful files
  Reply
#9
(11-19-2018, 02:32 AM)pane Wrote: Thanks for that, I manually ran make, eventually got the build to work. Am trying to load the kernel module in now and am having depmod link issues i.e modprobe says the kernel object is not in /lib/module even though I run ls and it is there... I ran depmod again and then tried to load it again and failed. I'm attempting to fix this now

What changes did you make to get it working? I'd like to incorporate improvements.
  Reply
#10
(11-19-2018, 02:39 AM)evilbunny Wrote:
(11-19-2018, 02:32 AM)pane Wrote: Thanks for that, I manually ran make, eventually got the build to work. Am trying to load the kernel module in now and am having depmod link issues i.e modprobe says the kernel object is not in /lib/module even though I run ls and it is there... I ran depmod again and then tried to load it again and failed. I'm attempting to fix this now

What changes did you make to get it working? I'd like to incorporate improvements.

Basically, I made sure to do build essentials, install python, updated did a sudo apt-get update
Then I ran the package using dpkg -i <name>.deb.
I rebuilt the .ko, which went fine, but DEPMOD didn't link properly or for some reason the .ko wasn't placed in /lib/modules/<uname -r>
so I used insmod and inserted it from file. Then it loaded up, I plugged in the rtl8812au and tested it, it works.
Thanks. I think the process is pretty clear, I am just not very experienced with linux kernel. I think with your help it was pretty straightforward
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  on-board ethernet driver michaelanburaj 0 1,826 03-26-2020, 12:01 PM
Last Post: michaelanburaj
  Ayufan Debian Stretch Openmediavault 4 5G Wifi Not Connecting Poincare 0 2,230 03-26-2019, 07:28 PM
Last Post: Poincare
  Can't connect to wifi on a Rock64 SuperSaiyanCaleb 2 4,088 12-18-2018, 11:51 PM
Last Post: SuperSaiyanCaleb
Lightbulb Wifi problem Nether494 13 17,142 11-28-2018, 01:48 PM
Last Post: Nether494
  WiFi on Armbian problem scalextrix 14 17,476 09-08-2018, 01:13 AM
Last Post: scalextrix
  OMV wifi setup (driver issue) six9 0 2,295 07-25-2018, 03:34 PM
Last Post: six9
  wifi dongle pas059 3 3,812 05-30-2018, 12:25 PM
Last Post: pas059
  rtl8812au driver install.. 11b2p508 11 16,056 05-20-2018, 01:36 AM
Last Post: brajul
  How can I get a driver to support my USB wifi dongle Rocklobster 4 5,862 04-19-2018, 12:55 PM
Last Post: Rocklobster
  alpha wifi rt3572 cinaed 0 1,529 02-15-2018, 03:04 PM
Last Post: cinaed

Forum Jump:


Users browsing this thread: 1 Guest(s)