RPI Zero 1.3 + 16mpx IMX519 -> illegal operation

Hello, I was wondering if you could explain how you were able to get the camera to work. I haven’t been able to try anything Edward suggested yet since I’m only in the lab at the end of the week. If you could give a step by step guide that would be greatly appreciated. Thank you!

Any tips or steps to get past the “Illegal instruction” error above yet?

@jhud : what did @Edward and team do to get libcamera working?

@spm @corkyskier - Arducam will fix their installation script, as the issue is there, hopefully soon so it’ll just start to work after you reinstall. We should hear about it here, in this thread.

The issue is in imx519.json tuning file which lives somewhere in /usr/lib/… (I’m out of reach of my RPI now so this is from the top of my head). That file needs to be replaced by a different version. I’m now not sure where they got the right version from - probably from one of their custom libcamera packages that we install as per their standard installation instruction. They haven’t downloaded anything different to my RPI.

Got it, I really appreciate it. Is there anything that can be done in the meantime or do we have to wait for them to fix their script?

@spm @jhud @corkyskier

I can share my thoughts

sudo apt remove libcamera0
sudo apt install libcamera0
sudo apt install libcamera-apps
wget https://raw.githubusercontent.com/ArduCAM/libcamera/arducam/src/ipa/raspberrypi/data/imx519.json
cp imx519.json /usr/share/libcamera/ipa/raspberrypi/

What would I install for the 64MP autofocus camera?

@corkyskier

you can find json file in the below page,and downloads the camera json file you need

for 64mp:

step same as imx519

Thank you very much!

After the script ist updated, will this work with the latest kernel 6.x after using rpi-update?

@tina

Sure. dont worry about that.

@Edward This effectively means we don’t use your special version of libcamera but the standard one with just that one json file updated. Are we loosing any features that your build of libcamera possibly contains?

@jhud

Yes, this is only a temporary solution for you.
AF will be slower, but otherwise the same.
It will not affect your development with picamera2.

1 Like

Heads up: full resolution works on my Pi zero w

@spm Could you post your sample image pls?

How did you manage this?
I thought the RAM of the pi zero is not sufficient?

Thanks Dion for the excellent remote support.
Thanks the support team for quick responses in the forum.
This is very reassuring - one feels great as customer.

It seems that the cable has some issues.
I could not get the Arducam original one, so used 3rd party.

It seems though that the zero is not powerfull enough for the camera.
zero 2 is not available so we are going with CM4.

If there is interest, will report here how it goes.

Hello @jonasrejman

It seems though that the zero is not powerfull enough for the camera.

In what regards? It works for my use-case. Full resolution capture is also possible (for that add dtoverlay=vc4-kms-v3d,cma-256) - that of course depends on how memory demanding software you want to run there but at least I can confirm this works from the command line with libcamera-still).

I’m now more concerned about image quality. Everyone testing the camera reported great results and quality and to me it seems very comparable to my old cheap unofficial 5mpx OV5647 from AliExpress. Could the cable affect quality? :thinking:

Thanks for the thoughts.

I did set cma-128 or cma-96 as per forum tips.

The memory demand is low - there is nothing on the zero and its the lite version installed.
This is supposed to be a “raw image making machine” - everything else is meant to be done after offloading.

I cannot test the quality, because of the flawed adapter cable from camera to pi zero interface.

Maybe not the cable, but some interference or a faulty camera module?
Hard to say, but I would try a different camera module.

@jhud : Here’s a sample image I just took on Pi Zero W: (forum software downsized it from 4656x3496 px)

libcamera-still -n -o output.jpg

dtoverlay=vc4-kms-v3d
(default value)

Might check this thread also: Not enough buffers provided by V4L2VideoDevice on RPi3B · Issue #144 · raspberrypi/libcamera-apps · GitHub

Hello again, I keep getting a “no cameras available!” error, anyone have any thoughts?