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
PI Zero W : unable to connect to WIFI #876
Comments
This worked for me and I had the same issue. Good luck |
Also looks like there's a pre release https://github.com/ccrisan/motioneyeos/releases/tag/20170326 |
Have you checked this troubleshooting article: https://github.com/ccrisan/motioneyeos/wiki/Troubleshooting#wireless-connection-problems? |
Hi, Yes i checked everything. Strange. |
@bre75 then it might be related to power issues. |
Power issues ? |
I think I found out what the problem to this is, as it happened to me. It appears that you need to setup wpa_supplicant.conf on the first boot. If for some reason your first boot doesn't include the wpa_supplicant.conf, MotionEyeOS defaults to Ethernet, which it cannot find. This makes every subsequent boot fail, as it never looks again for the WiFi config, and just reboots because Ethernet is unavailable. I think the best solution would be to search for a WiFi config file everytime Ethernet is unavailable on boot. This was tested on my Raspberry Pi Zero W. |
Yes note steps 3 and 4 here #804 (comment) |
It's driving me crazy .. |
@bre75, have you tried replacing the power supply with a more powerful one with shorter or thicker cables? |
Ah yes i forgot to mention it. |
Make sure you don't use Notepad and use a text editor that lets you use Unix EOL (LF). Some people were saying that they needed to make wpa_supplicant.conf on Raspbian for it to work, and I think this might be the reason, as Notepad forces Windows EOL (CRLF). |
I used Notepad++ and made sure it was set to "Linux" style line breaks (it tells you in the status bar bottom right). You have make sure the file is correct. Otherwise you may need to re-write the SD card and start from scratch. Working fine on a Pi Zero W. |
Has there been any progress on determining the cause of the wifi failure indicated in the original post (#876)? I had the exact same failure using the most recent release motioneyeos-raspberrypi-20170329. Including the same output as shown in the screenshot in the original post with the same error "Starting wpa_supplicant : failed (brcmfmac)". This was from a fresh write to the SD card. I am curious to the significance of the "(brcmfmac)" portion of the error and what it is trying to indicate. I do understand that it is the Broadcom driver for the wifi. But what is the significance of indicating that as part of the fail error. Thanks |
I experienced all of the issues associated to "Starting wpa_supplicant : failed (brcmfmac)"... Solved this way for me... |
I have tried everything above, still get the "starting wpa_supplicant: failed (brcmfmac)" |
@plankton99 does your board's WiFi connection work well with Raspbian? |
Yes both pi3 and zero w connect fine w raspbian |
@plankton99 do you use exactly the same wpa_supplicant.conf file in all the cases? |
@ccrisan i used the raspbian pi jesse desktop and i can connect to the wifi via the desktop wifi set up. but i cannot do that with the motionEYE os |
@plankton99 please try using the exact wpa_supplicant.conf file and see if it works. If it doesn't, try identifying the differences between Rasbpian's generated wpa_supplicant.conf and yours. |
@ccrisan on the RASPBIAN STRETCH WITH DESKTOP which i can connect to the internet with on the PI3 board, in the root directory on the SD card there is no file "wpa_supplicant.conf" below are the files in the boot director of the PI3 with ASPBIAN STRETCH WITH DESKTOP that can connect to the wifi. |
@ccrisan maybe you could send me your wpa_supplicant.conf (with key inf xxx out) and I can try that one.? |
@plankton99 This try wpa_supplicant.conf file. You'll need to:
|
Thank you @RawBOT - I had a slight mis-type in my .conf file on the first boot, and although I fixed it before the second boot nothing I did would make it work. Spent ages trying different editors, setting UNIX mode etc and nothing worked. So frustrating. Re-flashed the uSD card, saved the same .conf file, and it worked first time. Why this OS doesn't re-read the .conf each boot is bizarre! |
@adrianrb101 because motionEyeOS will only read the wpa_supplicant.conf file from the boot partition once, at first boot. Then it will use the one on the data partition. |
Sorry if this is thread necromancy, I'm new here, and I'll cheerfully withdraw/move/etc. I have the same problem. "Starting wpa_supplicant: failed (brcmfmac)"
This seems like an amazing program, I'd really like to get it working. edit: included hardware specifics, spelling error |
@CapnWuwei What's your SSID? Does it contain unicode? Are you able to attach your wpa_supplicant.conf file here, but change the sensitive information a little bit? I presume you've read the wifi preconfiguration page as well. Make sure your wpa_supplicant.conf is placed in the correct directory. If you are using hexadecimal wifi password, do not put quotes around the psk field, e.g. psk=aabbccddeeff |
edited at 8:17pm from previous response due to reasons below @jasaw sure! Thank you for your help. When pasting and re-imaging to give you the carbon copy of my .conf file, i noticed there was one lowercase letter in the password where it should have been capitalized. In the several boots and reimages, I had never noticed. |
All; I have pricked about with this for several hrs following all of the above, loaded this, loaded that and conclude it is £40 down the drain, Total Crap, obviously insufficient instructions, rubbish product. Fortunately I will use the PI Zero for something else ... (may be one more try when I am in a better mood but I wouldn't hold your breath) |
@wiggaworm If you describe your problem, someone might be able to help you. |
jasaw; thankyou for your prompt reply. My problem is exactly as bre75 commented on Apr 6 2017, top of this thread, I have done/checked everything here, Observed the first boot rule (doesn't help matters) blahblahblah, unix format and everything spelt correctly. Done this dozens of times. No Joy. I have lots of PI's so its not as if I am new to this game, but on this one I give up. |
OK peeps, I had another several goes; it seems \etc version of wpa_supplicant.conf (after first boot) does not contain same details as wpa_supplicant.conf file as left in "boot directory", its missing ssid and psk details and presumably it should have these. I am probably on the right tracks now and could edit this back in on another PI platform but enough is enough, I really cant be bothered anymore ... all in all a poor show, with dreadful instructions its time to move on. |
@ccrisan I'm wondering if we could improve the user experience by copying /boot/wpa_supplicant.conf file to /data/etc/wpa_supplicant.conf on each boot, provided source file exists. This would remove the need to reflash the SD card each time. I find myself running into this reflashing problem all the time during development/testing because I forgot to copy wpa_supplicant.conf before first boot. @wiggaworm I'm interested in seeing what the differences are between your original /boot/wpa_supplicant.conf and /data/etc/wpa_supplicant.conf. Can you please attach both files here so we can debug the problem? Please change any sensitive information like SSID and psk before attaching the files. |
@jasaw I've been meaning to do something about this initial config on boot partition issue. The problem is that those config files are often modified afterwards by motionEye or other utilities. Copying the boot variant over and over again at each boot would generate even more frustration. A complex but viable solution would be to keep a hash of the boot variant and therefore be able to tell when it has changed. If the boot variant has changed, we use it to overwrite the data variant. And this mechanism could/should be applied for all config files that support "boot provisioning". What do you think? |
@ccrisan That's a good idea. Just have to be careful with a few scenarios:
In addition to your hash suggestion, what do you think about bringing up a wifi access point if wpa_supplicant.conf is not present in /data/etc and boot? |
@jasaw the AP stuff is still experimental and unreliable. I don't think automatically enabling it is a good idea, at least for now. Let's see how things go and we might think in the future of a whitelist (combination of board/wifi adapter) where this can be done, if wpa_supplicant.conf is not provided. |
Hi,
I have Motion Eye OS installed and working as a charm on a Raspberry PI Zero connected to my WIFI.
I bought a PI Zero W and installed the latest build of Motion Eye OS on it. Still to work with my WIFI.
It's not working for the following reason : Starting wpa_supplicant : failed (brcmfmac)" (see attached file)
The file is well there with the right information to connect to my WIFI;
To be sure the PI Zero W is working well i used another sd card with Raspbian and the WIFI is connecting without any problem.
Any idea what could be the issue ?
Thanks a lot for your help,
Best regards,
The text was updated successfully, but these errors were encountered: