MyMPx.org

MyMPx.org (http://mympx.org/forum/)
-   General Discussion (http://mympx.org/forum/general-discussion/)
-   -   Hooray!!! Rockchip SDK! (http://mympx.org/forum/general-discussion/43348-hooray-rockchip-sdk.html)

malikfarook 19th Nov 2009 5:35 am

Thanx Bro, i owe u 1

TopoX84 19th Nov 2009 5:54 pm

Quote:

Originally Posted by knob (Post 283068)
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.


ok this is what i did...

opened... C:\rk27sdk_new\Ide\Rk27_board\rk27_baord.mcp and pressed F7 or Project>make
after it was done... i got 92 error... i wonder if that is fine...

after this the firmware should be created...

now if i want to create the rk27dll.dll... i go to C:\rk27sdk_new\Ide\Rk27Dll\rk27dll <-- and open the project... " i have Visual Studio 2008

after this... what is next?

would you kindly let me know

thank you in advance.
================================================== ===========
edit:

by compiling rk27SDK with ADS on win 7 will give u 92 errors..

by using win XP will not give you errors...

Obliterous 20th Nov 2009 7:50 am

Quote:

Originally Posted by flasher86 (Post 283481)
RockCompiler.rar

I uploaded the whole rock compiler. It's the part of FWTools - SDK for RK26XX.



This file, as well as many others, are no longer available.from the download locations.

Can someone post a current list of tools needed to compile and install firmware, as well as download locations?

I want to contribute and help, but need to have a clean toolchain to do so.

TopoX84 20th Nov 2009 9:52 am

Quote:

Originally Posted by Obliterous (Post 284159)
This file, as well as many others, are no longer available.from the download locations.

Can someone post a current list of tools needed to compile and install firmware, as well as download locations?

I want to contribute and help, but need to have a clean toolchain to do so.


here u go... the credits go to WIZARD for creating it ;)

http://mympx.org/forum/general-discu...ing-links.html

knob 20th Nov 2009 12:23 pm

Quote:

now if i want to create the rk27dll.dll... i go to C:\rk27sdk_new\Ide\Rk27Dll\rk27dll <-- and open the project... " i have Visual Studio 2008

after this... what is next?
You only need this rk27dll for the simulator. You can create and test new firmware without the simulator

During compiling you will get a LOT of warnings but there should be no errors and you should see a pop-up dos box when the firmware is created.

TopoX84 20th Nov 2009 12:49 pm

Quote:

Originally Posted by knob (Post 284162)
You only need this rk27dll for the simulator. You can create and test new firmware without the simulator

During compiling you will get a LOT of warnings but there should be no errors and you should see a pop-up dos box when the firmware is created.

ohh yeah i know that u can test the new firmware w/o the emulator... but creating the emulator is a fail-safe way to test the new firmwares, anything might happen to the player if you make something wrong... as Murphy's law states "Anything that can go wrong will go wrong."

================================================== ==
edit:



c:\rk27sdk_new\system\os\timer\slist.h(36) : error C2011: '_SINGLE_LIST_ENTRY' : 'struct' type redefinition
c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(857) : see declaration of '_SINGLE_LIST_ENTRY'

i solved it...

================================================== ==
edit:

now i get this 4 errors...
http://img230.imageshack.us/img230/8934/35854950.jpg

anyone knows how to fix them ?

I'm sure if i can fix the iSource.obj and pcCore.obj errors the other 2 will disappear

TopoX84 22nd Nov 2009 5:56 pm

RK27SDK and Emulator

solved the previous errors I encountered :)
able to compile the project using ADS also using Visual Studio 2008
able to compile the emulator and run it successfully :)

here is the code with some instructions ;)

zSHARE - RK27SDK AND EMULATOR SOURCE CODE.rar

flasher86 29th Nov 2009 1:05 pm

Hey guys. I've been wondering if some of you figured out how to turn off automatic update of Music DataBase. Because I would be able to make a tool for creating this data base in the pc for better effects. For example scanning ID3 tags from other files than wma/mp3 (which doesn't work with flac and the rest), and other thing is that it doesnt scan the SD Card for data base.

The structure of the file C:\APPDATA\FILEINFO.DAT is easy and that way I could make a tool which creates perfect database for both flash and sd card memory. It's because database stores absolutes paths for the media files.

So, if anyone could help me with identifying the line in the code which turns off automatic update of the database (which happens when files are transfered to the player).

It happens also when I move the file from the flash, and then put it again with previous date&time of creation and modif. properties. The file doesn't have to be modified, and it still detect change in files.

Hope somebody help me

TopoX84 29th Nov 2009 5:44 pm

anyone knows how to modify the font of the SDK ?

flasher86 30th Nov 2009 4:24 am

Quote:

Originally Posted by TopoX84 (Post 284249)
anyone knows how to modify the font of the SDK ?

Actually, I am working on it. I will make a tool to edit three fonts (ft12.bin, ft16.bin and ft24.bin). Also I will introduce the option to convert one of the windows system (which ever you choose) fonts into this format.

It will be then possible to apply it both for your own SDK compilation and your original firmware as well.

EDIT:
I want to ask you guys about another thing. Where can I find some information about the structure of BMP0.BIN? I want to make some useful tools for modding already compiled firmwares, but currently I am stuck with figuring out the header of this file. I know it contains offsets, widths and heights of all the stored bitmaps, and that bitmaps are in 32bpp format RRGGBBXX. But It would save my time if there is some documentation how to explicit all the header info at once.

photon40 1st Dec 2009 12:40 pm

Does the RK27 SDK firmware run on the Ramos RM970?

TopoX84 9th Dec 2009 7:26 am

does anyone knows how to make videos, photos and music static folders...

for ex:
the partition where i store music on my player is with the letter E:

if i click on music... if throws me to the letter E: same goes for videos and photos...

but i would like for this to happen:

for music => E:\Music
videos => E:\Videos
photos => E:\Photos


thank you in advance

Bluescreen 12th Dec 2009 7:14 am

Hi,

I have got a bunch of RK2706 based touchscreen player, but without anything, no drivers, no info, but the work.

Now I want to build some new application for them, so I read this thread. It's amazing what all of you find out. So I will give it a try. But I have a few starter questions.

1. Which SDK and other software I need?
I downloaded RK27SDK_NEW, these seem to be the firmware sources but no toolchain. I also got FWTools 3.0.29.02, here I also found a compiler, but I am not shure if it is for RK27xx or RK26xx or both? The Emulator from "Rockchip Emulator.rar" does not start.

2. What can I do to backup my current firmware. I managed to open the hidden partitions and can make a backup of it. As I understand the "\SYSTEM\BASE.RKW" is the main firmware file. Let's say I corrupt this file, can I somehow restore it to the player. Maybe with that RK27DM_Repair_tool_for_Rockchip_2706, which does not detect my player for now?

3. Is there a way to add applications to the player without rebuilding the whole firmware? As I understand on RK26xx you can build RKP files (Games) but on RK27xx not.

4. How can I find out some basic needed parameters of my player, like screen type and resolution, memory map, flash and so on, all I need to build a new firmware.

Maybe someone can give me a step by step instruction to get the RK27SDK firmware compiled and running on my player. I would be thankfully write a howto if I get all these things right. And of course I will share my experience and maybe the code I write.

Thank you
Thorsten

WIZARD 12th Dec 2009 9:59 am

Faq
 
1 Attachment(s)
Hello, Thorsten!

Here's a small FAQ for you :
(check the attachment of this post)

If you want to get the download links, go here :
http://mympx.org/forum/general-discu...ing-links.html

Bluescreen 12th Dec 2009 10:46 am

Thank you WIZARD.
I really managed to compile the snake game. But I cannot use it on my player. I read somewhere in this thread, that RK27xx player cannot use RKP files.
So the question is again, are all these nice tools from this thread only for RK26xx players?

WIZARD 13th Dec 2009 2:33 pm

RK27xx
 
We have our firmware for RK27xx players (with the source code)
which supports these games and apps (I think so)
The download link is somewhere in this thread
(look for the latest posts and download the new version)
Don't forget to make a backup of your native firmware!!!

P.S. I have a RK26xx-based player.

Alis 23rd Dec 2009 6:46 am

Hi!!!
Here is my video with how to download the RKP SDK and the games and apps.

YouTube - RKP Games, Apps and SDK

Its a stupid video...~~~~~ Its my first one!!!
Have a nice day!

WIZARD 24th Dec 2009 3:36 am

Video manual
 
Thank you for your video. :rolleyes:
But it's not perfect:

1) The "mp5" moniker was invented by chinese sellers
who wants to get more money for their goods.
Maybe we can consider iPod touch as mp5 player because it has a LOT of features
(but still FAR more expensive than Chinese players)
I don't know even one REAL mp5 player which can run .rkp apps.
2) A lot of typos: for example, if you will search for "Rockship SDK",
(following the instruction from your video) you will find nothing
(the correct company's name is: Rockchip)
3) The video contains no instructions how "to make(build)" the apps,
only some notes about what tools we have for the development.

However, I can't blame you because it was your first video manual,
and the creation of good manual is not an easy task;
anyway, it was the first attempt to create a video manual about SDK
(if don't mention one funny video :rolleyes:)
Hope you will introduce the new version of this manual with some fixes.

kioshin 30th Jan 2010 12:43 pm

hello,

Can i change Acme v-500x player settings?
Should I use firmware dissasembler?

Alis 31st Jan 2010 3:07 am

I will try to make a new one.

(-:

kioshin 31st Jan 2010 3:17 am

New video player or dissasembler? ;-)
Maybe there is a source code for Acme V-500X,
Ver: 22.02.2008, Date: 2008-05-21.
Some video player settings are just annoying.

mmlevin 20th Feb 2010 1:14 pm

Hello! Could anybody upload RK2606 SDK? I meen sources for firmware. All links that I see there already don't work.. Or you can send it to me by e-mail.

WIZARD 20th Feb 2010 1:59 pm

@mmlevin
Download links:

http://mympx.org/forum/general-discu...ing-links.html

mmlevin 20th Feb 2010 11:19 pm

@wizard
Thank you, I've already downloaded Rockchip Developer Files and found Rockchip GDK, sources for some games, FWTools, but I can't find firmware sources anywhere:( In this thread I founded some links, so now I have sources for RK27SDK_NEW and RK2608_4G_DEMO (probably old version, as I see in sources it have no support for FLAC format). But sources for firmware RK2606 I can't find anywhere.

WIZARD 24th Mar 2010 8:55 am

sig11
 
It seems that sig11 have mysteriously disappeared :(
No response to my E-mails and PMs :(
No sig11's Rockchip Emulator :(

knob 24th Mar 2010 1:02 pm

mmlevin
Sources for Rk2606 uploaded here:- ;)
http://www.sendspace.com/file/dy5789



NEW thread for Rock game porting is here:- ;)
http://mympx.org/forum/mods-themes/4...worth-now.html

flasher86 26th Mar 2010 11:04 am

1 Attachment(s)
Hello everybody. I had a long break from working on anything connected with mp4 players due to my college staff, but now I will have a lot of time to mess around the topic, esspecially with theming tool I mentioned in another thread.

Anyway, WIZARD asked me to upload the source code of FM radio app because its not available anymore, so here it is:
Attachment 472

WIZARD 27th Mar 2010 1:31 pm

Thank you, Flasher! Rockchip SDK archive gets an update. :rolleyes:

P.S. I will not have time for the development until Summer.
New Gilraen with graphic interface (it will be easier and faster to create the subtitles than now, using command line)
and maybe some new Rockchip games and updates for the old ones (it's possible to fix the Calculator's bug)

flasher86 11th Apr 2010 7:21 am

I am just wondering...

There is a variable called Language in the RKP platform. It gives information about a language which is set in the system settings of the player. But are the numbers representatives always the same for a particular language, or is it different for each model of mp4? If is the same for all of them it would be helpful to develop multilingual apps with automatic detection of the language.

So is it worth messing around it? what do you think?

knob 11th Apr 2010 2:20 pm

hi flash

It should work. There is a utility to convert the text resources and they have multiple languages in.

A problem I can see is working out all the translations! and deciding how many translations to do! :confused:

If would be better if we had file loading support for .rkp, then the language file could be loaded in by the app and easily edited by the user as a simple .txt file.

If we provide the sources the users can do their own translations anyway, so it IS probably not worth it. ;)

flasher86 11th Apr 2010 2:37 pm

Actually, I think it can be done without file support. We can create an rkp app which reads all the information from txt file in the resources. Then we make simple win32 app tool for configuration where you can go through rkp resources no matter how you want, copying modifying and making changes to already compiled rkp.

of course, it would be much efficient to work with external files but I dont think it can be done. Only one idea is circling in my head. Write some sort of function in the rkp app which will scan the whole memory and will find the handle of the FileOpen function. But I have no idea what to look for, and I dont even know if it is possible to recognize such a handle in this stream of raw data.

But comming back to this language thing.
This variable is the index of order where a particular language is placed on list in the settings. This means that if a player has a different set of languages then perhaps these language IDs wont match in different players. For example what if one player has language which on the other player is not there. I m just thinking about that, thats why I asked you for advice.

flasher86 13th Apr 2010 7:06 pm

Hooray!! I successfully read data from sd card using RKP platform! Currently, it works only in RAW mode. So I can move forward through sd card data just like in some windows hex editor editing the whole physical drive media. I don't know how to decrypt the partition table, or read out file list and such, but we can definitely read data from SD card.

I though that we wont succeed in reading files from flash memory (different types of flash memory and so on), but sd driver must be the same for all versions of FW for rockchip 26xx. So I added library named RK_MLC_USBFS_SD.A to the compilation of the rkp test file and got access to these functions:

PHP Code:

extern    uint8    MediaSetup(uint8 memory);
extern    bool     SDWaitReady(void);
extern    bool     Before_CMD_SDWaitReady(void);
extern    uint8   SDWaitFifoReady(void);
extern    bool     CardCheckIn(void);
extern    uint8     SDInit(void);
extern    void     ReadCsd(uint16 *buf);
extern    uint8     SdCmdInit(void);
extern    bool     SdWriteSec(uint32 LBAuint16 coluint8 *bufuint16 Lengthuint8 width);
extern    bool     SdReadSec(uint32 LBAuint16 coluint8 *bufuint16 Lengthuint8 width); 

I've just tested SdReadSec and it shows some raw data from my microsd card, which I confirmed on pc is the same data I saw on my player, so its not random stuff.

BTW. It works only if I run rkp file directly from SD Card memory.

I think its breakthrough, it makes it possible now to gain file access directly from RKP platform, including write!!

EDIT:
Ok, I implemented support for file system, using this library http://elm-chan.org/fsw/ff/00index_e.html
It opens files successfully and reads them as well. In the evening I will make a test rkp app for everyone who is interested.

Too bad it doesn't work with internal flash memory, but sd card is not that bad.

WIZARD 15th Apr 2010 6:35 am

Read/Write
 
Flasher86, you are genius! :rolleyes:

Now we have full access to the microSD card - which makes possible the creation of PDF-Reader, Text Editor and other useful apps.
Please, tell me, is it hard to port a computer program using the C/C++ sources? :confused:
Copy/paste a lot of small platform-independent pieces of the code (for example, PDF-Reader - algorithms of the .pdf opening)?

flasher86 15th Apr 2010 9:03 am

Well, there is very little of such libraries that are written in pure ANSI C which is the only language supported by compiler. Though some of the functions may be ported directly - hopefully the crucial ones. I also thought that it will be great to start writing a rich text file viewer (RTF). There are many possibilities now, though I have a question for all of you who has rk260X player with RKP platform whether you also can run rkp files directly from sd card. Because I can, and I wonder if its only a matter of some bug in my player, then not all of us will get use of such file access.

To run rkp files from sd card in my player, I just need to open some dir in sd card so it gets switched to sd card media (as only one of two can be accessed at a time). And then I exit and click game, and it reads them from sd card now. Do you get the same? Coz its the only way to do the whole thing.

knob 15th Apr 2010 9:53 am

Quote:

Originally Posted by flasher86 (Post 285971)
To run rkp files from sd card in my player, I just need to open some dir in sd card so it gets switched to sd card media (as only one of two can be accessed at a time). And then I exit and click game, and it reads them from sd card now. Do you get the same? Coz its the only way to do the whole thing.

Yeah it works that way on my player too.(but I never tried before today!)

What you've done with the file access is awesome!. ;)

What we could do with is a library of routines to enable us to port games and apps. I was looking at porting and found it limiting working in Ansi C only.

We need extra libraries for screen and graphics too, but it looks like you have already worked out the file handle bit which is brilliant. :)

