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)

WIZARD 13th Jun 2009 2:22 am

Sdk
 
Home --> Downloads

Here you can find all the tools.

snape 24th Jun 2009 11:15 am

Hey guys, i've managed to compile the RK2706 SDK with ADS and got the entire source compiled.

The problem is, i'm getting "undefined symbols" errors when trying to link it, so i guess the source code is not complete.

Some files are missing.

Someone have more info on this ?

Thanks in advance.

knob 24th Jun 2009 11:52 am

I got it to compile fully using code warrior:-
http://mympx.org/forum/general-discu...tml#post279099

didn't get round to fixing to work on my player yet, but I'm gonna try again soon, think lcd driver needs adjusting, just got a blank screen on my player.

snape 24th Jun 2009 12:31 pm

Could you please then, pack your ADS compiler and upload it to somewhere for me ?
i would be glad if so.

thanks again

snape 24th Jun 2009 1:16 pm

i got it to compile but with a few link errors.
that's cuz my ADS version are newer then the one used to compile some .a libraries.

Somebody could please upload the ADS 1.2 to somewhere ?

thanks

knob 24th Jun 2009 2:13 pm

Uploaded the SDK here:-
Send big files the easy way. Files too large for email attachments? No problem!
just need to open rk27_baord.mcp in ADS and click project/make.

It will generate a RK27SDK.RKW in the resource folder and base.rkw in the Output/SYSTEM folders

snape 24th Jun 2009 2:16 pm

i have the sdk, i don't have the ads version 1.2, i have the rvds 2.1 and they are incompatible.

knob 24th Jun 2009 2:24 pm

It's in this download:-
Rockchip Developer Package.part1.rar

flasher86 25th Jun 2009 11:18 am

Hi, I've been following this thread for a while, and now I feel that you did a great job after all.

But I have some questions. I have a Teclast c260 player (CI) with Rockchip 2608 on board. The player has touchkeys. The screen is 320x240. I tried to update firmware found in this thread called RK2608_4G_DEMO.rar (i used RK2608A_MLC_DEMO.rfw) and my player got dead.

I couldnt even update any other firmware because the system didn't recognise the player AT ALL. I dissasembled my player and reseted it and thanks god I saved it.

But now I am really scared doing anything. I would like to modify somehow the firmware and add some options like ID3Tags, or better E-Book. But most of all I would like to create my own theme in which I would be able to decide what are the sizes of bitmaps and where they go.

Can you tell me what can I do to my player?

edit:
I made a mistake, my player is based on rk2606a not 2608, is there a sdk for 2606 rockchip with 320x240 screen? I've only found that sdk but only for smaller screens, how to apply it to my player?

flasher86 8th Jul 2009 9:22 am

I wrote a simple calculator in RKP format. If anyone is interested i submited a thread

http://mympx.org/forum/mods-themes/4...p-players.html

knob 10th Jul 2009 12:40 pm

I did a bit more on the custom mp3 player:-
http://i203.photobucket.com/albums/a...a/P1010067.jpg

Created a space for album art, need to figure out how to read a .jpg or .bmp from the flash and display it, pity, I'm not very good at C, anyone any ideas?

Would like to convert this at some point into a .rkp to give RK2608 owners a chance to try it out :-)

flasher86 11th Jul 2009 4:10 am

You need to use FileOpen to get handle of the file. Then you use FileRead to get data, next you convert it to 16bit bitmap raw data. And use one of the functions to display that data.

It is quite easy to get it work if you are editing the firmware. But if you are trying to do this inside RKP file it is more complicated.

Currently I am trying to link FileOpen to the RKP platform, so I would have access to the external files, while RKP platform provides functions only for processing data from the RKP resources.

Have anyone idea how to introduce FileOpen to the platform for RKP? As far as I know we need to make the correct link script file for this, but its a black magic for me.

Maybe someone has already got access to the files stored in flash using some other way? If that so, please share it with us.

knob 26th Jul 2009 8:58 am

