-
Notifications
You must be signed in to change notification settings - Fork 177
Compiling error on Raspbian kernel version 4.14.98 (Raspberry 3 Model B+) #30
Comments
hi im having problems compiling under 4.14.98 I'm getting the following error Pls help! pi@raspberrypi:~/rtl8821CU $ sudo make |
Hello Marki. All i did is this.
Now that you are in the driver directory, edit the MakeFile and add this CFLAG to the others present at the top of the MakeFile:
And change these MakeFile entries to ( look for them cause they are already present in the MakeFile):
and then:
I hope it helps! |
Thank you for the wealth of info. I'm a beginner and stuck on trying to get this drive up and going on my pi 3 b+. I've made it this far but I'm stuck on trying to edit the MakeFile. I've found the MakeFile in the rtl8821CU folder but I don't know the best way to edit it. To repay for the help I'll write up an Install to Raspberry Pi 3 for Beginners somewhere on here so to limit further questions for a while. |
Hello PepperNickel.
Once you are in the driver directory, digit
To move through the file, use the arrows. To save the file, use CTRL+O and confirm pressing ENTER. To exit the edit of the file, use CTRL+X. Have a nice day. |
Hi!
I followed the procedures and still had compilation issued. After doing some reading I saw that you could compile for RPI even if I was using RPI3+ and it worked. Wouldn’t go into monintor mode. Any suggestions on how to enable monitor mode?
But if u run into compilation issued try RPI and not RPI3
Thanks
Mark
From: Claudio Taccogna <notifications@github.com>
Sent: Thursday, June 6, 2019 7:45 PM
To: whitebatman2/rtl8821CU <rtl8821CU@noreply.github.com>
Cc: marki2239 <marki@ra-dev.net>; Comment <comment@noreply.github.com>
Subject: Re: [whitebatman2/rtl8821CU] Compiling error on Raspbian kernel version 4.14.98 (Raspberry 3 Model B+) (#30)
Thank you for the wealth of info. I'm a beginner and stuck on trying to get this drive up and going on my pi 3 b+. I've made it this far but I'm stuck on trying to edit the MakeFile. I've found the MakeFile in the rtl8821CU folder but I don't know the best way to edit it. To repay for the help I'll write up an Install to Raspberry Pi 3 for Beginners somewhere on here so to limit further questions for a while.
Hello PepperNickel.
The best and easiest way to edit a file using the terminal is nano. If it's not installed by default, digit:
sudo apt-get install -y nano
Once you are in the driver directory, digit
sudo nano MakeFile
To move through the file, use the arrows. To save the file, use CTRL+O and confirm pressing ENTER. To exit the edit of the file, use CTRL+X.
Have a nice day.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#30?email_source=notifications&email_token=AJJQCSS2KVEJQFVBAAMOWOTPZDTDHA5CNFSM4HMLKS3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXCOYOA#issuecomment-499444792> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AJJQCSSQDFCD2656Q4ZHDZDPZDTDHANCNFSM4HMLKS3A> . <https://github.com/notifications/beacon/AJJQCSQQLHOEGQ7GVZWTSUTPZDTDHA5CNFSM4HMLKS3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXCOYOA.gif>
|
So far I've edited MakeFile and ran everything. The Errors shown I've never done anything with Linux in my life. I think I'll just watch some basic instruction videos and come back and give it a go later. After I learn a few more basic operations. Thank you |
Try with
And before compiling again, try with
Cheers |
I've been trying for a quite some time. Maybe someone can see what I'm doing wrong. So here's my path.
And before compiling again.
then
Still getting the "Your kernel headers for kernel blablabla cannot be found". I know I can find another use for this wifi dongle if this doesn't work out. Thank you for all the help so far! |
Try compiling as RPI not RPI3
Also you need to do a git commit if youre going to use dkms otherwise it wont keep your changed to Makefile.
Worked for me.
Mark
From: PepperNickel <notifications@github.com>
Sent: Tuesday, August 13, 2019 7:15 AM
To: whitebatman2/rtl8821CU <rtl8821CU@noreply.github.com>
Cc: marki2239 <marki@ra-dev.net>; Comment <comment@noreply.github.com>
Subject: Re: [whitebatman2/rtl8821CU] Compiling error on Raspbian kernel version 4.14.98 (Raspberry 3 Model B+) (#30)
I've been trying for a quite some time. Maybe someone can see what I'm doing wrong. So here's my path.
1.
sudo apt update
sudo apt install build-essential git dkms
git clone https://github.com/whitebatman2/rtl8821CU.git
2.
sudo nano MakeFile
Add:
EXTRA_CFLAGS += -Wno-error=date-time
Edit:
CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_ARM_RPI = n CONFIG_PLATFORM_ARM_RPI3 = y
3. Closed and reopened command promt
sudo apt-get install raspberrypi-kernel-headers
And before compiling again.
sudo make clean
4.
DRV_NAME=rtl8821CU
DRV_VERSION=5.2.5.3
sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
cd $DRV_NAME
then
git archive master | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
_____
Still getting the "Your kernel headers for kernel blablabla cannot be found". I know I can find another use for this wifi dongle if this doesn't work out. Thank you for all the help so far!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#30?email_source=notifications&email_token=AJJQCSVXZVZG2F2LP4KWTHDQEHOGTA5CNFSM4HMLKS3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4D7L7Y#issuecomment-520615423> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AJJQCSVI54POBGUTRPBQMLTQEHOGTANCNFSM4HMLKS3A> . <https://github.com/notifications/beacon/AJJQCSVJKVCTH36OLENQTUDQEHOGTA5CNFSM4HMLKS3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4D7L7Y.gif>
|
Try to use the command
and then repeat the procedure. Otherwise, i found another working driver for this chipset. The alternative driver is found at the page https://github.com/brektrou/rtl8821CU .
and the command missing in the tutorial:
Before compiling give this commands:
and then
The compiling takes about 10 minutes on the Raspberry. After that, try to plug your usb wifi dongle. If it does not work, reboot the Raspberry. Hope it helps. |
I believe I've been editing the wrong MakeFile... I see an rtl8821CU folder under /home/pi and another rtl8821CU in /usr/src/rtl8821CU-5.2.5.3 I can edit the MakeFile /home/pi but not the one down in src. So my problem is my limited knowledge as to open and edit the protected MakeFile. I did see that my edits to the /home/pi MakeFile did save. So some progress. Also should I uninstall this driver before trying the other one? I gave the new driver a try. Got as far as... I may be too much of a noob for this but I'm not ready to give up. I have also gone as far as reinstalling rasbian. Thinking I may have made files I can't undo. |
yes, enter the driver directory and uninstall the previous driver using the make clean command.
I'm really optimistic that with the commands i gave you to install the new driver you will your wifi dongle work. Bye. |
Anyway, i'm using 4.14.98-v7+ kernel version. So, maybe this is the problem. |
Hello PepperNickel. I'm now on kernel 4.19.58-v7 and the compiling works flawlessly. Once installed, give the following commands:
You can't be wrong! I have just tested everything. Cheers. |
58 worked for me too I could not get it to work on 98
And make sure you do a hit commit after you make the changes otherwise the sims will not work
Mark
… On Aug 19, 2019, at 07:23, Claudio Taccogna ***@***.***> wrote:
I believe I've been editing the wrong MakeFile... I see an rtl8821CU folder under /home/pi and another rtl8821CU in /usr/src/rtl8821CU-5.2.5.3 I can edit the MakeFile /home/pi but not the one down in src.
So my problem is my limited knowledge as to open and edit the protected MakeFile. I did see that my edits to the /home/pi MakeFile did save. So some progress.
Also should I uninstall this driver before trying the other one?
I gave the new driver a try. Got as far as...
sudo cp /lib/modules/$(uname -r)/build/arch/arm/Makefile /lib/modules/$(uname -r)/build/arch/arm/Makefile.$(date +%Y%m%d%H%M)
And received
cp: cannot stat '/lib/modules/4.19.57-v7+/build/arch/arm/Makefile': No such file or directory
I may be too much of a noob for this but I'm not ready to give up. I have also gone as far as reinstalling rasbian. Thinking I may have made files I can't undo.
Thank you!
Hello PepperNickel. I'm now on kernel 4.19.58-v7 and the compiling works flawlessly.
I suggest to completely reinstall your Raspbian using the latest version from the following link:
https://www.raspberrypi.org/downloads/raspbian/
Once installed, give the following commands:
sudo su
apt-get update
apt-get install git dkms build-essential raspberrypi-kernel-headers bc
mkdir -p ~/build
cd ~/build
git clone https://github.com/brektrou/rtl8821CU.git
cp /lib/modules/$(uname -r)/build/arch/arm/Makefile /lib/modules/$(uname -r)/build/arch/arm/Makefile.$(date +%Y%m%d%H%M)
sed -i 's/-msoft-float//' /lib/modules/$(uname -r)/build/arch/arm/Makefile
ln -s /lib/modules/$(uname -r)/build/arch/arm /lib/modules/$(uname -r)/build/arch/armv7l
./dkms-install.sh
You can't be wrong! I have just tested everything.
Cheers.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It also works on Raspberry 4 Model B, thank you very much! |
Wanted to add to this old thread. It took a few days, but I got these cheapo adapters working and wanted to share what I had learned for anyone else that might need it. Raspberry Pi 4b the adapter up, though it was labelled as a different chipset, confirmed directly to be rtl8811CU I followed @AngelsWillRule 's solution above, but it still fails at the ./dkms-install.sh with I recognized this error from the airmon-ng/rtl8812AU git, where they added the I have a few of these adapters, and wouldn't you know, more trouble as a result. As there are a few different IDs as above, I added all to I was still having troubles and found myself working through the solution seen above by @PepperNickel : Long story short, these two solutions have what is needed to get this fixed. +1 from me, testing further now! |
Edit: The issue here was not enough power via the USB bus. Externally powered USB Hub solved this. ======================== Spoke too soon. When connecting these up (I have a dozen of them), I am getting some issues.... Special attention to:
|
Correction, had nothing to do with power issues, issues persisting. After weeks of periodic searching, I finally stumbled across these resources: Specifically the portion about adding above
within the file Which at first glance appeared that it may have resolved the above noted issue, but in actuality the issue persists. Opening a separate issue. |
Well, compiling this module was giving me an error till i added in the Makefile an extra flag ( EXTRA_CFLAGS += -Wno-error=date-time ). Compiling now is ok.
The text was updated successfully, but these errors were encountered: