camera firmware problems
#7
(05-24-2021, 11:21 AM)kqlnut Wrote: Thank you for the instructions, that made everything a lot easier than I had anticipated. I changed the patch and rebuilt the package on the Pinephone itself (took about 2:15 h in case anybody wonders). I increased the time to wait for the firmware to start to 10 times as much (2.5 seconds), but still the same problem unfortunately. So maybe it is faulty hardware. I will eventually order another camera module, but it'll take a while. I will report back if I have any news.

You're welcome and I'm glad that the instructions helped.

I'm sorry to hear that increasing the timeouts didn't help.  After having a second look at the kernel autofocus patch, which by the way contains a chunk of code that's duplicated (lines 141-156 are the same as the lines 163-175), I can confirm that it follows the steps of the autofocus firmware initialization, described on page 8 of the OV5640 Embedded Firmware User Guide.  There isn't much more that could be done from the software side, as far as I can see, but Martijn probably knows better.

What came to my mind is that the issue could be of a, so to speak, mechanical nature.  See, the driver expects the autofocus firmware to reach the S_IDLE (0x70) status, which is described as "idle state, focus is released; lens is located at the furthest position".  Another two statuses, S_FIRMWARE (0x7F, "firmware is downloaded and not run") and S_STARTUP (0x7E, "firmware is initializing"), are pretty much ignored while checking for a successful initialization of the autofocus feature, meaning that the lens has to physically move to the furthest position to declare the autofocus firmware initialization successful.  However, you got this kernel message earlier:

Code:
[ 73.304696] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f

This means that the autofocus firmware initialization reached the above-described S_FIRMWARE (0x7F) state, so the issue unfortunately doesn't seem to be of a mechanical nature.  If the firmware initialization reached the S_STARTUP state instead, the root cause of the issue would have probably been a stuck lens, so tapping or knocking on the camera module, which is also known as "percussion maintenance", Smile could probably resolve the issue.  Anyway, it might be worth giving the camera module a knock or two; I had a phone with a built-in, motorized camera lens cover that sometimes got stuck and the camera refused to work, which was a known issue that was commonly resolved by applying some light "percussion maintenance" to the camera.

By the way, isn't it awesome to own a smartphone that, from the software side, can rather easily compile the very kernel it's running? Smile
  Reply


Messages In This Thread
camera firmware problems - by kqlnut - 05-20-2021, 05:20 AM
RE: camera firmware problems - by dsimic - 05-23-2021, 09:22 PM
RE: camera firmware problems - by vortex - 05-24-2021, 12:30 AM
RE: camera firmware problems - by kqlnut - 05-24-2021, 06:24 AM
RE: camera firmware problems - by dsimic - 05-24-2021, 06:29 AM
RE: camera firmware problems - by kqlnut - 05-24-2021, 11:21 AM
RE: camera firmware problems - by dsimic - 05-24-2021, 12:28 PM
RE: camera firmware problems - by kqlnut - 05-25-2021, 02:56 AM
RE: camera firmware problems - by dsimic - 06-04-2021, 02:26 AM
RE: camera firmware problems - by wfk - 06-03-2021, 11:52 PM
RE: camera firmware problems - by kqlnut - 06-06-2021, 12:08 AM
RE: camera firmware problems - by dsimic - 06-06-2021, 12:41 AM
RE: camera firmware problems - by kqlnut - 06-06-2021, 01:01 AM
RE: camera firmware problems - by dsimic - 06-11-2021, 01:12 AM
RE: camera firmware problems - by wfk - 06-28-2021, 11:31 AM
RE: camera firmware problems - by kqlnut - 06-28-2021, 12:01 PM
RE: camera firmware problems - by dsimic - 07-07-2021, 07:25 PM
RE: camera firmware problems - by kqlnut - 07-10-2021, 02:20 AM
RE: camera firmware problems - by dsimic - 07-28-2021, 05:20 AM
RE: camera firmware problems - by tomog - 07-18-2021, 12:26 AM
RE: camera firmware problems - by tomog - 07-20-2021, 08:28 AM
RE: camera firmware problems - by kqlnut - 07-20-2021, 09:13 AM
RE: camera firmware problems - by tomog - 07-20-2021, 09:33 PM
RE: camera firmware problems - by LinLo - 08-27-2021, 10:07 AM
RE: camera firmware problems - by kqlnut - 08-28-2021, 09:38 AM
RE: camera firmware problems - by Zebulon Walton - 09-02-2021, 07:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  firmware udate Quectel EG25-G modem alwi 7 7,065 07-06-2022, 01:43 PM
Last Post: user641
  Need command to tell what modem firmware I am on. purpletiger 4 3,807 07-06-2022, 12:35 PM
Last Post: Zebulon Walton
  PostmarketOS Camera and ffmeg rafiki88 1 1,839 03-19-2022, 10:09 AM
Last Post: vap0rtranz
  Would another camera work in the PP? nelstomlinson 2 2,708 11-11-2021, 06:25 PM
Last Post: nelstomlinson
Sad Have I got a broken camera module? AKD251 2 2,727 11-07-2021, 11:12 AM
Last Post: beta-user
  3/32 upgrade board, Arrived Without Firmware, Troubleshooting Steps to SOLVED biketool 0 1,963 06-22-2021, 10:03 AM
Last Post: biketool
  camera + megaixel and strange behavior streak 0 1,919 06-02-2021, 06:45 AM
Last Post: streak
  Pinephone camera thread ryo 8 9,620 05-29-2021, 03:21 AM
Last Post: ryo
  Camera clicking sound unsatisfactory212 2 3,279 05-07-2021, 02:57 PM
Last Post: megous
  Fail safe way to update ANX7688 firmware scholbert 24 29,848 04-01-2021, 01:28 PM
Last Post: zborgerd

Forum Jump:


Users browsing this thread: 1 Guest(s)