There is some code in Platform.c which would launch rkp games from this RK2606 firmware.

Tried to use the code which extracts a .bmp icon from the rkp file to load album art, but it crashed!
This code is not included in the build but is there as an option to build in a rkp loader.


PlatformProtect(1);

LoadPicFromFlash(BMP_BROWSER_BK, &BrowserBKPic, BMP_BROWSER_BK_XSIZE, BMP_BROWSER_BK_YSIZE);
LoadPicFromFlash(BMP_BROWSER_SELECT, &SelectBKPIC, BMP_BROWSER_SELECT_XSIZE, BMP_BROWSER_SELECT_YSIZE);
for(i=0;i<7;i++)
LoadPicFromFlash(BMP_FILEDEFAULT, &IconPIC[i], BMP_FILEDEFAULT_XSIZE, BMP_FILEDEFAULT_YSIZE);
LoadPicFromFlash(BMP_FOLDER, &IconPIC[7], BMP_FOLDER_XSIZE, BMP_FOLDER_YSIZE);

PlatformMsgArray[0]=BROWSE_INIT;
Fun2MsgArray[1]=PLATFORM_FUN_WINDOW;

CurrentDrawPicBase=SDRAM_LOGICSCREEN_BASE;
PlatformPicType=0;
WindOutCnt=0;
}


/************************************************** ****************
*º¯ÊýÃû :GameExit
*¹¦ÄÜÃèÊö :Í˳öÓÎÏ·
*²ÎÊý²ÎÊý :ÎÞ
*Êä³ö²ÎÊý :ÎÞ
*°æ±¾ËµÃ÷ :×÷Õß Ê±¼ä ±¸×¢
* ÂÞÄþ 11/11/2006 Ô*°æ
************************************************** ****************/
PLATFORM_CODE
void GameExit(){
int i;

Fun2MsgArray[1]=PLATFORM_FUN_WINDOW;
PlatformMsgArray[0]=BROWSE_DISP;
WindowSet[0]=0;
WindowSet[1]=0;
WindowSet[2]=219;
WindowSet[3]=175;
PlatformProtect(1);
Platform_MusicOff();
FileClose(ProgramFile);
FileClose(MusicHandle);
ScreenWide=SYS_XSIZE;
ScreenHigh=SYS_YSIZE;
PicLoad_SdramAdd=SDRAM_RESOURCE_BASE;
LoadPicFromFlash(BMP_BROWSER_BK, &BrowserBKPic, BMP_BROWSER_BK_XSIZE, BMP_BROWSER_BK_YSIZE);
LoadPicFromFlash(BMP_BROWSER_SELECT, &SelectBKPIC, BMP_BROWSER_SELECT_XSIZE, BMP_BROWSER_SELECT_YSIZE);
for(i=0;i<7;i++)
LoadPicFromFlash(BMP_FILEDEFAULT, &IconPIC[i], BMP_FILEDEFAULT_XSIZE, BMP_FILEDEFAULT_YSIZE);
LoadPicFromFlash(BMP_FOLDER, &IconPIC[7], BMP_FOLDER_XSIZE, BMP_FOLDER_YSIZE);
Platform_Browse_FileInit();
while(DmaStateFlag&0x0002);
PlatformPicType=0;
DMA_LcdJpegInitX();
}


/************************************************** ****************
*º¯ÊýÃû :PlatformVolDown
*¹¦ÄÜÃèÊö :ÒôÁ¿¼õСһ¸ö¿Ì¶È
*²ÎÊý²ÎÊý :ÎÞ
*Êä³ö²ÎÊý :ÎÞ
*°æ±¾ËµÃ÷ :×÷Õß Ê±¼ä ±¸×¢
* ÂÞÄþ 11/11/2006 Ô*°æ
************************************************** ****************/
PLATFORM_CODE
void PlatformVolDown(){
if(GameVolValue<0x1f){
GameVolValue++;
Platform_VolumeSet(GameVolValue);
}
}

