Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version Search this Thread
11-18-2010, 01:55 AM   #1
Senior Member




Join Date: Oct 2010
Location: Adelaide, Australia
Photos: Albums
Posts: 251
k-5 firmware hacking anyone?

I just found this on RiceHigh's blog, originally posted in a comment.

RiceHigh's Pentax Blog: Pentax K-5 Firmware 1.01 (w/ Hacks! And Upcoming New 645D Software for Tethering Support)

QuoteQuote:
Interesting facts about K-5 firmware 1.01:

1) MODSET.505

2) Interesting parameters for SYSPARAM.TXT file:

2.a) Noise reductions: FORCENR, DISABLENR, DISABLE_HW_DPC, DISABLE_EX_DPC, DISABLE_BLACK_DPC, FORCE_LEXP_DPC, FORCE_EX_DPC, FORCE_HW_DPC, DISABLE_ALL_NR

(DPC == Dark Pixel Current?)

2.b) DISABLE_BULB_ALG == Disable Bulb Algorith? Forced noise reduction?

2.c) ENABLE_ROLLING_CAPTURE, ENABLE_ROLLING_STILL == Electronic shutter ???

2.d) DISABLE_V_SHADING_CORR, DISABLE_H_SHADING_CORR, ENABLE_SUPER_HIGH_ISO_NR, ENABLE_DARK_FRAME_TV_RATIO == Those are tricks to foll DxO and show less noise ???

2.e) DISABLE_BAYER_ALL_FILTER == woo hooo! It's a BW camera

2.f) ENABLE_SR_TRIGGER_26KHZ == Very interesting. Is it a Shutter Blur bugfix option? (to ommit data about 26KHz fluctuations from SR)

3) Face Detection Library is same as in K-7 1.10 == v.1.2.118.4, Copyright (c) 2005-2009 by FotoNation. All rights reserved


11-18-2010, 02:50 AM   #2
Forum Member




Join Date: Oct 2010
Location: des veoux rd west, kennedy town
Photos: Gallery | Albums
Posts: 51
Hmmm I guess ricehigh (the pentax lover, in a different way) strikes again. Pentax some kinna microsoft that users like to hack. Cant they hack nikon d7000 to really proves that nikon doesn't have of this what pentax have they're claiming pentax magic.

...bauobao
11-18-2010, 03:51 AM   #3
Veteran Member




Join Date: Sep 2007
Photos: Gallery
Posts: 975
hmhh. if rolling shutter is electronic shutter, it might be interesting for higher speed sync (though i have no idea what kind of shutter speeds this sensor can achieve in "rolling" mode; some canon p&s's could go as high as 1/20,000 iirc, with the open firmware, so who knows); not much use if it will refuse to trigger the flash above 1/180 though .

in regards to bw: not needed, dcraw can do that (no bayer). that's not exactly b&w though (because the bayer filter was still there when shooting, so you don't have "grey" luminance on each pixel, instead each pixel will be biased depending where it lies in the bayer pattern). so you get a sharper image, but it will most likely look very strange.

interesting nevertheless. anybody tested any of this?
11-18-2010, 04:08 AM   #4
Veteran Member




Join Date: Jul 2009
Location: Russia
Posts: 343
I added proper support fro K5 firmware to my tool today.

I suggest you to be very careful with all Rice posts.
As usually this guy do not understand anything that he writes.

11-18-2010, 12:46 PM   #5
Veteran Member




Join Date: Sep 2007
Photos: Gallery
Posts: 975
what do you mean? he's the source of all knowledge pentax, right?

nice to see you're still around here, cheers! looking forward for your thoughts/findings
11-18-2010, 02:36 PM   #6
Veteran Member
inferno10's Avatar

Join Date: Feb 2007
Location: San Francisco, California
Posts: 342
Has anyone with a K-5 tried this and found the AF adjust screen? Not the one in the Custom menu, but the Debug-mode-based one?

- Jason
11-18-2010, 05:03 PM   #7
Veteran Member
jolepp's Avatar

Join Date: Oct 2010
Location: Finland
Photos: Albums
Posts: 3,196
As for hacking is there any information on the CPUs used on the Pentax cameras? Like, is this an ARM or some other architecture in general use?
11-18-2010, 06:15 PM   #8
Senior Member




