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
| | |-+  Stupid USB stack question
« previous next »
  • Print
Pages: [1] 2

Author Topic: Stupid USB stack question  (Read 5195 times)

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Stupid USB stack question
« on: February 20, 2008, 12:33:35 AM »
Looks like the PP USB stack is progressing pretty well to me, seems like there's some UMS drivers already. I read that you have to define USE_ROCKBOX_USB, but I have no idea where to define it. Is the file you have to modify in the target's directory, the arm directory or somewhere else?
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Stupid USB stack question
« Reply #1 on: February 20, 2008, 01:42:06 AM »
Add "-DUSE_ROCKBOX_USB" to the end of EXTRA_DEFINES in /rockbox/build-dir/Makefile.
« Last Edit: February 20, 2008, 01:44:49 AM by cool_walking_ »
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Stupid USB stack question
« Reply #2 on: February 20, 2008, 03:28:17 AM »
Or you can probably use this command line :

Code: [Select]
CFLAGS=-DUSE_ROCKBOX_USB make

When you kick off the build.
Logged

Read The Manual Please

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Stupid USB stack question
« Reply #3 on: February 20, 2008, 04:05:42 AM »
Or add #define USE_ROCKBOX_USB to /firmware/export/config-e200.h whilst replacing config-e200.h with config-your_target.h
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Stupid USB stack question
« Reply #4 on: February 20, 2008, 07:49:29 PM »
Thanks, but that didn't seem to do anything. Maybe the USB stack isn't as far along as I thought.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Stupid USB stack question
« Reply #5 on: February 21, 2008, 03:01:58 AM »
Some people are already using it for file transfers. Maybe you didn't do it right.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Stupid USB stack question
« Reply #6 on: February 21, 2008, 03:23:15 AM »
Just to confirm - I've already used the USB code to do a complete upgrade of Rockbox on my iPod - it works just fine.
Logged

Read The Manual Please

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Stupid USB stack question
« Reply #7 on: February 21, 2008, 03:33:06 AM »
I'm using it to transfer music and more (albeit with the latest patch as well as SVN).
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Stupid USB stack question
« Reply #8 on: February 21, 2008, 01:25:53 PM »
Made 2 stupid mistakes, first I forgot to update SVN  :-[ , then I forgot to run configure again.

EDIT: The makefile version didn't work, either it still didn't compile right or USB doesn't work on the H10.
« Last Edit: February 21, 2008, 01:37:20 PM by Mad Cow »
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Stupid USB stack question
« Reply #9 on: February 21, 2008, 02:24:49 PM »
Well, it does work on the H10 as amiconn tested in last night (CET) in IRC.  Therefore I think we must look at the former option...
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Stupid USB stack question
« Reply #10 on: February 21, 2008, 03:17:33 PM »
Weird, I'll try adding it to config-h10-5g.h
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline mightybrick

  • Member
  • *
  • Posts: 223
  • I Administer Radiation
Re: Stupid USB stack question
« Reply #11 on: February 23, 2008, 10:25:18 PM »
Quote from: GodEater on February 21, 2008, 03:23:15 AM
Just to confirm - I've already used the USB code to do a complete upgrade of Rockbox on my iPod - it works just fine.
Just a quick question regarding this comment:
When upgrading builds and replacing the rockbox.* file (using Rockbox USB), is a reboot needed to reload rockbox from the upgraded rockbox.* file?
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Stupid USB stack question
« Reply #12 on: February 24, 2008, 03:43:56 AM »
Quote from: mightybrick on February 23, 2008, 10:25:18 PM
Just a quick question regarding this comment:
When upgrading builds and replacing the rockbox.* file (using Rockbox USB), is a reboot needed to reload rockbox from the upgraded rockbox.* file?

Either that or rolo:ing the new file will load the new build.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Stupid USB stack question
« Reply #13 on: February 24, 2008, 08:16:51 AM »
Quote from: nls on February 24, 2008, 03:43:56 AM
Either that or rolo:ing the new file will load the new build.

Which, for those of you unfamiliar with the term, means navigating into the .rockbox folder, and "playing" the new .ipod file you just copied to the DAP.
Logged

Read The Manual Please

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Stupid USB stack question
« Reply #14 on: February 24, 2008, 12:45:18 PM »
Quote from: GodEater on February 24, 2008, 08:16:51 AM
"playing" the new .ipod file you just copied to the DAP.
... which will be .mi4 on H10 (.iriver on H100 / H300 series, and so on -- the manual holds the exact name).
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

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

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

Page created in 0.118 seconds with 14 queries.