myMPX
Advertisement


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

Hooray!!! Rockchip SDK!
Like Tree1Likes
Reply
Post New Thread
 
LinkBack Thread Tools
  #541 (permalink)  
Old 22nd Apr 2010, 1:10 pm
Junior Member
 
Join Date: Sep 2009
Posts: 31
Default


Quote:
Originally Posted by flasher86 View Post
oh maan. It works now!! It can access SDCard while being executed from flash! If only we had access to flash memory we could even transfer files between these two drives.

Also, it runs so much faster if run from flash! Awesome, you re good. Maybe you have some ideas about flash memory then?
I tried. I can read pages from the flash, but I do not know structure of the flash drive ( numeration of sectors , begin of the FAT , e.t.c).

This function is reading page from flash ( I have hy27uu08ag5m , but it is the common command for all NAND-flash ):

void readPage(unsigned int col,unsigned long row)
{
int i;
write_mem(FLASH0_CMD,0x0);
write_mem(FLASH0_ADDR,col & 0xFF);
write_mem(FLASH0_ADDR,(col >> 8) & 0x0F);
write_mem(FLASH0_ADDR,row & 0xFF );
write_mem(FLASH0_ADDR,(row >> 8) & 0xFF);
write_mem(FLASH0_ADDR,(row >> 16) & 0x03);
write_mem(FLASH0_CMD,0x30);
printf("\n");
for ( i = 0; i < 2112; i++ ) {
buff[i] = read_mem(FLASH0_DATA);
}
}

The first page that I have read from flash was a part of firmare with some offset.

Last edited by sig11; 23rd Apr 2010 at 1:42 am.
Reply With Quote
  #542 (permalink)  
Old 24th Apr 2010, 9:53 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Wow, its great! You're genius!
Reply With Quote
  #543 (permalink)  
Old 25th Apr 2010, 12:35 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Exclamation Awesome

New breakthrough!
Reply With Quote
  #544 (permalink)  
Old 25th Apr 2010, 9:03 am
Member
Keen on MPx players
 
Join Date: Sep 2007
Posts: 68
Default

Break on through to the other side! Nice!
This is rk26xx related, isnt it?
Reply With Quote
  #545 (permalink)  
Old 25th Apr 2010, 9:41 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

I used that function to read flash data, it works, though I had some problems. When I set up the FatFS lib for this, it showed me some weird filenames in the root dir (sometimes I get those names even with embed explorer, which needs a restart or reformat of the drive). Also we need to figure out where the offset of flash drive is written. I wrote a function which scans flash mem looking for fat file system, though it took 15 minutes to find it - getting through 14mb of FW data.

Quote:
Originally Posted by AleMaxx View Post
This is rk26xx related, isnt it?
Yes, right.

EDIT:
Small piece of work regarding open dialog.
SD_Card.rar
look how extremely fast it draws graphics.

Last edited by flasher86; 26th Apr 2010 at 6:53 pm.
Reply With Quote
  #546 (permalink)  
Old 28th Apr 2010, 7:29 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default

Quote:
Originally Posted by flasher86 View Post
I wrote a function which scans flash mem looking for fat file system, though it took 15 minutes to find it - getting through 14mb of FW data.
15 min of waiting - every time when you want to open/save the file
Though, it's better than nothing!

EDIT:
This open dialog is nice! However, I can't open anything

Last edited by WIZARD; 28th Apr 2010 at 7:39 am.
Reply With Quote
  #547 (permalink)  
Old 28th Apr 2010, 10:30 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Yeah, its incomplete.

Coming back to this flash memory. Is there someone who knows where in the FW data the total FW size is coded? it must be somewhere, like this tool for creating themes for rk26 knows exactly where bmp resources begin in the RKW file.
Reply With Quote
Sponsored Links
  #548 (permalink)  
Old 28th Apr 2010, 10:45 am
knob's Avatar
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

This is nice work, flash.
sig11 has done a file manager too.

try looking at the source from dancemammal editor, it's in delphi.

http://mympxplayer.org/dancemammal-m...030-df882.html
__________________
-----------------------------------------------------------------------------------------------------------
Reply With Quote
  #549 (permalink)  
Old 28th Apr 2010, 11:12 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

I'll check it, thanks.

BTW. Do you know how to hack memory flash in rk27? I still got one of these with one 4gb chip broken. I got 4gb of usable capacity while other 4 is dump space. How to format it to appear to be 4gb partition instead of 8gb? Those guys from ebay did that so it must be possible.
Reply With Quote
  #550 (permalink)  
Old 29th Apr 2010, 4:50 am
knob's Avatar
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

Never had the memory hack problem myself.
Someone here has fixed a Rockchip memory hack:-
[Tut] hwo to remove memory-hack on Rockchip Mp4-players.
but not sure which version it refers too.

btw have you had issues with do,while() and printf() with the rk26xx Sdk/Gdk?
I've been looking at porting again and had some problems with bugs in the SDK.
__________________
-----------------------------------------------------------------------------------------------------------

Last edited by knob; 29th Apr 2010 at 4:54 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 9:17 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