HOWTO: fix button configuration

Support requests for wrong Fw uptading and ressurection of dead players.

HOWTO: fix button configuration

Postby ian_hawdon » Wed Oct 19, 2005 4:22 pm

This is a lengthy procedure; it will make you wonder why you tried to upgrade the thing in the first place!!!

Anyway here we go :wink:

The story so far?

You have just killed your player, and the only firmware that will work, is one with the buttons in the wrong order!

Important: all the buttons have to be there, but in wrong order

The tools you will need:

Z80 Simulator IDE (the trial will do :-D)
2085RES (from our yahoo page)
And
S1FWX (from wires page at http://www.s1mp3.de)

Ok, we are now ready to reprogram!

1. Firstly, check if the firmware you flashed (and worked) is encrypted. You can tell because the encrypted version took about 3 minutes to flash and the non encrypted version took about 3 seconds!!! If it is NOT encrypted, skip step 2.


2. If it is encrypted, use S1FWX to decrypt it:

Code: Select all
C:\S1FWX>s1fwx l xxxxxxxx.bin


This should create a file called xxxxxxxx.bi~

Rename this file so it ends with .bin


3. Using S1FWX, unpack the firmware:

Code: Select all
C:\S1FWX>s1fwx x xxxxxxxx.bin

                       [b]After it has finished[/b]

C:\S1FWX>s1fwx x FWIMAGE.FW


Image

4. Open Z80 Simulator IDE and choose Tools --> disassembler

When the window opens, choose file --> select program

Select the file KY_HARD.DRV (you will need to change the file types on the bottom to All Files (*.*)

Then Tools --> Disassemble

Save the file then use notepad to open it.

5. Look from about line 0500

From there you are looking for references like

Code: Select all
0550   0256 3E 01               LD A,01H


The LD A,01H is a button (to be more precise: LD A,xxH is a button!)

The reference of that button is at 0257 (256 with one added because that line shows two references and we are interested in the second one)

Using the table below, figure out what your buttons are and what they should be, and their reference number (the second number on that line plus 1 (P.S. it is in hexadecimal [i.e. 0 1 2 3 4 5 6 7 8 9 A B C D E F]))

Code: Select all
+--------+-----------+
| Number |   Action  |
+--------+-----------+
|   00   |    Null   |
|   01   | Play/Stop |
|   02   |  Loop Key |
|   03   |    Vol -  |
|   04   |    Vol +  |
|   05   |    Prev   |
|   06   |    Next   |
|   07   |    Enter  |
|   10   |    Mode   |
|   11   |    rec    |
|   12   |     EQ    |
|   21   |  Standby  | (not used)
|   22   |  Hold On  |
|   24   |  Hold Off |
+--------+-----------+
|   30   |Short Press|
|   31   | Long Press|
+--------------------+



These should be right now, if not, email me: ian <dot> hawdon <at> gmail <dot> com

5. Next, fire up 2085RES, press tab then hit enter this should open a Open File dialogue, open your firmware (the .bin file)

6. Choose FWIMAGE.FW then KY_HARD.DRV

Image

7. Find the reference number to your code.

E.G. if the line said:

Code: Select all
0550   0256 3E 01               LD A,01H


You would look for number 0257

Scroll down to 0x250 and count each two digit number from left to right up to 7 remember, the first number is 0 (0x250)

You should reach a two digit number called 01

Image

That means the button is currently assigned to Play, with the help of your player and the table, find out what it is meant to be.

Change the number in 2085RES

8. Continue to do that for the rest of the buttons and then when you are finished, goto were it says the version number (usually 3042) and use the back tab function. (that is shift then the tab button.

9. Make a file name.

10. open your player and put it into recovery mode ( http://www.s1mp3.org/en/docs_deadrec.php#short )

11. then flash your new firmware.

12. all the buttons SHOULD work now.
Last edited by ian_hawdon on Fri Apr 13, 2007 11:10 am, edited 15 times in total.
Who is General Error and why is he reading my hard drive? :D

If any of my posts have helped you, or if you're interested, click this link and sign up to help me get a free iPhone: http://apple.real-incentives.com/40461
User avatar
ian_hawdon
Site Admin
Site Admin
 
Posts: 978
Joined: Wed Aug 24, 2005 7:00 pm
Location: Newcastle Upon-Tyne, England

Postby Crunchy » Wed Oct 19, 2005 4:49 pm

Oh, great job!
promoted to sticky status!
things to do before I die:
1) achieve immortality
all other things can wait

player:
512MB, no FM, 7 colours, 3 animations
board number: LJD-02+3V0.2 2005-01-28
User avatar
Crunchy
Site Admin
Site Admin
 
Posts: 563
Joined: Wed Aug 24, 2005 11:00 pm
Location: Nijmegen, Netherlands, Europe

Postby ian_hawdon » Wed Oct 19, 2005 4:50 pm

Yeah, thats what i was hoping for, (i obviously couldn't make it sticky my self!!!) :lol:

BTW: Wladston, the images are hosted at the main site (just so they wouldn't go AWOL (like illhostit :D) )
Who is General Error and why is he reading my hard drive? :D

If any of my posts have helped you, or if you're interested, click this link and sign up to help me get a free iPhone: http://apple.real-incentives.com/40461
User avatar
ian_hawdon
Site Admin
Site Admin
 
Posts: 978
Joined: Wed Aug 24, 2005 7:00 pm
Location: Newcastle Upon-Tyne, England

Postby wladston » Wed Oct 19, 2005 7:14 pm

Ian,

WOW ! Neat topic!! :)

I think it's a nice info to put on the advanced guides page ....

Can I ?

Also, I fell honored someone finaly used the upload files system i took so long to ajust ... :)
User avatar
wladston
Site Admin
Site Admin
 
Posts: 1721
Joined: Tue Aug 23, 2005 8:54 pm
Location: Belo Horizonte, MG - Brazil

Postby ian_hawdon » Wed Oct 19, 2005 7:21 pm

Ian,

Hello :-)

WOW ! Neat topic!! :)


Thanks, it took about an hour to write :D

I think it's a nice info to put on the advanced guides page ....

Can I ?


Sure :D

Also, I fell honored someone finaly used the upload files system i took so long to ajust ... :)