/************************************************** ****************
*º¯ÊýÃû :PlatformVolUp
*¹¦ÄÜÃèÊö :ÒôÁ¿Ôö´óÒ»¸ö¿Ì¶È
*²ÎÊý²ÎÊý :ÎÞ
*Êä³ö²ÎÊý :ÎÞ
*°æ±¾ËµÃ÷ :×÷Õß Ê±¼ä ±¸×¢
* ÂÞÄþ 11/11/2006 Ô*°æ
************************************************** ****************/
PLATFORM_CODE
void PlatformVolUp(){
if(GameVolValue>0){
GameVolValue--;
Platform_VolumeSet(GameVolValue);
}
}


/************************************************** ****************
*º¯ÊýÃû :Platform_Browse_SysInit
*¹¦ÄÜÃèÊö :ä¯ÀÀÆ÷³õʼ»¯º¯Êý
*²ÎÊý²ÎÊý :ÎÞ
*Êä³ö²ÎÊý :ÎÞ
*°æ±¾ËµÃ÷ :×÷Õß Ê±¼ä ±¸×¢
* ÂÞÄþ 11/11/2006 Ô*°æ
************************************************** ****************/
PLATFORM_CODE
void Platform_Browse_SysInit(){
int i;

PlatformBrowseInfo.DirDeep=0;
PlatformBrowseInfo.PathBuff[0]='\\';
PlatformBrowseInfo.PathBuff[1]='\0';
PlatformBrowseInfo.CurPickFileType[0]='R';
PlatformBrowseInfo.CurPickFileType[1]='K';
PlatformBrowseInfo.CurPickFileType[2]='P';
PlatformBrowseInfo.CurPickFileType[3]='\0';
}

flasher86 26th Jul 2009 10:30 am

First of all, try to display res file as album art. It is a format which doesn't have to be converted before displaying so it is the best solution for testing.

To do this, use this:
Code:

AlbumArt = FileOpen(filepath, "R");
DisplayPicFromFile(position x, position y, AlbumArt, 0, width, height, Normal, 220);
FileClose(AlbumArt);

prepare bitmap by using tool ImageConvert (from FWTOOLS) so you will get raw 16bit data of the image.

If you manage to display it, you may try to use other filetypes with convertion. But this is something you have to do at first.

BTW. I am working on improving game platform, and today I managed to increase the Sample Rate of the Audio resource (default is 11025hz which is awful).

To make it 22050hz use the following code:

at the beginning of the source code file:
Code:

#define    write_mem(address, value)  (*((unsigned int volatile*)(address)) = (value))
#define      P_ADD_CCR          (0x0006) 
#define      DW_APB_I2C_BASE    0x1e800
#define      IC_DATA_CMD        ((DW_APB_I2C_BASE + 0x10)/2)

and this code after the standard Music Platform Function:
Code:

        write_mem(IC_DATA_CMD,P_ADD_CCR);
        write_mem(IC_DATA_CMD,0x0033);

This will allow to use even 44100hz audiofiles, which is huge improvement to the standard of the game platform.

knob 20th Aug 2009 11:35 am

Had another go at displaying the pic in the music player screen
using this:-
FILE *ArtFile;
ArtFile = FileOpen("U:\\", "FOLDER.RES","R");
DisplayPicFromFile(1,20,ArtFile, 0, vinyl_XSIZE,vinyl_YSIZE, NULL, Normal, 220);//actual album art

The player just crashed, dunno whats wrong, this should work.

flasher86 20th Aug 2009 2:17 pm

You re making mistake with this function.
At first, FileOpen supports handle data type (you can use char too coz its the same), not as array (like this *file).
Secondable, the second parameter of the FileOpen suppose to be the path to the folder, just without the filename.
Use these lines instead:

PHP Code:

 HANDLE ArtFile;
        
ArtFile FileOpen("U:\\SOME_FOLDER\\RES_FILE.RES""U\\SOME_FOLDER","R");
        
DisplayPicFromFile(1,20,ArtFile0vinyl_XSIZE,vinyl_YSIZENULLNormal220);//actual album art //
        
