Closed discarn8 closed 7 years ago
I'm getting the same issue when trying to run motionpi image on a piZeroW
Exactly same issue for me. I try several "solutions" found on the net, but none works.
I have the same exact issue. Same hardware, same "failed" message and then a boot cycle. My wpa_supplicant looks like this:
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="MyActualSSID(spelled correctly and case sensitive)"
psk="MyActualPassword(correct and case sensitive)"
}
What am I missing here?
I have this is problem too ((
This is my /boot/wpa_supplicant.conf file, and it works for me on a Pi Zero W.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=AU
network={
ssid="SSID"
psk="Password_Text"
}
Based on raspbian I presume... or ?
On Sun, Jul 2, 2017 at 1:57 AM, laguten notifications@github.com wrote:
I have this is problem too ((
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/1010#issuecomment-312479186, or mute the thread https://github.com/notifications/unsubscribe-auth/AEt2wJQKqX9uY0j8_DfyE-QpW5L3qi0qks5sJ1uWgaJpZM4OGK-i .
@ch1x0r I'm not sure what you meant by based on Raspbian, but that's the wpa_supplicant.conf file that I have on my Zero W running latest version motioneyeos.
MotioneyeOS - is it based on Rasbian? How are you controlling the 0w? Male to female USB adapter or expansion board? or ? Are you trying to ssh in?
On Thu, Jul 6, 2017 at 5:23 PM, jasaw notifications@github.com wrote:
@ch1x0r https://github.com/ch1x0r I'm not sure what you meant by based on Raspbian, but that's the wpa_supplicant.conf file that I have on my Zero W running latest version motioneyeos.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/1010#issuecomment-313554209, or mute the thread https://github.com/notifications/unsubscribe-auth/AEt2wGwv-cpFj7qbXB7GcyrF29cMMkO8ks5sLXp2gaJpZM4OGK-i .
@ch1x0r motioneyeos is not based on Raspbian. It's built from buildroot. I only have a USB power cable into my Zero W, and I can SSH in without any problem.
Nice! Now, I'm inspired. I have a 0w. I'll try it.
Get back to you soon.
On Thu, Jul 6, 2017 at 5:36 PM, jasaw notifications@github.com wrote:
@ch1x0r https://github.com/ch1x0r motioneyeos is not based on Raspbian. It's built from buildroot. I only have a USB power cable into my Zero W, and I can SSH in without any problem.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/1010#issuecomment-313555901, or mute the thread https://github.com/notifications/unsubscribe-auth/AEt2wD3iPZpyYzOxeoqNrO6dF_feHSRvks5sLX2NgaJpZM4OGK-i .
@jasaw I'm going to try bootcode.bin fixup.dat and start.elf to see if that works - this is my current path. LOL Have not forgotten you.
hi all, when I followed the directions on the site linked, my pi zero w booted fine
Manually setting up Pi WiFi using wpa_supplicant.conf
in the tutorial, it's recommended using notepad++ to set the text file's EOL standard to Unix type - not sure if that's what's causing the failure for others...
@ccrisan Just an idea to avoid EoL problems. At boot time, check the line ending of /boot/wpa_supplicant.conf file. Automatically convert it to unix line ending if needed. Simply putting the file through dos2unix may suffice.
Yeap, we could do that.
UPDATE:
Whether 'twas the popping sound made by myself or using a different WiFi router or an update in the most current version - I am not sure - but, we finally have success with motioneyeos and the pi zero w.
Thank you for those that replied and assisted. For those that may need this in the future, and are doing this on a windows machine - here are the steps I took to get mine working (nothing that hasn't been explained before).
Things you will need first:
Download the lates motioneyeos image
Extract the image to your hard drive (using Winzip, 7Zip, etc.)
Write the image to your uSD card using Win32DiskImager
DO NOT EJECT THE SD CARD yet.
Open Windows Explorer and browse to your drive containing the uSD card, You should see files such as:
bootcode.bin loader.bin start.elf kernel.img cmdline.txt
Right-click in the right window pane and select "New Text Document"
Now, right click on this file and rename it wpa_supplicant.conf
Once again, right click on this file and select 'Edit with Notepad++'
Make sure you set the EOL conversion to UNIX LineFeeds (Edit-->EOL Conversion-->Unix LF)
Paste the following contents into your blank file (obviously changing the ssid and psk to match yours):
country=us update_config=1 ctrl_interface=/var/run/wpa_supplicant
network={ scan_ssid=1 ssid="MyWiFiSSID" psk="S3cr3tp@$$w0rc|" }
If you do not have a display attached to your zero, you can use nmap to scan your home network for any new devices / ip's. Look for one labeled "(Raspberry Pi Foundation)"
I hope this helps
[Some information borrowed from http://www.raspberrypi-spy.co.uk/2017/04/manually-setting-up-pi-wifi-using-wpa_supplicant-conf/]
Thanks for the writeup, transferred to Wiki :)
@silversword411 You might want to clarify that those steps you've added only apply for Windows? As for Linux, simply mount and copy the wpa_supplicant.conf to /boot partition, then unmount.
https://github.com/ccrisan/thingos/commit/8556a04e97fd164b30c7aa0acc77e5ca429251de should fix wpa_supplicant.conf files created in Windows.
"Starting wpa_supplicant: failed (brcmfmac).
Configuring wireless network: no device. (Why is it looking for a wired device on a pi zero w ?)
I also have this exact problem on both pi zero w and pi3 mod 1.2. Have read the helpful hints, have watched dozens of videos, have reformatted and tried hundreds of times, have used notepad++ as well as notepad to add the wpa_supplicant.con file. I used the same board, cable, sd card, router to load raspian and it does connect wirelessly there, just not motioneyes. The pi3 will run motioneye on ethernet, but not wireless. The pi zero w just reboots itself over and over. Any ideas ? Thanks.
@tomeejr
Configuring wireless network: no device
. It's saying that the wireless device cannot be found (i.e. wlan0
is not present, for some reasons).no device
message also indicates that it didn't even reached the part where it would read your wpa_supplicant.conf
file, so don't bother with that one.motioneyesos-raspberry pi 20180224, using etcher, notepad++, windows 7home premium 64bit. They made the name NOOB because that is me. Can I transfer a card already booted from a pi3 to a pizw, and vice versa ? What port does the router need for port forwarding ?
@tomeejr please provide the full and correct URL and/or filename of the OS image.
What is the relevance of the port forwarding question in this context?
I’m having the same issue using the same version on my pi zero w except I’m using a Mac to create my wpa_supplicant.conf file. I am using the “motioneyeos-raspberrypi-20180224.img.gz” image. Wireless device says no link and wired says no device as I don’t have an Ethernet adapter. Any suggestions or something you’d like me to try?
Using an ethernet adapter it works and I can see it on my network. Anything else I can provide to help?
As others have said - any help would be appreciated. I'm new to Raspberry Pi (and much of Linux), but really enjoying it so far.
I can't get my Pi Zero W on my network. I have had no problems with a Pi B+ and Pi 3 B+ (but I have used their ethernet ports)
I'm using Mac (BBEdit to generate file - without the .txt on it)
country=US
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="NetwordID"
psk="Password1234"
}
as well Pi Zero W, image “motioneyeos-raspberrypi-20180224.img.gz” and getting same error as noted - cycling reboots following "Starting wpa_supplicant: failed (brcmfmac)"
Are settings different for router security of WPA2/WPA Personal Mixed?
What ip address can you wirelessly SSH into?
I was using an ethernet adapter and got it to work but I also solved my wireless issue. Your wpa_supplicant.conf file should read as below if you are using WPA2.
country=us update_config=1 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={ ssid="NETWORKSSID" psk="PASSWORD" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN }
I greatly appreciate the input, but I was not successful with that version. I did complete overwrite and reimaged SD
country=us
update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="network"
psk="password"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
Just to make sure. You are running a WPA2 network with AES correct?
WPA2 yes. Setting is WPA2/WPS Mixed personal (personal versus enterprise, but I can't find distinction between them). Linksys EA6500 router
Re-image then try this and see what it says
country=us update_config=1 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={ ssid="NETWORKSSID" psk="PASSWORD" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP }
Actually you may want to try this. I've never tried a mixed network so I'm trying to figure out what would tell the pi zero the correct setup.
country=us update_config=1 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={ ssid="NETWORKSSID" psk="PASSWORD" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP group=TKIP }
failed and relatively quickly
Both failed relatively quickly?
Did they both still give the same error?
actually I didn't see the first suggestion so tried pairwise=CCMP group=TKIP
I'll try the "pairwise=CCMP TKIP next
using - motioneyeos-raspberrypi-20180224.img
Can you confirm what motioneye os you are using?
motioneyeos-raspberrypi-20180224.img
If this doesn't work I'm stumped. I'm pretty sure the mixed network is throwing it off. Some other notes: make sure 2.4ghz is enabled, make sure you are re-imaging each time.
country=us update_config=1 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={ ssid="NETWORKSSID" psk="PASSWORD" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP }
I've been erasing with SD Card Formatter and re-imaging with Etcher each time.
will try those next -
Ah ha! @richardgetz totally pointed me at the answer.
Yes my 2.4ghz was enabled, as is my 5ghz... what I completely failed to appreciate is that the Pi Zero W is not 802.11ac compatible (i.e. not 5ghz compatible). In all my attempts, I kept pointing the Pi to connect to the 5G SSID, not my 2.4ghz SSID.
Thank you all!
my correct config file is exactly as noted -
country=US update_config=1 ctrl_interface=/var/run/wpa_supplicant
network={ ssid="NetwordID" psk="Password1234" }
Anyone who's having wifi connection issues might want read the wireless troubleshooting guide first. It may save you a lot of time and frustration. The lack of 5GHz wifi support on Pi Zero W is covered in the wiki too.
I had a similar problem. The solution appears to have been modifying my initial wpa_supplicatnt.conf to include DIR and GROUP as follows: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev Also the addition of: country=GB
I've done all this and tried another router, still no dice. Using motioneyeos 20190911. raspberry pi zero w works perfect on Raspian, I just want to use Motioneyeos. I cannot get this thing to connect to a router. crazy
It connects if I leave the security off
I got it finally!! I connect to a RPI3 via wired network, configure it to use wireless, test it then retrieve the wpa_supplicant file it created from the sd card, copy that file to the RPI zero w and it works!! no idea why. The formatting must be different. regards
I have already 3 Pi working (2 pi zero W) with motioneyeos and would like to add a forth. Strangely I ran into this exact same problem: I tried: 2 different pi zero (W 1.3 and WH) 2 different SD cards 3 different chargers image 20190911 and 20200606 tried copying the wpa_supplicant.conf manually (via mac) or using writeimage + network settings on linux. also checked followed the trouble shooting page Nothing has worked so far.
The wierd thing is that it worked for a few days on the exact same zero WH before until it stopped. Tried to freshly set it up in the same way failed. Then tried another brand new pi zero W and all sorts of variations of images, SD cards etc.. Even changed the wpa_supplicant details several times including EOL. nothing brings me beyond the point:
starting wpa_supplicant.conf = no device ==> bootloop
I can connect via HDMI. So I tried to disable wifi in config.txt to perhaps set it up manually after the first boot but then the sequence breaks on the first boot at network settings Is there any help on this?
Can you run a straight Raspberry PI OS on it and have the WiFi work? I had one where the wifi chip failed, and presents as yours does.
On Sat, Jun 27, 2020 at 5:55 AM DrCR77 notifications@github.com wrote:
I have already 3 Pi working (2 pi zero W) with motioneyeos and would like to add a forth. Strangely I ran into this exact same problem: I tried: 2 different pi zero (W 1.3 and WH) 2 different SD cards 3 different chargers image 20190911 and 20200606 tried copying the wpa_supplicant.conf manually (via mac) or using writeimage + network settings on linux. also checked followed the trouble shooting page Nothing has worked so far.
The wierd thing is that it worked for a few days on the exact same zero WH before until it stopped. Tried to freshly set it up in the same way failed. Then tried another brand new pi zero W and all sorts of variations of images, SD cards etc.. Even changed the wpa_supplicant details several times including EOL. nothing brings me beyond the point:
starting wpa_supplicant.conf = no device ==> bootloop
I can connect via HDMI. So I tried to disable wifi in config.txt to perhaps set it up manually after the first boot but then the sequence breaks on the first boot at network settings Is there any help on this?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/1010#issuecomment-650534173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHIRRTUOEVM6VRIUJFTRYW6ZTANCNFSM4DQYV6RA .
-- Thanks
Kevin Shumaker
Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel
N38° 19' 56.52" W85° 45' 8.56"
Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?
Thanks for the response! It seems just to be a hardware issue. The wifi was corrupted on the Zero WH and it turned out that the Zero W was actually just a Zero without any "W"...
It happens.
On Sat, Jun 27, 2020 at 10:04 AM DrCR77 notifications@github.com wrote:
Thanks for the response! It seems just to be a hardware issue. The wifi was corrupted on the Zero WH and it turned out that the Zero W was actually just a Zero without any "W"...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/1010#issuecomment-650565174, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHNI4DETNM2Q24NZZRDRYX35HANCNFSM4DQYV6RA .
-- Thanks
Kevin Shumaker
Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel
N38° 19' 56.52" W85° 45' 8.56"
Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?
Gents:
I bought the zero w and downloaded the latest motioneyeos-raspberrypi-20170326.img.gz image. I extracted it, wrote the image to an SD card via Win32DiskImager and then using Notepad++ added the wpa_supplicant.conf file to the root (using unix LF EOL).
My wpa_supplicant.conf looks like this:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US
network={ ssid="myssid" psk="mypassword" key_mgmt=WPA-PSK }
Boot the zero w from this sd card and i see: "blah" "blah" "Starting wpa_supplicant: failed (brcmfmac)" "blah" "blah" "Rebooting"
then the zero reboots.
I tried copying the bootcode.bin/fixup.dat/start.elf from the raspbian jessie lite image over to the sd card and trying again - same results.
I keep reading about a firmware update for the zero but have yet to actually find the source for it - is there such an animal and is that what is holding me back?