Rockbox Technical Forums

Rockbox Development => New Ports => Topic started by: Blitz on May 09, 2007, 09:28:15 PM

Title: RockChip mp3/mp4 players
Post by: Blitz on May 09, 2007, 09:28:15 PM
hello

I'm new to this forum, and I am planing on developing a port of rock box for most rockchip devices, experimenting with this one in particular: http://www.uxcell.com/uxcell/retail/item/showItemLayout.php?action=showItem&id=mv0wht1024mp058 mp3/mp4 player. I like the price, button interface, and expandability through SD card. I doubt I will be done anytime soon, hardware pics may be up as soon as the summer (in the wiki of course). I'm a bit skeptical about this port myself, delete this post if you see fit.
Title: Re: Alba Mp3/Mp4 player
Post by: markun on May 10, 2007, 04:18:58 AM
It looks a lot like some other players from China I've seen: the Ainol V1000 and the PMC-M600. The first uses a Blackfin CPU and I believe the 2nd one too.

Here's a look inside the V1000:

http://www.pconline.com.cn/digital/audio/mp4/mp4/0612/924573_2.html

I also have a firmware update for the V1000 which is not encrypted. It contains a lot of GPL and other open source licensed code and some stuff from Microsoft. I'm pretty sure they are not allowed to do that :)

I would also be interested in a port (but am still keeping my eyes open for a nicer Blackfin based DAP). The V1000 is not very expensive either (look on ebay).

Nice that the one you found uses a Nokia battery.
Title: Re: Alba Mp3/Mp4 player
Post by: Blitz on May 10, 2007, 05:35:27 PM
hmmm i think mine and the one you're talking about may use the same or similar firmware as they have many of the same features. i bought mine from a sales-front for the factory that actually builds them! ive e-mailed them and they may be able to get a component manifest and just maybe the source code for the firmware. im waiting for them to get back to me, but this may turn out to be a fairly easy job.
Title: Re: Alba Mp3/Mp4 player
Post by: rosco_pc on May 10, 2007, 11:51:36 PM
Mhhh, is the RockChip a blackfin based processor?
There is very little information avaialble on this processor (no datasheet) and is used in alot of Chinese DAP (either the 2606A or the 2608A).

Title: Re: Alba Mp3/Mp4 player
Post by: markun on May 11, 2007, 05:00:57 AM
I didn't find exactly what is in the RockChip. This link suggests a ARM9 core:

http://www.itren.cn/news/shownew.asp?id=10189
(translated: http://translate.google.com/translate?u=http%3A%2F%2Fwww.itren.cn%2Fnews%2Fshownew.asp%3Fid%3D10189&langpair=zh%7Cen&hl=en&ie=UTF8)
Title: Re: Alba Mp3/Mp4 player
Post by: rosco_pc on May 12, 2007, 03:52:30 AM
What I found is that it was ARM + some DSP core clocked at 100 MHz.
Getting the DSP core and the other integrated functions (like sound codec/USB)  to work without datasheet will be very difficult without.
Title: Re: Alba Mp3/Mp4 player
Post by: Blitz on May 14, 2007, 05:01:42 PM
yeah its a rock chip. i found out when i connected it to my computer. does anyone know where i can find the games .rkp, ive googled it but cant find it. also whats the screen size in pixels? (if anyone can figure it out) the strange thing is it seems to be begging you to create an updated firmware for it, it has a firmware updating software ready  and everything even tho theres no upgrade.
PS: is 100mhz sufficient to run a gameboy color emulator?
Title: Re: Alba Mp3/Mp4 player
Post by: gnu on May 15, 2007, 08:23:46 AM
Yes, 100 mhz is enough (it really depends on the screen size and on how much the emulator is optimized: rockboy runs on 75 mhz ipods). But I don't think that has much to do with a new port ;)
Title: Re: Alba Mp3/Mp4 player
Post by: Blitz on May 15, 2007, 10:22:37 AM
well by googling rockchip datasheet i managed to find two juicy tidbits on an mp3 player forum:
 this is a site holding just about all rock chip firmwares: http://translate.google.com/translate?u=http%3A%2F%2Fdrivers.21tx.com%2Fdigi%2FTeclast%2F&langpair=zh%7Cen&hl=en&ie=UTF8  

and this one is a download for a firmware creator for the rock chip.
http://www.sendspace.com/file/0yzzen

I'm at school right now so I'm having to minimize windows every five second to avoid getting caught (i'm in computer class) but i'll experiment with these when i get home.
Title: Re: RockChip mp3/mp4 players
Post by: rockchipper on July 02, 2007, 09:20:16 PM
Anyone found anymore on the Rockchip RK2606 or RK2608.

If the chip does have an ARM9 Core, then is there a way to create our own firmware to install Linux or WinCE onto the devices and start to craft our own UI and Apps, plus more importantly, since this chip seems heavy on video/audio, it should be able to handle emulators like NES and Atari 2600 fairly well - one would hope.


I found a copy of the datasheet if anyone is interested.


Rock On !!!


Title: Re: RockChip mp3/mp4 players
Post by: rockchipper on July 05, 2007, 08:24:34 AM
Been speaking behind the scene's a bit with Ker Nel and I gave him the Rockchip RK26xx datasheet's he's posted them up:


http://admin.gestogospel.sk/datasheets/Rock26XX-datasheet.pdf


I suggest we all start to look closely at this chip and lets start to see about how we could potentially get a Linux kernel onto it, remove its proprietary OS and look to get Rockbox onto it as well as other apps.

This chip based on the pair of RM100's I've taken apart and from the datasheet seems to be unbelievable powerful, so now lets see how far we can take it !


Rock On !!!



Title: Re: RockChip mp3/mp4 players
Post by: gnu on July 05, 2007, 01:51:39 PM
Rockbox does not depend on a linux kernel.
Quote: "Rockbox is a complete rewrite and uses no fragments of any original firmwares"
Title: Re: RockChip mp3/mp4 players
Post by: markun on July 19, 2007, 01:47:06 AM

Been speaking behind the scene's a bit with Ker Nel and I gave him the Rockchip RK26xx datasheet's he's posted them up:

http://admin.gestogospel.sk/datasheets/Rock26XX-datasheet.pdf


The datasheet doesn't say anything about a ARM core and the assembler instructions in the examples suggest it's MIPS based I think. I couldn't find anything on the "shll.e" instruction. Doesn't look good.
Title: Re: RockChip mp3/mp4 players
Post by: Laserboy on July 19, 2007, 08:14:14 PM
hey guys i found this form mympxplayer.org seems like a way (risky thought) how to edit the firmware off rockchip players... but like it says there seems to be no way of actaully extracting it for editing.... how this helps

http://www.mympxplayer.org/pafiledb/uploads/f283ed0a1b419979e2275d08b5084561.pdf
Title: Re: RockChip mp3/mp4 players
Post by: andrew on July 31, 2007, 05:36:44 PM
Here is a clue into the onboard Codec of some of the Rockchip processors:

http://www.dolphin.fr/corporate/announcements/publications/publications_overview.php
http://www.dolphin.fr/flip/analog/analog_overview.html
http://www.dolphin.fr/corporate/announcements/publications/pdf/rockchip.pdf

From both pages: "Our CODEC is embedded in Rockchip RK2606" someone might be able to glean some info from Dolphin Integration for programming information (like what happened with AustriaMicrosystems and their AS3514 chip).

Edit:
I just found a rar of the Rockchip USB driver and what seems to be the firmware update program:
http://www.pc210.com/download/downnow.asp?id=280

Edit (again):
I just found this also, its a page with a very large driver collection for all your cheap Chinese electronics (I even own a few of the listed devices ;) )
http://www.pc210.com/download/
Title: Re: RockChip mp3/mp4 players
Post by: knob on December 15, 2008, 05:36:14 PM
This player uses the ZSP400 instruction set I understand, here is the full technical manual,
http://www.mympxplayer.org/technical-manual-on-coding-rock-games-utils-df930.html

along with a Beta Disassembler and Assembler,
http://www.file-upload.net/download-1140530/RKP-Disassembler_and_Assembler_v01.zip.html
Title: Re: RockChip mp3/mp4 players
Post by: dragongod on December 15, 2008, 08:22:36 PM
It's wonderful if Rockbox can run on RK chips. ;D
But people said the RK27 chips are different with RK26, and there is no RK27 datasheet or anything else. Maybe it's more difficult to process the Rockbox on RK27...
Title: Re: RockChip mp3/mp4 players
Post by: Cabewse on December 17, 2008, 02:58:38 AM
Yes, the RK27 chips are very different. I beleive they are ARM7 200Mhz + Rockchip DSP 200Mhz.

I couldn't find the datasheet, but here's a schematic.
http://www.mympxplayer.org/rockchip-rk27xx-schematic-df905.html

Here's the description from the rockchip site:
Portable Media player solution
Hight performance ARM and DSP dual core processer
Embed 8-bits hardware ECC, support full line Nand Flash
TFT controller, support 26000 color and MCU/RGB panel
USB high speed controller, up to 4MB write speed
Embed high performance audio CODEC, HI-FI quality sound
Support SD/SDHC/MMC flash card
All video format supported, include
AVI,RM,RMVB,WMV,ASF,FLV,DAT,MPG,MP4,VOB,3GP,solution up to 800*480
JPEG, BMP, GIF decoder, support thumbnail, zoom, rotate, and slideshow display
Media library manager, sorted by ID3 and fast seach
Support 8/16 bits game simulator
Support TV output
Ebook reader, support slideshow and bookmark function
Multi language support, multi font display
MiniOS and GUI system, support aplha picture, fade functions
LQFP128 package
Title: Re: RockChip mp3/mp4 players
Post by: dragongod on December 21, 2008, 09:00:21 PM
we've done some research on one RK27 OF, we can dispack the OF and get files out. Most of them are media sources such as BMPs,fonts,etc. nothing looks like main process, or maybe main process is made into the chip?

I always think the only thing we can done with RK27 is change its HMI or develop some small apps. And I think that run ROCKBOX may be a mission-impossible. so, it's really wonderful if the ROCKBOX can run on RK chips.  ;D
Title: Re: RockChip mp3/mp4 players
Post by: bigjooe on April 26, 2009, 01:47:44 PM
Hello!
I'm new here. Today I found on mympxplayer.org Rockchip Developer Package. There is firmware source to RK27xx i think (im not sure). Maybe there is any way to make rockbox on it?
Here is link to topic and next 2 linx to package:
http://mympxplayer.org/3-vt12634.html?postdays=0&postorder=asc&&start=30
http://www.mediafire.com/download.php?2n2jftgfjvk
http://www.mediafire.com/download.php?mzyzzrwwcw2
Rockchip RK27xx have players like pentagram eon cineo, vedia c6, ramos rm970 etc.
I can't do anything with it because i'm not good in c programming. But maybe your better than me? :)
 
