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 4 8gb not working #4614

Closed
FaresAbuIram opened this issue Oct 3, 2021 · 28 comments
Closed

Raspberry pi 4 8gb not working #4614

FaresAbuIram opened this issue Oct 3, 2021 · 28 comments

Comments

@FaresAbuIram
Copy link

The raspberry pi was working fine, then I install ArduCAM as this link
then I reboot the raspberry pi

after that, this message appears on a black screen and doesn't work anymore
xhci_hcd 0000:01:00.0: can't setup: -110 xhci_hcd 0000:01:00.0: init 0000:01:00.0 fail, -110

So, I need help !! :(

@6by9
Copy link
Contributor

6by9 commented Oct 3, 2021

Those instructions download a custom 5.4.79 kernel version, datestamped 10 December 2020. That is pretty old, and we're not supporting the 5.4 branch any longer.

You really need Arducam to do a release on a supported 5.10 kernel, or you may be able to build their drivers from source - https://github.com/ArduCAM/Arducam_OBISP_MIPI_Camera_Module

@FaresAbuIram
Copy link
Author

@6by9
Do you know how to solve ( black screen with xhci_hcd 0000:01:00.0: can't setup: -110 xhci_hcd 0000:01:00.0: init 0000:01:00.0 fail, -110) ?? maybe delete the last version or something else ?

@6by9
Copy link
Contributor

6by9 commented Oct 3, 2021

If it has actually booted and has a network connection, then sudo apt install --reinstall raspberrypi-kernel.
If not, then reimage the SD card (you could try copying the relevant files from https://github.com/raspberrypi/firmware/tree/stable, but be prepared to totally reimage if you mess it up).

@FaresAbuIram
Copy link
Author

@6by9 It's working thanks
about an Arducam (5.10 ), that needs to talk with the Arducam's team, right?

@6by9
Copy link
Contributor

6by9 commented Oct 3, 2021

about an Arducam (5.10 ), that needs to talk with the Arducam's team, right?

You may be able to build it for yourself from https://github.com/ArduCAM/Arducam_OBISP_MIPI_Camera_Module

git clone https://github.com/ArduCAM/Arducam_OBISP_MIPI_Camera_Module
cd Arducam_OBISP_MIPI_Camera_Module
./build_driver.sh

When asked which branch you want to build from, you want rpi-5.10.y.

@FaresAbuIram
Copy link
Author

FaresAbuIram commented Oct 3, 2021

I am using the last version of the kernel.
image
image

@FaresAbuIram
Copy link
Author

FaresAbuIram commented Oct 3, 2021

I tried to add the last release here but nothing happened
image

but I don't know if these files should change their content or not !!
image

this what happened exactly
image

@6by9
Copy link
Contributor

6by9 commented Oct 4, 2021

The link you'd originally provided was for the Arducam OBISP boards, not PiVariety.
What sensor are you actually trying to connect?

@FaresAbuIram
Copy link
Author

FaresAbuIram commented Oct 4, 2021

I have a raspberry pi camera 1.3
I moved to Arducam_OBISP_MIPI_Camera_Module and the same result

@FaresAbuIram
Copy link
Author

I want to make live streaming between the raspberry pi and the labtop I don't know if there is another solution

@6by9
Copy link
Contributor

6by9 commented Oct 4, 2021

If you have a Pi camera module, why are you messing with Arducam drivers? The OV5647 (V1), IMX219 (V2), and IMX477 (HQ) camera modules are all supported as standard by the Pi kernel and firmware.

@FaresAbuIram
Copy link
Author

FaresAbuIram commented Oct 4, 2021

I tried with this one raspistill but it doesn't work on my 64bit machine, So when I search for another thing I found Arducam.
bash: /opt/vc/bin/raspistill: No such file or directory

If one of these work with 64bit can you tell me how to configure it :)

@6by9
Copy link
Contributor

6by9 commented Oct 4, 2021

MMAL is not supported on 64 bit OSes - raspberrypi/userland#688

For 64 bit, use libcamera.
Or you can use V4L2 with the legacy camera stack (bcm2835-v4l2, which should show up as /dev/video0).

@6by9 6by9 closed this as completed Oct 4, 2021
@FaresAbuIram
Copy link
Author

FaresAbuIram commented Oct 4, 2021

@6by9 I can't find /dev/video0 or /dev/video1 , I connected the camera with raspberry but I can't find it, what is the problem?
image

image

@6by9
Copy link
Contributor

6by9 commented Oct 5, 2021

For libcamera you need to enable the relevant overlay
dtoverlay=ov5647 for v1 camera.
https://www.raspberrypi.org/documentation/accessories/camera.html#libcamera-and-libcamera-apps-installation

For the legacy camera stack, have you enabled the camera via raspi-config?
https://www.raspberrypi.org/documentation/accessories/camera.html#enabling-the-camera

@JamesH65
Copy link
Contributor

JamesH65 commented Oct 6, 2021

So, you are using the Raspberry Pi OS, set up to run in 64bit mode, and you have followed the libcamera installation instructions linked above? And it's still is not working? What are the symptoms?

@FaresAbuIram
Copy link
Author

This is the last thing that I reached

image

@6by9
Copy link
Contributor

6by9 commented Oct 6, 2021

When you create an issue on this repo there is a template asking for a load of standard information. Please provide it.

v4l2-ctl --list-devices will list all V4L2 devices and their providers. Please provide that output.

Add dtdebug=1 to config.txt, reboot, and then run sudo vcdbg log msg to grab the logs. (I think that works on 64bit, but not sure).
Otherwise REMOVE dtoverlay=ov5647 from config.txt, reboot, and then sudo dtoverlay -v ov5647. Report any error messages.

@FaresAbuIram
Copy link
Author

The first command provides these devices and their providers v4l2-ctl --list-devices
image

sudo vcdbg log msg doesn't work for me

sudo dtoverlay -v ov5647 provide these lines
image

@pelwell
Copy link
Contributor

pelwell commented Oct 6, 2021

You can download a static build of vcdbg that works on a 64-bit kernel here: https://drive.google.com/file/d/1HS9E5vnxxNqrizB4mEYrnFoQQ1axSRKm/view?usp=sharing

@FaresAbuIram
Copy link
Author

After run the libcamera-hello, I see these logs
image

and there is a black screen that doesn't have anything
image

What is the problem? why I can't see the camera? sorry for a lot of comments here but I am trying to solve this for my graduation project :(

@FaresAbuIram
Copy link
Author

Anyway I tried to use a USB camera with motion and it works fine
Thanks to all of you
@6by9
@JamesH65
@pelwell

@FaresAbuIram
Copy link
Author

@6by9 Do you know what is this wrong?
When I am using motion with my camera(old one not USB) this error is in the motion.log file.
image

@PeterPablo
Copy link

You should take the time to provide thorough information, as asked by 6by9:

When you create an issue on this repo there is a template asking for a load of standard information. Please provide it.

@FaresAbuIram
Copy link
Author

I am sorry but I think that is a clear problem so it's doesn't need more details to describe.
Ok,
I have a raspberry pi 4 8GB, the pic below describes the information about it
image

I want to do live streaming with the raspberry pi camera ( raspberry pi REV 1.3), I downloaded the Libcamera driver but there is a problem, look at the below pics
image
image

then I moved to the motion to see if it's work or not, I saw this error message in the motion.log
image

it's clear?

@PeterPablo
Copy link

PeterPablo commented Oct 8, 2021

Let me step in again as a mediator. I assume it is not clear to the Raspberry Pi developers, otherwise they would not have asked specifically to provide the information. You still do only provide a subset of the requested information (as screenshots). Your chances of the issue (user settings, actual SW bug, ...) being resolved will rise, if you do your best to support the process.

So, please go over all comments again, to see what further information you shall supply. I take it is specifically this one:

Add dtdebug=1 to config.txt, reboot, and then run sudo vcdbg log msg to grab the logs

(edit: make sure to use the file linked by Phil for your 64bit operating system)
Possibly, providing output of dmesg would also help. You can redirect logs to a file using yourCommand > myLogfile.xt. You may also upload to a site like pastebin using myCommand | pastebinit.

Best regards

@6by9
Copy link
Contributor

6by9 commented Oct 8, 2021

Github's issue tracker is meant for actual issues with the Linux kernel, not general support. Please use the forums for that - https://forums.raspberrypi.com/index.php

You're mixing and matching use of the raw sensor drivers for use with libcamera, and generic V4L2 apps. This will cause issues as you have noted.

The libcamera apps should work as distributed. As you've messed with alternate drivers and kernels I can not guess what state your system is in. I would suggest you download a clean copy of Raspberry Pi OS 64bit, install to a new SD card, and test there.

I'm not sure which message you believe to be an issue in that Motion log.
"Configuration palette index 17 (YU12) doesn't work"?
AFAIK Motion doesn't handle raw Bayer images, so having the libcamera raw sensor drivers loaded which only offer 8 and 10 bit Bayer isn't going to get very far with it. Remove "dtoverlay=ov5647" if you wish to use Motion on processed YUV or RGB images.

@FaresAbuIram
Copy link
Author

The problem is because my camera is broken.
Thanks for your time

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

No branches or pull requests

5 participants