View Single Post
  #200 (permalink)  
Old 6th Sep 2009, 4:18 am
flasher86 flasher86 is offline
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

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.

Last edited by flasher86; 6th Sep 2009 at 4:34 am.
Reply With Quote