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

Installation instructions for newer firmware #28

Open
mikkelam opened this issue Sep 8, 2022 · 11 comments
Open

Installation instructions for newer firmware #28

mikkelam opened this issue Sep 8, 2022 · 11 comments

Comments

@mikkelam
Copy link

mikkelam commented Sep 8, 2022

According to the readme:

Note: Since 5.15.38, the arducam-pivariety driver has been merged into the Raspberry Pi kernel and the name of the device tree is changed to arducam-pivariety, so dtoverlay=arducam-pivariety is required to set the overlay

Does that mean that if we use the newest kernel and set the above dtoverlay everything should work as is? Or is there something else on has to do?

@FPSychotic
Copy link

If you Arducam answer would be nice as I have a Hawkeye that is a £60 paper weitght

@kbingham
Copy link

At least in the RPI kernel, the Hawkeye is dtoverlay=arducam-64mp I believe.

But I think it still needs a custom libcamera package from arducam.

@FPSychotic
Copy link

FPSychotic commented Sep 21, 2022

I fot it work, all the guides are wrong at some point.
I example change the cma to 512 as in every tutorial will make the rpi02 dont boot, and so on.
Anyways the camera is crap, images are super dark.
The is not exposure control I think, there is gain that gives tons of artefacts.
It is totally rubbish.
Anyway no one will answer here

@kbingham
Copy link

Did you get it to work using some pivariety driver? or the normal RPi drivers, and upstream libcamera?

@FPSychotic
Copy link

FPSychotic commented Sep 22, 2022

To be honest I tried so many things that really I don't know how I did it work.
I think I have their script, their libcamera and omited the cma 512 step, but I did twice the same thing , and one didn't work and the next time worked, no idea why, I tried every official or recomended OS and only worked in one.
Just seen the image quality indoors and just removed it, waste of money

@kbingham
Copy link

I want to see the 64MP camera supported 'upstream' (meaning plug it directly in and use the libcamera from raspberrypi) ...(I have one here to work on) but it will take some more time and I haven't had enough free spare cycles to work on it.

RPi have added the driver to their tree, so you should be able to load with "dtoverlay=arducam-64mp" and then see what errors 'cam -l' produces. I expect it will complain because there is no camera sensor properties or tuning file. If you are willing to spend more time on this - I can walk you through getting those in and we could hopefully make progress.

Ok - so I've just done that and I get:

libcamera@mars:~/libcamera $ ./build/gcc/src/cam/cam -l
[0:19:48.712724396] [1614]  INFO IPAManager ipa_manager.cpp:141 libcamera is not installed. Adding '/home/libcamera/libcamera/build/gcc/src/ipa' to the IPA search path
[0:19:48.741737609] [1614]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3832-777b0e0a
[0:19:48.768890874] [1618]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'arducam_64mp'
[0:19:48.768975480] [1618]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:19:48.841589833] [1618]  INFO IPAProxy ipa_proxy.cpp:130 libcamera is not installed. Loading IPA configuration from '/home/libcamera/libcamera/src/ipa/raspberrypi/data'
[0:19:48.850027481] [1618] ERROR IPARPI raspberrypi.cpp:214 Could not create camera helper for arducam_64mp
[0:19:48.850178750] [1618] ERROR RPI raspberrypi.cpp:1253 Failed to load a suitable IPA library
[0:19:48.851416920] [1618] ERROR RPI raspberrypi.cpp:1184 Failed to register camera arducam_64mp 10-001a: -22
Available cameras:

So we need to add a camera helper for this to the Raspberry Pi IPA component. I'll see if I can finish this tonight.

@FPSychotic
Copy link

FPSychotic commented Sep 22, 2022 via email

@kbingham
Copy link

If it helps make you less worried about wasting £60 ... I've just captured an image indoors, and the camera is working well. The issue you have is purely software, not hardware.
The Autofocus isn't enabled when capturing this - so it's a little blurry - but AF can come later. I'm trying to work out how to get the camera supported upstream in Raspberry Pi distributions with libcamera directly.

arducam_64mp

@kbingham
Copy link

I have no knowledge to can help in almost anything. For other part I need use it with ubuntu and in indoors without 500W in illumination, and the camera just don't work in that conditions.

I'd be interested to see a captured picture that shows what you are seeing.

@cjf68
Copy link

cjf68 commented Oct 6, 2022

Hello,
I am working with an OV2311 and encountering the same errors. I started with the latest pi OS, which I believe includes the V4L2 driver as well as libcamera and picamera2. I added dtoverlay=arducam-pivariety manually to config.txt and can see the firmware version, etc. but then get the warnings and errors above. What is a camera helper?

Thanks

@cjf68
Copy link

cjf68 commented Oct 6, 2022

I just reinstalled picamera2 0.3.3 (after breaking it with the pivariety libcamera-apps installation) and now it works.

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

4 participants