Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version Search this Thread
11-13-2020, 08:51 AM   #1
Senior Member
Robot camera's Avatar

Join Date: Mar 2013
Location: Milton Keynes, Buckinghamshire
Posts: 194
K20D in debug mode for SDM to screwdrive conversion, but now what?

My 16-50mm has the good old SDM failure, so of course I'm trying to convert it, using my K20D. Thanks to various posts in various places on this forum I have managed to get into debug mode so that I can extract the relevant file and alter it, but where do I get it from? What I see in my debug menu doesn't correspond with anything I've seen on the forum. I have these choices:

LENS ROM LOAD from FILE
LENS ROM SAVE to FILE
LENS ROM READ/WRITE
LENS CPU FWUP

That's all the menu items I can see with 'LENS' in them. The camera is on software version 1.04.

Also, is it possible to do the file alterations on a Mac, and then upload the resulting file so that the lens will read it?

11-13-2020, 10:03 AM - 1 Like   #2
Loyal Site Supporter
Loyal Site Supporter
UncleVanya's Avatar

Join Date: Jul 2014
Photos: Gallery | Albums
Posts: 28,394
I don't have a k20D. I think you would use save to file, then edit and return to camera and load from file.

Edit on mac is possible but you need an editor that doesn't force any formatting characters into the file.
11-13-2020, 10:10 AM - 1 Like   #3
Senior Member




Join Date: Feb 2013
Location: Canada
Photos: Albums
Posts: 198
QuoteOriginally posted by Robot camera Quote
My 16-50mm has the good old SDM failure, so of course I'm trying to convert it, using my K20D. Thanks to various posts in various places on this forum I have managed to get into debug mode so that I can extract the relevant file and alter it, but where do I get it from? What I see in my debug menu doesn't correspond with anything I've seen on the forum. I have these choices:

LENS ROM LOAD from FILE
LENS ROM SAVE to FILE
LENS ROM READ/WRITE
LENS CPU FWUP

That's all the menu items I can see with 'LENS' in them. The camera is on software version 1.04.

Also, is it possible to do the file alterations on a Mac, and then upload the resulting file so that the lens will read it?
i have done this with a K20d. You will want to save it to file. I would backup the file you saved then edit a copy to convert it to screwdrive. Then do a lens ROM load from file. They way i did it but it was years ago.
11-13-2020, 11:37 AM - 1 Like   #4
Loyal Site Supporter
Loyal Site Supporter
UncleVanya's Avatar

Join Date: Jul 2014
Photos: Gallery | Albums
Posts: 28,394
To be clear. The steps (save to file, edit, load from file) are what I do when I convert a lens. It's just that I'm not familiar with the k20D debug menu and mac editors that I'm not clearer in my advice.

11-13-2020, 03:05 PM - 1 Like   #5
Senior Member
Robot camera's Avatar

Join Date: Mar 2013
Location: Milton Keynes, Buckinghamshire
Posts: 194
Original Poster
UncleVanya and Kwong, I shall have a go and report back. Thank you both.
11-13-2020, 04:57 PM - 1 Like   #6
Moderator
Not a Number's Avatar

Join Date: Mar 2012
Location: Venice, CA
Posts: 10,526
You want a sector or hex editor for Macs to do the editing. Try a google search.
11-13-2020, 07:16 PM - 1 Like   #7
Loyal Site Supporter
Loyal Site Supporter
UncleVanya's Avatar

Join Date: Jul 2014
Photos: Gallery | Albums
Posts: 28,394
QuoteOriginally posted by Robot camera Quote
UncleVanya and Kwong, I shall have a go and report back. Thank you both.
Good luck!

11-14-2020, 03:20 AM - 2 Likes   #8
Moderator
Not a Number's Avatar

Join Date: Mar 2012
Location: Venice, CA
Posts: 10,526
Make a backup copy of the ROM file before you edit it too.
11-14-2020, 05:26 AM - 1 Like   #9
Senior Member




Join Date: Feb 2013
Location: Canada
Photos: Albums
Posts: 198
QuoteOriginally posted by Robot camera Quote
UncleVanya and Kwong, I shall have a go and report back. Thank you both.
Good luck if you do mess up i still have my LENSEEP.LNS files for both enable and disable SDM that i can send you.
11-14-2020, 08:43 AM - 1 Like   #10
Senior Member
Robot camera's Avatar

Join Date: Mar 2013
Location: Milton Keynes, Buckinghamshire
Posts: 194
Original Poster
Well, that seems to have worked. I'll just describe what I did.

Using my K20D, I got into the debug mode by placing a file I downloaded from a link on this forum, on this thread. It's on the very first post, and the link has 'Dropbox- Pentax Hack Files:' next to it.

