-
Notifications
You must be signed in to change notification settings - Fork 34
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
Compiled fine on Pi OS 11 32 bit (ARM), but on Pi OS 11 64 bit (ARM64), make fails? #5
Comments
Hi! What is the kernel version? |
Ah, I should have included that... it was the latest rpi-update and used rpi-source to pull the headers. I am testing a new i2c-sensor overlay that the Pi team (here on GitHub) just updated for me, to add some new sensors to the official support list, so I needed the latest firmware/kernel. I updated 32 bit from... I updated 64 bit from... Using a Pi Model 3 B in this case. But don't think that matters. Just to validate I did the following steps on 32 bit and then 64 bit Pi OS images... # uname -a # cd /root # cd /root (Changed Makefile) # echo "blacklist r8188eu" > /etc/modprobe.d/blacklist-r8188eu-realtek.conf On 32 bit... Everything compiled, installed, and on insert of wifi-dongle, got association and ip address as expected. On 64 bit,... Previous test, when I opened the issue, failure, and with the latest test, also a failure... For 64 bit image... Let me know if any other information is needed. |
I after a pretty extensive google search I found a vague reference to the fact that newer kernel compiling seems to demand .o.cmd file was missing, The author mentioned, "add a touch command to the Kbuild file (i.e. 'touch .driver.o.cmd')." Then I found a comment that a modules.symvers file must exist or be generated. So I tried that, since I did not understand the reference to a missing .o.cmd file. # make clean This seemed to let the make finish. So with blind faith did the make install... # make install Surprise, when I inserted the 8188eus based USB wifi dongle, the driver loaded, the interface appeared and get an IP address as usual. I leave it to greater minds than mind, to understand why this worked? I need to test the driver of course, but the compile appears good, at least for now. I guess another question is, why did the 32 bit test work without this tweak? |
I can't fix this! It's an PiOS 64bit problem. Just try another OS. |
That is why I tested on both 32 bit and 64 bit Pi OS. Worked fine on 32 bit Pi OS. Creating an empty Modules.symvers file seems to let the compile complete, which seems really odd to me, but I am not an expert on use make. Like I said I got the idea of the empty file tweak from a few references via Google, was really surprised when it worked. Maybe if you include an empty Modules.symvers file in the git, just so it works? Or document it as a possible issue in the read.me file? Just a thought. |
A side question, have you any interest in adding dkms support to your project? Would be a nice add to your project, IMHO. |
Compiled fine on Pi OS 11 32 bit (ARM), but on Pi OS 11 64 bit (ARM64), make fails? I am using rpi-update to latest firmware/kernel, and rpi-source to pull the very latest raspberry pi kernel headers to match rpi-update. As I noted above, this seemed to work fine under 32 bit, but hit the following error(s) under 64 bit. Any idea why? Should it not work under 64 bit?
Error detail...
LD [M] /root/rtl8188eu-ivanovborislav/8188eu.o
MODPOST /root/rtl8188eu-ivanovborislav/Module.symvers
ERROR: modpost: "__const_udelay" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__arch_copy_from_user" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "_raw_spin_unlock" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__rcu_read_lock" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__rcu_read_unlock" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "cpu_hwcap_keys" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "csum_ipv6_magic" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__warn_printk" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "arm64_const_caps_ready" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__udelay" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
WARNING: modpost: suppressed 2 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/Makefile.modpost:133: /root/rtl8188eu-ivanovborislav/Module.symvers] Error 1
make[2]: *** Deleting file '/root/rtl8188eu-ivanovborislav/Module.symvers'
make[1]: *** [Makefile:1815: modules] Error 2
make[1]: Leaving directory '/root/linux-31bf7119c2a66c2d198386bb92bd9a421c9fd394'
make: *** [Makefile:2489: modules] Error 2
The text was updated successfully, but these errors were encountered: