Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Cowon D2
« previous next »
  • Print
Pages: 1 ... 54 55 [56] 57 58 ... 65

Author Topic: Cowon D2  (Read 636517 times)

Offline Frits

  • Member
  • *
  • Posts: 2
Re: Cowon D2
« Reply #825 on: May 07, 2010, 07:08:38 AM »
Quote from: Ezraghast on May 01, 2010, 08:53:40 PM
Quote from: Frits on April 27, 2010, 12:40:17 PM
I have a D2+ dab with firmware 4.13
I can't find a Rockbox version for my player.
Will it ever come?

Hi Frits, look here http://andrew92.centelia.net/ to see instructions and links to the patched firmwares. Just make sure to check your FW version. You'll want to be using one 4.xx See here also http://iaudiophile.net/forums/showthread.php?t=25285

I have downgraded the fw version from 4.13 to 4.12 but it won't work.

I have tried this.

 Download mktccboot.exe from here
- Download bootloader-cowond2.bin from here
- Download the original v4.12 D2_P.bin from here
- Put them all in the same folder, eg. C:\firmware
- Open a command window and run the following commands:

Code:

cd /d C:\firmware
mktccboot D2_P.bin bootloader-cowond2.bin D2_P-patched.bin

This should have created a new file, D2_P-patched.bin, which you should copy to your D2 and rename to D2_P.bin. Reboot the D2 and all should be fine...

« Last Edit: May 07, 2010, 08:37:00 AM by markun »
Logged

Offline motorbit

  • Member
  • *
  • Posts: 22
  • my spelling suck in my native language, too.
dissortions @ 48khz
« Reply #826 on: May 07, 2010, 06:30:19 PM »
hey, i think i found a bug or such.

lately, Ive been expecting some strange dissortions ( a high crackle) when i played audiofiles i  ripped some DVDs @ 16bit/48kHz.
also, Rb became irresponsible once when i was attempting to play one of these files, but a reset fixed it. i do´nt know whitch file caused Te crash and that crash was not reproducible.


i try ed various settings:
fl ac, ogg & ape each with some different settings off gain and with a -6db hard limiter.


to make sure my Rb isn't outdated or such , i made a clean install, what  fixed the problem. the oldest Rb version i tryed was r25836 and the most recent was  r25892.

original d2 Fw wont play flac @48kHz, but both oog and ape played fine with 2.13 cowon Fw.

all files played fine in rockbox after i re sampled them to 16bit/44.1kHz with foobar.
« Last Edit: May 07, 2010, 06:38:39 PM by motorbit »
Logged

Offline longfeng328

  • Member
  • *
  • Posts: 4
Re: Cowon D2
« Reply #827 on: May 08, 2010, 10:16:30 PM »
Hi there,im a code learner,i want to contribute to the RB's developing on D2.

now i think the usb issues is most necessary to be solved,e.g. usb charging or data transferring.
Onced done,we can set RB the first-boot firmware.

so could anybody tell me which files of the sources' code  should be concerned?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cowon D2
« Reply #828 on: May 08, 2010, 10:26:45 PM »
Quote from: longfeng328 on May 08, 2010, 10:16:30 PM
so could anybody tell me which files of the sources' code  should be concerned?

Check out:

/firmware/target/arm/usb-tcc.c

and

/firmware/target/arm/tcc780x/*

Also, /firmware/SOURCES lists most of the D2 specific files if you search it for "D2".
Logged

Offline longfeng328

  • Member
  • *
  • Posts: 4
Re: Cowon D2
« Reply #829 on: May 08, 2010, 11:01:21 PM »
saratoga,Thank you very much!
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cowon D2
« Reply #830 on: May 08, 2010, 11:23:53 PM »
It seems USB on the TCC chips is fairly well along, so hopefully with the datasheet and some debugging it can be made to work. 
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #831 on: May 18, 2010, 08:16:34 AM »
Quote from: saratoga on May 08, 2010, 11:23:53 PM
It seems USB on the TCC chips is fairly well along, so hopefully with the datasheet and some debugging it can be made to work. 
It's been used for logf-over-usb and also to dump raw data from the NAND chips via UMS, but reliability is poor and frequently stalls or freezes the player. Unfortunately my knowledge of USB is zero, so I didn't ever look into it further.

Controlling/monitoring charging should be fairly straightforward as it is controlled by the power management chip, but there's a slight complication because we have to runtime-detect whether there is a PCF50606 or 50633 present. There's a datasheet available for both chips, so implementation should be straightforward enough.

Apologies I've been away for so long, but "real life" commitments are keeping me plenty busy enough at the moment.

Edited to add:

Quote from: saratoga on April 05, 2010, 12:53:54 AM
Looking at my D2 build, it seems IRAM isn't used for codecs.  Is there a reason for this?  I see its in the lds file.

When I first started the port, I did have IRAM working and used for codecs, but for some unknown reason performance was actually worse than without. It was never investigated fully, so IRAM remains disabled.
« Last Edit: May 18, 2010, 08:22:19 AM by shotofadds »
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: Cowon D2
« Reply #832 on: May 21, 2010, 08:06:43 AM »
Quote from: shotofadds on May 18, 2010, 08:16:34 AM
Quote from: saratoga on April 05, 2010, 12:53:54 AM
Looking at my D2 build, it seems IRAM isn't used for codecs.  Is there a reason for this?  I see its in the lds file.

When I first started the port, I did have IRAM working and used for codecs, but for some unknown reason performance was actually worse than without. It was never investigated fully, so IRAM remains disabled.

Looking at crt0.S for D2, IRAM isn't cached or buffered.
s/1001aee0/1001aeec/ in tcc780x/crt0.S should do it.

btw would it be simpler to use map_section/ttb_init/enable_mmu functions from mmu-arm.S, rather than using the OF setup ?
Logged
a wise man said: "a wise man said"

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cowon D2
« Reply #833 on: May 25, 2010, 01:19:06 AM »
Quote from: funman on May 21, 2010, 08:06:43 AM
Quote from: shotofadds on May 18, 2010, 08:16:34 AM
Quote from: saratoga on April 05, 2010, 12:53:54 AM
Looking at my D2 build, it seems IRAM isn't used for codecs.  Is there a reason for this?  I see its in the lds file.

When I first started the port, I did have IRAM working and used for codecs, but for some unknown reason performance was actually worse than without. It was never investigated fully, so IRAM remains disabled.

Looking at crt0.S for D2, IRAM isn't cached or buffered.
s/1001aee0/1001aeec/ in tcc780x/crt0.S should do it.

btw would it be simpler to use map_section/ttb_init/enable_mmu functions from mmu-arm.S, rather than using the OF setup ?

Enabling it would be nice, since I think its real SRAM on the D2.  You'll probably get a little bit of a battery boost. 
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #834 on: May 25, 2010, 08:03:26 PM »
Quote from: funman on May 21, 2010, 08:06:43 AM
Looking at crt0.S for D2, IRAM isn't cached or buffered.
s/1001aee0/1001aeec/ in tcc780x/crt0.S should do it.

I had a couple of hours to get my dev box back up to speed tonight, and the results with IRAM and the above tweak are pretty good (if not earth-shattering). On a random sample of FLAC and MP3s I'm getting test_codec results about 10% faster than the figures on the CodecPerformanceComparison page - eg. FLAC is up to 2100%. I'll do some more conclusive testing later and get this committed (if it proves stable), since the improvement is definitely worth having.

Quote
btw would it be simpler to use map_section/ttb_init/enable_mmu functions from mmu-arm.S, rather than using the OF setup ?

Almost certainly.  ;)
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #835 on: May 26, 2010, 06:29:46 PM »
I've run test_codec several times over the full set of sample tracks with IRAM enabled and haven't run into any problems, so things appear to be stable. Improvements against the latest test on the CodecPerformanceComparison wiki (r25447, no IRAM) are:

AAC-HE +6%
Cook +14..16%
FLAC +7%
MP3 +7%
MPC +12%
AAC-LC +10..14%
Vorbis +13..17%
WMA +16%

APE/ALAC/WavPack are all more-or-less unchanged. I've attached the latest test_codec log to this post (tested using r26288 + IRAM).

Regarding battery life, I doubt even these improvements will make a lot of difference. There has been very little experimentation with power management / clocking changes / turning off outputs etc on this device, so I think codec performance is the least of our worries.  ;)

Also, while doing the above tests I did (re)discover that both the core and the MPA codec (at least) will attempt to put things in IRAM sections even if USE_IRAM is undefined. This is the reason for the current .lds hacks for this CPU, and should really be put right as it causes undefined instruction errors in the case of the MPA codec.

EDIT: Looks like some hackery in mad_iram.h is responsible for the MPA codec putting things in .icode/.ibss when it shouldn't. Not sure I'm the best person to tackle that, though.
* test_codec_log_03.txt (5.52 kB - downloaded 210 times.)
« Last Edit: May 28, 2010, 12:52:05 PM by shotofadds »
Logged

Offline longfeng328

  • Member
  • *
  • Posts: 4
Re: Cowon D2
« Reply #836 on: May 27, 2010, 09:29:21 PM »
shotofadds,your attached file is empty...  :-[
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #837 on: May 28, 2010, 12:52:30 PM »
So it was. I've fixed it now.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cowon D2
« Reply #838 on: May 28, 2010, 01:16:44 PM »
http://www.rockbox.org/wiki/CodecPerformanceComparison#Telechips_TCC7801_ARM926EJ_S

Updated.
Logged

mbk1969

  • Guest
Re: Cowon D2
« Reply #839 on: May 28, 2010, 01:39:03 PM »
Are binaries of "current build" built with that "IRAM"-optimization ?
Logged

  • Print
Pages: 1 ... 54 55 [56] 57 58 ... 65
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Cowon D2
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.109 seconds with 14 queries.