Originally posted by Duc-Driver K5IIs don't work, can't get in debug menu with my camera.
Anyone an idea? Wrong numbers?
edit: For K5IIs it is 00077681.541
info: some can't read lensrom on K30!?
here the reply to duc-drivers post:
i have done it on the k-5II so it should not be any problem on the K-5IIs.
First time I tried that on the new firmware 1.06 on the K-5II, I made a mistake that could happen easily to someone else:
I created a file called "00077680.536" with ms-notepad in which i wrote following lines:
[DEBUG_MODE EN]
[SW_DEBUG_MENU EN]
[OPEN_DEBUG_MENU]
[VLENS_CONTROL]
following the guidance of other people who successfully switched in to debug mode on their cameras i also created a second file with the naming:
DEVELOP.MOD
MY failure was not to check for a second suffix. That sounds weird but ms-notepad seems to tend to append a .txt suffix behind the suffix you gave the file when you save it as pure text file.
So i saw the "00077680.536" i created was actually named "00077680.536.txt" when i reviewed the contents of the directory that contained all the debug stuff with the "dir" command in cmd.exe. (You get to the old commandline when pressing WIN+R and then type in "cmd.exe" and then hit enter)
Then i reviewed the other file.
So essentially important is that you check those files for a "post-suffix".
Second: Many Operating Systems handle their files CASE-sensitive. So it really matters if you name the files with CAPITAL-letters or not.
Third: It may be a problem with the text-encoding if you are on strangeOS. Some operating-systems, file systems, applications and who the heck knows what else colludes here, tend to save text files with other encodings. Onlywin-Users may believe that a pure text file could only be saved with ANSI encoding. That is definitely not true. There are a lot of encodings, though ANSI was the most common in winworld for a long time and UTF-8 is also very common now on many Operating-Systems.
For our "endeavour" only ANSI-encoding will work. (At least it worked for me)
Fourth:
According to all I heard the files main name(in my case: "00077680") is given by the model number of the camera. Then there is a special suffix that could depend very much on the firmware version you have on your camera.
How to get to know that number:
Go download the latest frmcrypt.exe with the link on
Welcome to Pentax Hack, download the firmware corresponding to the one that is installed on your camera from ricoh-imaging.
extract that firmware on to your hdd.
put the *.bin file (the firmware binary) into the same folder where your frmcrypt.exe sits.
Then go and run "cmd.exe" by hitting "WIN+R" and then type in "cmd.exe"
dir to the folder and then run:
frmcrypt.exe *.bin *.out
where "*.bin" has to be replaced by the filename of your firmware binary and "*.out" should be named to your liking.
Then you go and open that "*.out" file with notepad or some other text-editor.
hit ctrl+f.
then you type in "%03d". Hit ENTER.
the editor should highlight the string we have searched for. one or two words right to "%03d" you should find something like "C:\KB536.BIN" that is what we are searching for.
The 3 digits 536(in my case, with firmware 1.06) is what the suffix should be named with.
Fifth:
When you are done with that, the files "modelnr.%03d" and "DEVELOP.MOD"(which should or at least can be an empty file) should be copied to the root of the SD-Card in your Camera.
Sixth:
If you followed those steps, you should:
Turn off the Camera and turn it back on whilst pressing the MENU button(on the DSLR) AND leaving the card door open.
Do not hesitate. The screen may stay black for a short time, do not worry.
Given that you did all entries like i did(I wrote every entry to my modset in this post), you should see Development Menu1 on your screen.
there are many options. If you want to know what all that should be good for, you should read a pentax service manual. (at least for the older models you can download a file from "www.pentax-hack.info")
WARNING WARNING and another WARNING! Never do panic. Also do not do anything when you do not know what you are doing.
I also will have to read a service manual first before i can change or modify anything. there is no such thing as a neo. Everything that a human being can now, it has to learn before.
So actually there are only a few useful things that you can do with this, if you do not know how to program for microcontrollers and how to use the fujitsu IDE to develope software for cameras like this.
ONE thing that can be done is switch off SDM on lenses and force them to use the motor drive shaft instead for Autofocusing.
there are tutorials on the internet on how to do so.
one of them should be located at:
https://www.pentaxforums.com/forums/10-pentax-slr-lens-discussion/208353-how-...m-f-2-8-a.html
another one:
How to deactivate SDM and allow for screw drive autofocus with DA* 16-50mm f/2.8 - Le site des amateurs de PENTAX
and in german:
Deaktiverung des SDM an DA* Linsen -> HOW TO - DSLR-Forum
Please mind that every different lens may(or for sure will) need a different hexadecimal modification in its rom.!!!!!!!!!!!!!!!!!!!!!!!!
Another thing, that most people think is useful to them, is turning off "Dark Frame Substraction" this shortens the time the camera needs for postprocessing after taking long expoosure shots.
Maybe if we tinker a little bit, we could get better noise reduction on our cameras. But that would need much more experience and knowledge than i have at the moment.
Everything else you might like to change or tinker around leave that to the real Hackers and people with very much programming experience.
BACK TO THE MAIN PURPOSE OF ALL THIS -> down and upload lensroms.
maybe you panic and think "oh my good i am missing that menu on my camera. Oh no! All for the birds." Stay calm. i also almost lost hope. Because it may seem to you that there is only one page of options
when you switch on your camera into debug mode with the given flags in that modset file named with the number.
just go down the menu and e voila the next page of the debug menu appears. When you are on page 4 that is called "Development Menu4"
You then should see options:
LENS ROM DAT SD=>CAMERA
LENS ROM DAT CAMERA=>SD
Some more nerve saving tipps:
When you try to leave that Development Menu by pressing the MENU button, the screen stays black in first place.
Then you have to press the shutter release button halfway down.
After you have done that the camera shows a string on screen that says "DEBUG MODE".
When you see this string just press the INFO button and the normal display appears on the lcd.
It is almost as in normal mode, except when you press info a lot of times so you go and see the water level display, you can not go further. You are maybe stuck with that "DEBUG MODE" info on your screen.
in case of emergency, you always can go into the cameras normal menu where inbetween custom properties tab and the tab left to it, a test mode menu appears where you can switch off debug menu.
Very seldom, but it happens in some cases when you play with the real debug functions of the camera. The camera can get stuck awefully bad.
No turning back on, some info is steadily showing up on the monochrome lcd on top of the body.
Solution:
Do not panic. Switch off. Open the door pull out the battery. With no battery inside the camera turn the lever like you would do when switching it back on and push the shutter release button for at least 5 seconds.
Then turn the lever back into the OFF position, put back the battery in to the camera close all doors, pray to god and turn it back on.
REMBER YOU ARE DOING ALL THIS ON YOUR OWN RISK!
DO NOT BLAME ME, OTHER HACKERS OR PEOPLE WHO
PUT TUTORIALS LIKE THIS ONLINE, FOR ANY HARM THIS OR ALIKE PROCESSES DO TO YOUR PENTAX DSLR!!!!
And at DO NEVER!!! NEVER blame Pentax or Ricoh for it if you brick your Camera.
If you really bricked it, it is on your own decision to kindly ask a service partner if he could do anything for you or your camera.
he may offer you to buy it for spare parts.
Or you could send it to shodan, and be one of the first with a Custom Hack Pentax if you talk with him about it first and he agrees to sending you the camera back on your own cost.
From here on you should be cool with doing lensrom modding according to those tuts i gave you the link for in this post.
If you do not see those options in Development Menu 4 or do not know how to go on further, then please do yourself a favor and stop. just give up.
if everything goes fine, help is already on the way.
There is one person trying to deliver a complete solution for all your needs that is a kind of CHDK or Magic Lantern for Canon Cameras.
Maybe you already read his first post in this thread.
If you want to help him, try to send private messages to him. AFAIK he is in need of testers, when he is done with coding, and he would be happy if some peeps would donor him actual pentax DSLR models that maybe have some malfunctions like a destroyed display(i guess he could hook up an hdmi display for his work on the cameras) or a shutter that jams sometimes.(So that those malfunctions would not affect his work on extending firmware functions of the camera).
As i read it, he will work everything out for the K-30 in first place, and then (maybe according to what models he gets donored first) for the other Pentax DSLR's.
So i wish you much luck with whatever you trying to do with it. Go and support Shodan!
I hope i helped some people with this.