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
(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.
(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
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]
(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.
(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
(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
(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
11-19-2018, 02:32 AM
(This post was last modified: 11-19-2018, 02:41 AM by pane.
Edit Reason: progress report
)
(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 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
(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.
11-19-2018, 02:46 AM
(This post was last modified: 11-19-2018, 03:16 AM by pane.
Edit Reason: i didnt initially type anything
)
(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
|