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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
« previous next »
  • Print
Pages: 1 ... 52 53 [54] 55 56 ... 129

Author Topic: SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2  (Read 1337512 times)

Offline mbr

  • Member
  • *
  • Posts: 3
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #795 on: April 20, 2009, 10:23:11 AM »
Quote from: sko on April 19, 2009, 04:15:43 PM
Here is a patch by kugel and me which enables scrollwheel acceleration on e200v2: FS#10151. Maybe someone with an e200v2 can have a look at it.

The patch works on my e250v2
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #796 on: April 20, 2009, 10:44:43 AM »
Hi.

I have played with FS#10048 and noticed something interesting:

When declaring IRAM as cached/bufferable, rockbox sometimes boot, sometimes crash.
When it boots I can decode/play (perfect sound) ~20s of audio before it crashes.

I had the time to use test_codec before rockbox crashes, and decoding speed was significantly higher! (required freq for MP3 : 36MHz)

So the slowness problem definitely comes from caching.

Since rockbox continues to crash / deadlock (even with caches disabled), we probably have remaining bugs in our drivers, which might be more visible when caches are enabled...

So, TODO : read carefully all the as3525 drivers and look for bugs ;)
Logged
a wise man said: "a wise man said"

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #797 on: April 20, 2009, 02:04:16 PM »
Quote from: funman on April 20, 2009, 10:44:43 AM
I had the time to use test_codec before rockbox crashes, and decoding speed was significantly higher! (required freq for MP3 : 36MHz)

Wow even faster per clock then PP or the Gigabeat F!

Quote from: funman on April 20, 2009, 10:44:43 AM
When declaring IRAM as cached/bufferable, rockbox sometimes boot, sometimes crash.
When it boots I can decode/play (perfect sound) ~20s of audio before it crashes.

Do you flush the caches before/after DMA transfers to IRAM then? 
Logged

Offline sko

  • Member
  • *
  • Posts: 52
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #798 on: April 22, 2009, 02:45:21 AM »
I updated FS#10151: it's compiling again (didn't work since r20757)
Logged
Sandisk Sansa e250v2 + 8GB Sandisk microSD Card
Ubuntu 9.10

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #799 on: April 22, 2009, 08:04:55 AM »
Quote from: saratoga on April 20, 2009, 02:04:16 PM
Do you flush the caches before/after DMA transfers to IRAM then?

Only before transfers, did you look at FS#10048 ?

Other topic : I started looking at USB code, and indeed the registers look very similar to AMD 5536 UDC, but some are missing (from AS3525, or from AMD 5536).

A problem is that I don't see any FIFO mentioned in AMD 5536 or AS3525, I still have to read the Linux source code to see how data is transferred.
Logged
a wise man said: "a wise man said"

Offline daytona955

  • Member
  • *
  • Posts: 9
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #800 on: April 22, 2009, 08:22:07 AM »
There seem to be Linux USB gadget drivers for the Synopsys DesignWare HS OTG core (as per the AS3525 PDF) here:

http://svn.dd-wrt.com:8000/dd-wrt/browser/src/linux/rt2880/linux-2.6.23/drivers/usb/dwc_otg

and here:

http://casper.berkeley.edu/svn/trunk/roach/sw/linux/drivers/usb/gadget/dwc_otg/

Dunno if that might help?

The  licence seems quite permissive...
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #801 on: April 23, 2009, 08:26:15 AM »
Thanks, but it doesn't appear to be a compatible device:

