camera firmware problems
#18
(07-07-2021, 07:25 PM)dsimic Wrote: I've created a semi-throwaway utility that converts the autofocus firmware image "dumps" contained in C header files into binary images expected by the Linux kernel's firmware loading subsystem.  I've already included a few image "dumps" (i.e., C header files) that are available in various source repositories on the Internet, and I've already converted those header files into binary images that are available as .bin files in the "firmware" directory in the repository.

Please note that the "firmware" directory also contains human-readable .regs files, which contain additional values for the registers that, according to the original C header files, should be configured at the same time when the autofocus firmware is loaded, before and/or after the actual loading.  Just have a look at the .regs files and all this will make much more sense.

As a side note, loading the firmware image into the OV5640 MCU should be performed using the i2c_transfer() function directly, instead of poking individual registers, but we can get back to that once we discover which firmware image needs to be used.
Thank you for that tool and all the work, greatly appreciated! 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.
  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,105 07-06-2022, 01:43 PM
Last Post: user641
  Need command to tell what modem firmware I am on. purpletiger 4 2,655 07-06-2022, 12:35 PM
Last Post: Zebulon Walton
  PostmarketOS Camera and ffmeg rafiki88 1 1,441 03-19-2022, 10:09 AM
Last Post: vap0rtranz
  Would another camera work in the PP? nelstomlinson 2 2,129 11-11-2021, 06:25 PM
Last Post: nelstomlinson
Sad Have I got a broken camera module? AKD251 2 2,160 11-07-2021, 11:12 AM
Last Post: beta-user
  3/32 upgrade board, Arrived Without Firmware, Troubleshooting Steps to SOLVED biketool 0 1,678 06-22-2021, 10:03 AM
Last Post: biketool
  camera + megaixel and strange behavior streak 0 1,642 06-02-2021, 06:45 AM
Last Post: streak
  Pinephone camera thread ryo 8 8,146 05-29-2021, 03:21 AM
Last Post: ryo
  Camera clicking sound unsatisfactory212 2 2,739 05-07-2021, 02:57 PM
Last Post: megous
  Fail safe way to update ANX7688 firmware scholbert 24 25,369 04-01-2021, 01:28 PM
Last Post: zborgerd

Forum Jump:


Users browsing this thread: 2 Guest(s)