-
Notifications
You must be signed in to change notification settings - Fork 599
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
8188eu: disagrees about version of symbol module_layout #102
Comments
Compile the module with exactly the same kernel headers, kernel configuration, and compiler version. That is the only way that an externally built module will load. In your case, it is likely the compiler version that is messing you up. The command 'cat /proc/version' will show the particulars for the running kernel. |
How do I ensure the same kernel headers, kernel configuration and compiler version was used to compile rtl8188eu ? I found there are no linux headers for my kernel version with the following command: sudo apt-get install linux-headers-$(uname -r) I use sudo make headers_install to install the kernel headers and also grab the .config file from /proc/config.gz and rebuild the rtl8188eu for a few times but I still got the above issue. It is very frustrating. |
What does 'cat /proc/version' say? What does 'gcc --version' say? |
cat /proc/version gcc (Debian 4.6.3-14+rpi1) 4.6.3 |
The kernel was compiled with gcc version 4.8.3 20140303 . You are compiling the module with gcc 4.6.3. That is not the same version! |
I know but I don't know how to fix it. I found that I got gcc 4.7.2 and I had updated the symbolic link of gcc to point to gcc-4.7 |
The kernel was cross compiled on some other platform. You have three choices: (1) Build the kernel on the Pi. That takes ~12 hours. Option 2 takes a bit of setup, but there are plenty of examples on the web. I would not recommend the others, particularly as you are not experienced. |
I have already rebuilt the linux kernel but I have no gcc-4.8.3 installed and so I don't know why the rebuilt linux kernel still show gcc-4.8.3 I rolled back to the original Raspbian linux kernel image and found that it was using gcc-4.8.3 too. I would like to rebuild gcc-4.8.3 but I can only download gcc-4.8 from github and have no idea on how to get the gcc-4.8.3 source. Moreover, I can't find any sources from the web on building gcc in Raspberry Pi. [Update on 24-Feb-2015] I later found the Linux kernel (kernel.img) that I built was INVALID and cannot be used to startup my RPi 2. I found this out after I renamed both kernel.img to kernel.img.old and kernel7.img to kernel7.img.old respectively and rely solely on the newly built kernel.img, then I found that my RPi2 failed to boot up at all. |
I have updated to gcc-4.8.3 and re-compiled the rtl8188eu, however after installed the 8188eu.ko module, I got the "Invalid module format" when I type the "insmod" command: pi@raspberrypi ~/Downloads/rtl8188eu $ gcc --version pi@raspberrypi /lib/modules/3.18.7-v7+/kernel/drivers/net/wireless $ ls -l 8188eu.ko pi@raspberrypi /lib/modules/3.18.7-v7+/kernel/drivers/net/wireless $ sudo insmod 8188eu.ko |
wyatt-wong, you are not alone with problem |
Right now I'm rebuilding 3.18.7-v7+ kernel with upgraded gcc 4.8.3 on rpi 2. After that i build driver from source. I hope this will help us. If it help i upload kernel and driver to rpi forum. |
Hi, |
extralucide, still rebuilding. |
grab a beer brothers. I'v got wlan0 |
https://www.dropbox.com/s/fcnx8u7opzddjmo/rtl8188eu.tar.bz2?dl=0 |
Thanks, Dmitry. I updated rtl8188eufw.bin to /lib/firmware/rtlwifi/ and 8188eu.ko to /lib/modules/3.18.7-v7+/kernel/drivers/net/wireless. After executed sudo insmod 8188eu.ko, I was able to see "wlan0" in ifconfig. I will configure the wlan0 setting later then. |
I was able to use wifi in my RPi2 using the 8188eu.ko with my linux kernel 3.18.7-v7+. I had also configured RPi2 to auto startup the wlan0 after reboot. However, when I issued the "sudo ifup wlan0" command, I got the following 3 errors on ioctl: Do you know why there is "Operation not permitted" and "Invalid argument" errors ? pi@raspberrypi ~ $ sudo ifup wlan0 Listening on LPF/wlan0/14:cf:92:d3:0b:69 |
Which branch of the driver did you build? I realize that it is my fault for having more than one branch, but it would be helpful if people would automatically include this information. Is ifup a script on your distro? If so, what are the commands being used in that script. The driver may not be correctly implementing all the WEXT compatibility calls. |
Refer to the reply thread above, the 8188eu.ko was not compiled by myself but it was compiled and provided by the user Dmitry Zakharov. So I have no idea what branch of the drive that he used to build the rtl8188eu binary. The ifup command is bundled in my Raspberry Pi 2 Linux distribution. I need to check the contents of the ifup script and get back to you later. |
Do I need to use your kernel.img to boot my my RPi2 as well, Dmitry ? |
wyatt-wong, yes you need. But right now this is not actual. |
hi... im also having the same problem..here what i got ..... root@..: i think i have same versions but still insmod gives error.. please help me i am a beginner in kali linux... |
Rajssss I bought Raspberry Pi official WiFi dongle and it works perfectly for Raspberry Pi 2, so I did not use rtl8188eu module anymore. |
I am using Raspberry Pi 2 and the linux kernel version is 3.18.7-v7+. After compiled the rtl8188eu and installed it, I rebooted my Raspberry Pi 2 and I typed the dmesg and got the following error:
8188eu: disagrees about version of symbol module_layout
How do I resolve it ?
The text was updated successfully, but these errors were encountered: