camera firmware problems
#8
(05-24-2021, 12:28 PM)dsimic Wrote: 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.
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?
(The duplicated lines are for resetting the MCU and then retrying to start the firmware.)


(05-24-2021, 12:28 PM)dsimic Wrote: 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 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.
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.



(05-24-2021, 12:28 PM)dsimic Wrote: 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
I was thinking the same thing when it was compiling. That is awesome indeed!
  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,063 07-06-2022, 01:43 PM
Last Post: user641
  Need command to tell what modem firmware I am on. purpletiger 4 3,805 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,705 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,617 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,792 04-01-2021, 01:28 PM
Last Post: zborgerd

Forum Jump:


Users browsing this thread: 2 Guest(s)