Rockbox Development > New Ports
SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
daytona955:
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...
funman:
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).
kugel.:
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?
cyclon1978:
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
funman:
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 :/
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version