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)

sig11 22nd Apr 2010 1:10 pm

Quote:

Originally Posted by flasher86 (Post 286066)
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.

flasher86 24th Apr 2010 9:53 am

Wow, its great! You're genius!

WIZARD 25th Apr 2010 12:35 am

Awesome
 
New breakthrough! :rolleyes:

AleMaxx 25th Apr 2010 9:03 am

Break on through to the other side! Nice!
This is rk26xx related, isnt it?

flasher86 25th Apr 2010 9:41 am

1 Attachment(s)
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 (Post 286091)
This is rk26xx related, isnt it?

Yes, right.

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

WIZARD 28th Apr 2010 7:29 am

Quote:

Originally Posted by flasher86 (Post 286092)
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! :rolleyes:

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

flasher86 28th Apr 2010 10:30 am

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.

knob 28th Apr 2010 10:45 am

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

flasher86 28th Apr 2010 11:12 am

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.

knob 29th Apr 2010 4:50 am

Never had the memory hack problem myself.
Someone here has fixed a Rockchip memory hack:-
http://mympx.org/forum/support-how/4...4-players.html
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.


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