myMPX
Advertisement


Go Back MyMPx.org > MyMPx.org Forum > General Discussion

Hooray!!! Rockchip SDK!
Like Tree1Likes
Reply
Post New Thread
 
LinkBack Thread Tools
  #591 (permalink)  
Old 11th Aug 2010, 1:15 pm
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default


try at first get it working with your own player, then we will provide our own pieces of the code which stand for our own keyboard input.

Every RK27xx player has unique "way" of getting an input - whether it's keyboard or touchscreen. In most cases keyboard works but not all of the keys are compatible.

It is quite easy to disassemble original firmware therefore I would suggest that you should just put a maximum effort on your own firmware. Essential offsets of the basic vectors can be provided or determined later.

Perhaps I can help somehow, I will do the best I can. I assume you are Russian, I am Polish so our communication is limited. But I hope we (rather you) can do some breakthrough.
Reply With Quote
  #592 (permalink)  
Old 11th Aug 2010, 10:18 pm
Junior Member
 
Join Date: Aug 2010
Location: Perm, Russia
Posts: 23
Default

Thanks for ready to help, flasher86
I don't work with keys, I simply try to catch any RockKeyMsg, with no luck at now I think rk27 players with touchpad are compatible, because RockTouchMsg consists only from 3 fields - state, X coordinate and Y coordinate.
At this time I partially disassembled my original base.rkw, about 70% from total, most of important functions found. But is where a way to dump full RAM from working player? It will really help in disasm. I can write a simple elf, but maybe special software exists?
Reply With Quote
  #593 (permalink)  
Old 12th Aug 2010, 2:44 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Quote:
But is where a way to dump full RAM from working player? It will really help in disasm. I can write a simple elf, but maybe special software exists?
I believe it is possible via serial port on the RK27xx - as far as I know serial port is sharing its pins with other parts of the player. Someone here (long time ago) claimed that he is able to debug and access memory via this serial port. But It's beyond my capabilities.

I think writing simple code for dumping ram into file will be the best and easy way.

Also, there may be some possibility in Rock USB mode, but I don't think anyone has figured it out.
Reply With Quote
  #594 (permalink)  
Old 12th Aug 2010, 11:17 pm
Junior Member
 
Join Date: Aug 2010
Location: Perm, Russia
Posts: 23
Default

So, I think patch original firmware by elfloader and write simple elf is much easy than write our own debug tool...
I will try to upload my work at evening or tomorrow
Reply With Quote
  #595 (permalink)  
Old 13th Aug 2010, 2:12 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Looking forward, and many many many thanks for your involvement.

Can't wait to see hello world on my player ;-)
Reply With Quote
  #596 (permalink)  
Old 13th Aug 2010, 12:12 pm
Junior Member
 
Join Date: Aug 2010
Location: Perm, Russia
Posts: 23
Default

So, this link:
Deposit Files
sorry for Deposit, but it's only one way for me
Readme included.
Small how-to:
1) I assume that you have working rk27sdk build for you player. If not, it's not for you at now, I will try to finish Patch on next week...
So, copy directory /Application/Elfloader from my rk27sdk to you working build. Also you need to replace file System/Cpu/arm/boot/startup.s with one from my archive.
2) Open you project and add files elfloader.c, elfloader.h and swilib.c to it.
3) Now you need to make entrypoint. For example, see file Application/MainWin/MainWin.c, function OtherFuc in my archive - instead of stupid stopwatch player will run "C:/elf.elf".
4) Now install iar 4.42 (included in archive), unpack RockElf.7z and open file pbl6a/fonarik.eww in IarIdePm.exe (located at InstallDir/common/bin/). Compile and copy result file Release/Exe/elf.elf onto system partition of player.
5) Reboot player with new Fw, go to stopwatch and run elf Then connect player to pc and on system partition you should see surprise
Good luck!
Reply With Quote
  #597 (permalink)  
Old 13th Aug 2010, 1:55 pm
knob's Avatar
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

Omg! this is excellent! :shock: :shock: :shock:

Click the image to open in full size.

Maybe would could port some old .rkp games to Rk27 now!


:shock: :shock: :shock: :shock: :shock:

Such a pity about the audio problem in the RKSDK, I suppose if we could patch our good firmware.
This is a great idea to create an elf platform, there is a good chance we can create some homebrew for rk27xx series now. ;-)
__________________
-----------------------------------------------------------------------------------------------------------
Reply With Quote
Sponsored Links
  #598 (permalink)  
Old 13th Aug 2010, 8:18 pm
Junior Member
 
Join Date: Aug 2010
Location: Perm, Russia
Posts: 23
Default

Ow, audio issue isn't just my problem?.. Bad, bad, bad Do you know more about it?
Reply With Quote
  #599 (permalink)  
Old 13th Aug 2010, 8:53 pm
Junior Member
 
Join Date: Aug 2010
Location: Perm, Russia
Posts: 23
Default

Add: I think that games is not so important as good applications, such as reader. Also, swilib at this time is not functional for application's bigger than "Hello, world!". We need important, key, "must have" functions in it, but I don't know that functions are most important than others. At this time swilib can have no more than 4096 functions, but this is not principial and can be changed later
Reply With Quote
  #600 (permalink)  
Old 14th Aug 2010, 2:51 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Audio is a problem mainly in RK2705 chips.

From my observations it doesnt work well if the external headphones or other type of speaker lack of built-in amplifier. If you plug in the player into speakers with Line-In support then the Audio is as good as normal (I checked it on my Creative 5.1 Speakers). But If I plug the player to any kind of headphones it seems that the signal from the player is too weak so we hear only background phase with lack of "common for both channels" phase (center).

I tried to figure this out long time ago, but with no success. Sometimes (on original firmware) when I plug in the connector the player has this weak signal for about 1 sec, then it turns into full sound. Perhaps there is cyclic functions linked to main() which checks jack-socket regardless RK_SDK original functions - it would explain the delay I've just talked about.

About games... yeah it's pretty long way to achieve such platform.

I assume that now, we can only run some code at boot and thats it. We must create some sort of app menu, where we can execute the code from the menu.

I was experimenting with running my own code months ago, and was able to replace STOPWATCH from my menu with my own piece of simple code. But this was harsh and didnt include executing external file - just patching existing base.rkw

I am currently downloading the package, I'll try to understand how it works exactly, maybe then I will be able to help more.

---------
Just wondering, whether it will be hard to patch firmware the way that we will be able to open files in explorer that are currently unsupported. There is a lot of variables and links to be patched, but it would be cool if we can make new file types supported easily, so appropriate elf will be executed if we CLICK on some file in explorer regarding the file extension.

If that is doable, then a lot of excitement just wait for us ppl :-)

Last edited by flasher86; 14th Aug 2010 at 3:12 am.
Reply With Quote
Reply

Sponsored Links



Similar Threads
Thread Thread Starter Forum Replies Last Post
NEW rockchip player (Rockchip RK27xx series) availability knob General Discussion 38 12th Nov 2008 10:47 am
Rockchip Editor: for Rockchip 27xx ALP1987 Support and How To 6 17th Oct 2008 5:25 pm


All times are GMT -7. The time now is 11:25 pm.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2
Back to Top

Designed by indiqo.media