Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version Search this Thread
08-29-2018, 04:23 AM   #1
Veteran Member




Join Date: Oct 2015
Posts: 459
Out of curiosity: possible to hack SLR firmware?

Havent found a discussion about it yet, so here it is. Just came to my mind...

Would it be possible to hack the firmware of a Pentax AF film SLR?

I will expand this... The AF film SLRs, Z-series or MZ-series, have pretty sure some sort of firmware and the possiblity of user settings. Obviously, there is no way we can update the firmware like for DSLRs. I dont know if there is a secret access for service engineers...

Now, this firmware is surely stored in a chip somewhere on the camera board. Probably it can be read out. Without documentation, it would have to be reverse-engineered. Then, if you edit the firmware, throw out the power zoom feature and add SDM/DC instead (the contacts are in the mount...), write this to an EPROM-like chip (if there's a fitting one) and install it on the board... Would be a nice add-on for modern AF lenses.

Too bad I am not a tech-head...


Last edited by yucafrita; 08-29-2018 at 04:39 AM.
08-29-2018, 04:40 AM   #2
Veteran Member




Join Date: Jun 2015
Location: South West UK
Photos: Albums
Posts: 1,493
There are two issues here that are unknown.

1) Is there a programmable chip in there with the program on-board, or is the programming handled by simple logic chips. Probably it is a microcontroller, so probably it is programmable in some way, but without seeing the circuit diagram I wouldn't be able to say.

2) If it IS programmable, has the circuit been designed for ICSP (In-Circuit Serial Programming) - it needs to be deliberately designed in. The answer here is almost certainly not...unless they intended the firmware to be updatable by the user or repair shops, there is no need to go to the expense. Seeing as the programming is fairly simple (and so can be thoroughly tested as bug-free) and there is no need to add new features, this is highly unlikely. And so the only option would be to remove the chip(s) from the board to gain access.

The short answer is: yes, anything is possible in theory, but whether it is practical is another matter.
08-29-2018, 04:46 AM   #3
Pentaxian




Join Date: May 2016
Photos: Gallery
Posts: 3,726
I also think that those cameras indeed have a microcontroller running code, I'd be surprised if even a super program didn't because something needs to drive the segment lcd dispay.
But I doubt the memory is programmable, afaik lots of embedded devices used to be shipped with code in a rom (and not some re-programmable memory), including video game cartridges.
08-29-2018, 04:47 AM   #4
Pentaxian
Wasp's Avatar

Join Date: Mar 2017
Location: Pretoria
Photos: Gallery
Posts: 4,661
Disclaimer: I have never looked at the circuit diagram for any camera so I can only talk in general, but I have seen some electronics in my time.

The problem is that the film bodies did not have any provision for user updates like digital ones have. It is this ability that makes it possible to roll your own firmware.

It would certainly be possible to read the ROM from your film body, if you have the right equipment. The ROM chip that the code is stored in would probably be soldered to the board. Space is very tight inside a camera and a socket would just eat up real estate. If you do manage to read it, it will just be a lot of numbers. You would still have to reverse engineer that.

This assumes that there is a CPU to start with. Only AF bodies would have that but I don't know the details. Something older like an LX would be mostly analog. There might be some logic circuitry but that is a world away from computer code.

08-29-2018, 04:52 AM   #5
Veteran Member




Join Date: Jun 2015
Location: South West UK
Photos: Albums
Posts: 1,493
All of this also relies on being able to engineer (reverse or otherwise) the SDM code. This also relies on the chip (if any) being capable of running the code (program space might be an issue - as might PWM capability).

Actually the easier way by far would be to outright replace the chip with a new one with your own program.
08-29-2018, 04:55 AM   #6
Veteran Member




Join Date: Oct 2015
Posts: 459
Original Poster
Yeah, I would think that one had to exchange the ROM chip with a new one. In the old computer days, there were sometimes piggy-back extensions (like turbo cards etc) but in a camera there just isnt enough space for that approach.

Oh well, so it's always screw-drive time...
08-29-2018, 04:58 AM   #7
Veteran Member




Join Date: Jun 2015
Location: South West UK
Photos: Albums
Posts: 1,493
It would be an interesting project for someone with the kit, the expertise and the desire. It is far from an easy job though, so the desire would need to be strong. I think here that the benefit is far from the equal of the effort.

08-29-2018, 05:05 AM   #8
Veteran Member




Join Date: Oct 2015
Posts: 459
Original Poster
QuoteOriginally posted by victormeldrew Quote
It would be an interesting project for someone with the kit, the expertise and the desire. It is far from an easy job though, so the desire would need to be strong. I think here that the benefit is far from the equal of the effort.
Maybe something for crowdfunding, but yes, too few people would be interested I guess. Plus, the different models would need each a separate effort. I doubt an MZ-S is too similar to a Z-series camera regarding the code.
08-29-2018, 05:43 AM   #9
Pentaxian
Wasp's Avatar

Join Date: Mar 2017
Location: Pretoria
Photos: Gallery
Posts: 4,661
It is also possible the the code is inside the CPU chip itself. It would certainly save space and keep down cost. There was little need of any software updates on these old timers. Anything new would have been a normal production change.

