- Posts: 140
- Thank you received: 72
Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!
- fletch
- Offline
- Premium Member
-
Less
More
1 year 6 months ago - 1 year 6 months ago #326901
by fletch
Replied by fletch on topic Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!
I hope this is the right thread, please move if it isn't...
I'm investigating converting my NUC to a Pi 5 - the install from the official Pi5 image went perfectly but as I'm using a Mesa 7i96 and the Pi will end up inside the cabinet, I need to use a USB WiFi adapter for its external antenna.
The dongle is a Reaktek RTL8811AU (external antenna'd ones seem to be getting rare) so I think I need to install this: github.com/lwfinger/rtw88?tab=readme-ov-file#installation-guide Happy to be corrected if I don't because I'd rather not.
If I do a
I get 6.12.11 but this:
is "Unable to locate package linux-headers-6.12.11"
An apt search reveals a bunch of 6.1.0x Linux headers and a few 6.12.12+bpo headers but no 6.12.11. Not sure what to do now, so any guidance would be appreciated - even if it's a link to a natively supported USB WiFi!
Edit: Running
instead of apt searching for 'linux-headers-6' reveals 'linux-headers-bcm2712-rpi/now 6.12.11-1 arm64' are already installed. Why the headers don't match the uname -a is slightly above my pay grade.
I'm investigating converting my NUC to a Pi 5 - the install from the official Pi5 image went perfectly but as I'm using a Mesa 7i96 and the Pi will end up inside the cabinet, I need to use a USB WiFi adapter for its external antenna.
The dongle is a Reaktek RTL8811AU (external antenna'd ones seem to be getting rare) so I think I need to install this: github.com/lwfinger/rtw88?tab=readme-ov-file#installation-guide Happy to be corrected if I don't because I'd rather not.
If I do a
Code:
uname -r
Code:
sudo apt install linux-headers-$(uname -r)
An apt search reveals a bunch of 6.1.0x Linux headers and a few 6.12.12+bpo headers but no 6.12.11. Not sure what to do now, so any guidance would be appreciated - even if it's a link to a natively supported USB WiFi!
Edit: Running
Code:
apt list --installed | grep headers
Last edit: 1 year 6 months ago by fletch. Reason: Might hopefully help someone?
- unknown
- Offline
- Platinum Member
-
Less
More
- Posts: 887
- Thank you received: 323
1 year 6 months ago #326918
by unknown
Replied by unknown on topic Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!
The kernel is a custom one based on the RPi sources, as such the kernel headers are preinstalled.
If you read the very first post in this thread you will realise that the image is based on Debian 12 with a RT kernel based on the RPi sources.
I have my Pi in a metal enclosure and haven't noticed any issues with wifi. Your mileage may vary.
Have you tried plugging in your dongle and checked if the kernel loads drivers ?
If you read the very first post in this thread you will realise that the image is based on Debian 12 with a RT kernel based on the RPi sources.
I have my Pi in a metal enclosure and haven't noticed any issues with wifi. Your mileage may vary.
Have you tried plugging in your dongle and checked if the kernel loads drivers ?
The following user(s) said Thank You: fletch
- unknown
- Offline
- Platinum Member
-
Less
More
- Posts: 887
- Thank you received: 323
1 year 6 months ago #326920
by unknown
Replied by unknown on topic Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!
Drivers build & load without having to install any "extras".
Code:
git clone https://github.com/lwfinger/rtw88
cd rtw88
make
sudo make install
sudo make install_fw
The following user(s) said Thank You: fletch
- fletch
- Offline
- Premium Member
-
Less
More
- Posts: 140
- Thank you received: 72
1 year 6 months ago #326938
by fletch
Replied by fletch on topic Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!
Thank you very much for your replies. I did read all of this thread (all 7 pages!) but didn't quite make the connection that the linux-headers would be named differently for rpi. I've used the 'sudo apt install linux-headers-$(uname -r)' a fair few times in the past but it's the first time I've noticed a mismatch between uname and the installed headers. Every day is a learning opportunity - even with a Bank Holiday brain.
I also did try just plugging the dongle in but according to this the drivers are not merged into the kernel until 6.13. The WiFi in my workshop is pretty weak - my NUC with two antennas struggles to with signal from the AP - I suspect the foil faced insulation board is creating a bit of a Faraday cage. And it's the ISP supplied router/AP at that end.
Once I'd 'discovered' the headers were already installed, I did the Basic Installation for All Distros and success!
For anyone else following along, the RTL8811AU chipset requires the rtw_8821au driver to be loaded (modprobe'd) as per this issue .
Thanks again, much appreciated.
I also did try just plugging the dongle in but according to this the drivers are not merged into the kernel until 6.13. The WiFi in my workshop is pretty weak - my NUC with two antennas struggles to with signal from the AP - I suspect the foil faced insulation board is creating a bit of a Faraday cage. And it's the ISP supplied router/AP at that end.
Once I'd 'discovered' the headers were already installed, I did the Basic Installation for All Distros and success!
For anyone else following along, the RTL8811AU chipset requires the rtw_8821au driver to be loaded (modprobe'd) as per this issue .
Thanks again, much appreciated.
- unknown
- Offline
- Platinum Member
-
Less
More
- Posts: 887
- Thank you received: 323
1 year 6 months ago #326948
by unknown
Replied by unknown on topic Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!
As the image is a custom one, only the kernel is built from RPi Sources.
This pretty clear, I would have thought.
Where as you were attempting to install headers from the Debian repo
The kernel should load the drivers without any user intervention.
This pretty clear, I would have thought.
Where as you were attempting to install headers from the Debian repo
The kernel should load the drivers without any user intervention.
The following user(s) said Thank You: fletch
- fletch
- Offline
- Premium Member
-
Less
More
- Posts: 140
- Thank you received: 72
1 year 6 months ago #326950
by fletch
To one well versed in building distributions, yes, but not necessarily to one who has only used distributions! Not until now, anyway
I was but at that point, didn't realise the significance of the kernel being sourced from a different place to the base distribution.
It does now load on boot.
Thank you.
Replied by fletch on topic Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!
As the image is a custom one, only the kernel is built from RPi Sources.
This pretty clear, I would have thought.
To one well versed in building distributions, yes, but not necessarily to one who has only used distributions! Not until now, anyway
Where as you were attempting to install headers from the Debian repo
I was but at that point, didn't realise the significance of the kernel being sourced from a different place to the base distribution.
The kernel should load the drivers without any user intervention.
It does now load on boot.
Thank you.
Time to create page: 1.680 seconds