FileClose(ArtFile); 

if that won't work, try to predefine parameters of the FileOpen like this:

char Filepath[12];
char Dirpath[12];

Filepath[0] = 'U';
Filepath[1] = ':'
Filepath[2] = '\'
... and so on so on.
Filepath[9?] = '\0' - remember to set the last array with this value, it defines ending of the string.

and then call FileOpen(Filepath, Dirpath, "R");

I would test it out but I cant compile working firmware for my player. I have Rockchip 2606A 320x240 and the screen is not supported so far :(

knob 20th Aug 2009 2:56 pm

Got this now:-

HANDLE ArtFile;
ArtFile = FileOpen("U:\\FOLDER.RES","U:\\","R");
DisplayPicFromFile(1,20,ArtFile, 0, vinyl_XSIZE,vinyl_YSIZE, NULL, Normal, 220);//actual album art
FileClose(ArtFile);

and I got FOLDER.RES in the root, it still crashes just the same as before :-(

Strange they use "U" as the drive in Rk26xx, Rk2706 uses "D" but I have tried "C" and "D" and the crash is just the same.

I'll have a go at using a char string next to store the file params.

flasher86 20th Aug 2009 3:05 pm

Its hard to give you advice while I didn't tried such things by myself. My only next clue would be that we cant open more than 2 files at a time(or use more than two handles). The whole fimware has only two Vars hMainFile and hSlaveFile. Maybe you can try to use this:

hSlaveFile = FileOpen...

without predefining hSlaveFile as it is already defined.

flasher86 20th Aug 2009 3:58 pm

hey knob, I will try to manipulate the sdk for my 320x240 screen but I have problems with compiling 2606A, it gets a lot of errors in FWTools 2.6.1.0 and I cant compile it.

How do you compile your 2608 firmware?

knob 21st Aug 2009 12:36 am

Here is a download to my build:-
Send big files the easy way. Files too large for email attachments? No problem!

there is a high chance it would make your player dead, so you would need to do a hard reset and
have a working backup.

you need to use firmware tools v3.0.29.02 and load in RK2606_MLC_Player.ini and hit build.

I had already stripped out a lot of the other functions like video, game and FM radio, it's just a music player to keep the build small. all the bmps are 220x176 of course.

I had to play around in "LCD_NEW_M_205.c" a lot to make the screen work.

flasher86 21st Aug 2009 3:19 am

I had already killed my player once, and I had to disassemble to case and manipulate with pins on the chip to reset it, but It worked.

Also, I have a dozen of working firmwares. My original firmware didn't even support RKP platform, but after searching for other firmwares (and from other players) I got support for RKP, FLV, APE and FLAC where these were unsupported by default.

I have on mind something to get the screen work. Of course the source is designed for 220x176 screen but If I manage to display it on my 320x240 then, the doors are open for any design modifications.

I will try to read out memory using RKP file (I copied ReadMem32 and ReadMem from the SDK and it works on RKP platform) to find out how to initialize screen, and perhaps it will allow me to just copy the memory and get the screen work. Those functions really work with my firmware from. I am able to control contrast from RKP file, to turn off the player, turn off lcd and turn it on again. Its even better, the contrast control allow to get smooth slide from dark to high contrast, not just 6 levels, but 10 000 levels instead.

If that will work, I will make a diagnostic RKP file for anyone, and any non branded player.

To not kill my player this time, I will modify the source the way that it will go into usb firmware upgrade mode without holding any button. Because buttons may also be confused.

Huge thanks for your help.

edit:
The build you send me builds and creates .out file but its weird that there are so many warnings. Not only during compilation but also during linking with some memory regions. Have you got the same? Does it work despite all those warning messages? It so, its a shame that Rockchip made such a dirty source code for commercial purposes.

edit2:
I uploaded compiled firmware into my player, but it doesn't boot up properly, black screen. But the good news is that the code is executed. I changed the source in a way that it gets into USB Rock Device just after plugin it into the PC, without pressing anything. So what ever happens, i have access to upgrade mode.

knob 21st Aug 2009 9:55 am

Yes it works fine on my player in spite of the dirty code.
Did you set the screen size up in lcd.h ?

#define LCD_MAX_YSIZE 176
#define LCD_MAX_XSIZE 220
#define DATA_BUS_WIDTH 16

Also I managed to create the black screen in LCD_NEW_M_205.c
I put some comments in.

My flash type is MLC,
[NAND FLASH TYPE]
FlashType=MLC_2K in RK2606_MLC_Player.ini would yours be the same too?

flasher86 21st Aug 2009 10:04 am

I think it is the same. I ve been looking for info which memory type I have and on some chinese websites it was said that it is MLC but dont know whether it is MLC_2k or MLC_4k (whats the difference?). Of course I'm not 100% sure about this, because translators are awful especially with chinesse.

I ve been looking through your LCD_NEW_M_205.c file and you ve done nice job there. But this file is not added to the project. You use it instead of lcd.c? or it is linked somewhere in code?

I havent changed anything to lcd, but I think the prior is to init lcd on, as the backlight doesnt even turn on. I am just experimenting, and dont know whether it will work anyway with my touchbuttons.

I have Teclast C260-CI (its actually polish rebranded version called Pentagram Vanquish R Touch). Here is photo.

http://www.portablevids.co.uk/teclast_c260.jpg

knob 21st Aug 2009 10:10 am

It's linked in Macro.h , lots of other parameters are in there too.
You will see 1 or 2 other comments by me in Macro.h.

It was the driver that worked best for me, but there are some other display drivers.

btw
My flash memory is 2GB I tried a SLC memory type by mistake and I got the bad block problem, very hard to recover from. If yours is memory MLC then safer to stay with MLC.

flasher86 21st Aug 2009 10:17 am

maybe I will create some loop in which all the drivers are get initialized in every 1 minute, so it would be tested at once. If none of these drivers don't work, the last option is my previous idea to read out memory using rkp program. I noticed that most lcd drivers write data to the very first regions of memory, so it shouldnt take too long for writing down (on paper) values from memory displayed on screen.

One more thing, did you shortened this firmware source code? Because I noticed it lacks of many features like LRC or AVI, or did you find that one just as it is?

knob 21st Aug 2009 11:37 am

Yes, I stripped loads of stuff out, I wanted to make a minimal firmware. It can browse files, display .jpgs and play mp3s. It has a new character set and scrolling text. It would be easy to restore if needed, but it just has tetris game, no .rkp loading.

If you find you can use this firmware the original download is here:-
http://ftp.zsctc.com/RK2606A_SDK_1.08_Release.rar
password ttee

zengfeng1897 24th Aug 2009 1:41 am

RK26xx and RK27XX are very different.
RK26xx needs a special compiler, and RK27xx needs the tool for arm (ADS).
Do not try any firmware on your player, the differen is not just about the LCD driver , some time the nand flash driver will also be a problem.
and the hardware design will also cause you some trouble.

flasher86 24th Aug 2009 1:56 am

Currently I abondoned preparing firmware for my player. It causes too many problems, the firmware executes and enables upgrade mode but non of the devices are working properly.

look at this thread:

Google Tłumacz

the only thing which pushed me into own firmware is the support of opening external files. But in this thread SWIRL is saying that it can be done in RKP file, so if it works, there is no need to do this.

Also I ve been working on RKP platform and I am pretty close to MP3 support INSIDE RKP file, so I will be able to make my own mp3 player with AlbumArt support, spectrum analyzer and much more just by using RKP file.

The funny thing about original firmware is a huge loss of performence because of lazyness of programmers. The original firmware works in a way that graphics are displayed directly from flash data, so everytime something needs to be displayed, it looses a lot of time to read from flash.

What I noticed is that when the graphics are preloaded into SDRam the performence of displaying graphics raises up to 10x faster. Spectrum analyzer will work like a charm, and everything should work a lot of faster even during mp3 playback.

knob 24th Aug 2009 4:46 am

Yes I agree, if we can open a file from .rkp then it's just drag and drop upgrades and no need to worry about screen drivers and memory types.

I have another Rk2608 player that loads in .rkp games too, but I didn't mess with the firmware on this player because I don't have a backup and I don't want the lose the .rkp platform.

If a music player can be made from a .rkp then more users could test it out safely too.

We could always look at making a simple configurable .rkp loader for rk26xx players that don't support games later.

knob 26th Aug 2009 1:41 pm

RK27SDK Booted up!
 
Just managed to compile the RK27 SDK fully.
Copied it over to my player, this one: http://icon1.tinydeal.com/images/fq5-08g.jpg

And guess what it worked! I can play music and navigate with the buttons and the FM radio works too!

Just one snag however, the display was white, but I have got a fully working firmware (apart from the display).

I have just started looking at the screen drivers to see about giving them a tweak like I did for the RK2606 firmware.
This firmware seem quite up to date, just looked at the source and it features album art and nes emulation.
If I get further success I will post some photos.

flasher86 2nd Sep 2009 2:11 pm

I've just managed to initialize Radio FM from the RKP app. I can scan frequency, set volume, get the signal level and most of all listen to the radio!

Knob, I will compile a sample RKP file with radio included, I'm just wondering whether it will work on different kind of players, because to run the radio I used 2606A SDK. I know you have 2608 player so am not sure if it will work too.

I am really happy because, my biggest aim was to create RTF ebook reader, with music support. I spend a lot of time on a train and I love to listen to music and read at the same time. Unfortunately built-in ebook reader is so lame that it hurt my eyes.

flasher86 3rd Sep 2009 3:43 pm

http://www.mediafire.com/file/myjzf5jeiiz/FM.rkp

here is compiled sample FM Radio. Please test it, I want to know how it works on RK2608 or RK2706.

I noticed something great btw. Standard FM Player allows to set frequency with precision to 0,10Mhz, here I can adjust it with 0,01Mhz. I noticed that all FM stations have better signal with for example 88,22mhz instead of 88,20mhz. So fm radio works better in this RKP file than standard one :-)) Or perhaps its only my model issue.