The file had the title MODSET.442 (that's the whole title, including the suffix) and the file just has this text: [OPEN_DEBUG_MENU]
(Edited) Other camera models would need a different file.

I copied the file to an otherwise blank SD card, into the root directory I think it's called. To get into the debug menu, the camera is switched on with that SD card in it, with the menu button pressed and the card door open.

first 'VER: 1.04' appeared, (the software version in my case) then after a few seconds the debug menu appeared. I scrolled down to 'LENS ROM SAVE to FILE', pressed OK, and a few seconds later the file was on the SD card. It was named LENSEEP.LNS.

I copied it to the Mac, and when I double clicked on the file to open it, the Mac asked me which application I wanted to use. I chose TextEdit. I altered the file using the 'find' function to go to each example of C0 in column 3 that needed changing to 80, then saved and closed the file, then copied the file back to the card, having first removed the one on the SD card that came out of the camera.

I opened the debug menu as before, this time scrolled to 'LENS ROM LOAD from FILE' and pressed okay. A few seconds later it had loaded. To get out of debug mode, I just turned the camera off and shut the card door.

Mysteriously, a file named BACKUP.LNS has appeared on the SD card, which I think might have got there when I loaded up the altered lens file. It seems to be a copy of the unaltered LENSEEP.LNS file.

I don't know if it made any difference, but my Mac is running the High Sierra OS, version 10.13.6.

Thanks to all for their help and advice.

Last edited by Robot camera; 11-14-2020 at 03:51 PM.
11-14-2020, 10:05 AM - 1 Like   #11
Pentaxian
35mmfilmfan's Avatar

Join Date: Oct 2016
Location: Norfolk, UK
Posts: 4,322
Glad it worked, very encouraging for those of us that may need it in the future. Well done.
11-14-2020, 02:26 PM - 1 Like   #12
Senior Member




Join Date: Feb 2013
Location: Canada
Photos: Albums
Posts: 198
QuoteOriginally posted by Robot camera Quote
Well, that seems to have worked. I'll just describe what I did.

Using my K20D, I got into the debug mode by placing a file I downloaded from a link on this forum, on this thread. It's on the very first post, and the link has 'Dropbox- Pentax Hack Files:' next to it.

The file had the title MODSET.442 (that's the whole title, including the suffix) and the file just has this text: [OPEN_DEBUG_MENU]
I copied the file to an otherwise blank SD card, into the root directory I think it's called. To get into the debug menu, the camera is switched on with that SD card in it, with the menu button pressed and the card door open.

first 'VER: 1.04' appeared, (the software version in my case) then after a few seconds the debug menu appeared. I scrolled down to 'LENS ROM SAVE to FILE', pressed OK, and a few seconds later the file was on the SD card. It was named LENSEEP.LNS.

I copied it to the Mac, and when I double clicked on the file to open it, the Mac asked me which application I wanted to use. I chose TextEdit. I altered the file using the 'find' function to go to each example of C0 in column 3 that needed changing to 80, then saved and closed the file, then copied the file back to the card, having first removed the one on the SD card that came out of the camera.

I opened the debug menu as before, this time scrolled to 'LENS ROM LOAD from FILE' and pressed okay. A few seconds later it had loaded. To get out of debug mode, I just turned the camera off and shut the card door.

Mysteriously, a file named BACKUP.LNS has appeared on the SD card, which I think might have got there when I loaded up the altered lens file. It seems to be a copy of the unaltered LENSEEP.LNS file.

I don't know if it made any difference, but my Mac is running the High Sierra OS, version 10.13.6.

Thanks to all for their help and advice.
Well done
11-14-2020, 03:44 PM - 1 Like   #13
Loyal Site Supporter
Loyal Site Supporter
UncleVanya's Avatar

Join Date: Jul 2014
Photos: Gallery | Albums
Posts: 28,394
QuoteOriginally posted by Kwong Quote
Good luck if you do mess up i still have my LENSEEP.LNS files for both enable and disable SDM that i can send you.
Bear in mind the files are lens specific. Doing what you suggest can cause focusing issues. Please reread the threads. Some people failed to backup their files and tried other files with mixed but not great results.
11-14-2020, 03:55 PM   #14
Senior Member
Robot camera's Avatar

Join Date: Mar 2013
Location: Milton Keynes, Buckinghamshire
Posts: 194
Original Poster
QuoteOriginally posted by UncleVanya Quote
Bear in mind the files are lens specific. Doing what you suggest can cause focusing issues. Please reread the threads. Some people failed to backup their files and tried other files with mixed but not great results.
I've edited my post to point out that the file to get the camera into debug mode is not the same for each model.
11-14-2020, 04:21 PM   #15
Loyal Site Supporter
Loyal Site Supporter
UncleVanya's Avatar

Join Date: Jul 2014
Photos: Gallery | Albums
Posts: 28,394
QuoteOriginally posted by Robot camera Quote
I've edited my post to point out that the file to get the camera into debug mode is not the same for each model.
That's helpful. But I'm a little confused why you quoted me I was pointing out the actual lens rom file is specific to each individual lens and cannot be substituted by anyone else's file as was suggested.
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!
camera, debug, debug mode, file, k20d in debug, lens, menu, mode, mode for sdm, pentax help, photography, rom, sdm to screwdrive, troubleshooting
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
SDM to screwdrive conversion? camera_nut Pentax SLR Lens Discussion 10 02-24-2020 11:54 AM
For Sale - Sold: Pentax DA* 200/2.8 with screwdrive conversion baro-nite Sold Items 2 02-16-2020 07:35 AM
Help! How to access debug mode on Pentax K-5 on a Mac OS X (sdm lens to screwdrive) NW_Legacy Pentax DSLR Discussion 5 11-08-2018 05:03 PM



All times are GMT -7. The time now is 06:24 PM. | 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