I just imaged my RPi with Picroft and it boots and runs through a bunch of stuff.

Now I’m trying to install drivers for my TPLink wifi adapter (T4U).

I downloaded the drivers from their website, but when I run a make on them, I get the error:

make[1]: *** /lib/modules/4.4.21+/build: No such file or directory. Stop.

So, why am I asking about a 3rd party driver on this forum?

Because I also tried an open source driver for the adapter and got the same error. So I tried getting a little deeper by manually creating an empty “build” folder, and the installs proceed one step farther, getting this error:

I have some linux experience from the admin side, but I’ve never compiled anything on it. It feels like maybe there’s something in the Picroft build that is missing, which these supposedly simple driver builds aren’t able to find. But I don’t really know…

I did some googling and came across some proposed fixes, but none of them work, always indicating something isn’t set up correctly with the file structure maybe?

This is in addition to the problem I have where Mycroft doesn’t speak to me, I never get a pairing code, and the audio log indicates some strange errors.

The WiFi adapter doesn’t seem to be working - Picroft starts the WiFi setup process then complains “failed to fetch remote configuration”, “failed to establish a new connection (name or service now known)”, throws some config.py line numbers out, then just keeps retrying the connection.

I don’t know if it should be prompting me for SSID or other config info, but it never does. So I thought maybe I needed to manually install the driver.

I’ll try the service restart tonight after work with it hard wired - luckily I figured out how to share my PC’s WiFi connection via ethernet so at least I can get PiCroft online for the initial setup.

I fooled around a fair amount with this and finally got tired of it, thinking I’d possibly messed it up with my attempted driver install.

So I started fresh - re-imaged from scratch.

Plugged into Ethernet - no wifi. Booted up, let it do its thing. Ran manual update and upgrade commands as instructed, rebooted, let it do its thing - again it said “Register using the code below” but no code is shown.

Tried service stop/start, but not sure what to do next… sitting at command prompt - have no code for registration.

I rebooted and this time it got to “starting up services” and said “Internet connection not detected, starting WiFi setup process”, which I’ve seen before, even though it should have internet through my main PC’s ICS. Then it started mycroft.wifi.start and told me to connect to the mycroft network (which of course doesn’t exist with no wifi adapter plugged in).

It just hangs there forever.

So, I tried plugging in the wifi adapter and rebooting - mycroft eventually talks and says

Ahh, well I guess I jumped in feet first to Picroft - I have an rPi B+ (rev 1.2). It does not have WiFi built-in.

But the last of the dongles I tried has always worked with Raspbian, no driver install was necessary when I’ve used the Pi for other things. I suspect that’s why it was giving me more related messages on boot with it plugged in, as opposed to the other two units.