knob 4th Sep 2009 8:55 am

Just tested out on my player rk2608. Yes it works, this is awesome work!

The volume seemed to be full on, couldn't see the option to lower it yet, and the signal to noise ratio seemed a bit low, quite high background noise on my player, but maybe there is a way somehow to alter this to suit the individual player.

btw the rk2706 players don't support rkp format at all, pity as it's a useful (and low risk) platform to test and experiment with.

flasher86 4th Sep 2009 9:16 am

I have touch buttons and I noticed that there is a higher level of noise while buttons are highlighted (highlight turns on after touching the button, and the 2 sec later it turns off). Besides that I haven't noticed difference in quality between the RKP Radio and standard one in a menu.

And yeah, I haven't included volume control here(it is set to 30). I will add it soon. Although I have couple of ideas. For example an automatic scan of the whole freq range and show the signal level on a diagram to make it visible where is the signal and where is the strongest signal. I am thinking also of radio teletext support (the text broadcasted parallel to the music stream, its supported by most of car hi-fies where you can read the name of the song, time or just name of the radio - whatever they sending at a moment). Also I will experiment if spectrum analyzer is possible. I don't know for sure about that because by standard it is not enabled.

I have some weird ideas also about that. For example to make app that would receive through FM a file, or bitmap sent by computer connected to fm transmitter :-)) I know its possible, though with very very slow bitrate. But I just like to create some weird stuff :D