All of the above assumes that it would be worthwhile to hack dad's film SLR. Me thinks that there is little or no new capability hidden in there that is not already available. Remember, there is no four way selector or screen with menus, only the buttons that Pentax (or any other maker) put there. In other words, how would any clever new features be accessed?

Finally, it is doubtful that Pentax left anything on the table as far as CPU power or hardware capabilities go. The camera business is/was just too competitive for that.
08-29-2018, 05:43 AM   #10
Pentaxian
Wasp's Avatar

Join Date: Mar 2017
Location: Pretoria
Photos: Gallery
Posts: 4,661
It is also possible the the code is inside the CPU chip itself. It would certainly save space and keep down cost. There was little need of any software updates on these old timers. Anything new would have been a normal production change.

All of the above assumes that it would be worthwhile to hack dad's film SLR. Me thinks that there is little or no new capability hidden in there that is not already available. Remember, there is no four way selector or screen with menus, only the buttons that Pentax (or any other maker) put there. In other words, how would any clever new features be accessed?

Finally, it is doubtful that Pentax left anything on the table as far as CPU power or hardware capabilities go. The camera business is/was just too competitive for that.
08-29-2018, 06:35 AM   #11
Pentaxian
timw4mail's Avatar

Join Date: Apr 2017
Location: Driving a Mirage
Photos: Gallery | Albums
Posts: 1,670
QuoteOriginally posted by Wasp Quote
It is also possible the the code is inside the CPU chip itself. It would certainly save space and keep down cost. There was little need of any software updates on these old timers. Anything new would have been a normal production change.

All of the above assumes that it would be worthwhile to hack dad's film SLR. Me thinks that there is little or no new capability hidden in there that is not already available. Remember, there is no four way selector or screen with menus, only the buttons that Pentax (or any other maker) put there. In other words, how would any clever new features be accessed?

Finally, it is doubtful that Pentax left anything on the table as far as CPU power or hardware capabilities go. The camera business is/was just too competitive for that.
Considering how little extra room there is on current cameras for firmware changes, I imagine there is virtually no room for modernity upgrades, if you can upgrade at all. It's quite possible that all or nearly all film SLRs used only hardware/ROM, and not firmware.
08-29-2018, 06:43 AM   #12
Veteran Member




Join Date: Mar 2017
Location: Otago, New Zealand
Posts: 422
It is possible, but probably quite difficult.

If there is some form of in circuit programming you could theoretically reflash it - assuming that you can assess the datasheets, the coding platform, and the hardware too do this. Otherwise you could theoretically desolder the chip, build a test circuit and read the hex file (assuming you have all of the above), but then you would also need to go over the schematic and work out what registers were assigned to which parts of the circuit, decode the hex into assembly (once of course you understood the machine instructions), then work backwards until you understood it, before programming a new chip with a custom hex file of your own design and resoldering the circuit.

Actually, on second thoughts... It is probably possible, but also probably very very bloody difficult.
08-29-2018, 01:18 PM   #13
Pentaxian




Join Date: May 2016
Photos: Albums
Posts: 2,003
I thought I heard of a firmware update for the 645N or 645NII, but it seemed like a factory thing and not user-appliable. It could have been a chip replacement for that matter.

---------- Post added 08-29-18 at 01:18 PM ----------

Maybe "firmware update" was not the correct term.
08-29-2018, 05:57 PM   #14
Veteran Member
johnha's Avatar

Join Date: Apr 2012
Location: Lancashire, UK
Photos: Albums
Posts: 1,155
It's a non-starter, it's likely to be a custom masked chip which can't be re-programmed, reproducing a 'similar' chip and getting it to work is going to be extremely difficult. It would be difficult enough to strip the camera down and rebuild it without breaking anything and keeping everything aligned as it should be.
09-11-2018, 03:08 PM   #15
Otis Memorial Pentaxian
stevebrot's Avatar

Join Date: Mar 2007
Location: Vancouver (USA)
Photos: Gallery | Albums
Posts: 42,007
QuoteOriginally posted by johnha Quote
It's a non-starter, it's likely to be a custom masked chip which can't be re-programmed, reproducing a 'similar' chip and getting it to work is going to be extremely difficult. It would be difficult enough to strip the camera down and rebuild it without breaking anything and keeping everything aligned as it should be.
What they said ^ ^ ^.

Basic camera functionality is actually pretty simple, even gee-whiz stuff like matrix metering and TTL/P-TTL flash can be handled by baked-in instructions. As for "secret access for service engineers", that takes the form swapping catalog parts.


Steve
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
af, chip, film, firmware, hack, slr

Similar Threads
Thread Thread Starter Forum Replies Last Post
EVF hack possible? yorik Pentax K-01 22 05-16-2013 07:17 AM
am i an idiot? - possible k10d, K mount lens hack ophillip Pentax SLR Lens Discussion 8 05-11-2011 04:55 AM
Abstract The cure for boredom is curiosity. There is no cure for curiosity. jsherman999 Post Your Photos! 37 01-31-2011 01:28 AM
a possible full color hack for all bodies with shake reduction blade_o5990 Pentax DSLR Discussion 3 12-23-2009 07:15 PM
DP1 lens mount hack job, possible? Gooshin General Talk 6 06-23-2008 05:16 PM



All times are GMT -7. The time now is 12:51 AM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top