No Problem, i thought this would be a permanent topic, so it needed permanent storage for external files :D
Who is General Error and why is he reading my hard drive? :D

If any of my posts have helped you, or if you're interested, click this link and sign up to help me get a free iPhone: http://apple.real-incentives.com/40461
User avatar
ian_hawdon
Site Admin
Site Admin
 
Posts: 978
Joined: Wed Aug 24, 2005 7:00 pm
Location: Newcastle Upon-Tyne, England

Postby wladston » Wed Oct 19, 2005 7:41 pm

it's on .. :)
Check on advanced guides .. :)
User avatar
wladston
Site Admin
Site Admin
 
Posts: 1721
Joined: Tue Aug 23, 2005 8:54 pm
Location: Belo Horizonte, MG - Brazil

Postby wladston » Wed Oct 19, 2005 11:40 pm

Ian, I have made some mods on your guide .... just on formating and etc ...
hope you like it!

Please say weather you like or not, or tell the points you want to change ... I guess the end of the guide can be a bit more concise, do avoid the lots of empty subtitles ....

Thanks again for the great guide! 8) :wink:
User avatar
wladston
Site Admin
Site Admin
 
Posts: 1721
Joined: Tue Aug 23, 2005 8:54 pm
Location: Belo Horizonte, MG - Brazil

Postby ongbs » Sat Nov 05, 2005 7:55 am

Hi,

Just to share with you all....

I've flashed a wrong firmware into my 1GB MP4.
It worked but all the buttons function mesh-up, I like the new firmware interface so I tried to change the KY_HARD.DRV following this guide but no luck...too complicated!

I've a better way to modify back the correct buttons function provided you can find a firmware the match your player.