I know most 2706 dont support rkp platform but I heard that some of the do.

knob 4th Sep 2009 11:14 am

The quality is just as good as the standard radio on my player too, I get the same noise if I turn the volume full up to 30, 30 is just too high I think, lower setting is better. I Like your ideas and plans for this.

Can you get music or sound on a rkp app? I tried to compile with a converted pcm music file and all I could get was clicks and hisses, I wanted to add music to the snake game.

flasher86 4th Sep 2009 12:18 pm

Yes I can put music, but currently only in PCM format, which is quite annoying (files are huge). Standard platform introduces functions to play MONO 11.025KHz 8-bit Unsigned PCM stream. You can prepare this format using e.x. Sony Sound Forge (save as RAW PCM). Make sure that you ticked UNSIGNED pcm, not signed. Otherwise you get strange noises. Also 16 bit pcm is not supported yet (also strange noises), but I've already given couple of shots, and maybe I will succeed with this.

BUT, I modded the platform to be able to play PCM streams at higher sample rate. Now I can play files at 22.050KHz, 32.000KHz and even 44100KHz (though at 44100 rate it sometimes pauses playing while running some complicated operations in your RKP file. The best is 32.000KHz which is really fine quality.

In this topic I mentioned how to mod the platform to increase sample rate. Just look through few previous pages.

ps. the pcm file must be mono, but you can actually play stereo files using some trick. Platform provides 5 channels to play sounds on, at same time mixing together. Also you can set the balance of each of these channels. Then to play stereo files you may use two pcm streams of each channel (right, left) and call them on different channel at totally opposite balance set. I successfully played STEREO 44.100KHz song.

rowtrak098 4th Sep 2009 3:32 pm

RAPID SHARE ERROR . You Need to check your upload?

flasher86 4th Sep 2009 4:26 pm

I made a few changes in the FM Radio app. I added volume control, and signal level detector.

I uploaded the source code and rkp file onto this site, but don't know when it appears. For know you can get it from here:
http://www.mediafire.com/file/ydmzy2gilnw/FM_Radio.rar

knob 6th Sep 2009 12:19 am

Yes flasher tried it again it's good now, it's got 2 more features than the standard radio too. It just needs some sort of skin and a better font.
I just translated a string of bitmaps to make my better font, I really don't like the system font on these players. Another idea could be to build in some station presets and display a radio station logo or just display a logo when the radio is in it's frequency range.

flasher86 6th Sep 2009 4:18 am

Yeah, skin would be great, its all a matter of personal needs. Skin and new font is not a problem. The logo of the radio is pretty good idea, but it would require to prepare logos on your own, as you live in different regions and can listen to different stations. I thought maybe we could collect a huge library of radio stations from many many places, which would contain logo and frequence. But I know that different stations uses often the same frequency.

I live in Poland, and I already have a list of radio stations from all the country. I will experiment with this.

I really regret that I/O files operation are not supported yet. SWIRL hasn't answered yet about accessing files. For me it would even be enough to open files, and forget about saving. At the beginning of the topic at WASM.RU someone said that accessing flash memory can be done using DMA controller (though as a RAW data, FAT file system must be reinterpreted).

I've already got access to SD Ram (internal RAM is small, but SDRam can store huge files) using DMA Controller and transfer data works, but dont know which commands are used to transfer data to/from flash. Maybe there are some datasheets of Rockchip with DMA list of instructions how to access these things.

The DMA instruction to operate with SD-Ram is DMAR_DAR0 from memap.h. There are many other instructions, but don't whether they included flash operations as all the I/O functions are precompiled into library (what a shame, I wish I could disassemble those libraries, if we had the source of these libraries there would be no problem creating a fully functional embed os in RKP file)

edit:
I found some instructions in the memap.h
#define FLASH0_DATA ((0x1fa00 )/2)
#define FLASH0_ADDR ((0x1fa00+0x04)/2)
#define FLASH0_CMD ((0x1fa00+0x08)/2)
#define FLASH1_DATA ((0x1fb00 )/2)
#define FLASH1_ADDR ((0x1fb00+0x04)/2)
#define FLASH1_CMD ((0x1fb00+0x08)/2)
these are for sure DMA instructions to operate with Flash, If I have time, I will play with these a little bit, but its a blind work I suppose. Anyway its worth a shot.


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