Skip to content
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

Raspberry Pi Zero W cannot find Local Camera #807

Closed
jezmck opened this issue Mar 2, 2017 · 44 comments
Closed

Raspberry Pi Zero W cannot find Local Camera #807

jezmck opened this issue Mar 2, 2017 · 44 comments

Comments

@jezmck
Copy link

jezmck commented Mar 2, 2017

Hardware confirmed working with vanilla latest Raspbian OS.

Am using a USB WiFi dongle for the time being.

Add camera > local camera > (no cameras)

I'm not sure what else I can do - any suggestions?


motionEye Version 20170212
Motion Version 4.0.1+git37b3595

@30dbs
Copy link

30dbs commented Mar 3, 2017

Can confirm the same issue, if I switch to Raspbian SD card it works fine, so the camera (v2) is definitely plugged in correctly.

I followed Jawsper's suggestion in #804 to get the WiFi working properly but cannot select a camera once I log into the web interface.

@kirbyan
Copy link

kirbyan commented Mar 3, 2017

I can confirm the same behaviour - Official Raspberry Pi Camera not working on Raspberry Pi Zero-W with MotionEyeOs but works fine with latest Raspbian SD Card.

@jasharrar
Copy link

Hi also having similar issues:
New Pi Zero W
NOiR camera v1.3

cant get the wifi working so using a dongle which connects first time
but main issue is says no camera connected. everything worked with jessie, is there a way to copy the relevant files across?

many thanks for any help

@jasharrar
Copy link

also @30dbs how did you open bootcode.bin (win 10)

@30dbs
Copy link

30dbs commented Mar 3, 2017

@jasharrar I copied it on my Linux desktop, but as far as I am aware it should work fine on windows 10 as the files were in the boot partition which is fat32.

If you couldn't see the file maybe maybe you have systems files hidden?

After copying and rebooting the wifi worked fine.

@jasharrar
Copy link

@30dbs i found the file, i just cant open it lol. thanks ill have a go on a friends laptop.

@30dbs
Copy link

30dbs commented Mar 3, 2017

@jasharrar. you don't need to open it, just copy the three files

bootcode.bin
fixup.dat
start.elf

From the boot partition of jessie to the boot partition of motioneyeos

@jasharrar
Copy link

jasharrar commented Mar 3, 2017

thanks @30dbs i have tried that but im still getting stuck in the boot loop due to no device on wpa_supplicant. i have copied the files from jessie lite and my own wpa conf file.

if i plug in the wifi adaptor it works first time. bump.

@jezmck
Copy link
Author

jezmck commented Mar 3, 2017

Copying those files worked for me, thanks @30dbs, though there's still no camera :(

@coatezy
Copy link

coatezy commented Mar 4, 2017

No camera here either but working with latest Raspbian. rev 1.3 camera.

@irishbiker
Copy link

I copied the three files from a full fat version of Jessie but upon booting motioneyeos it is looking for a wired network - fails then reboots. Can anyone give me some pointers

@30dbs
Copy link

30dbs commented Mar 5, 2017

@irishbiker

You also need to create a text file in the boot partition called...

wpa_supplicant.conf

With the contents below...

update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="ssidname"
psk="password"
}

@irishbiker
Copy link

@30dbs

Thanks - I added the file using both notepad++ and notepad but still reports only checking for the wired network :/

@jasharrar
Copy link

@irishbiker I got mine working finally, I did a fresh install, with the conf file as above and the 3 files from Jessie(but I found that using the full version worked not the lite one for some reason).

Has anyone got any closer getting the on board camera working?

@jsmacdou
Copy link

jsmacdou commented Mar 7, 2017

I have done several fresh installs, with proper wpa supplicant config and the three files from Jessie (both lite and regular) but I am met with a "no device" message for wifi on boot. Any ideas?

@ccrisan
Copy link
Collaborator

ccrisan commented Mar 7, 2017

Guys, there's no support for Raspberry PI Zero W in motionEyeOS yet. The next version will add support for Zero W.