Just open the working buttons firmware using 2085RES.
Go to the "KY_HARD.DRV" and copy all the value on the right hand side.
Open the new firmware and paste all the value into the "KY_HARD.DRV".
Save the updated firmware into another name and try to flash to your player.....hope this help cos it work for me!!!
ongbs
 
Posts: 1
Joined: Sat Nov 05, 2005 7:30 am

Postby ian_hawdon » Sat Nov 05, 2005 3:05 pm

thats good that worked for you, but it didn't work for me, the two firmware that worked on my player, had different ways of using the screen (aka, OLED screen protection)

when i copy and pasted the ky_hard.drv to my new firmware, the screen was ALWAYS dim! and i could not get back out of it, even with the contrast up to full!

P.S. locking the post, if you can tell me the hold switch configurations then email me at:

ian <dot> hawdon <at> gmail <dot> com
Who is General Error and why is he reading my hard drive? :D

If any of my posts have helped you, or if you're interested, click this link and sign up to help me get a free iPhone: http://apple.real-incentives.com/40461
User avatar
ian_hawdon
Site Admin
Site Admin
 
Posts: 978
Joined: Wed Aug 24, 2005 7:00 pm
Location: Newcastle Upon-Tyne, England

Postby ian_hawdon » Thu Nov 24, 2005 9:38 pm

Ok, we seem to have a number for the Hold switch now, but i do rember that somone's firmware managed to reverse the switch (so off became on and vice versa)

so the next todo is this:

Find the HOLD OFF number! :wink:
Who is General Error and why is he reading my hard drive? :D

If any of my posts have helped you, or if you're interested, click this link and sign up to help me get a free iPhone: http://apple.real-incentives.com/40461
User avatar
ian_hawdon
Site Admin
Site Admin
 
Posts: 978
Joined: Wed Aug 24, 2005 7:00 pm
Location: Newcastle Upon-Tyne, England

Postby ian_hawdon » Wed Feb 15, 2006 7:54 pm

ok, it seems that the table above is inaccurat, i have now corrected 01 to ON/OFF, if you find any more email me

ian.hawdon <@> gmail.com
Who is General Error and why is he reading my hard drive? :D

If any of my posts have helped you, or if you're interested, click this link and sign up to help me get a free iPhone: http://apple.real-incentives.com/40461
User avatar
ian_hawdon
Site Admin
Site Admin
 
Posts: 978
Joined: Wed Aug 24, 2005 7:00 pm
Location: Newcastle Upon-Tyne, England

Postby ian_hawdon » Mon Apr 09, 2007 11:59 am

Ok, some news

01 is now confirmed to be Play/Pause!

Enter is now confirmed to be 07 (can anyone tell me what "enter" did, as it didn't really function on the player i had)

Anyone know what 08 and 09 do and i have seen 12 in the Hex editor too

Switching the player off (standby) is controlled by 01 (play/pause) Turning it back on is controlled by the standby.ap file. I haven't had a chance to hack that file yet ;-)

email answers to the usual place:

ian <dot> hawdon <at> gmail <dot> com
Who is General Error and why is he reading my hard drive? :D

If any of my posts have helped you, or if you're interested, click this link and sign up to help me get a free iPhone: http://apple.real-incentives.com/40461
User avatar
ian_hawdon
Site Admin
Site Admin
 
Posts: 978
Joined: Wed Aug 24, 2005 7:00 pm
Location: Newcastle Upon-Tyne, England

Postby ian_hawdon » Tue Apr 10, 2007 6:33 pm

Ok, i think the table is complete now (finally!)
Who is General Error and why is he reading my hard drive? :D

If any of my posts have helped you, or if you're interested, click this link and sign up to help me get a free iPhone: http://apple.real-incentives.com/40461
User avatar
ian_hawdon
Site Admin
Site Admin
 
Posts: 978
Joined: Wed Aug 24, 2005 7:00 pm
Location: Newcastle Upon-Tyne, England


Return to Wrong Fw update/ Recover dead devices

Who is online

Users browsing this forum: Bing [Bot] and 1 guest



cron