WIZARD 15th Apr 2010 10:28 am

Rkp
 
Quote:

Originally Posted by flasher86 (Post 285971)
To run rkp files from sd card in my player, I just need to open some dir in sd card so it gets switched to sd card media (as only one of two can be accessed at a time). And then I exit and click game, and it reads them from sd card now. Do you get the same? Coz its the only way to do the whole thing.

To run the apps from microSD card in my player, I must create the GAME folder.
And I can't run the apps from the player's explorer.
Performance: Wolf3D's FPS is nearly the same (sometimes even higher)

flasher86 15th Apr 2010 12:17 pm

1 Attachment(s)
Quote:

Originally Posted by WIZARD (Post 285975)
To run the apps from microSD card in my player, I must create the GAME folder.
And I can't run the apps from the player's explorer.
Performance: Wolf3D's FPS is nearly the same (sometimes even higher)

Yeah, I get the same, folder GAME must be placed just like on flash memory.

Quote:

Originally Posted by knob (Post 285974)
Yeah it works that way on my player too.(but I never tried before today!)

What you've done with the file access is awesome!. ;)

What we could do with is a library of routines to enable us to port games and apps. I was looking at porting and found it limiting working in Ansi C only.

We need extra libraries for screen and graphics too, but it looks like you have already worked out the file handle bit which is brilliant. :)

