Hooray!!! Rockchip SDK!
1Likes

 |
|

17th Sep 2009, 4:57 am
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
I think the next step is to extract all the 400x240 images from my current firmware to replace the 320x240 images in this build and modify the source to suit.
Then build a new BMP0.bin to match my player display.
But the good news is now I can test it out on my PC instead of risking messing up my player. What joy!
__________________
-----------------------------------------------------------------------------------------------------------
|

17th Sep 2009, 12:14 pm
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
Here is a precompiled simulator including source if anyone wants to have a play. http://www.sendspace.com/file/kvfugi
Just copy the RockchipEmu.exe, SDL.dll and the RK27dll.dll from the debug folder to the root of the c drive. It expects a "RESOURCE" folder containing BMP0.bin and the fonts in c drive too.
here is the resource folder too :- http://www.sendspace.com/file/3ow370
Needs dotnet framework 3.5 I'm afraid. sorry folks!
__________________
-----------------------------------------------------------------------------------------------------------
Last edited by knob; 18th Sep 2009 at 9:56 am.
|

18th Sep 2009, 5:39 am
|
 |
Senior Member
MPx Junkie
|
|
Join Date: Mar 2008
Posts: 300
|
|
RockchipEmu
__________________
Heroes of Might and Magic V - The Best Game In The World !
Try to play !
Last edited by WIZARD; 18th Sep 2009 at 9:09 am.
|

18th Sep 2009, 8:52 am
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
So sorry I uploaded the wrong .exe (for 400x240) should be this one:-
Send big files the easy way. Files too large for email attachments? No problem!
Just replace RockChipEmu.exe with this.
__________________
-----------------------------------------------------------------------------------------------------------
|

18th Sep 2009, 9:10 am
|
 |
