~martijnbraam/Megapixels#53: 
autofocus doesn't work/uploaded firmware didn't start

I just noticed that autofocus doesn't work for me and thinking about it, I believe it never has. Looking at the output from dmesg, the firmware apparently fails to upload:

[ 72.687561] ov5640 4-004c: firmware upload success [ 72.996306] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f, retrying... [ 73.304696] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f [ 73.311504] ov5640 4-004c: ov5640_set_ctrl_focus: no autofocus firmware loaded

I'm on Manjaro unstable, but I'm pretty sure this hasn't worked on Manjaro stable either and I think also not on Mobian (bit I haven't used neither of those recently and I didn't check dmesg back then).

Status
REPORTED
Submitter
nwlyoc
Assigned to
No-one
Submitted
1 year, 6 months ago
Updated
1 year, 25 days ago
Labels
No labels applied.

~benjamin-schaaf 1 year, 6 months ago

Megapixels doesn't touch the firmware. Autofocus works fine for me on Mobian.

~nwlyoc 1 year, 6 months ago

Thanks for the info. I'll report to the Manjaro bug tracker then. I thought this was the right place to report since it seems to be related to this patch: https://gitlab.manjaro.org/manjaro-arm/packages/core/linux-pinephone/-/blob/5.12-megi/media-ov5640-Implement-autofocus.patch

Good to know that it works on Mobian. Although I just tried an SD card with an older version of Mobian I had lying around (maybe 2 months old) and there exactly the same error occured.

~nwlyoc 1 year, 6 months ago*

I just flashed the newest Mobian nightly to an SD card and tried that, still the same error. So this doesn't seem to be OS related. Any idea what this could be related to or which place would be best to report this? I hope this is not a hardware fault, but then again the camera works fine apart from this problem (I think). I toggled the camera kill switch which made the camera unavailable as expected, but the still the same issue afterwards.

~tomf 1 year, 4 months ago · edit

See https://forum.pine64.org/showthread.php?tid=13939&pid=97682#pid97682 for a workaround.

tl;dr after Megapixels loads, touch your screen. This will trigger a firmware load, which (if you had the same issue I had) will cause autofocus to begin.

Please reply with whether this workaround works for you.

Wolfgang König 1 year, 4 months ago · edit

Hello,

it works!!!

Thanks

Am 21.07.21 um 15:51 schrieb ~tomf:

See https://forum.pine64.org/showthread.php?tid=13939&pid=97682#pid97682 for a workaround.

tl;dr after Megapixels loads, touch your screen. This will trigger a firmware load, which (if you had the same issue I had) will cause autofocus to begin.

Please reply with whether this workaround works for you.

~nwlyoc 1 year, 4 months ago

Yes, thanks, it works (I'm person from the thread you linked, just a different name).

~benjamin-schaaf 1 year, 25 days ago

Register here or Log in to comment, or comment via email.