@Twanfox
Copy link

Twanfox commented Mar 7, 2017

Heh. While there's no support right now, I did manage to get it working. Changes made in addition to above:

  • edit config.txt in /boot to include the line start_x=1
  • copy fixup_x.dat/start_x.elf to /boot from Pixel-based Raspbian image, similar to fixup.dat/start.elf

I wound up copying a few other files over during testing, but I'm not sure their purpose, so I can't say they're related. Once I caught on that the camera is now activated by start_x in the config.txt file, that seemed to be the focus. For me, this resolves the on board camera issue.

Sorry, ccrisan, if it's jumping the gun. I know I like a good challenge, even if I'm not an expert by any means.

I should also note, I do prefer the supported method when it gets put into the MotionEyeOS image.

@wdawson001
Copy link

Hi all, (especially ccrisan - awesome work).

I've built the latest img file from source (as per your instructions) and it is working very well for my pi zero w - tested on 2 Pi Zero W's with v1 camera and version 2.1 noIR camera.

@ccrisan it ok to share the img file?

@ccrisan
Copy link
Collaborator

ccrisan commented Mar 7, 2017

Sure thing, just share the link with us. I'll receive my board soon and I'll be able to run the tests myself.

@wdawson001
Copy link

wdawson001 commented Mar 7, 2017

Cool,

Raspberry Pi Zero W - MotionEyeOS

  1. Download the latest img for MotionEyeOS - recompiled from the updated firmware to work with the Pi Zero W
  2. Install in the usual ways
  3. Once flashed, open the boot partition and add a file called wpa_supplicant.conf
  4. Open and edit wpa_supplicant.conf with the instructions from here
  5. Once booted, it should connect to the wireless automatically and you can just find the IP and log in

Notes:

  • All of this has been compiled from the repository, no changes on my part
  • This is not officially supported yet, so don't annoy @ccrisan if this doesn't work
  • I've tested it with 2 Pi Zero W's with the official camera module - I haven't tested it with any usb cameras
  • No drivers need to be copied

EDIT:

  • SSH is not working with this release on the Pi Zero W

@30dbs
Copy link

30dbs commented Mar 7, 2017

great stuff @wdawson001 it works perfectly.

@k-e-y-s-a
Copy link

yep, bonzer, thanks

@Gantelope
Copy link

Thanks, worked first time!

@Gantelope
Copy link

Hi, trying to log in via SSH fails with this build. Can anyone else connect or is it just me?

@wdawson001
Copy link

Have you enabled it in the webpage?

SSH is not enabled by default in raspbian any more. To enable it. Put a blank file called SSH (no extention) on the boot partition.

@Gantelope
Copy link

Is this applicable to MotionEyesOS? I have enabled SSH in the administrator account settings. Do I need to do more than that?

@jezmck
Copy link
Author

jezmck commented Mar 10, 2017

Thanks @wdawson001! Works perfectly.

@wdawson001
Copy link

@Gantelope - I've just tried SSH on this build and I can't get it to work. This is not a official build, so it may be something that will get addressed in the next release.

@Gantelope
Copy link

Thanks for checking. Good to know it's not something I have done.
As a newbie I hadn't realised Google Drive could be configured from the GUI so I was trying to use SSH to do this. Google Drive is up and running now.

I have to say I am so impressed with all of this. It works so well. I have had it running for a few days now without any problems. Even spotted my window cleaner working hard this morning!

Thanks for all the effort put into MotionEyesOS.

@derrickmehaffy
Copy link

derrickmehaffy commented Mar 13, 2017

I was able to get the system up and running and during the process I created the empty file SSH however the service fails to start because host keys were not generated. I tried using ssh-keygen but it wasn't outputting the files in /data/etc/ anyone else having an issue like this?

@wagsforever
Copy link

Hi guys. Sorry if i'm being a noob but I have the Zero W and trying to get this running and obviously it says no camera as others have found. The fix above is for the motioneyeos. Is there anyone to get it working on motioneye on raspbian??

@ian-marshall-uk
Copy link