Title: Re: RockChip mp3/mp4 players
Post by: Giova on July 27, 2009, 03:18:57 PM
Hello, I've found some info for RK270x players on this page:
http://alemaxx.al.funpic.de/rk27/rkwfwpatch.html
Title: Re: RockChip mp3/mp4 players
Post by: alfchin on August 02, 2009, 02:54:54 AM
RK26XX differs from RK27XX on its ARM Core
RK26XX is just a DSP,while RK27xx has its own ARM core
In China,most manufactories use a set of hardware and firmware provided from rockchip or some other companies,and what they had done to the players is just modifying the UI.Maybe that's the reason why the toolkit can only find rsc files.Only some large manufactories ,like OPPO,have the SDK to modify the FW,and build in new functions.So I don't think you can get the source of FW,which is named MINI OS
Title: Re: RockChip mp3/mp4 players
Post by: tp11 on October 01, 2009, 12:27:12 PM
RK2706 datasheet can be found from this thread:

http://mympx.org/forum/general-discussion/43348-hooray-rockchip-sdk-36.html

Direct link:

http://www.megaupload.com/?d=FQQJJ7FV
Title: Re: RockChip mp3/mp4 players
Post by: bor_ka on June 24, 2010, 08:30:27 AM
It appears that there is partial datasheet for the RK28xx. http://drop.io/lylxuug/asset/rk28xx-datasheet-v0-2-pdf

RB for the Teclast T51? :)
Title: Re: RockChip mp3/mp4 players
Post by: yzflcyq on July 20, 2010, 11:58:43 PM
RockChip 27xx SDK is aviliable here:http://u.115.com/file/f9f67c7f48
Title: Re: RockChip mp3/mp4 players
Post by: dedero on January 26, 2011, 11:31:10 AM
Hello guys,

I could get RK28xx datasheet, probably it will be useful.

http://www.megaupload.com/?d=3XDDC0DS

I'm waiting a rockbox for S:flo2, I'm able to pay for it!!!!  ;D
Title: Re: RockChip mp3/mp4 players
Post by: wodz on January 28, 2011, 06:53:09 AM
Glancing at rk28xx pdf they changed very little from rk27xx - mainly the ARM core has been upgraded from ARM7EJS to ARM926EJS.

After lecture of rk27xx pdf and various internet sources I am preparing to fiddle with my cheap rk2705 based DAP. I think I understand how to configure clocks, cache controller and memory controller. Now I am studying how the boot process proceeds.
Title: Re: RockChip mp3/mp4 players
Post by: knob on September 20, 2011, 01:28:35 PM
Quote
As of r30459 it is possible to compile and run main rockbox binary, codecs and a few test plugins.

 -- MarcinBukat - 07 Jun 2011

I know this port is still in early stages yet.

But I can to do some testing for the Rk27xx port.
I have a couple of rk27xx players I can experiment with, not worried about bricking as I have some tools and recovery firmwares ready.

I have already installed virtualbox, the Unbuntu configured environment and downloaded Rockbox source from svn.

If I add my player's lcd config in the source, disable the plug-ins and just compile the rest, can I install Rockbox now using rk27load?

Title: Re: RockChip mp3/mp4 players
Post by: wodz on September 22, 2011, 08:05:29 AM
You can upload it to the device, yes. You cannot install it permanently as I haven't written proper bootloader code yet.

I guess it is not coincidence that you have  the same nickname as one of the guys hacking rk27xx OF :-)
Title: Re: RockChip mp3/mp4 players
Post by: knob on September 23, 2011, 02:10:29 PM
:-)

Well.. I've built the tools and the main binary now.

cela@cela-desktop:~$ sudo ./rkusbtool -d
[sudo] password for cela:
rkusbtool v0.1
(C) Marcin Bukat 2011
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Switching into rk DFU mode...

cela@cela-desktop:~/READY$ sudo ./rk27load -e1 -e2 -s1 stage1.bin -s2 stage2.bin -s3 rockbox.rk27
rk27load v0.2
(C) Marcin Bukat 2011
Based on rk27load ver. 0.1 written by AleMaxx (alemaxx at hotmail.de)

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[info]: Initializing device... done
[stage1]: Loading 500 bytes (stage1.bin) of code... done
[stage1]: Encoding 500 bytes of data ... done
[stage1]: codesize = 500 (0x1f4)
[stage1]: Calculating checksum... 0xd314
[stage1]: Uploading code (502 bytes)... done
[stage1]: Loading 928 bytes (stage2.bin) of code... done
[stage2]: Encoding 1022 bytes data... done
[stage2]: Calculating checksum... 0x9dea
[stage2]: Uploading code (1024 bytes)...
[error]: Code upload request failed (ret=-7)
[error]: Error -24
stage1.bincela@cela-desktop:~/READY$

Got an error uploading stage2, maybe i have an issue with libusb, need to find out what that error code is about.
Title: Re: RockChip mp3/mp4 players
Post by: wodz on September 23, 2011, 03:39:56 PM
1) Which stage1 image did you used? The one provided with rk27load is broken unfortunately and I was too lazy to fix this. You may use stage1 binary unpacked from Rock27Boot.bin with help of rkboottool.
2) Pay attention to encryption params.
Title: Re: RockChip mp3/mp4 players
Post by: knob on September 24, 2011, 12:42:39 PM
Thanks Wodz

Sorted it with Stage1 from my rock27boot.bin.

Switching into rk DFU mode...
cela@cela-desktop:~/READY$ sudo ./rk27load -e1 -e2 -s1 rkboot_s1.bin -s2 stage2.bin -s3

rockbox.bin
rk27load v0.2
(C) Marcin Bukat 2011
Based on rk27load ver. 0.1 written by AleMaxx (alemaxx at hotmail.de)

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[info]: Initializing device... done
[stage1]: Loading 510 bytes (rkboot_s1.bin) of code... done
[stage1]: Encoding 510 bytes of data ... done
[stage1]: codesize = 510 (0x1fe)
[stage1]: Calculating checksum... 0x7ce5
[stage1]: Uploading code (512 bytes)... done
[stage1]: Loading 512 bytes (stage2.bin) of code... done
[stage2]: Encoding 1022 bytes data... done
[stage2]: Calculating checksum... 0x1f49
[stage2]: Uploading code (1024 bytes)... done
[stage3]: Loading user code (575064 bytes)... done
[stage3]: Uploading user code (575068 bytes)... done (sent 1124 blocks)
rkboot_s1.bincela@cela-desktop:~/READY$


Display is working.

