camera firmware problems
#23
(07-10-2021, 02:20 AM)kqlnut Wrote: I've tried all the firmware images you provided (by replacing the original af firmware in /lib/firmware), but unfortunately all of them failed to start. I haven't set any of the extra registers though because I don't know how to do that except for modifying the driver and rebuilding the kernel which I haven't had the time for (is there another way?). I will look for more firmware dumps too.

I've added another AF firmware image to my small repository, which now contains a total of seven variants; already prepared images are, as always, available in the "firmware" directory.  With the driver improvements made by tomog, all firmware images should load correctly, so it would be highly advisable to test all available variants again, because it's highly possible that some of the available firmware images make the auto focus feature work better.

(07-20-2021, 09:33 PM)tomog Wrote: The dmesg log you see is a genuine failure to start the firmware. At the time this occurs, the firmware does fail to start, due to a bug in the driver.

When Megapixels is open, the driver is in a different state, and in this state the firmware is able to load. dmesg should then report that the firmware started successfully.

The fix will make sure the firmware loads successfully when it's meant to.

Awesome, great job! Smile  As already discussed on the #pinephone IRC channel, I'd strongly suggest that you go toward merging these improvements into the Linux kernel mainline.  Sure, some more work is required to reach the required quality of code, but that should be achievable.

As already discussed, loading the firmware image into the OV5640 MCU should be performed using the i2c_transfer() function directly and writing the entire firmware image at once, or in a few segments if that turns out not to work reliably, instead of poking individual registers.  That should speed up the firmware loading a bit, reducing the startup time of the Megapixels application.
  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,350 07-06-2022, 01:43 PM
Last Post: user641
  Need command to tell what modem firmware I am on. purpletiger 4 2,835 07-06-2022, 12:35 PM
Last Post: Zebulon Walton
  PostmarketOS Camera and ffmeg rafiki88 1 1,501 03-19-2022, 10:09 AM
Last Post: vap0rtranz
  Would another camera work in the PP? nelstomlinson 2 2,217 11-11-2021, 06:25 PM
Last Post: nelstomlinson
Sad Have I got a broken camera module? AKD251 2 2,257 11-07-2021, 11:12 AM
Last Post: beta-user
  3/32 upgrade board, Arrived Without Firmware, Troubleshooting Steps to SOLVED biketool 0 1,725 06-22-2021, 10:03 AM
Last Post: biketool
  camera + megaixel and strange behavior streak 0 1,685 06-02-2021, 06:45 AM
Last Post: streak
  Pinephone camera thread ryo 8 8,333 05-29-2021, 03:21 AM
Last Post: ryo
  Camera clicking sound unsatisfactory212 2 2,815 05-07-2021, 02:57 PM
Last Post: megous
  Fail safe way to update ANX7688 firmware scholbert 24 26,067 04-01-2021, 01:28 PM
Last Post: zborgerd

Forum Jump:


Users browsing this thread: 2 Guest(s)