Register at offset 0x404 is "Host Frame Interval Register" while in AS3525 datasheet and AMD5536UDC it is DEV_CTL (and I couldn't find at least one register that matches)

Here are some differences between the registers list in AS3525 datasheet and AMD5536UDC (perhaps different hardware revisions of the same chip?):

EP In Status Mask Register (EP in base + 0x18) is absent from AMD5536UDC datasheet
EP In Write Confirmation Register (EP in base + 0x1C) is absent from AS3525 datasheet

The RX & TX FIFOs are absent from both datasheets but are documented to be at 0x800 (RX) and 0xC00 (TX) in the linux driver source code.


I'm reverse engineering the usb_functio & otg_functio library blocks from Clip firmware to try to see more light but it's a bit difficult: the code appears to be compiled C++ and use a lot of pointers and structures (perhaps something to do with class inheritance).
Logged
a wise man said: "a wise man said"

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #802 on: April 23, 2009, 12:13:11 PM »
You don't seem to be interested in the MMU stuff right now anymore? It would be awesome if we could figure it out, USB is (IMO) not really essential now (i.e. if we want to release the sansas, we should fix the mmu stuff before caring about USB).

In any event, could you post the code with which you were able to have caching + playback for 20s anywhere?
Logged
 

Offline cyclon1978

  • Member
  • *
  • Posts: 8
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #803 on: April 24, 2009, 12:10:45 PM »
i adopted the lcd yuv blit patch for sansa e200. please check FS#10165 http://www.rockbox.org/tracker/task/10165 and if it can be commited it should be merged with FS#10118 http://www.rockbox.org/tracker/task/10118, it uses the same lcd_write_yuv420_lines/lcd_write_yuv420_lines_odither function. No need for duplicated code ;-)

maybe the lcd_window_blit function can be split into window_x and window_y functions like the fuze version do it...

thanks,

Andreas
« Last Edit: April 24, 2009, 12:17:06 PM by cyclon1978 »
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #804 on: April 24, 2009, 12:16:51 PM »
Yes of course I'm still interested!

I want to work on USB to be able to use logf() through usb, and see more exactly when our Sansas stop working (it's a bit hard when the lcd screen doesn't work!)

The code I used to have playback + caching for 20s is nothing but the patch you posted on FS#10048 with these diffs:
  • Enable dcache & icache (they are explicitely disabled in sansa_as3525.c)
  • Enable caching for IRAM (CACHE_ALL) only, not for SDRAM (CACHE_NONE)
  • Uncomment dcache invalidation (before read_sectors() ) and dcache writeback (before write_sectors() ) in ata_as3525.c

Just see my comment on Apr 3rd (in FS#10048) : I think nothing changed since, except that I don't remember trying playback.

In short I don't have any code to share which isn't on the flyspray task already :/
Logged
a wise man said: "a wise man said"

Offline sko

  • Member
  • *
  • Posts: 52
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #805 on: April 25, 2009, 06:32:47 AM »
Could someone with a fuze test how the scrollwheel works in spacerocks, please? On the e200v2 the spaceship turns in wrong direction or don't turn at all if I turn the wheel to fast. I want to know if this happens on the fuze too, as they basically use the same scrollwheel function.
Logged
Sandisk Sansa e250v2 + 8GB Sandisk microSD Card
Ubuntu 9.10

Offline PouncePony

  • Member
  • *
  • Posts: 34
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #806 on: April 25, 2009, 08:16:59 AM »
Scroll wheel works properly in Space Rocks on the Fuze.

-Pony
Logged

Offline sko

  • Member
  • *
  • Posts: 52
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #807 on: April 25, 2009, 08:54:49 AM »
Quote from: PouncePony on April 25, 2009, 08:16:59 AM
Scroll wheel works properly in Space Rocks on the Fuze.

-Pony
Thank you. I'll try to have a look at this, as it seems to be related to scrollwheel acceleration and repeats, which seem to work on e200v2 not as good as on the fuze until now.
Logged
Sandisk Sansa e250v2 + 8GB Sandisk microSD Card
Ubuntu 9.10

Offline Hillshum

  • Member
  • *
  • Posts: 108
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #808 on: April 25, 2009, 09:54:43 AM »
I'm having serious issues on my e260, but I get it in the OF too (even without any RB code) so I think it's hardware related.
Logged

Offline fenugrec

  • Member
  • *
  • Posts: 1
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #809 on: April 26, 2009, 11:47:35 AM »
Has anyone officially contacted Synopsys ? (www.synopsys.com)
They made the IP for the USB core, it would be this one:
http://synopsys.com/dw/ipdir.php?ds=dwc_usb_2_0_hs_otg

p.162 of this doc has more general information :
http://www.synopsys.com/dw/doc.php/doc/dwf/manuals/dw_frg.pdf

Having the official pdf from Synopsys would be a plus...
I tried looking around on the website, and registering on the
website was next to impossible, so perhaps an official contact
from Rockbox would have more success ?

Also, it would seem that AMD's 5536 has a different core altogether -
the datasheet doesn't mention OTG compliance, and looks more like
a complete host controller than a device.. I may be quite
wrong on this though, I just skimmed over the 5536 datasheet.
« Last Edit: April 26, 2009, 12:19:02 PM by fenugrec »
Logged

  • Print
Pages: 1 ... 52 53 [54] 55 56 ... 129
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
 

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

Page created in 0.135 seconds with 15 queries.