Join Date: Oct 2010
Location: Adelaide, Australia
Photos: Albums
Posts: 251
Original Poster
QuoteOriginally posted by falconeye Quote
the Pentax PRIME-2 processor is a (possibly customized version of the) Fujitsu Milbeaut M5 processor
See this thread for more information, and a diagram of the processor architecture:

https://www.pentaxforums.com/forums/pentax-dslr-discussion/120535-larger-buff...ml#post1247155

11-19-2010, 01:38 AM   #9
Senior Member




Join Date: Mar 2009
Location: Italy
Posts: 174
QuoteOriginally posted by tr13 Quote
I added proper support fro K5 firmware to my tool today.

I suggest you to be very careful with all Rice posts.
As usually this guy do not understand anything that he writes.
How can i enter in debug Mode with the k-5
11-19-2010, 07:08 AM   #10
Veteran Member




Join Date: Jul 2009
Location: Russia
Posts: 343
It is Fujitsu for certain.
11-25-2010, 11:31 AM   #11
Forum Member




Join Date: Feb 2009
Location: Canada
Posts: 58
QuoteOriginally posted by tr13 Quote
It is Fujitsu for certain.
I think you are probably correct, but unfortunately the K-5 firmware file seems to be encrypted. I wrote a Fujitsu FR disassembler that worked great for the K10D firmware files, but I get garbage when I run it on the K-5 files.

- Phil
11-25-2010, 11:39 AM   #12
Veteran Member
jolepp's Avatar

Join Date: Oct 2010
Location: Finland
Photos: Albums
Posts: 3,196
QuoteOriginally posted by boardhead Quote
...but I get garbage when I run it on the K-5 files.
- Phil
Maybe it is compressed instead of encrypted? It might get extracted to RAM by a bootloader and run from there for speed/smaller amount of flash.
11-25-2010, 11:43 AM   #13
Veteran Member




Join Date: Sep 2007
Photos: Gallery
Posts: 975
tr13 has software on his website to work with the pentax firmware. he mentioned above that he updated it to work with k-5. don't know exactly how much it can "extract" though
11-25-2010, 11:53 AM   #14
Forum Member




Join Date: Feb 2009
Location: Canada
Posts: 58
Thanks. After some searching I found this useful post. Yes, the firmware is encrypted, but tr13 has figured out the decryption. Nice!

- Phil

Edit: Oops. That page is for the K20D, but if you follow the links you will find he has a tool to decrypt the K-5 firmware file too.

Last edited by boardhead; 11-25-2010 at 11:59 AM.
12-13-2010, 11:24 AM   #15
New Member




Join Date: May 2008
Posts: 4
The problem is, Pentax changed the filename oft the MODSET.505 to another filename
%08d.505 where "%08d" is an variable which is unknown (at the moment).

Thats the reason why you can not start debug mode at the moment.

The variable is used two more times in the firmware for a %08d.bin and a %08d.jpg file.

If you compare the decrypted .bin of new firmware release for the K5 to an older decrypted .bin firmware file of the K7, the difference is very easy to find.

The good news is: the rest of the debug menu seems to be almost unchanged.

How to get more information about the variable %08d ?

I would suggest to manipulate some firmware of the k7 for example (it is important that you are able to enter the debug mode) so that one of the file dump funktions dumps the variable
%08d as a filename, which makes it then visible for us.

for example with the SYSPARAM.TXT a file Dark%04d. raw is dumped for each image with the parameter STOREPREDARK.
The only thing you have to do ist to change Dark%04d. raw to Dark%08d. raw in the firmware an then capture one picture in debug mode.

That will force the firmware to offer the variable as a filename.

Last edited by rapptor; 12-13-2010 at 11:31 AM.
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!
blog, camera, dslr, firmware, k-5, k-5 ii, k-5 iis, k5, noise, pentax, pentax k-5, shutter
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
K-X new Firmware 1.01.00.10 Kenn100D Pentax DSLR Discussion 8 03-14-2011 05:21 PM
K5 firmware available rechmbrs Pentax News and Rumors 14 11-19-2010 05:25 PM
Hacking into a K-7 to disable NR above 30 seconds Nass Pentax DSLR Discussion 1 04-23-2010 09:30 AM
K-7 firmware 1.03 Jadran Pentax DSLR Discussion 3 02-17-2010 10:19 AM
Firmware 1.0 to 1.3 deludel Pentax DSLR Discussion 6 04-24-2008 08:35 PM



All times are GMT -7. The time now is 07:35 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