Thanks all,

Using the info and image provided by @wdawson001 I got mine up and running, connected to my office wireless network and camera. However when I amend the details in wpa_supplicant.confto the settings for my home network it will not connect. I have got MotionEye running on another Pi Zero (not W) perfectly and have copied the wpa_supplicant.conf from this one to the ZeroW and still no good.

If I plug a monitor in it just sits at the connecting to WIFI bit then says no wireless connection.

Not sure what I might be missing, any thoughts?

Z

@ghost
Copy link

ghost commented Mar 27, 2017

The new official March build works correctly. If it still doesn't work for you, read this:

motioneye-project/motioneye#497 (comment)

@pshotton
Copy link

I can't find the official march build. Latest on the install page of the wiki is 20170212.

I tried the build supplied with wdawson001 and wifi works fine, but I still can't get the official 5Mb Zero camera to work. If I edit config.txt and add the 'start_x=1' line it refuses to boot :(

Guess I'll have to wait - I appreciate the massive amount of work ccrisan puts in on this and I'll be patient :)

@pshotton
Copy link

Realised I needed the fixup_x.dat and start_x.elf files as well (should read the post better). Now it boots but wifi has stopped working :(

@ccrisan
Copy link
Collaborator

ccrisan commented Apr 12, 2017

@pshotton
Copy link

Superb. That's fixed the sshd problem. However local camera still not working. Hope I haven't broken it pulling it in and out several times :(

Anyway - superb job to get a pre-release out. Beer tokens on their way.

@ccrisan
Copy link
Collaborator

ccrisan commented Apr 13, 2017

@pshotton thanks. Try using Raspbian and see if you can make the camera work with it.

@diarem
Copy link

diarem commented Apr 20, 2017

Hi, my application is slightly different to the thread but I am hoping someone will know straight away what I am doing wrong! I am using a Raspberry Pi B with a USB video grabber connected to a bird box camera. The software loaded first time, I can access the Pi easily and configure everything - except that it can't find a local camera! I am not trying to use wireless, I am happy with an Ethernet cable but I have tried the various suggestions about adding files without success.
Can anyone point me in the right direction please?

@cl0udb0y
Copy link

Hi is there any progress I have missed in other posts? same issues with WiFi and Local Camera.

I have a couple of piZero W. OTB observation - latest MotionEye OS halts on Ethernet - added the wpa_supplicant.conf doesn't work for me - if I boot via USB eth then fine - enabling wifi in MotionEye UI and rebooting trys to start wpa but can't find device.

I have an older piNoir and new and neither can be found with motioneyeOS

I have tried latest raspbian image and wifi works fine as does the camera
Installing motioneye works inc wifi - the camera only works after adding the module and a hard reboot.

I'd rather use the optiomised MotioneyeOS than raspian + build - happy to test / post results if it helps.

John

@prabhuvd
Copy link

I'm using latest motion eye image on pi3 , still have issues with wifi access , I have setup the wpa_supplicant.conf file in /data/etc/wpa_supplicant.conf but there is no /var/run/wpa_supplicant file.
Hence during bootup I get error: starting wpa_supplicant:failed (brcmfmac )

Has anyone faced similar issues?

@bortek
Copy link
Collaborator

bortek commented Jun 1, 2017

Just tested the latest image on pi zero W and NOIR camera, a diffrent NOIR camera, pi1 Camera, PI2 camera all works fine!

This is not Motioneyeos issue. Check your hardware and test your setup on regular raspbian!

@bortek bortek closed this as completed Jun 1, 2017
@prabhuvd
Copy link

prabhuvd commented Jun 1, 2017

Found the problem !! Motioneye did not like

key_mgmt="WPA-PSK"

in wpa_supplicant.conf .
The problem was fixed after i deleted the above line

@JoeRelic
Copy link

JoeRelic commented Jan 12, 2018

Using MotioneyeOS (20180101) but won't recognize the Pi NoIR camera on a Pi Zero W. Wireless working well. Oops...started working????????????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests