Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM build support #5

Closed
virgesmith opened this issue May 17, 2020 · 23 comments
Closed

ARM build support #5

virgesmith opened this issue May 17, 2020 · 23 comments

Comments

@virgesmith
Copy link

This doesn't work out-of-the-box for ARM arch. On a raspberrry pi zero (armv6l) I had to change line 404 of Makefile from

SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)

to

SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/armv6l/arm/)

FWIW I didn't submit a PR as this change isn't general enough and I've only tested on one hardware platform.

Hope this helps

@corneal64
Copy link
Owner

Sure, thanks. I'll add a link to this issue.

@janat08
Copy link

janat08 commented Jun 9, 2020

Can a example patchfile for this be written?

@ulidtko
Copy link

ulidtko commented Jun 9, 2020

@janat08 such a patch is really simple to make if you know basic git:

diff --git i/rtl8188fu/Makefile w/rtl8188fu/Makefile
index 5300bf2..9ece77e 100644
--- i/rtl8188fu/Makefile
+++ w/rtl8188fu/Makefile
@@ -401,7 +401,7 @@ EXTRA_CFLAGS += -DDM_ODM_SUPPORT_TYPE=0x04
 ifeq ($(CONFIG_PLATFORM_I386_PC), y)
 EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
 EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
-SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
+SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/armv6l/arm/)
 ARCH ?= $(SUBARCH)
 CROSS_COMPILE ?=
 KVER  := $(shell uname -r)

@janat08
Copy link

janat08 commented Jun 9, 2020

ty, I use GUI so don't know this formatting to recognize that this is just a local commit.

@janat08
Copy link

janat08 commented Jun 9, 2020

Useful commands for other people, updpkgsums, and also change sources field which lists other patches in pkgbuild.

It doesn't work. Firstly the above example is missing commit code (its abbreviated with ...). Second I get this:

(1/1) Remove DKMS modules
:: Processing package changes...
Error! There are no instances of module: 8188fu
r8.1d12cae located in the DKMS tree.
error: command failed to execute correctly
(1/1) reinstalling 8188fu-dkms                     [####] 100%
Error! Could not find module source directory.
Directory: /usr/src/8188fu-r8.1d12cae does not exist.

@janat08
Copy link

janat08 commented Jun 9, 2020

Cant you publish a fork instead?

@corneal64
Copy link
Owner

Hey, let me know if it works on your ARM device then I can make changes to the Makefile.

@janat08
Copy link

janat08 commented Jun 9, 2020

I'm failing at installing it altogether.

@corneal64
Copy link
Owner

Oh I see... what exactly is going wrong?

@janat08
Copy link

janat08 commented Jun 9, 2020 via email

@corneal64
Copy link
Owner

Well first remove the partially installed version.

run dkms status to see if it's added to dkms.
then remove using sudo dkms remove rtl8188fu/1.0 --all

After that, download the repo again and change the Makefile

Replace this line:

SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)

With this line:

SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/armv6l/arm/)

Then build and see if it works!

@janat08
Copy link

janat08 commented Jun 10, 2020

I'm told building drivers is a bad idea. Can I get a link for what I'm suppose to do, if using aur patches isn't an option.

@janat08
Copy link

janat08 commented Jun 10, 2020

Once again you could probably just publish a separate package for arm.

@janat08
Copy link

janat08 commented Jun 12, 2020

sudo dkms remove rtl8188fu/1.0 --all
returned that nothing was found.

@corneal64
Copy link
Owner

Then I think you haven't installed the drivers previously.
Also do you have dkms installed properly? Sometimes dkms causes issues.

I don't think building drivers is bad. Most coders like to build their drivers, cause they like to take a look at the source code and don't just trust some pre-built binary.

@janat08
Copy link

janat08 commented Jun 12, 2020

So I did make ARCH=aarch64, what's next? DKMS is installed.

@janat08
Copy link

janat08 commented Jun 13, 2020

So I just reuploaded the package https://aur.archlinux.org/packages/8188fu-dkms-arm . It tries to install it with different version though:
Installing 8188fu-dkms-arm (r9.4d9d884-1)...
Configuring 8188fu-dkms-arm...
Error! Could not find module source directory.
Error while configuring
Directory: /usr/src/8188fu-r9.4d9d884 does not exist.
Error: command failed to execute correctly
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Install DKMS modules
==> dkms install 8188fu/pkgver -k 4.19.122-1-MANJARO-ARM
Error! Bad return status for module build on kernel: 4.19.122-1-MANJARO-ARM (aarch64)
Error while configuring
Consult /var/lib/dkms/8188fu/pkgver/build/make.log for more information.
==> Warning, `dkms install 8188fu/pkgver -k 4.19.122-1-MANJARO-ARM' returned 10
Transaction successfully finished.

@corneal64
Copy link
Owner

Since you're using arch take a look at this

@janat08
Copy link

janat08 commented Jun 14, 2020

I'm using manjaro, and still saw my package in the AUR, should I upload it elsewhere?

@janat08
Copy link

janat08 commented Jun 14, 2020

Did you provide that as an example for package making or something to install?

@corneal64
Copy link
Owner

To install! A user said that the 8188eu drivers also work on 8188fu. So you can try and see if it works for you.

Also this driver should work. I have used it on my machine running Manjaro.

@janat08
Copy link

janat08 commented Jun 15, 2020

The eu version didn't work.
Building module:
cleaning build area....
CONFIG_RTL8188EU=m make -C /usr/lib/modules/4.19.122-1-MANJARO-ARM/build M=/var/lib/dkms/8188eu/v4.3.0.8_13968/build modules.................(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.122-1-MANJARO-ARM (aarch64)
Error while configuring
Consult /var/lib/dkms/8188eu/v4.3.0.8_13968/build/make.log for more information.
Error: command failed to execute correctly
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Install DKMS modules
==> dkms install 8188eu/v4.3.0.8_13968 -k 4.19.122-1-MANJARO-ARM
Error! Bad return status for module build on kernel: 4.19.122-1-MANJARO-ARM (aarch64)
Error while configuring
Consult /var/lib/dkms/8188eu/v4.3.0.8_13968/build/make.log for more information.
==> Warning, `dkms install 8188eu/v4.3.0.8_13968 -k 4.19.122-1-MANJARO-ARM' returned 10
Transaction successfully finished.

@janat08
Copy link

janat08 commented Jun 15, 2020

I reinstalled dkms, and the EU version won't find headers:
DKMS: add completed.
Error! echo
Error while configuring
Your kernel headers for kernel 4.19.122-1-MANJARO-ARM cannot be found at

While the fu version still gets the same error:
Configuring 8188fu-dkms...
Error! Could not find module source directory.
Error while configuring
Directory: /usr/src/8188fu-r8.1d12cae does not exist.
Error: command failed to execute correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants