Actually the BASE.RKW format looks like this:
1) Header - start with "KRDL", the struct is in rkwpatch.c and can also be found somewhere in the SDK (has a CRC32 value of the header at the end). This part needs no modification if you change some bytes in the code. 2) code + CRC32 appended - ARM binary code & CRC32 of the code. So basically if you want to change some bytes in the code: load the whole file into a buffer, change your bytes and replace the last 4bytes by the crc32 value of the code (code means the data starting from sizeof(header) and ending at filesize-4). Then you write the whole buffer to a file and you have a modified and working firmware. This amounts to doing some fileio and using the crc32 code from rkwpatch.c (+ that header iirc). Regards |
16GB MP5 PMP -4.3" LCD + SD CARD SLOT <OZ SELLER - OZtion Auction Item 6936472
look at this player, it's RK2706 based and has RKP platform. The auction is ended but it proves that it is possible, maybe ZSP500 also has no problems with ZSP400 instructions? If this player runs RKP natively it is as I said, and we have already got the compiler. It has up to 32bit data types so no huge limitations will arise. Other possibility is that RKP files are emulated, and it would also be useful if we got the FW of such a player. |
I think I've been cheated by TinyDeal. I am not really sure but they may sent me a hacked player which appears to be 8GB but its actually 4GB. I can't believe my own eyes. I didn't check it at first because 8GB is a lot of space, besides I've got all my music in SD Card. But I tried to put some films in it, and I cant read them now.
I'm just performing the full test on the player by some freeware tool, to eliminate some FAT32 errors and be sure whether I can store >4GB or not. EDIT: Everything I put above 4GB is not readable, either in the player or on the computer. I've been cheated!! :-( |
Quote:
I can clearly see that two 4GB MLC NAND flash chips are there. You probably have the same ? Do you plan on opening your player ? |
Is it easy to open it? I mean, will I make scratches while doing this?
BTW. Haven't you got the same player but 4GB version? I think you mentioned that somewhere here, but I may be wrong. |
This player? 8GB 3 16:9 QVGA MP3 MP4 MP5 Player FQ5-8R [MP4] - $43.70 : TinyDeal Direct Online Store, MP4/MP3 Player, Mobile Phone, Memory Card, Accessories
That's the Google cache. They don't seem to have that anymore, but, curiously, they do have the 4GB version: 4GB 3 QVGA 16:9 MP3 MP4 MP5 Player FQ5-4R [MP4] - $37.81 : TinyDeal Direct Online Store, MP4/MP3 Player, Mobile Phone, Memory Card, Accessories Where does it identify as an 8GB player, in the system info panel? |
Everywhere, but when I put more files in it, they are either completely unreadable, or partly. Sometimes it breaks the structures of the directories, and makes them undeletable.
I contacted them, and waiting for answer. |
Sorry to hear about that. Hope you can get it resolved in a reasonable manner.
|
Sorry to hear about your problem flasher.
It could a defective player, badly soldered memory chips or something. I don't think the seller is always aware of hacked players, akaik the hacking is carried out by this factory to increase their profit, hope you can get this problem resolved. btw it's a bit tricky opening this player up, I had to do it once to short out the nand to get into rockusb mode. You need to remove the 2 screws from the end and ease the player apart in the middle, there are 2 hidden tabs that hold the player together in the middle, but I did scratch my player a bit because I tried to force it apart without realising about the 2 hidden tabs. Also the buttons are a bit tricky to line up when re- assembling the player. |
How to take off that memory hack? I even identified from what address the dummy memory starts. But still I don't know how to format it to 4GB. Is there any utility where I can choose the region?
I contacted TinyDeal, but some idiots work there. They ask me stupid questions... e.x. they want to have a photo of system information on screen of the player. I told them it shows 8GB and they seem not to read my emails with understanding... I know my English is not perfect but damn, it's understandable. BTW. Sid and Knob, did you tried to run Ramos 970 Firmware on our player? Does the audio work well or it is distorted? |
You can set the partition size with the upgrade tool, try and increase the size of the firmware partition a little, that will force the main partition to be recreated.
You will need to use the RK27DM tool first to get into rockusb mode then use the upgrade tool to set the partition size and reload your firmware. If you are successful I would do a photo as they suggest and ask for the $10 dollars or so refund price difference. http://mympxplayer.org/rk27dm-repair...706-df947.html http://mympxplayer.org/rockchip-rk27...v25-df881.html Quote:
|
Thanks for help with this memory hack, I will try to experiment with this.
Quote:
|
I tried the early RAmos firmware on another nokia type RK27xx player I have, but the RM970 screen size is 2.8" (320x240) and the screen was messed up.
|
I ask because I havent stopped searching the code to find out what's wrong with the audio.
I found one major issue in I2S_PowerOnInit, I think connected with Scu_ClockEnable function. Here is the code from the compiled SDK: Code:
ROM:60009AD0 I2S_PowerOnInit ; CODE XREF: Audio_Init+8pBut in the FW with well working audio it look like this: Code:
ROM:60009858 I2S_PowerOnInit ; CODE XREF: Audio_Init+8pCode:
ROM:600E28BC _I2S_EnableClock ; CODE XREF: sub_600022B8+2Cp |
Hi, glad you guys returned from that kinda off-topic discussion :-).
I would translate the above to: Code:
#define APB0_SCU_BASE 0x1801C000 // declared in hw_memmap.h |
Flasher, isn't that function that you're looking for Scu_ClockEnable, in system\driver\clock\hwapi_scu.h? Note the ".h" extension, as it's an inline function. Your disassembly is identical in my original (good) firmware, and the firmware with the audio bug (but that may be a different bug, as it's a different player), and =0x1801C000 is SCU_CPU0_CODEBASE. Here it is, from the SDK, or am I misunderstanding?
/ Code:
**************************************************************************Code:
for (i = 100; i = 0; i--)Code:
for (i = 100; i == 0; i--) |
Incidently, in comparing my original FW with the broken audio FW, I've found a difference in IOMUX_PowerOnInit:
My original FW: Code:
ROM:6002AC60 IOMUX_PowerOnInit Code:
ROM:6002AC60 IOMUX_PowerOnInit I'm trying to get the buttons to work in the SDK. That audio bug hasn't hit me yet, as I've been unable to detect any buttons or the touchscreen, although the compiled FW seems to run without any horrible issues. It just starts, I see the bouncing headphone sphere, and the screen goes dark as it times out. I have to hit reset to turn it off, or plug in the USB, which works normally. I've tried a bunch of things, and so far, no joy. |
Quote:
For our player, we use the internal RK27xx CODEC. I2C is set-up to I2C_Internal (2) I2S is set-up INTERNAL_CODEC (0) |
The only difference I found is that different values get written to RegIoMuxB register (SDRAM address pin 12 or GPIO pin on port F (bit 18)). Seems to be quite audio-unrelated but you might want to check that yourself.
|
Well, it might be anything. My observations tell me that headphone amplifier is just turned off, so the audio has a weak signal and it works properly only with external amplifier, which also may suggests why speaker doesn't work at all. So it's maybe only a matter of one pin set to high.
As far as I noticed this audio issue happens mostly on RK2705, while on RK2706 the same code runs ok. Perhaps the first one needs a special external power sent to the headphones. Please note that the audio problem occurs only with simple headphones WITHOUT amplifier. I plugged it into pc speakers and it works fine. And someone else here plugged it into wireless headphones (with amplifier) and it also worked ok. |
Yes, the difference in what I posted was what is sent to IOMUX_SetPwmPort(). It should be unrelated, but since it sets bits in RegIOMuxB just like IOMUX_SetI2SType(), plus, it's a difference between good and bad FW, it might be worth a look. I'd test it if I could, but I'm not that far along.
I've read about Pin 18 (where the 0x40000 is sent) on RegIOMuxB, but I can't figure out exactly what it does: sdtaddr12_gpiof_sel (SDT/GPIO IO MUX control) 0: sdt addr12 1: gpiof Doesn't look like it would affect audio, but doesn't look much like it would be a PWM port, either. It looks like sending 0x40000 to RegIOMuxA disables the internal codec. But that doesn't happen, it just caught my eye in the docs. |
Can someone tell me, in the SDK, where the initial code is that spawns the GUI code. If I trace from main() or the linker's entry point, I never reach the GUI. Where is all this spawned, exactly?
|
Maybe from some message-handler. I guess as soon as this RockCoreStart() is called the OS takes over. This should all be in the source.
|
Working Links
Please read this topic:
http://mympx.org/forum/general-discu...ing-links.html P.S. Also test the new Wolf3D engine for Rockchips (3D Graphics! :eek: Awesome!) http://ypokhilko.vn.ua/apps/ |
Wolf3D
Let's test the new Wolf3D v0.2 demo-alpha version ! :rolleyes:
http://ypokhilko.vn.ua/apps/ P.S. I'll make an update to the Games&Apps archive soon. As you see, my links are to the Folders not to Archives; so the links will not become broken again. |
v0.3
New Wolf3D v0.3 is available now. Test, please. :rolleyes:
|
Where can I get RK26 SDK
Where can I get RK26 SDK? How can I get started to develop? Do I need a special firmware? Do I need a JTAG? Does the MP4 has a USB bootloader by default? How can I enable it?
Thanks. |
Download
Quote:
http://mympx.org/forum/general-discu...ing-links.html |
Looks like I have to read the 47 pages to get what I am looking for. I appreciate if a kind wizard guide me to start development. I am experienced embedded system developer and I think this platform is good to play with.
1) I have a player with 2608a chip, can I develop for it? 2) I am more into modifying the firmware (at least the main menu) as well as developing new applications/games. Is that possible? 3) What compiler should I use? Can GCC for ARM do it? 4) In what page, in this thread, should I start reading (47 pages are too much to follow) 5) Any instructions on how to compile and build games? 6) Any instructions on how to compile/build the firmware? I know there is a custom firmware around , where can I get it. Thanks for you all for the great job! |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Regards |
Answers
Quote:
Quote:
Quote:
Quote:
Chapter II: "First steps" - 7-17 pages Read chapters I & II only if you're really interested in how we got those awesome tools and figure out how to use them. Chapter III: "We're developers" 18-48 pages Yes, it's long, but contains a lot of useful information. I think it will not take more than 20 minutes to run through it. Quote:
Write the source code using a C compilator, like Microsoft Visual Studio 2008 (use torrents) Then install the FWTools v2.6.10 (ReadMe.txt) and generate some output files. Install the Rockchip GDK, choose the settings and select your generated files from the previous step, and hit the "Link" button to create the .rkp file. Quote:
If you have more questions or need a more detailed explanation, I'd be glad to help. Good luck. :rolleyes: |
Thanks for the help.
I still have doubts before go ahead and write something to test on my player: 1) My player does not have a game menu. How can I run .rkp files? The player is based on rk2608a 2) How can I backup my player firmware? I tried the rkusb.tag trick but it did not work for me. Any help? 3) Where can I get the community firmware (binary and source)? Will it work for my player? |
rkusb.tag is a trick only for Rockchip 27xx, not for 26xx. If you don't have a backup FW you may kill your player forever. There is a risk that compiled SDK source won't work on your player and you'll be in trouble. Most often there are incompatibilities with screen driver but this can be easily repaired. But some players have very unique keyboard chips or touchpads and it will be hard. I have RK2606 player with touchpad, and after many trails I ran SDK on this player, but touchpad was dead and I still have no driver for it, though I have a working backup so I was able to experiment and return into my original FW.
As far as I know, there is no way to backup your current FW from the player, so if you bought a noname RK2608 player with no FW included, I have bad news for you. The best I can recommend you is to search through the internet and find whether there is a company which sales exactly the same player as yours (I mean clone), and there are pretty good chance that the FW they provide will work for you as a backup. Nevertheless there is still a huge risk. BTW. If you don't have game menu, you wont run any RKP files, they requires a new Firmware. Sorry. |
Thanks AleMaxx.
Is the only problem of using the community FW the LCD configuration? I can try all the configurations the matches my 2.8" LCD. I believe one will work. |
hi guys,
did anyone compiled the SDK with VB yet? when i try do to so i get this error: c:\rk27sdk_new\system\os\timer\slist.h(36) : error C2011: '_SINGLE_LIST_ENTRY' : 'struct' type redefinition 1> c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(857) : see declaration of '_SINGLE_LIST_ENTRY' I still dont understand the reason why is giving me that... can anyone let me know :) Thank you, ps - great progress guys... took me 2 days to read all the thread replies lol |
Please read this topic:
http://mympx.org/forum/general-discu...ing-links.html There are a lot of download links for you. :rolleyes: |
Quote:
There is a download for ADS somewhere, might taken another 2 days to find it! lol |
Quote:
well this is what i have as of now :) http://img257.imageshack.us/img257/5807/sdktools.jpg thank you, i was a little confused on how to compile the code... |
Good you already have ADS1.2
Install ADS. Go to C:\rk27sdk_new\Ide\Rk27_board and load rk27_baord.mcp into ADS. Then hit Project\Make to build it. you will find some errors at first. Here is my build which should compile fully :- http://www.sendspace.com/file/fjfwpa |
Quote:
any idea on how to get rid of the errors ? |
| 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