Yeah, I am thinking of savedialog and opendialog.

Here is the sample of this. If you run this from flash memory the player will hang. If you run this from SD Card it will list all the files in the root dir.

Attachment 516

BTW. I have problems with getting long names of files. FatFS lib includes long file name support, but I get troubles in assigning pointer to unicode string, I will keep trying with this. And look at the size of this rkp. Including this lib from SDK to access SDCard caused a lot of unnecessary code to be included in rkp, also a lot of warnings about overleap of memory regions are raised - though we have nothing to worry about, as we use only two functions from there.

Alis 15th Apr 2010 1:06 pm

Can anyone make a new app ???
And a big problem of this is because my rockchip 2608 and many others doesn't have a sd slot.

:-(

flasher86 15th Apr 2010 2:50 pm

well, currently its only for players with SD slot, sorry. Perhaps in future something will change.

flasher86 15th Apr 2010 7:08 pm

Well, guys. I noticed something. To implement this file access support, I wasted almost all the available memory. I even bent the limits in *.lcf file because I got messages that I am out of memory. Is there any way to elicit from this lib: RK_MLC_USBFS_SD.A only those functions that are necessary? Because in Memap.txt you can see parts of this lib, and there is SD.OBJ, so maybe we can optimize it, and know what memory regions are necessary to add to link script file, and which are not.

Anyway, I handled long file names, but what really creeps me out is that problem with memory :-/ If I don't do something, we won't create any nice app because we quickly run out of it.

Perhaps some of you are familiar with Link Script Files which sdcc uses? How to rearrange it to gain more mem?


All times are GMT -7. The time now is 8:38 pm.

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