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

raspberry pi 5 os bookworm? #17

Open
LAP47 opened this issue Apr 24, 2024 · 50 comments
Open

raspberry pi 5 os bookworm? #17

LAP47 opened this issue Apr 24, 2024 · 50 comments

Comments

@LAP47
Copy link

LAP47 commented Apr 24, 2024

Getting a "Your kernel header files aren't properly installed. Please consult your distro documentation or user support forums. Once the header is properly installed, please run "sudo ./install-driver.sh" Anyway to get this working on there so that I can use it to make a portable router? I'm guessing that it's not for aarch64.

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 003: ID 13b1:003f Linksys WUSB6300 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU]
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
phy#0
Unnamed/non-netdev interface
wdev 0x2
addr 2e:cf:67:27:77:c9
type P2P-device
txpower 31.00 dBm
Interface wlan0
ifindex 3
wdev 0x1
addr 2c:cf:67:27:77:c9
type managed
channel 165 (5825 MHz), width: 20 MHz, center1: 5825 MHz
txpower 31.00 dBm

@lwfinger
Copy link
Collaborator

It should work for aarch64. Please provide the complete output from 'make'.

@morrownr
Copy link
Owner

Hi @LAP47

Take a look in the file FAQ.md. The last item very well may apply to your situation.

@LAP47
Copy link
Author

LAP47 commented Apr 24, 2024 via email

@lwfinger
Copy link
Collaborator

If you are answering my question, copy and paste from the terminal to the web browser.

If you mean FAQ.md, 'less FAQ.md'.

@morrownr
Copy link
Owner

If you mean FAQ.md, 'less FAQ.md'.

Or he can call up this repo in a web browser and click on the file FAQ.md.

@LAP47
Copy link
Author

LAP47 commented Apr 24, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 24, 2024 via email

@morrownr
Copy link
Owner

@LAP47

How do I provide the complete output from make?

From the driver directory:

$ make

copy the screen output and post it.

@LAP47
Copy link
Author

LAP47 commented Apr 24, 2024 via email

@morrownr
Copy link
Owner

Even the driver that's available on Ubuntu 23.10 repo's doesn't work. Meaning that it installs fine via synaptic but doesn't make the dongle work. No lights come on it.

Dead adapter? Dead USB port?

Are you seeing it when you run:

$ lsusb

For what it is worth, I cloned this repo to my RasPi4B last night. It runs as a dual band AP with relatively clean 64 bit installation of the 2024-03-15 RasPiOS. It worked. This message is going through it. I did not see any issues at all.

@morrownr
Copy link
Owner

@LAP47

I am answering you and there is no make command in the process that I'm
using. It's just...

You are following the primary installation instructions. That is fine but @lwfinger wants to see the results as if you were doing a manual installation. The manual installation is also available in the README but all you need to do is:

From the driver directory, run:

$ make

copy the output and post it here.

This output could provide more details than the installation script provides when it comes to things like header files.

@LAP47
Copy link
Author

LAP47 commented Apr 24, 2024 via email

@michelwi
Copy link

You did install the headers, right?

sudo apt install -y raspberrypi-kernel-headers build-essential bc dkms git

And there is also not a kernel update pending and you did not reboot in a wee while?

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@michelwi
Copy link

just tell me what to do and I'll do it

Fortunately we have very good step-by-step instructions in the readme file, which you can read online
https://github.com/morrownr/8812au-20210820?tab=readme-ov-file#installation-steps
or by opening the cloned repositories README file on your disk. (Search for installation steps)

The command I posted is part of the instructions (Step 3).

I don't know what you mean there about pending kernel updates and rebooting

Sometimes when you do software updates on the raspberry there will be a new kernel installed. This is one of the few times when one needs to restart the computer (similar to Windows updates). If you then do not restart manually, there can be issues where the os thinks the new version was valid, but actually you are still using the old version.

If you are unsure and don't mind, I would try rebooting just in case. A reboot is also part of the step-by-step guide linked above.

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@michelwi
Copy link

No worries. Please let us know if this solves your problem or if you need further assistance.

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@michelwi
Copy link

Sorry I do not understand the question.
Are you asking how to print the README file on a sheet of paper?

I would recommend opening the link in a browser window on the device that you are using to interact with the raspberry and then copy pasting the appropriate lines in the terminal

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@michelwi
Copy link

Sure you can physically print it. Open the readme file in a browser of your choice
https://github.com/morrownr/8812au-20210820/blob/main/README.md
Then most browsers should open the print dialog when pressing [ctrl]+p

Exact steps of cause depend on your operating system, browser, printer.

But I still recommend working in a browser and scrolling up and down (maybe opening the same tab multiple times?) because if you are typing the commands by hand off of a sheet of paper, there might be an increased risk of typoing compared to copy pasting the whole line.

Good luck.

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@alkisg
Copy link
Collaborator

alkisg commented Apr 25, 2024

rpi-update isn't supported by the Raspberry Pi OS developers, they do not provide the kernel headers for that.
You need to revert to the official kernel by following these instructions:

https://raspberrypi.stackexchange.com/questions/101790/how-to-revert-from-rpi-update-to-stable-build

I.e. open a terminal and run these commands:

sudo apt-get update
sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel 

@michelwi
Copy link

