camera firmware problems
#10
(05-25-2021, 02:56 AM)kqlnut Wrote: I looked at it again too and saw that maybe the firmware wasn't even uploaded correctly in the first place? I'm in no way experienced with this, but to my understanding it seems like the firmware is written (l. 126–129) without checking for errors. Then the autofocus registers are set, including the FW_STATUS register (0x7f – downloaded and not running). After that a system reset is done which is checked for errors, but that has nothing to do with the the autofocus firmware. If that was successful, we are informed that the firmware upload was successful. So maybe the firmware upload wasn't successful after all?

You're right, the for loop that writes the firmware to the camera MCU (lines 126–129 in the kernel autofocus patch) should be checking the return value of the ov5640_write_reg() function.  Also, the code block that performs the MCU reset after completing the firmware loading (lines 132–139 in the patch) should be checking the return value of the same function.  If you have time, maybe you could add some error checking there, recompile the kernel, and check the results?

(05-25-2021, 02:56 AM)kqlnut Wrote: Very interesting idea! I went Tito Puente on the camera and the firmware did in fact start successfully one time! Only one time though out of at least 10 I tried and I couldn't reproduce it. Unfortunately I was too quick to close Megapixels before I checked the dmesg output, so I couldn't try if it actually worked. So maybe that's it and something really is stuck badly in the camera. The camera always makes a clicking sound twice when starting it up and I was under the impression that this was the autofocus, so I thought it was physically working.

Those are interesting results, although the rate of success doesn't seem to indicate that the root cause is stuck lens.  I also hear the clicks you've decribed; those should be the initial autofocus resets, which the camera seems to be doing on its own when powered up.  The fact that you hear those "initialization" clicks probably means that the lens isn't stuck, so let's hope that the issue is fixable in the kernel driver.
  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 5,393 07-06-2022, 01:43 PM
Last Post: user641
  Need command to tell what modem firmware I am on. purpletiger 4 2,873 07-06-2022, 12:35 PM
Last Post: Zebulon Walton
  PostmarketOS Camera and ffmeg rafiki88 1 1,512 03-19-2022, 10:09 AM
Last Post: vap0rtranz
  Would another camera work in the PP? nelstomlinson 2 2,232 11-11-2021, 06:25 PM
Last Post: nelstomlinson
Sad Have I got a broken camera module? AKD251 2 2,266 11-07-2021, 11:12 AM
Last Post: beta-user
  3/32 upgrade board, Arrived Without Firmware, Troubleshooting Steps to SOLVED biketool 0 1,730 06-22-2021, 10:03 AM
Last Post: biketool
  camera + megaixel and strange behavior streak 0 1,690 06-02-2021, 06:45 AM
Last Post: streak
  Pinephone camera thread ryo 8 8,351 05-29-2021, 03:21 AM
Last Post: ryo
  Camera clicking sound unsatisfactory212 2 2,825 05-07-2021, 02:57 PM
Last Post: megous
  Fail safe way to update ANX7688 firmware scholbert 24 26,109 04-01-2021, 01:28 PM
Last Post: zborgerd

Forum Jump:


Users browsing this thread: 1 Guest(s)