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
| |-+  Starting Development and Compiling
| | |-+  Patching help
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: Patching help  (Read 6564 times)

Offline rossic

  • Member
  • *
  • Posts: 27
Re: patches
« Reply #15 on: January 28, 2007, 09:21:11 AM »
I was a bit confused myself at first (not that I'm any expert or anything).  I understand that it gets really annoying when you do something wrong and it doesn't work.  Especially when you think you've read everything.  

What I usually find is that I did not read the Wiki carefully enough.  All of the info is there.  

That said, it can be hard to find, so I'll try to give you a pointer.  

First, I just want to make sure that your cygdrive/c/rockbox directory is where your source files are located?  so in that directory you have  a /apps, /tools, etc?  If so, then you're really close to being done.  

in your command "patch --binary -p0 < chopper.diff"  there is something that you must tweak.  The -p0 has to do with the directory levels in that file.  You must increment that until it works.  So if -p0 gives you that error, then try -p1, then -p2, up to -p5.  It should work at one of those steps.  Once it goes, you should see it patch stuff.  If anything says "failed" then you have a problem.  Otherwise, it should be ok.  

If by chance you were not in that directory where the source files are located, then the step for "../tools/configure" will not work.  So here's what you do.

get in the folder where you have the source files (./apps/ and ./tools/ etc.).  then type
-mkdir build
-cd build
-../tools/configure
then you get the option of choosing your player.  Once you do that, choose what kind of build you want.  Then it will make a makefile.

If you type
-make
at that point, it will build rockbox for you.  If it fails to compile, then you have one or more of 3 issues.  
  • you didn't follow a step properly (cygwin install)
  • the patches you applied are faulty
  • the build is currently not compiling for your player

If you are ABSOLUTELY SURE you haven't done anything wrong, then go check the SVN really quickly.  It will tell you if your build is compiling (check it with the settings you used in the ../tools/configure program).  If it is then check with flyspray to see if the patches you used are currently buggy.  Let us know how it goes (in this thread).

good luck
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: Patching help
« Reply #16 on: January 28, 2007, 09:30:58 AM »
kirch24, I have just merged your new thread into this existing thread.  This is the third time that I have had to do this, despite asking you twice to follow our posting guidelines and to avoid starting new threads on the same topic.  This is your third and last warning.  

DO NOT START ANY MORE NEW THREADS ON THIS TOPIC.  

If you start another new thread on this topic rather than posting in this existing thread, your posting privileges will be suspended.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline kirch24

  • Member
  • *
  • Posts: 42
Re: Patching help
« Reply #17 on: January 28, 2007, 09:35:44 AM »
thanks alot for that post its helpes me alot!
Logged

Offline rossic

  • Member
  • *
  • Posts: 27
Re: Patching help
« Reply #18 on: January 28, 2007, 09:46:50 AM »
I'm glad it helps.  If you have any more problems with this topic please post them in this thread!  I, and many other people are happy to help where we can.

Logged

Offline kirch24

  • Member
  • *
  • Posts: 42
Re: Patching help
« Reply #19 on: January 28, 2007, 09:39:46 PM »
i cant find the source file, where is it normall, i dont know whre the /apps and /tools files are, does anyone know?
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: Patching help
« Reply #20 on: January 28, 2007, 10:03:07 PM »
Did you get a copy of the source by following this step of the SimpleGuideToCompiling:

http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling#Getting_The_Source_Code
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline rossic

  • Member
  • *
  • Posts: 27
Re: Patching help
« Reply #21 on: January 28, 2007, 10:16:07 PM »
Febs replied while I was typing, so this may be useless, but...  here goes.


Well....  lets see.  you say you can't find the "source" file.  also, the /tools/ and /apps/ folders I was talking about previously are folders.  I'm not sure you have downloaded the correct file from the Rockbox server.  

What exactly are you trying to patch?  It seems to me that you probably downloaded a build.  If you initially downloaded from http://build.rockbox.org/ by choosing your model iPod from there, then you downloaded the SOFTWARE.  You need the SOURCE.  Source files are NOT running software.  You must use Cygwin to COMPILE the source files to MAKE them software.  

If you look at the build webpage above, you will see an option for "Source Archive" at the very bottom.  You need that.  Download it, and extract it to a folder called "source" or something.  Then, when you are in that directory, you will see the "/tools/" and "/apps/" folders.  From there, go back to what I said in my last post, and follow those instructions.  
Logged

Offline kirch24

  • Member
  • *
  • Posts: 42
Re: Patching help
« Reply #22 on: January 28, 2007, 10:16:35 PM »
so i got the source file and everything worked until i got to the

#  Now type make
# Sit back and watch the files being compiled... this process should not take more than 5 minutes (may take a little more if you have a slow computer)


here is a screenshot of what happened:




what do i need to do? i think it is something the do with my path


Logged

Offline rossic

  • Member
  • *
  • Posts: 27
Re: Patching help
« Reply #23 on: January 28, 2007, 10:21:35 PM »
You may be right.  It is either your path, or you have an incomplete cygwin install.

Make sure you have installed everything said in the Wiki under http://www.rockbox.org/twiki/bin/view/Main/CygwinDevelopment, including the section about the path.  You can run the cygwin setup program again, and it will let you add more.  
Logged

Offline kirch24

  • Member
  • *
  • Posts: 42
Re: Patching help
« Reply #24 on: January 28, 2007, 10:38:47 PM »
Edit using nano or vi (not Notepad or Wordpad in Windows) /etc/profile and add ":/opt/sh/bin:/opt/m68k/bin:/opt/arm/bin" (without the quotation marks) to the end of the line that says: PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin...

that is what it say if the certain files arnt in your patch

does anyone know what nano or vi is?
Logged

Offline rossic

  • Member
  • *
  • Posts: 27
Re: Patching help
« Reply #25 on: January 28, 2007, 11:03:55 PM »
nano and vi are utilities similar to notepad.  nano is much simpler to understand than vi, so I suggest that.  They should be available through the cygwin installer.  If not, you can try a different program called notepad2.  It's available at http://www.flos-freeware.ch/notepad2.html.
Logged

Offline kirch24

  • Member
  • *
  • Posts: 42
Re: Patching help
« Reply #26 on: January 28, 2007, 11:07:43 PM »
do you know what file to edit?
Logged

Offline rossic

  • Member
  • *
  • Posts: 27
Re: Patching help
« Reply #27 on: January 28, 2007, 11:11:15 PM »
As stated in the sentence you copied from the wiki, the file is "/etc/profile".   It will be wherever you installed cygwin.  c:\cygwin is the default.
Logged

Offline kirch24

  • Member
  • *
  • Posts: 42
Re: Patching help
« Reply #28 on: January 28, 2007, 11:37:02 PM »
 I DID IT :D im so happy thanks for all you help
Logged

Offline kirch24

  • Member
  • *
  • Posts: 42
Re: Patching help
« Reply #29 on: January 28, 2007, 11:51:57 PM »
as i expected i encountered a new problem,  do i drop the patch in the build file? or where?
Logged

  • Print
Pages: 1 [2] 3
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Patching help
 

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

Page created in 0.08 seconds with 15 queries.