Keyboard Shortcuts
Likes
Search
Needing some help with usb wifi adaptor / kernel headers mismatch - any ideas?
¿ªÔÆÌåÓýHi Everyone, sorry I haven¡¯t been attending the meetings the last 4 (6?) months. It¡¯s been, well, hectic to say the least. ? If anyone can help ¨C it would be appreciated, and I can compensate. Our testing Pi for this is at 1600 14th street, or I can give access via real vnc. I do need to sort this out this week if possible. ? One big issue we have had is the relatively low powered wifi unit on the 3b+, particularly for California customers who have chicken wire faraday cages under recently applied stucco. Its been so bad even basic API calls fall over, intermittently. We have resolved the system impacts, but still want to improve the situation by allowing customers to add a USB wifi adaptor with antenna to get the signal high or low (or through the wall to the other side), away from the faraday cage. ? But I am having issues getting the correct kernel headers to load correctly. ? The usb device is recognized.. ? [??? 4.375575] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=f179, bcdDevice= 0.00 [??? 4.375603] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [??? 4.375619] usb 1-1.4: Product: 802.11n [??? 4.375634] usb 1-1.4: Manufacturer: Realtek [??? 4.375651] usb 1-1.4: SerialNumber: 00E03530B0B1 ? We have a couple of git repos that supposedly work, but both fail at the point of finding the kernel headers. ? This is our current OS version¡..Linux pi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l GNU/Linux ? Prep done: sudo apt-get install -y build-essential git sudo apt-get install -y raspberrypi-kernel-headers sudo reboot git clone (note we have also tried ) ? I do have kernel files at /lib/modules/5.10.63-v7+ ? But when running make ? pi@pi:~/8821cu-20210916 $ make make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.10.63-v7+/build M=/home/pi/8821cu-20210916? modules make[1]: *** /lib/modules/5.10.63-v7+/build: No such file or directory.? Stop. make: *** [Makefile:2501: modules] Error 2 ? /build doesn¡¯t exist in the file structure. ? ? ? I¡¯ve got to the point where both my main programmer (India) and I are starting to look for the answer in the fridge. We are not thinking clearly anymore. ? ? Best, ? Paul |
This here:
toggle quoted message
Show quoted text
states at the bottom of the page: ------------------------------------------------------------------------ i was having this same problem, this is what i did to fix it: after running the suggested above command sudo apt-get install raspberrypi-kernel-headers i found my headers in /usr/src so i copied them to my build folder, but first i had to make one sudo mkdir /lib/modules/5.10.103-v7+/build/ then copied the headers into that new build folder sudo cp -r /usr/src/linux-headers-5.10.103-v7+/* /lib/modules/5.10.103-v7+/build/ now when i run my makefile, my drivers compile without the above error message ------------------------------------------------------------------------ I had a similar problem two or three years back. Found a script that pulled the exact kernel version I was running at that time out of Github. Built that from scratch, which, IIRC, did the trick. But then I also slept since then. I wonder if that SDHC card is still somewhere. BTW, would it perhaps be easier to use a known-supported USB dongle and a USB-A to USB-A extension cable so that not just the antenna, but rather the whole dongle resides outside the cage? Like this one: You'll still have to find some kind of plastic housing for that thing. Advantage is, you don't get much signal loss through the antenna connectors. Disadvantage, the antenna is smaller than an external one, and, depending on the dongle's power draw, the cable must not be too long. On 2023-03-01 16:31, Paul James wrote:
Hi Everyone, sorry I haven¡¯t been attending the meetings the last 4 (6?) months. It¡¯s been, well, hectic to say the least. |
¿ªÔÆÌåÓýThanks Cornelius. ? Still having issues with it, so I have ordered a couple that supposedly will work without needing to compile drivers - they arrive tomorrow morning. Hopefully they will work. ? As soon as I get something working, we will be designing a 2 part water proof printed case. ? ? Here is our new connections panel. M12 Cables manufactured in China. M12 Connecters soldered to circuit board, with ip67 seals on the panel. Inside of box and lid sealed with resin. Overlap seal between box and lid, with butyl tape as final seal. Airtight. ? -----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Cornelius Keck via groups.io Sent: Wednesday, March 1, 2023 5:34 PM To: [email protected] Subject: Re: [dallasrpi] Needing some help with usb wifi adaptor / kernel headers mismatch - any ideas? ? This here: ? ? states at the bottom of the page: ? ------------------------------------------------------------------------ i was having this same problem, this is what i did to fix it: after running the suggested above command sudo apt-get install raspberrypi-kernel-headers ? i found my headers in /usr/src so i copied them to my build folder, but first i had to make one sudo mkdir /lib/modules/5.10.103-v7+/build/ then copied the headers into that new build folder sudo cp -r /usr/src/linux-headers-5.10.103-v7+/* /lib/modules/5.10.103-v7+/build/ ? now when i run my makefile, my drivers compile without the above error message ? ------------------------------------------------------------------------ ? I had a similar problem two or three years back. Found a script that pulled the exact kernel version I was running at that time out of Github. Built that from scratch, which, IIRC, did the trick. But then I also slept since then. ? I wonder if that SDHC card is still somewhere. ? BTW, would it perhaps be easier to use a known-supported USB dongle and a USB-A to USB-A extension cable so that not just the antenna, but rather the whole dongle resides outside the cage?? Like this one: ? ? You'll still have to find some kind of plastic housing for that thing. ? Advantage is, you don't get much signal loss through the antenna connectors. Disadvantage, the antenna is smaller than an external one, and, depending on the dongle's power draw, the cable must not be too long. ? On 2023-03-01 16:31, Paul James wrote: > Hi Everyone, sorry I haven¡¯t been attending the meetings the last 4 > (6?) months. It¡¯s been, well, hectic to say the least. > > If anyone can help ¨C it would be appreciated, and I can compensate. > Our testing Pi for this is at 1600 14^th street, or I can give access > via real vnc. I do need to sort this out this week if possible. > > One big issue we have had is the relatively low powered wifi unit on > the > 3b+, particularly for California customers who have chicken wire > 3b+faraday > cages under recently applied stucco. Its been so bad even basic API > calls fall over, intermittently. We have resolved the system impacts, > but still want to improve the situation by allowing customers to add a > USB wifi adaptor with antenna to get the signal high or low (or > through the wall to the other side), away from the faraday cage. > > But I am having issues getting the correct kernel headers to load correctly. > > The usb device is recognized.. > > [??? 4.375575] usb 1-1.4: New USB device found, idVendor=0bda, > idProduct=f179, bcdDevice= 0.00 > > [??? 4.375603] usb 1-1.4: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > > [??? 4.375619] usb 1-1.4: Product: 802.11n > > [??? 4.375634] usb 1-1.4: Manufacturer: Realtek > > [??? 4.375651] usb 1-1.4: SerialNumber: 00E03530B0B1 > > We have a couple of git repos that supposedly work, but both fail at > the point of finding the kernel headers. > > This is our current OS version¡..Linux pi 5.10.63-v7+ #1496 SMP Wed > Dec > 1 15:58:11 GMT 2021 armv7l GNU/Linux > > Prep done: > > sudo apt-get install -y build-essential git > > sudo apt-get install -y raspberrypi-kernel-headers > > sudo reboot > > git clone > <> > > (note we have also tried > <>) > > I do have kernel files at /lib/modules/5.10.63-v7+ > > But when running make > > pi@pi:~/8821cu-20210916 $ make > > make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.10.63-v7+/build > M=/home/pi/8821cu-20210916? modules > > make[1]: *** /lib/modules/5.10.63-v7+/build: No such file or directory.? > Stop. > > make: *** [Makefile:2501: modules] Error 2 > > /build doesn¡¯t exist in the file structure. > > I¡¯ve got to the point where both my main programmer (India) and I are > starting to look for the answer in the fridge. We are not thinking > clearly anymore. > > Best, > > Paul > > ? ? ? ? |
Cool, thx, good to know!
toggle quoted message
Show quoted text
One thing with having to manually add stuff to a kernel is that in the long run you might end up supporting it yourself, because whoever came up with the initial driver no longer supports it, so you are stuck with an older kernel version, which is OK as long as you don't need any of the features a newer release supports, and all your software, including external tool chains, work on the older kernel. At the end of the day kernel and driver support is not exactly your business concept.... Thx! -Cornelius On 2023-03-03 12:30, Paul James wrote:
Thanks Cornelius. |