Web Analytics RiceHigh's Pentax Blog: UPDATED: New Method to Access the Debug Mode of Various Pentax DSLRs

Tuesday, August 18, 2009

UPDATED: New Method to Access the Debug Mode of Various Pentax DSLRs

(8-19: Updated with more details and exact instructions of mine - There is a major error (intentional?) in the Pentax Hack for their told operation procedure to make it works, just read more carefully below if you want to "risk"! It does work! ;-))

Here the new excellent Russian Pentax DSLR hack site strikes again! They have posted the simplest method/hack (ever!) to enter the debug mode of various Pentax and Samsung DSLRs, namely, the K10D/GX-10 (FW 1.10), K20D/GX-20, K200D, K-m and K-7!

http://www.pentax-hack.info/documents/blog.php?entry_id=1249616275

So, what you need to do is just to create a text file named as"MODSET.XXX" that is to copied to the root directory of your SD card. In that file, just type the command line(s) that you wish to be executed (by pressing the DELETE (NOT MENU) button while turning on the camera). To enter the Debug Mode, the MODSET.XXX file only needs to have the following line (for my K-m, it is named as MODSET.464):-

[DEBUG_MODE EN]

The camera has now been put into the Debug Mode, the Debug Mode Menu with Sub-menu items will appear forever until another command is executed to tell the camera to get out of the Debug Mode (will tell you how to do it in the next paragraph). Next, press the MENU button again, then the Debug Mode menu tab will appear and can be found between the original Set-up menu tab no. 3 and the Custom Setting menu tab no. 1. The new tab is just named "Set-up". To do AF adjustment, just go into the "AF TEST" sub-menu and then under which enter the "FocusCorr" value (in um). The default value of the FocusCorr is 0 um.

To Turn Off the Debug Mode, simply modify the command line(s) in the same file to and repeat the above procedure:-

[DEBUG_MODE DIS]

Enjoy and happy hacking! This "feature" is particular valuable for those Pentax models without any focus adjustment feature, like the K200D and the K-m.

As a general Reminder and Warning: Do all these hacking and entering the Debug Mode at your own risk. If you don't know what you are doing, my recommendation is that you should not try it! :-)

I have successfully entered the Debug Mode and change some settings (but reset to defaults afterwards), Screen Captures of the Debug Mode Menus and Displays of the K-m is to follow!! (Hopefully within this week - I shall see if I have the time to do it :-))

Update: The K-m Debug Mode Screen Captures can be found Here!

Comments (22)

Loading... Logging you in...
  • Logged in as
I'm following the P-Hack site with growing exitement, as a passionated part-time programmer I hope that these ahcks someday give me the possibility to overcome some of the limitations of my K-m, especially the crumbled shooting mode option (wich forces you to select wether to bracket or to get mirror-lockup-selftimer). Most exiting is the discovery of the scripting language that the OS contains.
Lets see what our friends find out next!
Maybe someday the Pentax gets the mostawaited Open OS Plattform? Btw, did anyone try to install a linux flavour on the K-m :-)
Decades ago when I was still young, I once did programming works for firmware for different electronic appliances (Japanese brands) at work for a while. I wrote both low-level assembly language and primitive C like languages to do the jobs. I think it is not easy to do any modification to the complied firmware codes generated by the compiler. For significant modifications, we really need the source codes (and the development kits as well). I think with today's development tool kits for firmware development which are even more advanced and sophisticated, disassembling of those generated machine codes are almost just impossible. (not even to say to add in new functions and features! :-))
well, Impossible? i' not sure about it.. if is possible with canon why not with pentax? The 5dmkII that's pretty new have an hacked firmware in order to correct some defect in movie mode.. and i doubt Canon give away the development kit...
What is needed, i think are good crackers, software crackers community is not mmh easy to approach but there's a long history of software first cracked then corrected by the cracker (mp3 code..for an example)...
The thing could be how.. attract decoders, crackers and programers,
The linux way could be interestng, fast code, reliable, supported and continuously upgraded,better algorithms, better in camera functions, a camera always new...
A dream...
As I've said, the opened firmware file contains compiled codes. It does not like software or OSes which can more easily be cracked. To alter firmware for to add new features or to change the UI, source codes and compiler (with basic libraries) are needed.