Senior Member
MPx Junkie
|
|
Join Date: Mar 2008
Posts: 300
|
|
RockchipEmu
Thanks, it's OK now.
Please, anybody, tell me how to launch the games and
install the firmware to this virtual player;
there's no a manual to read from. 
(except some chinese, but it's hard to translate even with Google)
P.S. For those guys who wants RockchipEmu all-in-one archive:
Rockchip Emulator.rar
Last edited by WIZARD; 18th Sep 2009 at 10:00 am.
|

18th Sep 2009, 9:46 am
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
The author of the front end (sid6581) is the really the expert on this, but afaik the source has to be compiled using ADS to produce the firmware.
Then the RK27dll.dll is created from the firmware using vc++.
So each time you modify the source you need to compile both the firmware using ADS and a new RK27dll.dll using vc++ to test it out using the simulator front end RockChipEmu.exe.
__________________
-----------------------------------------------------------------------------------------------------------
|

18th Sep 2009, 1:14 pm
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
edited sysconfig.h for my player screen size
Quote:
#define MAX_Module 11
#else
#define MAX_Module 10
#endif
//LCD 宽度和高度.
//#define LCD_W 320
//#define LCD_H 240//knob
#define LCD_W 400
#define LCD_H 240
/*--------------------------------------------------*/
/*--------------------------------------------------*/
// 6 M,视频 BUFFER,和 系统复用.
#if (ROCK_CAMERA == 0)
|
Added 24 400x240 startup .bmps and a set of 400x240 background skins, generated a new BMP0.bin
recompiled a new rk27dll.dll
and it works out ok on the simulator, now 400x240 btw 
There are loads of screen drivers, but how to find the right one for my player?
There is object code for a gameboy emulator, drivers for 2 types of wolfson audio chip and touch screen control driver.
It looks like there is everything needed to make a firmware for just about any RK27xx series player - it just needs sorting though.
I think as soon as I can find the right screen driver it will be as easy as pie!
__________________
-----------------------------------------------------------------------------------------------------------
Last edited by knob; 18th Sep 2009 at 3:22 pm.
|

19th Sep 2009, 1:19 am
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
hi AleMaxx
Here is my base.rkw :- http://www.sendspace.com/file/lzfbyq
Nearly all the keys worked ok, without any configuration, I think just the volume down didn't, but that would be easy to remap I think. But I could navigate blind, play music, FM radio.
I wonder if it could be possible to create a utility that could get the display setting from base.rkw, Is that what you are thinking or is there an easier way?
The chinese .pdf doc for the emulator gives some clues I think.
btw my player is in the pic above, it's not a touch screen which makes the job a bit easier, but I have seen code for touch screen in the SDK.
regards knob
__________________
-----------------------------------------------------------------------------------------------------------
Last edited by knob; 19th Sep 2009 at 1:26 am.
|

19th Sep 2009, 4:31 am
|
|
Member
Keen on MPx players
|
|
Join Date: Sep 2007
Posts: 68
|
|
Hi knob,
actually I was unable to determine what display you exactly have, but its interfaced with 18bit data bus and its an MCULCD (lcd panel with build in controller). Here is the init function from your firmware (I hope I dont get arrested for spamming):
Code:
ROM:60081310 Mcupanel_PowerOnInit ; CODE XREF: LcdCtrl_Configure+FC
ROM:60081310 STMFD SP!, {R3-R5,LR}
ROM:60081314 MOV R1, #1
ROM:60081318 MOV R0, #0x600
ROM:6008131C BL Mcupanel_RegSet
ROM:60081320 MOV R0, #0xA
ROM:60081324 BL delay_nops
ROM:60081328 MOV R1, #0
ROM:6008132C MOV R0, #0x600
ROM:60081330 BL Mcupanel_RegSet
ROM:60081334 MOV R0, #0xA
ROM:60081338 BL delay_nops
ROM:6008133C MOV R1, #0
ROM:60081340 LDR R0, =0x606
ROM:60081344 BL Mcupanel_RegSet
ROM:60081348 MOV R1, #0
ROM:6008134C MOV R0, #1
ROM:60081350 BL Mcupanel_RegSet
ROM:60081354 LDR R1, =0x10B8
ROM:60081358 MOV R0, #3
ROM:6008135C BL Mcupanel_RegSet
ROM:60081360 MOV R1, #0x100
ROM:60081364 MOV R0, #2
ROM:60081368 BL Mcupanel_RegSet
ROM:6008136C MOV R1, #0
ROM:60081370 MOV R0, #6
ROM:60081374 BL Mcupanel_RegSet
ROM:60081378 LDR R1, =0x808
ROM:6008137C MOV R0, #8
ROM:60081380 BL Mcupanel_RegSet
ROM:60081384 MOV R1, #1
ROM:60081388 MOV R0, #9
ROM:6008138C BL Mcupanel_RegSet
ROM:60081390 MOV R1, #0x10
ROM:60081394 MOV R0, #0xB
ROM:60081398 BL Mcupanel_RegSet
ROM:6008139C MOV R1, #0
ROM:600813A0 MOV R0, #0xC
ROM:600813A4 BL Mcupanel_RegSet
ROM:600813A8 MOV R1, #0
ROM:600813AC MOV R0, #0xF
ROM:600813B0 BL Mcupanel_RegSet
ROM:600813B4 MOV R1, #0x3100
ROM:600813B8 MOV R0, #0x400
ROM:600813BC BL Mcupanel_RegSet
ROM:600813C0 MOV R1, #1
ROM:600813C4 ORR R0, R1, R1,LSL#10
ROM:600813C8 BL Mcupanel_RegSet
ROM:600813CC MOV R1, #0
ROM:600813D0 LDR R0, =0x404
ROM:600813D4 BL Mcupanel_RegSet
ROM:600813D8 MOV R1, #0
ROM:600813DC MOV R0, #0x500
ROM:600813E0 BL Mcupanel_RegSet
ROM:600813E4 MOV R1, #0
ROM:600813E8 LDR R0, =0x501
ROM:600813EC BL Mcupanel_RegSet
ROM:600813F0 LDR R1, =0x18F
ROM:600813F4 LDR R0, =0x502
ROM:600813F8 BL Mcupanel_RegSet
ROM:600813FC MOV R1, #0
ROM:60081400 LDR R0, =0x503
ROM:60081404 BL Mcupanel_RegSet
ROM:60081408 MOV R1, #0
ROM:6008140C LDR R0, =0x504
ROM:60081410 BL Mcupanel_RegSet
ROM:60081414 MOV R1, #0
ROM:60081418 LDR R0, =0x505
ROM:6008141C BL Mcupanel_RegSet
ROM:60081420 MOV R1, #0x11
ROM:60081424 MOV R0, #0x10
ROM:60081428 BL Mcupanel_RegSet
ROM:6008142C MOV R0, #0xA
ROM:60081430 BL delay_nops
ROM:60081434 LDR R1, =0x202
ROM:60081438 MOV R0, #0x11
ROM:6008143C BL Mcupanel_RegSet
ROM:60081440 MOV R1, #0x300
ROM:60081444 MOV R0, #0x12
ROM:60081448 BL Mcupanel_RegSet
ROM:6008144C MOV R0, #0xA
ROM:60081450 BL delay_nops
ROM:60081454 LDR R1, =0x21E
ROM:60081458 MOV R0, #0x20
ROM:6008145C BL Mcupanel_RegSet
ROM:60081460 LDR R1, =0x202
ROM:60081464 MOV R0, #0x21
ROM:60081468 BL Mcupanel_RegSet
ROM:6008146C MOV R1, #0x100
ROM:60081470 MOV R0, #0x22
ROM:60081474 BL Mcupanel_RegSet
ROM:60081478 MOV R1, #0
ROM:6008147C MOV R0, #0x90
ROM:60081480 BL Mcupanel_RegSet
ROM:60081484 MOV R1, #0
ROM:60081488 MOV R0, #0x92
ROM:6008148C BL Mcupanel_RegSet
ROM:60081490 LDR R1, =0x101
ROM:60081494 MOV R0, #0x300
ROM:60081498 BL Mcupanel_RegSet
ROM:6008149C MOV R1, #0
ROM:600814A0 LDR R0, =0x301
ROM:600814A4 BL Mcupanel_RegSet
ROM:600814A8 MOV R1, #0x16
ROM:600814AC ADD R0, R1, #0x2EC
ROM:600814B0 BL Mcupanel_RegSet
ROM:600814B4 LDR R1, =0x2913
ROM:600814B8 LDR R0, =0x303
ROM:600814BC BL Mcupanel_RegSet
ROM:600814C0 LDR R1, =0x260B
ROM:600814C4 MOV R0, #0x304
ROM:600814C8 BL Mcupanel_RegSet
ROM:600814CC LDR R1, =0x101
ROM:600814D0 ADD R0, R1, #0x204
ROM:600814D4 BL Mcupanel_RegSet
ROM:600814D8 LDR R1, =0x1204
ROM:600814DC LDR R0, =0x306
ROM:600814E0 BL Mcupanel_RegSet
ROM:600814E4 LDR R1, =0x415
ROM:600814E8 LDR R0, =0x307
ROM:600814EC BL Mcupanel_RegSet
ROM:600814F0 LDR R1, =0x205
ROM:600814F4 MOV R0, #0x308
ROM:600814F8 BL Mcupanel_RegSet
ROM:600814FC LDR R1, =0x303
ROM:60081500 ADD R0, R1, #6
ROM:60081504 BL Mcupanel_RegSet
ROM:60081508 LDR R1, =0xE05
ROM:6008150C LDR R0, =0x30A
ROM:60081510 BL Mcupanel_RegSet
ROM:60081514 LDR R1, =0xD01
ROM:60081518 LDR R0, =0x30B
ROM:6008151C BL Mcupanel_RegSet
ROM:60081520 LDR R1, =0x10D
ROM:60081524 MOV R0, #0x30C
ROM:60081528 BL Mcupanel_RegSet
ROM:6008152C LDR R1, =0x50E
ROM:60081530 LDR R0, =0x30D
ROM:60081534 BL Mcupanel_RegSet
ROM:60081538 LDR R1, =0x303
ROM:6008153C ADD R0, R1, #0xB
ROM:60081540 BL Mcupanel_RegSet
ROM:60081544 LDR R1, =0x502
ROM:60081548 LDR R0, =0x30F
ROM:6008154C BL Mcupanel_RegSet
ROM:60081550 MOV R1, #1
ROM:60081554 MOV R0, #7
ROM:60081558 BL Mcupanel_RegSet
ROM:6008155C MOV R1, #1
ROM:60081560 MOV R0, #0x110
ROM:60081564 BL Mcupanel_RegSet
ROM:60081568 MOV R1, #0x60
ROM:6008156C ADD R0, R1, #0xB2
ROM:60081570 BL Mcupanel_RegSet
ROM:60081574 MOV R0, #0x32
ROM:60081578 BL delay_nops
ROM:6008157C LDR R1, =0x16B0
ROM:60081580 MOV R0, #0x100
ROM:60081584 BL Mcupanel_RegSet
ROM:60081588 MOV R0, #0xA
ROM:6008158C BL delay_nops
ROM:60081590 LDR R1, =0x147
ROM:60081594 SUB R0, R1, #0x46
ROM:60081598 BL Mcupanel_RegSet
ROM:6008159C MOV R0, #0xA
|
|