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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling with USB stack enabled
« previous next »
  • Print
Pages: [1]

Author Topic: Compiling with USB stack enabled  (Read 2212 times)

zajacattack

  • Guest
Compiling with USB stack enabled
« on: March 08, 2008, 01:11:41 PM »
How do I enable the new USB stack so that I can use it and run some tests with it? I have cygwin and the source code, I just need to know what to define and where to put it.
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Compiling with USB stack enabled
« Reply #1 on: March 08, 2008, 01:15:59 PM »
http://www.rockbox.org/twiki/bin/view/Main/PortalPlayerUsb
Logged

zajacattack

  • Guest
Re: Compiling with USB stack enabled
« Reply #2 on: March 08, 2008, 02:47:39 PM »
OK, I got it. So now, how can I run the tests described at http://www.rockbox.org/twiki/bin/view/Main/WebHome?topic=UsbPerformance on cygwin?
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Compiling with USB stack enabled
« Reply #3 on: March 09, 2008, 06:22:56 AM »
You can't, that's why it says GNU/Linux*.  I don't think Cygwin even gives you device nodes, and if it did, they'd just be wrappers to something else, so it wouldn't be a reliable measure.

*Although I can't see a reason OS X/BSD/Solaris aren't specified, unless they only want to specifically test against the Linux USB stack, for consistency's sake.
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Compiling with USB stack enabled
« Reply #4 on: March 09, 2008, 09:40:45 AM »
The main reason it specifies linux is because that line was put there by a linux user, so feel free to add info on how to do it on other OSes (I guess the main difference will be device naming).

Another reason is that at least my focus is not so much performance right now. At the time that page was created we only had full speed working, so getting every last bit of performance out of it was felt important. Since then we got high speed somewhat working and we found the sansa sd write bug that gets triggered by usb, and in my view, both change the picture completely.

I think it is very likely that with working high speed, performance limitatiuons will come mostly from the disk drivers and not so much from the usb stack, and moreover right now reliability is more important than performance.

All this doesn't mean that performance numbers aren't welcome though, so if you can do them, go ahead.
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: Compiling with USB stack enabled
« Reply #5 on: March 09, 2008, 03:11:16 PM »
Cygwin has devices for disks just like Unix.  They're just not visible in /dev.  For example, here's a read from my Archos V2 Recorder in Vista:
Code: [Select]
$ dd if=/dev/sdb of=/dev/null bs=1024k count=2
2+0 records in
2+0 records out
2097152 bytes (2.1 MB) copied, 0.199 s, 10.5 MB/s
Just like in other operating systems you need to have the right to do this.  In Vista the easiest way to do it is to right-click on "Cygwin Bash Shell" in the Start Menu and run it as Administrator.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling with USB stack enabled
 

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

Page created in 0.08 seconds with 14 queries.