(http://i203.photobucket.com/albums/aa99/astola/rockbox11.jpg)

Can get into diagnostic mode, 4 out the 6 keys my device has are recognised so that's

good.

(http://i203.photobucket.com/albums/aa99/astola/rockbox12.jpg)
Title: Re: RockChip mp3/mp4 players
Post by: wodz on September 25, 2011, 07:06:03 AM
The main binary expects .rockbox folder on uSD card, thats why you got ATA error I guess. Try make zip and unpack the content into root of the uSD.

PS. If you are interested in rockbox port for rk27xx join our IRC channel.
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on September 29, 2011, 01:21:02 PM
I can't make keys work for my device.
The only working key is Power On/Off.
I've printed GPIOs to display but pressing the keys (except  Power On/Off key) doesn't change any values.

Any suggestions how to make them work?

Title: Re: RockChip mp3/mp4 players
Post by: wodz on September 29, 2011, 01:28:40 PM
They are read through ADC most probably.
Title: Re: RockChip mp3/mp4 players
Post by: knob on September 29, 2011, 03:47:54 PM
This works quite well for me, seems it would only need a proper bootloader to go from "unusable" to
"unstable" on my device.

(http://i203.photobucket.com/albums/aa99/astola/rockbox3.jpg)

The audio is quality is very good and I can navigate the menus well with the 4 keys
that work.

(http://i203.photobucket.com/albums/aa99/astola/rockbox4.jpg)

I do get choppy audio when I first go into the "Now playing" screen or change tracks there, but if I back out
into the browser again the audio is good, even transistion to the next track is smooth.

Hmm.. Now what is it about that "Now Playing" screen that causes the choppy audio?
Title: Re: RockChip mp3/mp4 players
Post by: wodz on September 29, 2011, 04:58:13 PM
Thats surprisingly good news!!! Could you describe more precisely the steps to have smooth playback? The reasons which comes to mind is:
1) peak meater
2) sloooow lcd updates

regarding the buttons - you may investigate which port values are changing in System->Debug->View I/O ports screen and than hack button driver in firmware/target/arm/rk27xx/rk27generic/button-*
and key-action mappings in apps/keymaps/keymap-rk27xx-generic.c

And one more thing - what exactly is your player (or is this noname one?)

cheers
wo
Title: Re: RockChip mp3/mp4 players
Post by: saratoga on September 29, 2011, 05:00:11 PM
I do get choppy audio when I first go into the "Now playing" screen or change tracks there, but if I back out
into the browser again the audio is good, even transistion to the next track is smooth.

Hmm.. Now what is it about that "Now Playing" screen that causes the choppy audio?

The now playing screen updates a lot more frequently then the menus if I remember correctly.
Title: Re: RockChip mp3/mp4 players
Post by: knob on September 30, 2011, 01:51:54 PM
My player is a no name like this,  http://www.rockbox.org/wiki/pub/Main/Rockchip27xx/mp5_3.jpg
can’t remember now if it’s a Rk2705 or Rk2706,  I shall have a look next time I open it up.

Players looking like this are for sale now, but using Rk261X (Rkcrown), which is very similar but using “RKCrownBoot.bin”, I have one of these too.

The chop in the audio occurs about every 2 seconds.(0.5hz) , it happens in the “Now Playing” screen after I select a new track, if I exit from the “Now Playing” screen into the menu the audio is fine, it is also fine if I go back again into the “Now Playing” option until I skip to the next track.

If  I keep out of the “Now Playing” screen and stay in the menus the audio is good always, even  moving on to the next track and so on.

Does your device have  choppy playback at all times?  It could be that my device is close the threshold where this happens (which is lucky for testing purposes).

I have thought about applying a simple theme to disable the “Peak Meter” to see what happens
Title: Re: RockChip mp3/mp4 players
Post by: wodz on September 30, 2011, 03:49:14 PM
isn't rk261x completely different SoC?

On mine 'noname RM970 clone' playback is always choppy. I think I'll go and implement lcd partial updates - this should at least change 'chop pattern'.

Do you understand by the chance how the whole LCDIF block is working? Running lcd in bypass mode and performing pixel conversion on every write is not the most effective way but I could figure out how to setup the hardware to do this for me.
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on October 01, 2011, 12:14:05 PM
They are read through ADC most probably.
Yes, they are. I've changed button driver to make them work.

The only button left not working is hold. It's read  not through ADC or GPIO.
Title: Re: RockChip mp3/mp4 players
Post by: wodz on October 01, 2011, 03:11:25 PM
mortalis: could you provide vendor/model of your player (or is this again noname)?
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on October 02, 2011, 04:03:37 AM
mortalis: could you provide vendor/model of your player (or is this again noname)?
It's HIFIMAN HM-601.

I've noticed that my device has 2 different DFU modes:
1.  I can switch to this mode by this ways (works only with original firmware):
If I use rk27load in this mode I get following:
Code: [Select]
[info]: Initializing device... done
[stage1]: Loading 510 bytes (rkboot_s1.bin) of code... done
[stage1]: Encoding 510 bytes of data ... done
[stage1]: codesize = 510 (0x1fe)
[stage1]: Calculating checksum... 0x7ce5
[stage1]: Uploading code (512 bytes)...
[error]: Code upload request failed (ret=-7)
[error]: Error -14


-7 means libusb timeout error.

RK27UpgradeImage from RockChip SDK identifies device as "RK27 Loader Usb " and works well.

2. The only way to put device in this mode is to connect 29 and 30 pins on Sasmung flash memory chip.
RK27UpgradeImage identifies device as "RK27 Mask ROM usb" and works well too.
rk27load also works fine in this mode.


Playback not working at all cause my device use I2S bus.
Also shutdown isn't work. I get "Shutting down..." message but device keeps working.
Title: Re: RockChip mp3/mp4 players
Post by: pamaury on October 02, 2011, 06:49:42 AM
Hi all,
I know this thread is mainly about rk27xx devices but I recently stumbled upon a new kind of rockchip: RKnano-B. From rockchip website it's also an ARM base SoC dedicated to MP3 players. It's very hard to find any information aout it, there is not SDK, no datasheet it seems. The only thing I found is some windows tool to upgrade the firmware but they are not very useful. Furthermore there is no firmware upgrade for this device so no way to inspect the firmware code.
Here is a photo of the device: http://perso.ens-lyon.fr/amaury.pouly/SSL22776.JPG (http://perso.ens-lyon.fr/amaury.pouly/SSL22776.JPG)
And the link to rockchip info: http://www.rock-chips.com/index.php?do=prod (http://www.rock-chips.com/index.php?do=prod)
Title: Re: RockChip mp3/mp4 players
Post by: wodz on October 02, 2011, 12:35:35 PM
mortalis: could you sniff usb trafic when in this 'other' dfu mode between player and RK27UpgradeImage?
Regarding playback - It always uses I2S bus. The difference may come if this bus is connected to internal codec (as in mine and knob's device) or external one. In the second case you have to know what codec have been used. If you are lucky we may have driver if you are not you will have to write one. Anyway the first step is to find out what codec is being used. I2S initialization is prepared to route signals to external pins if HAVE_RK27XX_CODEC is not defined.
Title: Re: RockChip mp3/mp4 players
Post by: wodz on October 02, 2011, 01:35:02 PM
mortalis - what a nice, old fashioned brick :-) What a crazy idea to put 20+ old tda1543 inside (if this is truth). Anyway this would be something new in rockbox as this dac is not configurable in any way. You may try to simply undefine HAVE_RK27XX_CODEC and see what happens. I guess you will need some defines magic to enable dsp controls (volume, eq, etc.). What about the display? Does it work?
Title: Re: RockChip mp3/mp4 players
Post by: keyb_gr on October 02, 2011, 02:27:19 PM
mortalis - what a nice, old fashioned brick :-) What a crazy idea to put 20+ old tda1543 inside (if this is truth).
The lousy battery life does have to come from somewhere, right? Of course the concept is nuts - classic audiophoolery. The OF also gives lots of incentive to start a RB port...
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on October 03, 2011, 08:13:37 AM
wodz: Here is sniffed usb trafic:http://www.box.net/shared/6cl0pj5gfpoi9c3huoo0 (http://www.box.net/shared/6cl0pj5gfpoi9c3huoo0)
In htm format:
1 (http://www.box.net/shared/c2eati3g7l67l0eihp5l) 2 (http://www.box.net/shared/22opjif4nqkpaznl7et4) 3 (http://www.box.net/shared/3bda9fktrvjnramxmaou)

When HAVE_RK27XX_CODEC undefined I get  audiohw_* undefined reference errors.

According to display, I've wrote lcd driver and its working.

In defence of my "brick" I could say that sound is amazing :-)
Title: Re: RockChip mp3/mp4 players
Post by: wodz on October 03, 2011, 02:29:24 PM
you need this defines in firmware/export/config/rk27generic.h in addition to HAVE_SW_TONE_CONTROLS
/* has no volume control, so we use the software ones */
#define HAVE_SW_VOLUME_CONTROL

/* software controlled volume ranges from -73 -> 0 dB, other than that
   is controlled by hardware */
#define SW_VOLUME_MIN   -73
#define SW_VOLUME_MAX   0

/* define the bitmask of hardware sample rates */
#define HW_SAMPR_CAPS   (SAMPR_CAP_44)

and you need to write dummy driver which at least define audiohw_settings[]
and functions audiohw_preinit() , audiohw_postinit() which setup I2S only in this case.

Please share your code and join us on IRC
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on October 04, 2011, 07:19:20 AM
I'm working on patch now, to make port for my player. I'll upload in few days, and begin to work on playback problem.
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on October 06, 2011, 11:28:47 PM
FS#12319 (http://www.rockbox.org/tracker/task/12319) - initial patch for HM-601
Title: Re: RockChip mp3/mp4 players
Post by: wodz on October 07, 2011, 03:52:50 AM
Thanks for your contribution - I commented patch on FS
Title: Re: RockChip mp3/mp4 players
Post by: wodz on October 07, 2011, 02:52:50 PM
mortalis: could you provided sniff of usb communication in the form wireshark can handle? I can't open bin log in enything and html version is unhandy.
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on October 08, 2011, 07:00:15 AM
http://www.box.net/shared/i4mdf6dqnekzmfxbzksg (http://www.box.net/shared/i4mdf6dqnekzmfxbzksg)
Title: Re: RockChip mp3/mp4 players
Post by: wodz on October 17, 2011, 05:38:31 AM
Welcome hifiman-60x port on board since r30765 :-)
Title: Re: RockChip mp3/mp4 players
Post by: saratoga on October 17, 2011, 11:00:57 AM
Is playback working?  You should send a gentlemen email:

http://www.rockbox.org/wiki/GentlemenMails
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on October 27, 2011, 02:00:37 PM
FS#12355 (http://www.rockbox.org/tracker/task/12355) One more HiFiMAN  :)
Title: Re: RockChip mp3/mp4 players
Post by: knob on November 12, 2011, 02:09:00 PM
Foehn & Hirsch H16 Sleek Screen MP4 Player 4GB 3.0" TFT Screen Rk2705 and Rockbox.

You can use Rockbox on this player using the rk27xx reference build unmodified.

I have modified a standard cabbie theme to the rk27xx 240x400 layout, music plays very well in fact better quality than the OF using playfx. Many plug-ins also work including Coverflow and Lyricplayer.

(http://i203.photobucket.com/albums/aa99/astola/Rockbox_Sleek1.jpg)

To do this I had created base.rkw from rockbox.bin using alemaxx patching tool and placed in the original firmware (.img) image.

Please bear in mind if you try this:-

1) Soft shutdown does not work so you need to use the mechanical on/off switch to turn the   
    player off, other rk27xx players may not even have this option.

2) You cannot go back to the original firmware unless you open the player and   
    short out the nand pins to get back into update mode, some players are difficult     
    to open without damage.

3) No flash memory access from Rockbox or USB transfer, but a 8GB microSD     
    works fine.

4) Only 5 out of the 6 buttons work, but Rockbox only requires 5 anyway.

5) There is no FM radio option or recording.

In spite of the above overall I have found Rockbox much better than the original firmware, but it might be worth hanging on ‘til the above issues are resolved. ;-)
Title: Re: RockChip mp3/mp4 players
Post by: wodz on November 14, 2011, 04:51:08 PM
missing FM should be easy to fix. Other things are much harder. I am working on reverse engineering FTL now so hopefully we will get nand access one day.

I dissasembled nand bootloader also so now I understand boot process much better - this opens possibility to provide dualboot option but this needs more work and my resources are rather limited.

Could you bench rockbox sd driver? You will need to hack and build test_disk plugin.
Title: Re: RockChip mp3/mp4 players
Post by: reggieb on February 27, 2012, 05:16:06 PM
Mortalis: on your site, you have drivers available for download, however, they are .sys files, without INF or EXEs, .sys isn't executable...

EDIT: I am an idiot, although I still can't install the files, as all of my computers are 64-bit intel based, and none of those will install...might have to set up a virtual box here.

EDIT2: I have now tried on a Windows XP machine, and a 32-bit Windows 7 machine, still can't get the drivers to install. On my work computer, it acts like it's doing something, but then it doesn't work. On my 32-bit Windows 7 ExoPC (I forgot I had it) I get the message that "The INF file you selected does not support this method of installation" when I right click and choose install.
Title: Re: RockChip mp3/mp4 players
Post by: mortalis on February 29, 2012, 11:44:57 AM
This is one of the ways to install drivers for windows 7:
 Run command line with administrative privileges and run following commands

You also could try to read detailed instruction about uninstalling rockbox  here (http://www.head-fi.org/t/579686/how-to-installing-and-uninstalling-rockbox-to-the-hifiman-hm-801-603-602-and-601#post_7882412)
Title: Re: RockChip mp3/mp4 players
Post by: wodz on March 05, 2012, 12:23:25 PM
I am proud to announce that I've commited dualboot capable bootloader for rk27xx based players.
Title: Re: RockChip mp3/mp4 players
Post by: van0014 on April 11, 2012, 10:45:12 PM
You probably have this already, but heres an RK Nano schematic: http://www.upurload.com/files/2ee4c33b48f3595bfaccb4d9a183cb1f.pdf (http://www.upurload.com/files/2ee4c33b48f3595bfaccb4d9a183cb1f.pdf)

I have lots of RK27xx tools if you want them just ask and ill upload them:
(http://www.upurload.com/files/4f4d698fc0d412457cb5407235b96e83.png)

http://www.upurload.com/files/4f4d698fc0d412457cb5407235b96e83.png (http://www.upurload.com/files/4f4d698fc0d412457cb5407235b96e83.png)

The folder is 65mb worth, and its only 8.55mb in a .RAR
its easy to upload
Title: Re: RockChip mp3/mp4 players
Post by: wodz on April 12, 2012, 02:33:35 AM
You mix rk27xx and rknano (which are probably related but are two different things). Nano schematic is known but of little use as it contains only little more then rknano chip itself. Without datasheet and better understanding of firmware file format rknano port is not going to happen.
Title: Re: RockChip mp3/mp4 players
Post by: tp11 on May 08, 2012, 10:33:53 AM
Has anyone tried this with touchscreen RK27xx players?

Here's exactly the one that I have:

http://vempaimia.net/2009/07/22/diel-symphony-300-8gt-mp5-soitin-arvostelukohteena/
Title: Re: RockChip mp3/mp4 players
Post by: knob on May 08, 2012, 11:55:11 AM
Has anyone tried this with touchscreen RK27xx players?

Here's exactly the one that I have:

http://vempaimia.net/2009/07/22/diel-symphony-300-8gt-mp5-soitin-arvostelukohteena/

What resolution is your player?
Have you got a firmware backup?

The reference build is 400x240 screen, but without a touch screen driver, I noticed that there are 3 regular buttons on your player which may work.

You need to do make the bootloader and make the zip to unpack on the uSD card, there is no support for flash memory only uSD.

You could try the dual boot with the original firmware, but the screen must be 400x240 or you will need to do the screen driver for sure.
Title: Re: RockChip mp3/mp4 players
Post by: tp11 on May 08, 2012, 01:53:47 PM
Has anyone tried this with touchscreen RK27xx players?

Here's exactly the one that I have:

http://vempaimia.net/2009/07/22/diel-symphony-300-8gt-mp5-soitin-arvostelukohteena/

What resolution is your player?
Have you got a firmware backup?

The reference build is 400x240 screen, but without a touch screen driver, I noticed that there are 3 regular buttons on your player which may work.

You need to do make the bootloader and make the zip to unpack on the uSD card, there is no support for flash memory only uSD.

You could try the dual boot with the original firmware, but the screen must be 400x240 or you will need to do the screen driver for sure.

I have a backup and the resolution is 400x240 so those are already covered. I just don't have a micro-SD card at the moment so I have to buy a spare one before I can actually test the Rockchip firmware.


Post Merge: May 08, 2012, 02:21:06 PM
Do I use rk27load to upload bootloader.bin to the player? I am just not sure what I use as stage2.bin as it wasn't compiled with Rockbox sources.

For example sudo ./rk27load -e1 -e2 -s1  bootloader.bin -s2 stage2.bin -s3 rockbox.bin

Sorry if I have stupid questions, I just don't want to brick the player.
Title: Re: RockChip mp3/mp4 players
Post by: knob on May 08, 2012, 02:32:34 PM
Quote
Do I use rk27load to upload bootloader.rkw to the player?

No need for rk27load just rename bootloader.rkw to BASE.rkw and replace it in the firmware image and flash to player if you have .img file update.

If your player has .RKW firmware update then just open the firmware partition and copy the bootloader over to the player.

Rockbox.rkw and original firmware  BASE.rkw goes in the .rockbox folder on the uSD card then you can do a dual boot, the dual boot works very well and makes updating and testing very easy.


Hope this helps.

p.s. Do you have the original diel-symphony-300 player?
Title: Re: RockChip mp3/mp4 players
Post by: tp11 on May 08, 2012, 02:37:49 PM
Quote
Do I use rk27load to upload bootloader.rkw to the player?

No need for rk27load just rename bootloader.rkw to BASE.rkw and replace it in the firmware image and flash to player if you have .img file update.

If your player has .RKW firmware update then just open the firmware partition and copy the bootloader over to the player.

Rockbox.rkw and original firmware  BASE.rkw goes in the .rockbox folder on the uSD card then you can do a dual boot, the dual boot works very well and makes updating and testing very easy.


Hope this helps.

p.s. Do you have the original diel-symphony-300 player?

There are no .img updates for this player and it is original Diel Symphony 300.

I'll test the booting as soon as I get the micro-sd card.

Would it be possible to use the internal memory for the .rockbox  folder or is it completely out of question?
Title: Re: RockChip mp3/mp4 players
Post by: wodz on May 08, 2012, 03:28:49 PM
Internal memory is not supported and will not be unless someone reverse engineer FTL they used.

Touch version will need some work. All designs I saw use HSADC for reading touch position and currently we don't have driver for that part of the hardware. It should be pretty easy to write one though. Another thing to note is that resolution doesn't matter. What is really important is the lcd controller chip used.
Title: Re: RockChip mp3/mp4 players
Post by: Songs0fFailure on May 23, 2013, 03:05:56 PM
Does anybody found datasheets for RKnano\RKnano-B\RKnano-C ?
i search on chinese websites like pudn.com, docin.com, download.csdn.net, ishare.iask.sina.com.cn and i tried to get documents form IC suppliers on alibaba.
all i found is pin assignment from texet schematic diagrams and thist pdf - http://www.sendspace.com/file/ofldjd (http://www.sendspace.com/file/ofldjd)
and i have different tools for RKnano.
Title: Re: RockChip mp3/mp4 players
Post by: saratoga on May 23, 2013, 03:13:52 PM
Does anybody found datasheets for RKnano\RKnano-B\RKnano-C ?

Just whats been reverse engineered here:  http://rockbox.haxx.se/wiki/RockChipNanoB

FWIW, if thats correct its not a very interesting target since it has too little RAM to do much with.
Title: Re: RockChip mp3/mp4 players
Post by: Sitheek on November 01, 2013, 07:17:30 PM
Quote
Do I use rk27load to upload bootloader.rkw to the player?

No need for rk27load just rename bootloader.rkw to BASE.rkw and replace it in the firmware image and flash to player if you have .img file update.

If your player has .RKW firmware update then just open the firmware partition and copy the bootloader over to the player.

Rockbox.rkw and original firmware  BASE.rkw goes in the .rockbox folder on the uSD card then you can do a dual boot, the dual boot works very well and makes updating and testing very easy.


Hope this helps.

p.s. Do you have the original diel-symphony-300 player?

Hi ! I want to install Rockbox on this cheap (<30$) RK 2738 device smartscreens TuchMe - it is an ebook reader : http://www.smartscreens.com/801/73223.html

It has 800x480 touchscreen and 8 Gb internal flash. It is very similar to this device :
http://www.prestigio-tech.it/products/eBook-readers/3-series/PER3274B

It is possible to run firmware on TouchMe made for PER3274B, but there are some differences in touchscreen driver and battery information is incorrect. There is no radio function in TouchMe.

I was able to use tool for flashing firmware from PER3274B and it works OK, we can flash img files without MD5 checksums required by tool provided by smartscreens.

I have compiled rockbox under my debian wheezy - and the botloader too. Mounted img file, and copied botloader.rkw into system/base.rkw and prepared sd card with .rockbox folder - I have copied there all files from rockbox.zip and original base.rkw.

I have flashed my new img file into device and... system started from /system00/base.rkw not from my sd card :(

Then I have replaced /system00/base.rkw with rockbox bootloader.rkw and flashed this image into device - reboted and ... device runs in that switched mode waiting for flashing new firmware.

I believe rockbox bootloader.rkw is somehow not accepted by bootloader from original firmware and it can't be executed.

I'm curious why it does not work and how this device boots - some bootloader (uboot?) runs rock2729boot.bin and then /system/base.rkw?

@wodz : what tools did you use to diassemble yours rk 2706 bootloader (Ida?), what do I need to know, if I want to change yours bootloader to run on this rk 2738 devices?

 I have schematic of generic cheap RK 2738 ebook reader from some chinese site. It is probably wery similar or identical to my device. I will attach it here and also rock2729boot.bin.

Is there any public SDK for RK 2729, RK2738 or RK 2808 devices?
Title: Re: RockChip mp3/mp4 players
Post by: wodz on November 19, 2013, 07:08:59 AM
273x series is much closer to 280x AFAIK so no, rk27xx port will not work according to my knowledge. There are 3 sources of information available: 1) There are products briefs from Rockchip (which in case of rk2738 states it uses arm926-ejs core like rk280x and not arm7-ejs like rk270x) 2) There is preliminary and incomplete datasheet for rk280x flaying around 3) There are linux kernel sources for rk2808 released by Archos once upon a time.
Title: Re: RockChip mp3/mp4 players
Post by: rna023 on January 18, 2014, 11:23:52 PM
anyone useing players with the chip of RKnano
Title: Re: RockChip mp3/mp4 players
Post by: saratoga on January 18, 2014, 11:46:37 PM
anyone useing players with the chip of RKnano

See here:  http://www.rockbox.org/wiki/RockChipNanoB

However, most of the chips in that series seem to have very limited RAM, which makes them not very interesting for running custom firmware.