Okay, then lets walk you through the steps that morrownr and lwfinger asked.

Take a look in the file FAQ.md. The last item very well may apply to your situation.

The last point of the FAQ https://github.com/morrownr/8812au-20210820/blob/main/FAQ.md mentions running a 32 bit version of the operating system with a 64 bit kernel.
To verify if this is the case run

uname -m

It should show one out of

32-bit: armv6l armv7l armv8 armhf
64-bit: arm64 aarch64

This is the version of your kernel. To find the version of the operating system, please run

getconf LONG_BIT

It should print either 32 or 64.

If kernel is 64 and os is 32, then we know how to fix the problem. Otherwise proceed to the next comment:

The manual installation is also available in the README but all you need to do is:

From the driver directory, run:

$ make

copy the output and post it here.

Where "the driver directory" is the exact same folder where you run the automatic installation script ($sudo ./install-driver.sh) in the last step.

If you need help copying and posting the output of make, then please let us know how you operate your raspberry pi (e.g. via ssh acces from a different pc, or with mouse/keyboard/monitor directly attached) so we can try to best guide you.

@morrownr
Copy link
Owner

@LAP47

I think I have figured out what is going on based on one of your earlier post.

I am answering you and there is no make command in the process that I'm
using. It's just...

The steps you posted are wrong for what you are doing. What you need to do is find the Installation Steps section in the README file and follow the steps very carefully. Some of the steps are different depending on the Linux distro you are using. You can ask questions on each step if you need to do so.

We can't do this for you. A lot of work has gone into the documentation. It attempts to make it easy on those who are not familiar with the internal workings of operating systems.

If this is something you are not comfortable doing, then my advice is to get a USB WiFi adapter that will be plug and play so that all you have to do is plug it in and go. The Main Menu to this site is located:

https://github.com/morrownr/USB-WiFi

Menu items 1 and 2 should be helpful. Menu item 2 shows a long list of USB WiFi adapters that are know to work well with Linux and require no driver compiling. You plug the adapter in and go.

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 25, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 26, 2024 via email

@morrownr
Copy link
Owner

For your Ubuntu 23.10 system:

Go to the driver directory and run:

sudo apt install -y build-essential dkms git iw

sudo sh install-driver.sh

reboot when the script asks.

FYI: I have a test system that has Ubuntu 23.10 on it. I have tested. This driver installs and works fine. This repo gets over 100 hits per day as I have not taken the older version of the driver down yet. It will get up to 200 hits per day soon. My point here being that this is a heavily used driver and I'm not seeing this from any other user so something specific and unusual is going on.

@LAP47
Copy link
Author

LAP47 commented Apr 26, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 26, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 26, 2024 via email

@morrownr
Copy link
Owner

Still not working on Ubuntu 23.10 on the raspberry pi 5. Won't install.

I don't test the RasPi version of Ubuntu but was hoping the regular Ubuntu steps would work. Your best bet might be to ask in an appropriate RasPi forum. What you need to know is how to install the kernel header files.

@michelwi
Copy link

Just out of curiosity, the raspberry pi 5 does have built-in wifi. If this stick is giving so much problems, would it be feasible to use built-in wifi instead?

@LAP47
Copy link
Author

LAP47 commented Apr 26, 2024 via email

@morrownr
Copy link
Owner

@michelwi

... the raspberry pi 5 does have built-in wifi.

It uses a Broadcom chip. Broadcom's Linux support is subpar. This is one of the reasons you see so many Pi users using USB WiFi adapters. The best solution for Linux users that just want an adapter that just works is to look at the Plug and Play List on the Main Menu.

@LAP47
Copy link
Author

LAP47 commented Apr 29, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 29, 2024 via email

@morrownr
Copy link
Owner

@LAP47

I did it. I got it working on the raspberry pi 5 in Ubuntu 24.04 LTS.

Did you do it with the installation steps in the README or was something different required? I ask because I can add to the README to clarify things.

@morrownr
Copy link
Owner

Then why would the raspberry pi foundation choose them (Broadcom chips) to
use then?

I have heard that very early on former Broadcom employees were involved with RasPi and they had connections to Broadcom. Do I know this for a fact? No. What I do know that is factual is that Linux users should avoid Broadcom products if at all possible if they want good support.

Any startup that decides to make Linux part of their project needs to immediately determine the companies that provide the best Linux support for the products they will buy. Period.

@LAP47
Copy link
Author

LAP47 commented Apr 29, 2024 via email

@LAP47
Copy link
Author

LAP47 commented Apr 29, 2024 via email

@morrownr
Copy link
Owner

I'll get back to you once I've done it again successfully

Thanks. I try to make the drivers here work on as many distros as is feasible. You can imagine how difficult it is so help is needed.

Now you have an idea why I recommend adapters with in-kernel drivers.

@LAP47
Copy link
Author

LAP47 commented Apr 29, 2024 via email

@LAP47
Copy link
Author

LAP47 commented May 1, 2024 via email

@LAP47
Copy link
Author

LAP47 commented May 1, 2024 via email

@morrownr
Copy link
Owner

morrownr commented May 1, 2024

Glad to see you are making progress. Some distros like to play with the header files.

@LAP47
Copy link
Author

LAP47 commented May 1, 2024 via email

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

5 participants