When you see someone can "hack" the firmware and wrote a new one, those people actually got access to the secret technical information and are insiders or they knew the insiders that gave the essential information to them.

In fact, the above new Pentax hack site hosts many information that can only be knew by insider, very obviously, too.
1 reply · active 546 weeks ago
i firmly believe this as the pentax hack site gives the decryption patch/software without the switches. near impossible to work, till date i have not seen a single post in any site to state how to work frmcrypt.exe
Did you manage to find AF correction option in your Km? Cuz I did not with my k200d...
7 replies · active 256 weeks ago
I haven't tried it myself but surely will do it soon. If succeed, I shall capture the debug mode screens and menus and will post them here. In the meantime, you can read those of the K100D first and see if it could help:-

http://ricehigh.blogspot.com/2007/02/screen-captu...
Thanks! I was looking for the AF adjustment in the wrong place...
Kris Sasankan's avatar

Kris Sasankan · 809 weeks ago

Can you please tell me how you did it for k200d. I was able to get into debug mode, enable debug menu, scroll down, go to AF PINT DISP, AF PINT OFFSET, then I cannot scroll down to PINT SHIFT. what am I doing wrong? I have front focus issues, how do I adjust. Thanks.

kris
Maybe if this can be useful?

http://ricehigh.blogspot.com/2009/08/k-m-debug-mo...

I don't have a K200D btw so I can try it out for you..
Never mind. Your website has been of immense help. I have been a Pentax devotee for over 20 years, mostly of 35 mm era. My first digital DSLR was K200D (mainly for AA batteries and weather seal). Everything was perfect except for terrible front focusing with my 1.7 50mm. Had no way to compensate for it. Hence I gave it to my son (12 yr) and got a K20D (new one for 590 USD, EBAY PRODIGITAL2000), perfect, I could adujust AF fine tune. I figured out how to adjust AF fine tuning in K200D, thanks to your instructions. I did the following:

make a text file in the root folder of SD card.
name it MODSET.445
type the following in the text file.

to enable debug mode.
[DEBUG_MODE EN]

to disable debug mode.
[DEBUG_MODE DIS]

put the SD card in the camera
leave the card door open!

Power on while holding the menu button.
camera enters debug mode.
press menu button again.
go to setup menu (right arrow twice)
looks normal!!
press up arrow once
go to AF TEST
voila!
adjust AF compensation.

run debug disable.

[DEBUG_MODE DIS]

put the SD card in the camera
leave the card door open!

Power on while holding the menu button.

cheers.
kris.
Thanks for sharing!
It´s easier to buy a new camera...after been a lifetime Pentax user (Since 1966) now , Kr´s, K7´s and K5II´s make me hate the brand...lucky that I always had a backup...in my case Nikon...
RH, none of what you say about the impossibility of reversing the compiled code, adding code, and the necessity of insider information is true. All of the "inside information" was determined by looking at disassembled code. It is not easy to read but it can be done with good tools.

The name of the file is not "MODSET.XXX". The "XXX" depends on the camera model. Hope the other information on this site is more accurate...
Blog entry updated, please re-try.
RH, I cannot get debug mode with your tip for my GX-20.
May I ask you more detail?
Thank you.
2 replies · active 787 weeks ago
The method should not work for the GX-20 as Samsung have their own firmware for their cameras. I have no further information on how to enter the debug mode of the Samsung DSLRs.
Go to the source: http://www.pentax-hack.info/documents/debug.html

There it says that the modset file for the GX-20 is called MODSET.454
That is for firmware versions 1.01 and 1.03
I Done all things mentioned above for debug mode enable and Disable for pentax Km camera,I tryied lots of times but there is no changing in my camera.can you pls send file with comand for km camera.
1 reply · active 790 weeks ago
Download the K-x MODSET file from my following page, rename it to .464 for the file extension and try again:-

http://ricehigh.blogspot.com/2010/01/k-x-debug-mo...
A useful post for sure. Why can't this blog be more like this anymore? Where's the love? :(
can any one suggest the modset for an experimental k-m, it reads as; PENTAX K-M, VER:0.10

Post a new comment

Comments by