Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: Looking for Help on June 06, 2006, 07:06:34 PM

Title: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 06, 2006, 07:06:34 PM
I'm very surprised that nobody has attempted to make a guide on how to do this (besides in the wiki, of course). So I'll try to make this as simple as I can.

To view the wiki VMware,  Click Here (http://www.rockbox.org/twiki/bin/view/Main/VMwareDevelopmentPlatform)

The reason I am posting this up is so you may patch up a source code, then compile it. I have not seen a guide on this, so here we go

Go and find yourself some patches (http://www.rockbox.org/tracker/index.php?type=4) that you wish to use. Save them all into a folder that's easy to remember (ie. Desktop).

Download these files, but DONT DO ANYTHING TO THEM YET.
VMware player (http://download3.vmware.com/software/vmplayer/VMware-player-1.0.1-19317.exe)
7zip (http://prdownloads.sourceforge.net/sevenzip/7z442.exe?download)
Debian 2.7z (http://download.rockbox.org/vmware/Debian-2.7z) (Takes time to download, 184mb)

Part 1: Downloading and Installing
1.1 Go into your C:\ drive and make a new folder named "vmware" (no quotes). This is just for orginization.
1.2 Put all 3 files you just downloaded and place them into the "vmware" folder.
1.3 Double click on the 7zip file. Follow the instructions for installing it, use the default settings.
1.4 Extract the Debian 2.7z files right into the "vmware" folder. This may take some time, it requires more than 2 gigabytes of space!
1.5 Finally, double click on the VMware player. Installation will take 5-10 minutes. Just use default settings again. Make a desktop shortcut, it makes it easier to find.
1.6 Open up the VMware player on the desktop. It should ask you to restart the computer. Please do so, and return to this page after the restart.

PART 2: Patching
2.1 Now that you have restarted your computer, open up the VMware player. The first thing that pops up is a window asking you to find the "virtual machine configuration file". It is located in C:\vmware . It should be the only file that shows up, and click it and hit open.
2.2 It may take a few minutes to load. Once it loads up, a screen should come up with a username and password slot. In the username slot, type in "user" (no quotes). In the password spot, type "rockbox" (no quotes). YOU PROBABLY WILL NOT SEE ANYTHING SHOW UP IN THE PASSWORD BOX, THIS IS GOOD. MAKE SURE YOU TYPE IN THE PASSWORD CORRECTLY.
2.3 Once it loads up, you should see a picture with the rockbox logo on it. Right click on the screen, scroll down to "Xshells", and click on "Eterm".
2.4 A command prompt type box should come up. Type in the following to download the CVS (source code).
Code: [Select]
cvs -z3 -d:pserver:username@www.rockbox.org:/cvsroot/rockbox co rockbox-develIf that doesn't work above, instead of "username" type in "anonymous" (no quotes). The download will take a few minutes.
2.5 Next, go into your CVS folder by typing in
Code: [Select]
cd rockbox-devel2.6 Open up a windows explorer (or internet explorer if windows doesn't have an address bar) and type in the following
Code: [Select]
\\debian\userA username and password window should pop up. For the username, type in "user" (no quotes) and for the password type in "rockbox" (no quotes).
2.7 A folder should show up named "rockbox-devel". Double click it.
2.8 Copy and paste all of your patches into this folder.
2.9a [optional]To test a patch and see if it works, without actually patching it up, type in[/optional]. TELL ME IF THIS WORKS!!
Code: [Select]
patch --dry-run --binary -p0 < patchfilenameWhere patchfilename is the name of the file you are patching.
2.9b To patch your file, type in the following.
Code: [Select]
patch --binary -p0 < patchfilenameNOTE!! If you get an error, you probably put in the file name for that patch incorrectly. Make sure you have the patch file name WITH the .patch or .diff on the end. For example:
Code: [Select]
patch --binary -p0 < scroll.patchALSO!! If you get an error for every patch, you may need to change the "-p0" to "-p1" or "-p2" and so on. This usually isn't the case, however.
Now that you're done patching, move on to the next section.

PART 3: Compiling
3.1 Make sure you're cd'ed in the "rockbox-devel" folder.
3.2 Type in the following to make a new folder named "build_h120"
Code: [Select]
mkdir build_h1203.3 Go into that new folder by typing in
Code: [Select]
cd build_h1203.4 Now type in the following
Code: [Select]
../tools/configureA bunch of choices should appear. Find the music player that you wish to put this on, and type in the number corresponding to that music player. Example: Type in "15" (no quotes) for the iPod Video. Another bit of text will appear, just type in "n" (no quotes) for normal.
3.5 Now type in
Code: [Select]
makeYou will see text flying across the screen. This is exactly what you need to happen.
3.6 Once the text is done, type in
Code: [Select]
make zipTo finish it. The zip file will be named "rockbox" in your debian folder at rockbox-devel/build_h120 .

Unzip the file, and place both of the files into your iPod's root. Congradulations, you just made a custom patched up rockbox!

If you wish to start over from the beginning, either delete the entire rockbox-devel folder and retype the command that downloads the rockbox-devel folder, OR type in
Code: [Select]
cvs -q up -dPC
Thanks to ryran for some of the commands and everyone else who helped me do this for the first time.

I need Feedback to see how this worked for everyone

ALSO I made a patched up rockbox for a 5g with absolute positioning for rockboy (http://www.megaupload.com/?d=ESQE6XJZ). I need people to test it out for me and give me feedback via post or PM. Thank you
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: holt.justin173 on June 06, 2006, 08:20:07 PM
i don't know why but i can not get the 7zip to download
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 06, 2006, 08:54:22 PM
Just checked it, it works fine.

Go to http://www.7-zip.org/download.html (http://www.7-zip.org/download.html)

Click on the top link with the word ".exe" to the right of it.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: that_asian_guy on June 07, 2006, 01:01:03 PM
Thanks a lot, I finally got compiling down with your tutorial  ;D. Except I don't think I checked out the source code correctly, because my compile generated a 150 kb build that had no rockbox.ipod, and a .rockbox folder with only a few files in it.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 07, 2006, 01:23:35 PM
Thanks a lot, I finally got compiling down with your tutorial  ;D. Except I don't think I checked out the source code correctly, because my compile generated a 150 kb build that had no rockbox.ipod, and a .rockbox folder with only a few files in it.

Yeah, the rockbox.ipod file should be 350kb+. Make sure you typed in the correct part for the cvs.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: lx Envy xl on June 07, 2006, 04:22:33 PM
I FINALLY LEARNED HOW TO PATCH!!! THANKS!!! But a quick question.  I applied the rockboy absolute  wheel positioning and now I cant use the rockboy menu.(?)  Also, I applied the doom scroll wheel and I dont know if its the patch or what but it is still the normal controls.  Also, should the themes be reset or still there.  Cuz mines still there and Im wondering if I unzipped it wrong. 
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: that_asian_guy on June 07, 2006, 04:32:51 PM
for the rockboy question, did you apply all 3 patches on that page, because you need all of them for that one to work.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 07, 2006, 06:03:55 PM
for the rockboy question, did you apply all 3 patches on that page, because you need all of them for that one to work.

Yes, thats the only way it works. I made one with all of them, and I need people to test them. It is located at the bottom of my original post.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: that_asian_guy on June 07, 2006, 06:11:19 PM
for the rockboy question, did you apply all 3 patches on that page, because you need all of them for that one to work.

Yes, thats the only way it works. I made one with all of them, and I need people to test them. It is located at the bottom of my original post.

I was replying to envy.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 07, 2006, 06:14:43 PM
I FINALLY LEARNED HOW TO PATCH!!! THANKS!!! But a quick question.  I applied the rockboy absolute  wheel positioning and now I cant use the rockboy menu.(?)  Also, I applied the doom scroll wheel and I dont know if its the patch or what but it is still the normal controls.  Also, should the themes be reset or still there.  Cuz mines still there and Im wondering if I unzipped it wrong. 

If you copied the .rockbox and rockbox.ipd files into your ipod and pressed overwrite all, the it will overwrite all of the files it needs to replace. This means that if a file is on your ipod and its not in that compiled version of rockbox you made, then it will stay there unmodified. So yes, your themes should still be there.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: XavierGr on June 07, 2006, 08:41:38 PM
Nice guide there.
More info about the VMware development platform here:
http://www.rockbox.org/twiki/bin/view/Main/VMwareDevelopmentPlatform

It is nice to know that this image is finaly used by newcomers.
As you, in the start I didn't know how to build rockbox, after reading the wiki and setting up a Cygwin enviroment I was disappointed by its speed (cygwin is slow!).

Someone on #rockbox mentioned about setting a VMware enviroment and I liked the idea. As a linux newbie it was a little hard for me to create this image, thanks to all the devs I managed to stick on 184mb, a whole OS with all Rockbox development tools.

I am gratefull to amiconn too, which updated the package with the new archos tool chain and of course Bagder and Mikachu that host the file.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: lx Envy xl on June 07, 2006, 08:57:03 PM
your rockboy patches work great for the 5G.  Now is there any way to add to an existing patched build or do you have to make a new one every time?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 07, 2006, 09:08:20 PM
your rockboy patches work great for the 5G.  Now is there any way to add to an existing patched build or do you have to make a new one every time?

Your CVS should be all patched up. You can keep adding to it, and the other patches should still be there. If you want to delete all current patches and start fresh, just delete the entire "rockbox-devel" folder, then redownload it with the "cvs -z3 -d:pserver..." command.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: lx Envy xl on June 07, 2006, 09:31:25 PM
ok thanx!  NOW I CAN PATCH!!!!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: sunRise on June 08, 2006, 08:54:52 AM
Hello... thanks for the tutorial...  but i have a litle problem.... i start runing vmware and load the confi file... but when i insert again the comand for download the cvs build i have a error message says...
warnig failed to open /home/user.cvspass for reading no such file or directory.....
whats going on?
Another think is.. when i put anonymous in loging then i take the same error but start to download.. i supose is the cvsbuild.. but i continue read your tutorial... but... in this point:

2.6 Open up an internet explorer and type in the following

Code:
\\debian\user
Windows not found that directory.... i supose when you speak about internet explorer you talk about windows.......
thanks for all... :D
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Llorean on June 08, 2006, 09:08:32 AM
Y'know, if you found the wiki page insufficient or too confusing, it would be _much_ appreciated if you actually updated it, rather than posting in a place a very small subsection of users will see.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: sunRise on June 08, 2006, 09:29:36 AM
Sorry Llorean.. im new here... not see you post a guide there..... thank you ::D
By the way is very good help the wiki.. but im confusing about permisions... lol its my first time using this programs.. and compiling.. be patiend please.. and im sorry :D thank you again :D
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: ryran on June 08, 2006, 11:20:01 AM
sunRise: he wasn't talking to you; he was talking to the creator of the this thread.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Llorean on June 08, 2006, 11:22:13 AM
Yeah, it was directed at the thread creator, sorry for the confusion.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 08, 2006, 01:55:39 PM
No no, the wiki is perfectly fine. Sometimes I had an error or a question however, and I'd ask someone else about it from either the forum or the IRC, and they'd answer it.

It's the fact that I wasn't as experienced, so I didn't understand some of it. This is just a bit more user friendly to the people who are new and not fimiliar upon the subject.

I dont know how to update the wiki. If you (Llorean) would like to do it, or tell me how to do so, I would be perfectly fine with it.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: ryran on June 08, 2006, 02:27:05 PM
Thanks for this. I wasn't planning on doing this today.. hadn't even looked around for a guide yet... Couple things I thought you might want to add/change:

point 2.6: I'd change that to say windows explorer. it will save some confusion.

next I'd say something about running the patch commands with the --dry-run option first, which doesn't actually make any changes. very nice when you find out that a patch isn't gonna apply cleanly.

and finally, I'd make a note about how you can start over from scratch (sync with cvs clearing any changes patches made) by entering something like cvs -q up -dPC

I had no problems compiling my first build thanks to you. Runs like a charm. It includes the 64mb patch, the accelerated scrolling patch, and the latest (updated today by obo) unplug/pause patch.
-------EDIT-------
Updated 6/16. Still has the 64meg and autopause patches, but no longer includes scrolling patch; instead it has the playnav/quickexit patch (http://www.rockbox.org/tracker/task/5294). Get it here: http://b19.org/6-16-apause-64-playnav.zip (http://b19.org/6-16-apause-64-playnav.zip)
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Llorean on June 08, 2006, 04:45:19 PM
Well, the simple guide for compiling in the wiki is intended for new users, so if as an inexperienced user you find it doesn't tell you something clearly, it definitely needs to be edited.

There's an edit button in the lower left corner of the page. You'll have to register with the wiki, but that's a painless process (it's a different login than the forums) and then you can make whatever changes to the page you like. It's really fairly simple to make changes to it, for the most part just change existing sections if the formatting stuff confuses you. :)
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Cheater on June 08, 2006, 05:38:10 PM
Hello... thanks for the tutorial...  but i have a litle problem.... i start runing vmware and load the confi file... but when i insert again the comand for download the cvs build i have a error message says...
warnig failed to open /home/user.cvspass for reading no such file or directory.....
whats going on?
Another think is.. when i put anonymous in loging then i take the same error but start to download.. i supose is the cvsbuild.. but i continue read your tutorial... but... in this point:

2.6 Open up an internet explorer and type in the following

Code:
\\debian\user
Windows not found that directory.... i supose when you speak about internet explorer you talk about windows.......
thanks for all... :D

I'm getting the same problem. I've tried entering \\debian\user in internet explorer and windows explorer as well as the run box (all should work), but none of them work. I really want to use vmware. Does anyone know how to fix this error? I've tried uninstalling vmware and reinstalling it twice now, but nothing works. Thanks.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Llorean on June 08, 2006, 05:42:41 PM
The VMWare machine shows up in the "Workgroup" workgroup, so it's possible that the path \\Debian won't work if your computer is in a different one. I'm *really* not sure about this though.

Trying to go to My Network Places, then clicking "View Workgroup Computers" and see if Debian shows up there. If not, go up a level with the little folder and arrow icon up top, then see if there are other workgroups it could be hiding in (or maybe you were in the other one.)
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: saratoga on June 08, 2006, 07:12:56 PM
If the name doesn't work, try by ip address.  ifconfig in debian iirc to look it up.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Cheater on June 08, 2006, 10:22:39 PM
I got it working. I had to fool around with the workgroup info for my computer, but it works. Thanks a ton. Now all I need to do is learn how to set up the simulator.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 09, 2006, 12:14:33 AM
Thanks for this. I wasn't planning on doing this today.. hadn't even looked around for a guide yet... Couple things I thought you might want to add/change:

point 2.6: I'd change that to say windows explorer. it will save some confusion.

next I'd say something about running the patch commands with the --dry-run option first, which doesn't actually make any changes. very nice when you find out that a patch isn't gonna apply cleanly.

and finally, I'd make a note about how you can start over from scratch (sync with cvs clearing any changes patches made) by entering something like cvs -q up -dPC

I had no problems compiling my first build thanks to you. Runs like a charm. It includes the 64mb patch, the accelerated scrolling patch, and the latest (updated today by obo) unplug/pause patch. I've already posted links in a couple other threads, but here it is for anyone that wants it: b19.org/6-08pause64scroll.zip (http://b19.org/6-08pause64scroll.zip)

For the cvs -q up -dPC command, is that all you need to type in? And what would the whole line of command be for a --dry-run command be? Post it up, and I'll put it on the guide and give you credit.

Thanks in advance.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: sunRise on June 09, 2006, 08:25:55 AM
Well.... i do it yesterday.. thank you.... its correct my computer is not workgroup "the name" then Workgroup is on All network.. apears there... but theres is another problem... today i try to login again.... with anonymous.. and then.. cant login.. says... tray to login with "cvs login" lollllllllllllllllllllllllll this is.... :(((( dont work .... thank you....
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 09, 2006, 12:12:24 PM
Well.... i do it yesterday.. thank you.... its correct my computer is not workgroup "the name" then Workgroup is on All network.. apears there... but theres is another problem... today i try to login again.... with anonymous.. and then.. cant login.. says... tray to login with "cvs login" lollllllllllllllllllllllllll this is.... :(((( dont work .... thank you....

Not to sound mean, but please try and type in regular english. Try making a list of your problems in detail too.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: ryran on June 09, 2006, 12:15:09 PM
Can't offer any help to you sunRise, but in answer to LfH: I can confirm that cvs -q up -dPC entered just like that does what it's supposed to, though I haven't researched the switches or anything (I couldn't break it down for you). As for the dry run switch... patch --dry-run -pX < patchfilename will work fine.

Here's the working with patches (http://www.rockbox.org/twiki/bin/view/Main/WorkingWithPatches) twiki link.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 09, 2006, 12:50:49 PM
-pX as is X is 0-5?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: dunno on June 09, 2006, 06:24:06 PM
2.6 Open up a windows explorer (or internet explorer if windows doesn't have an address bar) and type in the following
Code:

\\debian\user

do I type in Code: first and then the command line, or just what comes after where it says Code:
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: dunno on June 09, 2006, 06:30:23 PM
I'm stuck at 2.9a

patch --dry-run --binary -p0 < numeric_sort.patch

vmware tells me, "No such file or directory"

and really, I have followed the instructions to a "T"

I dont really expect an answer to this, but I'm just damned frustrated and could eat a bucket of live snakes right now.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 09, 2006, 07:11:19 PM
No you DO NOT need that code: for your first question. I'll remove that from the guide.

Second, make sure that you have the patches in the rockbox-devel folder. If that doesn't work, I'm not sure, someone told me it would work, but I haven't tested it.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: dunno on June 09, 2006, 07:12:25 PM
after loging into rockbox's cvs server I get this warning

cvs login: warning: Failed to open /home/user/. cvspass for reading: no such file or directory.

now i guess that I'm supposed to have these direcotries in C:\, but isnt vmware supposed to have created the required directories.

totally lost here
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 09, 2006, 10:27:25 PM
after loging into rockbox's cvs server I get this warning

cvs login: warning: Failed to open /home/user/. cvspass for reading: no such file or directory.

now i guess that I'm supposed to have these direcotries in C:\, but isnt vmware supposed to have created the required directories.

totally lost here

VMware player should automatically install into C:\. Not sure why it didn't...
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: dunno on June 10, 2006, 09:05:22 AM
I have put the patches in the rockbox-devel direcotry, I run "dir" in vmware and it sees the files there.

here's where I am stuck

whe I type in "patch --dry-run -p0 < playlist_catalog_4.diff , it returns "No such file or directory"

below are the diferent syntax's that I have tried.

patch -p0 < /rockbox-devel/patchname
patch -p0 < /patchname

now, why does it "see" the files if I do a "dir" and not when I patch ?

 
(I get vmware to compile a normal version no problems)
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 10, 2006, 11:57:52 AM
I have put the patches in the rockbox-devel direcotry, I run "dir" in vmware and it sees the files there.

here's where I am stuck

whe I type in "patch --dry-run -p0 < playlist_catalog_4.diff , it returns "No such file or directory"

below are the diferent syntax's that I have tried.

patch -p0 < /rockbox-devel/patchname
patch -p0 < /patchname

now, why does it "see" the files if I do a "dir" and not when I patch ?

 
(I get vmware to compile a normal version no problems)
Did you cd to the rockbox-devel folder?
Code: [Select]
cd rockbox-develType that in first.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: dunno on June 10, 2006, 01:18:37 PM
yes I did cd rockbox-devel and thats where it would see the patch files if i did "dir", or do you mean I needed to cd rockbox-devel twice ?
but......
I have decided to stop struggling with this, and removed vmware, although this was just a "for fun project", I am dissapointed that I didn't get it to run.

thanks for your help.

p.s.
I'll try again after the feature freeze if my pet patches dont get incorporated.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 10, 2006, 06:21:38 PM
yes I did cd rockbox-devel and thats where it would see the patch files if i did "dir", or do you mean I needed to cd rockbox-devel twice ?
but......
I have decided to stop struggling with this, and removed vmware, although this was just a "for fun project", I am dissapointed that I didn't get it to run.

thanks for your help.

p.s.
I'll try again after the feature freeze if my pet patches dont get incorporated.

Why would you be executing a "dir" command? Do you even know how to get into that folder? Can you even access \\debain\user ? Apparently not...

You probably missed a step, or the patches are defective. If you got a bunch of messages when trying to patch that say "Hunk 1: FAILED" or something like that, the patches are bad. Sorry that this didn't work for you.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: dunno on June 11, 2006, 10:07:43 AM
Why would you be executing a "dir" command? Do you even know how to get into that folder?

I used "dir" 'cause thats what I used to use in the old dos days to see what was in a directory, and its the same cmd here, and yes I did know how to get into the directory because I saw the files that were within the rockbox-devel directory listed exactly as they were in explorer, and to answer your question, yes I do know how to use dos commands and do know how to move around directories using dos.....as I said earlier i did manage to do a NORMAL compile, but thats pointless as one can just download the daily.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 11, 2006, 11:17:17 AM
The patches were probably defective then, and that's why the --dry-run command didn't work. The --dry-run command tells whether or not a patch is legitimate, without actually patching it up.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: michael.conner on June 11, 2006, 11:46:58 AM
thanks for this tut -- works brilliantly!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: lixer on June 11, 2006, 04:31:41 PM
anyone know why i'm getting these messages when i'm trying make the zip file:

soorma ipod5g # make fullzip
Skip ipodVOL.wps due to size restraints
Skip engineeer2.wps due to size restraints
Skip iAmp.wps due to size restraints
Skip zezayer.wps due to size restraints
Skip marquee.wps due to size restraints
Skip DancePuffDuo.wps due to size restraints

Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Llorean on June 11, 2006, 04:35:15 PM
Because it's skipping those files due to size restraints?

They're WPSes that don't match the dimensions of the screen, so they're skipped.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 11, 2006, 05:56:24 PM
Because it's skipping those files due to size restraints?

They're WPSes that don't match the dimensions of the screen, so they're skipped.
Sorry if this sounds like I'm just repeating Llorean, but they aren't necessary and you dont need them, so the zipped output file (called rockbox) is all you need.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: lixer on June 11, 2006, 06:02:17 PM
Thanks for your explanation!!!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: dunno on June 11, 2006, 07:01:57 PM
riiight....

after having another bash at it i got it to work, thanks for the guide.
I succesfully patched the playlist_catalog_4 patch

p.s.
anyone else having an issue with the random_insert patch ?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: that_asian_guy on June 14, 2006, 11:50:59 AM
wait, if the command to check out the source code doesn't work, then could you maunally download the source and unzip it to the build_h120 directory?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: michikal on June 14, 2006, 12:18:34 PM
Oops, forgot Menu+Select into USB mode.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 14, 2006, 02:44:28 PM
wait, if the command to check out the source code doesn't work, then could you maunally download the source and unzip it to the build_h120 directory?
No, the build_h120 directory is made for compiling the source for a specific system. The rockbox-devel folder is the source.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: lx Envy xl on June 14, 2006, 09:12:40 PM
If I have a patched build---the one for rockboy you gave out--how do I modify it, j just CD to it and patch it?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: that_asian_guy on June 14, 2006, 09:39:40 PM
If it's already compiled, then you can't modify it anymore.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on June 15, 2006, 01:05:51 PM
If I have a patched build---the one for rockboy you gave out--how do I modify it, j just CD to it and patch it?
If you haven't deleted the rockbox-devel folder, it should be patched up from any previous patches you applied. If you restarted, however, I believe there is a way to retrieve the source from an already compiled build, search the wiki for things like...
Cygwin
CVS
VMware
...If you deleted the rockbox-devel folder, then you probably have to reapply the patches.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: latino_partyboy on June 20, 2006, 02:49:09 AM
for the rockboy question, did you apply all 3 patches on that page, because you need all of them for that one to work.

Where do you get those three patches i only have found one

rockboy_wheel.patch

could you please link to the others
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: that_asian_guy on June 20, 2006, 01:57:54 PM
for the rockboy question, did you apply all 3 patches on that page, because you need all of them for that one to work.

Where do you get those three patches i only have found one

rockboy_wheel.patch

could you please link to the others
Scroll down through the rest of the page with that patch on it and in the comments section there  should be 2 more patches that you need to apply.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: latino_partyboy on June 20, 2006, 06:18:56 PM
for the rockboy question, did you apply all 3 patches on that page, because you need all of them for that one to work.

Where do you get those three patches i only have found one

rockboy_wheel.patch

could you please link to the others
Scroll down through the rest of the page with that patch on it and in the comments section there  should be 2 more patches that you need to apply.
Thanks :)

to bad i cant fix that
"\\debian\user" not found by windows problem :'(
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Phobiac on June 22, 2006, 10:55:01 PM
For the people having trouble accessing //debian/user, I found it was my antivirus/firewall software. I recommend taking the guides text and saving it in notepad or the like. Then do steps 1.1-2.4, disconnect from the internet, and then turning off any firewall or antivirus program to prevent it from causing a problem and follow the saved text for the rest of the directions.

Of course, if you know how it'd be easier in the long run to configure both programs so they don't cause any problems, but that would require both knowing exactly what they are doing and knowing how to stop it. I didn't have the patience to do that, so this worked for me.

REMEMBER to turn your antivirus and/or firewall program off AFTER disconnecting from the internet, and to turn them on before reconnecting. Otherwise you put yourself at risk to any number of nasty viruses and the like.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: lhauser on June 23, 2006, 10:06:41 AM
Hey, the tutorial worked great for me. I got this to work (including patching) where I couldn't get patching to work in Cygwin. Thanks!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on July 22, 2006, 09:00:42 PM
Been gone a while, thought I'd bump this up, saw a few posts on how to patch.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Yorixz on July 24, 2006, 09:41:34 AM
I'm wondering if anyone has a mirror for the Debian VMWare Player image, the website seems to be down and I'm not really succeeding with this tutorial on my Ubuntu tryout.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: mojohand on July 24, 2006, 10:37:37 AM
http://download.rockbox.org/vmware/Debian-2.7z
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Yorixz on July 24, 2006, 12:40:12 PM
http://download.rockbox.org/vmware/Debian-2.7z
Thanks a lot, you saved my day ;)
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: drumthrasher109 on July 25, 2006, 09:04:35 PM
omg thanks! i haven't tried this yet but this seems very simple...i will try this very soon!

HELP! when downloading/looking for a patch, what am i supposed to download. i want to compile the 'chopper' game but the only thing there is a chopper.diff file. is this good?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Looking for Help on July 27, 2006, 04:32:11 PM
Thanks for bring up and giving me a link about Debian, I edited the post so it should work.

EDIT: 7zip was down too, fixed it.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: drumthrasher109 on July 30, 2006, 06:39:03 PM
i'm having an error 'making' the build...
i did the make command then it stopped at:
CC playback.c
playback.c: in funtion 'read_next_metadata':
playback.c:1686: error: too few arguments to function 'get_metadata'
playback.c: in function 'audio_load_track':
playback.c:1769: error: too few arguments to function 'get_metadata'
make[1]: *** [/home/user/rockbox-devel/build_h120/apps/playback.o] Error 1
make: *** [all] Error 2

any help???
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Febs on August 01, 2006, 10:21:41 AM
Are you still having trouble with this? 

If so, you might want to check to make sure that your CVS tree is up to date.  From your rockbox-devel directory, type the following:

cvs update -dP

Note that this is case sensitive so capitalization is important.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 05, 2006, 02:46:03 AM
I do everything as Looking for Help say but after i extract the zip file on my ipod nothing new comes exept that the .m2v files now have to be opened with Open with... and not automaticali by pressing only select button
Any ideas?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Rincewind on September 11, 2006, 12:57:19 PM
A litte bit of grammar and more information would help a lot.
Have you been compiling?
What patches? (with links to the tracker)
If you want help on a plugin, you should post in  the plugin form.
And finally: Read the posting guidlines!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 12, 2006, 06:43:01 AM
Please help!
I do everything that Looking for Help say and it works
but afret i unzip the rockbox.zip file in the root of my ipod and start it nothing new NO doom_scroll NO chopper NO customline
HELP guys
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Febs on September 12, 2006, 08:05:03 AM
I think that the word "it" should be banned from use in support questions.

"it works"  What works?  Patching?  Compiling step?  Creating the .zip file?  

"start it"  Start what?  Rockbox?  A particular plug-in?

I hate to be a pain, but while there are people here who are willing and able to help you, you need to provide enough information to allow us to do so.  As an example, I can't speak for anyone else, but I'm not going to try to figure out what you mean by "I do everything that Looking for Help say" if you are not going to bother to explain what you have done.  The questions that Rincewind has posted two posts above this one are a good start.  You may also want to read the "How to ask questions the smart way" link in Llorean's signature.

Basically what I'm trying to tell you is that the reason you're not getting answers is because you haven't explained, in any useable way, what you have done, what the result was, and what problem you are having.  If you can provide that information, we'll do our best to help you.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 12, 2006, 10:28:24 AM
Sorry not good at english!
And the main poin it that I do everything to "make zip" command and the VMware Player create the rockbox.zip file. But afret I unzip the rockbox.zip in the root directory of my ipod and start the ipod nothing is changed ???
That is IT!
OK now ?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: bluebrother on September 12, 2006, 12:38:12 PM
have you restarted the player?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 12, 2006, 01:00:35 PM
The iPOd restarts with holding Menu+Select
If that Yes I do restart IT
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Mmmm on September 12, 2006, 04:36:34 PM
Sorry not good at english!
And the main poin it that I do everything to "make zip" command and the VMware Player create the rockbox.zip file. But afret I unzip the rockbox.zip in the root directory of my ipod and start the ipod nothing is changed ???
That is IT!
OK now ?
So what you are saying is that you still get the same rockbox that you get without patching. In other words the patching and compiling process work fine, but the patches don't seem to change anything.
and the patches you are using are called  doom_scroll, chopper and customline.

Is that right?

If so then the answer is probably that the patches didn't apply or they just don't do what they are supposed to do (its probably the former). look for errors when you patch... things like "HUNK#1 failed at..." if you get these then the patching failed. If this happens then you need to apply it manually, fix the patch, or nicely ask the author to fix it for you.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 12, 2006, 04:55:23 PM
When installing i look for "HUNK#1 failed at..." and it is OK. Nothing failed .
The only change is that now the .m2v files now have to be opened with Open with... and not automaticali by pressing only select button
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Febs on September 12, 2006, 10:30:39 PM
A couple of other things that you could try:

1.  After running "make zip," check the date and time on the .zip file.  The date and time should be the date and time that you ran "make zip."  If it's older, then you didn't correct make the zip file.

2.  Rename your current .rockbox directory and erase your current rockbox.ipod file.  Then extract the zip file to your player again.  Start Rockbox.  If you've extracted the files correctly, Rockbox will start.  If you get a "-1" error, then you've done something wrong in extracting the files.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 13, 2006, 04:16:35 AM
1. The zip fille is with correct date and time
2. After putting the new rockbox files the ipod starts normally exept that may configurations and themes are not there and still the .m2v file are not asociated with mpegplayer
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Mmmm on September 13, 2006, 09:35:18 AM
When installing i look for "HUNK#1 failed at..." and it is OK. Nothing failed .
The only change is that now the .m2v files now have to be opened with Open with... and not automaticali by pressing only select button
By installing do you mean compiling or patching?

You have patched the source right? by using patch -p0 < nameofpatch.diff
it is after using this command you may get failed hunks.
Post a little .png screenshot of what you are getting after entering this command.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Rincewind on September 13, 2006, 02:49:12 PM
if some hunks of the patch failed the whole build is unlikely compile at all. So I guess the patch (the patches?) wasn't applied at all.

Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Mmmm on September 13, 2006, 03:09:31 PM
if some hunks of the patch failed the whole build is unlikely compile at all. So I guess the patch (the patches?) wasn't applied at all.


Ahh, true, but if all the hunks fail then nothing will apply and you will have a fresh cvs rockbox!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 14, 2006, 01:27:08 PM
Here is a clip of that am i doing but it's pretty bouring :-\ :
http://www.ek3ekytopa.phpnet.us/rockbox/Join0.html
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Mmmm on September 14, 2006, 02:47:01 PM
Here is a clip of that am i doing but it's pretty bouring :-\ :
http://www.ek3ekytopa.phpnet.us/rockbox/Join0.html
That was pretty boring yes...the link doesn't work!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 14, 2006, 04:30:33 PM
Link repeared
http://ek3ekytopa.phpnet.us/rockbox/Join0.swf
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Bagder on September 14, 2006, 05:19:30 PM
1. The doom_scroll patch didn't apply cleanly since the patch is claimed to be malformed

2. customline should be patched with -p1

3. you should learn to use tab completion ;-)

4. geez the movie was sloooow. Does it really that that long to build for you?

Then I fell asleep and messed up and it was just too slow and I can't seem to fast forward so... the rest slipped me.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Mmmm on September 15, 2006, 03:55:29 AM
Well the first error is a malformed patch the second is that it cant find the files to patch - Why couldn't you see these errors? Chopper seems to apply fine.

so forget about doom scroll, It's not going to work, try p1 with customline as bagder said

Even though the chopper patch applies fine it still doesnt compile. When it has finished compiling there are compiling errors (look for the word ERROR). So forget about that patch too, it won't work.

I'm a bit confused as to why I have had to sit here for 30 minutes looking at your video just so that I can read the error messages for you...Don't you look at the screen after you type something in? The response on screen after hitting the enter button is there for a reason... read it! When you've read it, if you dont understand what it means then that is what you post as being the problem in the forum.. you don't just keep ploughing through error after error and then just come out with 'it doesnt work'.......

OK rant over...I feel better now...30 minutes of watching slow motion compiling was just too much for me! I had to get that out of my system...We should put a health warning next to the link! :D
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: eK3eKyToPa on September 15, 2006, 11:35:22 AM
When something is put in patches <--- (in the left ) does it mean that it work because just what i want much it does not work
And sorry for the sloooow movie
but how i can get the copper game and doom scroll patch working because i want them
I'm reading the errors but dont know what they means
The custom line is not working with -p0 ; -p1 ; -p2 ; -p3 ; -p4 ;-p5
And why after some useing of VMware player the directory \\Debian\user dose not open and can't pach enymore
Sorry for the mess in my questions
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Bagder on September 15, 2006, 05:07:21 PM
When something is put in patches <--- (in the left ) does it mean that it work because just what i want much it does not work

Yes, the person who submits it preferably has it working but there's no guarantees that it works for you for your target. The good patches do, the bad patches don't.

Then come aging so that the good patch grows bad because changes in the code made it no longer apply cleanly no matter how good it was when submitted.

So you MUST read what patch says when you apply a patch.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: iPodFoo on September 16, 2006, 07:32:42 AM
Hi.

Dunno if you can lend a hand. I cant seem to access the \\debian\user in explorer. It worked for bit, but now it keeps coming up with an error:

Quote
\\debian\user is not accessible. You might not have permissions to use this network resource. Contact the administrator of this server to find out if you have access permissions.

The network path was not found.

I can access it via VMWare fine just not in explorer. Do i need to re-login, if so, how do i bring up the login box?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Rincewind on September 16, 2006, 08:40:51 AM
try to reset your virtual machine.
And disable personal firewall if you have any.
if it is a login problem (from win -> vwmware), then try to access the share via network neighbourhood; there you have to navigate until you find the computer "debian".
if you can't find it this way, search for the computer name "debian".

This normally works for me.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: iPodFoo on September 16, 2006, 08:56:36 AM
Quote
try to reset your virtual machine.
How do you reset virtual machine?

Quote
And disable personal firewall if you have any.
Firewall didnt make any difference.

Quote
if it is a login problem (from win -> vwmware), then try to access the share via network neighbourhood; there you have to navigate until you find the computer "debian".
I assume you mean the Network Connections folder? (using XP) Have tried searching, doesnt find debian. There does seem to be these listed there tho:
VMware Virtual Ethernet Adapter for VMnet8
VMware Virtual Ethernet Adapter for VMnet1


This is a pain in the botty.  >:(
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: rookielot on September 16, 2006, 12:15:42 PM
i have a bit of an issue... i cant run VMware player. not enough physical memory. what should i do?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: scorche on September 17, 2006, 07:19:00 PM
rookielot: Open your "Rockbox.vmx" file in a text editor.  Change memsize = "XXXX" to memsize = "256".
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Rincewind on September 18, 2006, 01:32:01 PM
ipodfoo: If you don't know how to reset, then I bet that the problem is here. I read in the vmware forum that the samba driver sometimes fails to reconnect if the image wakes up from sleep. There was some complicated workaround explained there, but the easiest way is to reset the machine and wait for a minute to let it boot again.

If you are using vmware player:

Open the drop-down menu "player" at the top of the window
go to "troubleshoot" -> "reset"

And, no, I don't mean the network connections folder. I'm a german, so this is called "Netzwerkumgebung" for me, I think it's "network neighbourhood" in english. You should find it on your desktop. Win2k here, so it could be different.

In this menu you can change the memory allocation, too. I set mine to 96 MB and don't feel a difference, except that I have a tiny bit of memory left for windows :).

I hope this helps
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: iPodFoo on September 18, 2006, 05:49:28 PM
Thanks rincewind. alls well again.

Jus one thing, the source downloaded using:

Quote
cvs -z3 -d:pserver:username@www.rockbox.org:/cvsroot/rockbox co rockbox-devel

seems to be missing folders. Theres no app/bitmaps folder for example. Is it for a certain target? Im looking to work on ipod nano. Does the above line need to be altered?

Also, is it possible to copy an paste text to and from the xp desktop and debian? Ive tried ctrl+c and selecting my mouse, just cant seem to copy.

Cheers.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: bluebrother on September 19, 2006, 07:59:09 AM
look in the folder that has been created. cvs puts all its stuff into a subfolder that is named like the module you checked out -- in your case "rockbox-devel".
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Rincewind on September 19, 2006, 10:51:09 AM
Also, is it possible to copy an paste text to and from the xp desktop and debian? Ive tried ctrl+c and selecting my mouse, just cant seem to copy.

Cheers.

From the wiki: (http://www.rockbox.org/twiki/bin/view/Main/VMwareDevelopmentPlatform)
Quote
To be able to copy-paste between the host and guest operating system (windows-linux) and vice versa, you have to run "vmware-toolbox&" while you copy-paste. from a terminal type "vmware-toolbox&". A window will appear, don't close it. Minimize it and then proceed with normal operation.

    * To paste to the linux terminal press the middle mouse button or "shift+insert".
    * To copy from the linux terminal just select the text (by holding left-click) just like you do on some IRC clients.

You can make vmware-toolbox program autostart by adding the following in .xsession file that you may have to create in your home directory:

#!/bin/bash
vmware-toolbox &
Eterm &
fluxbox

I haven't tried it. I only use vmware to type "configure", "make" and "make zip"
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: iPodFoo on September 19, 2006, 05:00:42 PM
rincewind - Thanks. Will try that at some point. Was driving me nuts!

bluebrother - ran vmware again, seems all the folders are now there. Dunno why that is.

Thanks for the help. Im sure Ill be askin plenty more if I cant find the info in the manuals etc.  ;D
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: mipodr on October 15, 2006, 08:16:26 PM
I'm having trouble with the step where i have to enter //debian/user. I tired opening windows explorer, but there was no address bar. I tried IE but it says action cancelled. I tried mozzila Firefox, but it says it's not a website. Finally, i tried "run" but it says it doesnt exist... HELP!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Rincewind on October 16, 2006, 03:51:58 PM
I'm having trouble with the step where i have to enter //debian/user. I tired opening windows explorer, but there was no address bar. I tried IE but it says action cancelled. I tried mozzila Firefox, but it says it's not a website. Finally, i tried "run" but it says it doesnt exist... HELP!

if your windows explorer hasn't got an address bar it is badly configured. You can change this. A different solution is searching for the computer "debian" (using the windows search, not google...  :) )
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Febs on October 16, 2006, 04:11:38 PM
I'm having trouble with the step where i have to enter //debian/user. I tired opening windows explorer, but there was no address bar. I tried IE but it says action cancelled. I tried mozzila Firefox, but it says it's not a website. Finally, i tried "run" but it says it doesnt exist... HELP!
Did you try "//debian/user" or "\\debian\user"?  If the former, try using the backslashes.

Note that you need to be running VMware for this to work.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: ryan2632 on October 16, 2006, 04:11:57 PM
I'm having trouble with the step where i have to enter //debian/user. I tired opening windows explorer, but there was no address bar. I tried IE but it says action cancelled. I tried mozzila Firefox, but it says it's not a website. Finally, i tried "run" but it says it doesnt exist... HELP!

you have the slashes the wrong way. should be \\debian\user
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: bluebrother on October 16, 2006, 06:23:16 PM
I'm having trouble with the step where i have to enter //debian/user. I tired opening windows explorer, but there was no address bar. I tried IE but it says action cancelled. I tried mozzila Firefox, but it says it's not a website. Finally, i tried "run" but it says it doesnt exist... HELP!
you want to open a windows share, not a website. Windows shares are different and you need to open that using windows explorer (NOT Internet Exploder or Firefox). Windows Explorer has some File / Open menu entry ...
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: mipodr on October 16, 2006, 07:37:36 PM
Thx all, but i figured out a better way... that works! :-\ I went into explorer/control panel. Selected tools, map network drive, and voila, i selected a letter and entered //debian/user... (or which ever way the slashes go) and it worked. YAY. Now lets see if i can patch....
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Febs on October 16, 2006, 07:50:33 PM
First, please read our posting guidelines.  We do not allow the use of abbreviations like "u."

Second, you've had three people in a row explain what you're doing wrong.  With VMware running, go to "Run" and enter "\\debian\user" with backslashes, not forward slashes.

OR, open Windows Explorer, and type "\\debian\user" into the address bar.  If you don't have an address bar, go to view --> toolbars --> address bar and turn it on.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: mipodr on October 16, 2006, 08:30:28 PM
I tried those. They didn't work. I tried it with slashes going BOTH ways. Niether worked. I tried in the address bar, and I tried in run, and in IE. I said thank you. And I found my own way that allows me to access it easily on My Computer.  I'm sorry for using Thx. Thanks again for all your help.

Oh god, why wont this work. I tried to do ../tools/configure/    but it says no such file or directory. I checked in /user/home/rockbox-devel/build_h120 through windows, and there was no tools/configure in it. So i went back a folder and found that there was the all those files and one was a tools with a configure in it. I then copied all of thosefolders into build_h120. It still wouldn't work... no such file/directory. I restarted vmplayer. No luck. I then copied it back where it should be so there is a copy of those folders in rockbox-devel and build_h120. again i tried, no luck. Restarted... no luck. Help? I'm sorry for being stupid.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: mnhnhyouh on October 17, 2006, 12:28:08 AM
I dont seem to be able to download the Debian 2.7z file. It started downloading, then hung for 1/2 an hour.  

I attempted to restart, but to no avail.

h
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Rincewind on October 17, 2006, 05:39:57 AM
I tried those. They didn't work. I tried it with slashes going BOTH ways. Niether worked. I tried in the address bar, and I tried in run, and in IE. I said thank you. And I found my own way that allows me to access it easily on My Computer.  I'm sorry for using Thx. Thanks again for all your help.

Oh god, why wont this work. I tried to do ../tools/configure/    but it says no such file or directory. I checked in /user/home/rockbox-devel/build_h120 through windows, and there was no tools/configure in it. So i went back a folder and found that there was the all those files and one was a tools with a configure in it. I then copied all of thosefolders into build_h120. It still wouldn't work... no such file/directory. I restarted vmplayer. No luck. I then copied it back where it should be so there is a copy of those folders in rockbox-devel and build_h120. again i tried, no luck. Restarted... no luck. Help? I'm sorry for being stupid.

you have to stick closely to the guide. All the steps have to be done in a terminal window in vmware. Don't copy files around! Just do a cvs checkout in VMware, move to that folder in a terminal window with "cd", then do the steps mentioned in the wiki. If you copied the source tree from windows you have to do a chmod 777 * -R in your source directory first (described in the wiki, too).
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: mnhnhyouh on October 27, 2006, 02:02:11 AM
Could you add to the first post that

make 2> error.txt

creates an error.txt file in the make_H100 directory?

h
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: bob363 on October 30, 2006, 05:11:33 PM
just wanted to thank you for the wonderful tutorial  :)
but i found one minor practically insignigicant error:

3.4 Now type in the following
Code:
../tools/configure
A bunch of choices should appear. Find the music player that you wish to put this on, and type in the number corresponding to that music player. Example: Type in "15" (no quotes) for the iPod Video. Another bit of text will appear, just type in "n" (no quotes) for normal.

ipod video is 22
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Llorean on October 30, 2006, 05:12:34 PM
The list changes at times.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: bro2baseball on November 12, 2006, 09:06:56 PM
I wasn't having problems for a while, but now when I put \\debian\user
in the address bar, nothing comes up. I don't know what going on  :'(

thanks if anyone could point me in the right direction

bro2
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: mnhnhyouh on November 12, 2006, 09:37:14 PM
I wasn't having problems for a while, but now when I put \\debian\user
in the address bar, nothing comes up. I don't know what going on  :'(

thanks if anyone could point me in the right direction

bro2

 Often when I have this problem, opening VMware will fix it. So now I open VMWare first.

h
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: m6arate on November 24, 2006, 11:59:22 AM
im having trouble with step 2.6. Reading back in the forum, apparently messing with the network settings could fix this? is there a more specific fix?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: pabouk on November 25, 2006, 05:59:02 AM
Do you have problems accessing \\debian\user? Bascule already had the same problems so please read the suggestions here: http://forums.rockbox.org/index.php?topic=6772.msg56424#msg56424

Short answer: Yes, it is related to the TCP/IP networking.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Bennie_t on January 28, 2007, 11:20:06 AM
I managed to install all the files correctly, log on and open up the terminal but when i insert the text line "cvs -z3 -d:pserver:username@www.rockbox.org:/cvsroot/rockbox co rockbox-devel" I get the following error message (http://i170.photobucket.com/albums/u248/bennie_t/wmvaretroubleshoot-1.jpg), if anyone can help me with this i will gladly make them a theme or something, I know its not much but I'm not very good with linux.

Bennie
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: bascule on January 28, 2007, 12:00:53 PM
Use

"cvs -z3 -d:pserver:anonymous@www.rockbox.org:/cvsroot/rockbox co rockbox-devel"
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: bluebrother on January 28, 2007, 12:39:57 PM
"cvs -z3 -d:pserver:anonymous@www.rockbox.org:/cvsroot/rockbox co rockbox-devel"

Won't work. We now use svn, and cvs access has been disabled. You need to use svn instead.

svn co svn://svn.rockbox.org/rockbox/trunk rockbox
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: fugot on January 28, 2007, 12:44:23 PM
i want to try to patch and i do not have the required 2 gigabytes of space to Extract the Debian 2.7z. all i have is about 1 gig left. my ipod has over 15gb extra space. instead of doing the step 1.1 (isted below) ould i make a folder called vmware in the root of my ipod and download all of the required files there? would this work?

1.1 Go into your C:\ drive and make a new folder named "vmware" (no quotes). This is just for orginization.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: soap on January 28, 2007, 03:13:00 PM
i want to try to patch and i do not have the required 2 gigabytes of space to Extract the Debian 2.7z. all i have is about 1 gig left. my ipod has over 15gb extra space. instead of doing the step 1.1 (isted below) ould i make a folder called vmware in the root of my ipod and download all of the required files there? would this work?

You could but I would like to discourage you.
A - Your iPod is a slow drive, and that will affect performance.
B - Your iPod is a short-lived (compared to a desktop 3.5" drive) bloody expensive external drive, and I would be trying to minimize its usage.
C - I would consider only 1GB of drive space on my primary computer an issue which needs resolved, not ignored.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: fugot on January 28, 2007, 03:22:29 PM
so it could break my ipod if i did this or make my ipod run slower?

also this is not my primary computer.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Bennie_t on January 28, 2007, 04:51:33 PM
Quote
"cvs -z3 -d:pserver:anonymous@www.rockbox.org:/cvsroot/rockbox co rockbox-devel"


Won't work. We now use svn, and cvs access has been disabled. You need to use svn instead.

svn co svn://svn.rockbox.org/rockbox/trunk rockbox
I tried and it says svn is an unknown command  ??? ,

any help would be great cheers
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: mightybrick on January 28, 2007, 10:28:30 PM
You need to download the svn tools.  You can download the new debian image from the wiki with svn already installed, or you can use apt-get svn to download svn.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: fugot on January 31, 2007, 10:12:27 PM
could someone post a link to download the new debian image from the wiki with svn already installed
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Llorean on January 31, 2007, 10:18:25 PM
Same place it's always been, we just replaced it with a newer one.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: fugot on February 02, 2007, 07:03:43 PM
whare has it always been could you give me a link?

i know what your thinking search the forms but i have searched the forums and i have not found it anyware.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: saratoga on February 02, 2007, 07:28:11 PM
whare has it always been could you give me a link?

i know what your thinking search the forms but i have searched the forums and i have not found it anyware.

Generally, static information is posted to the Wiki.  We don't ever really post things to the forums.  I think theres a page for VMware stuff.  If it doesn't have what you need, let us know and we'll fix it.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: fugot on February 03, 2007, 12:17:21 PM
can you give me a link to exactly what i need to download.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: bascule on February 03, 2007, 12:28:23 PM
FFS, search the Wiki (http://www.rockbox.org/twiki/bin/view/Main/VMwareDevelopmentPlatform)
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Xqtftqx on September 13, 2007, 06:28:45 PM
THANKS YOU SO MUCH1!!!!1111111 YOUR MY HERO!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: choodo on October 07, 2007, 06:12:30 PM
i can't download Debian-2.7z to try this ...  :-\
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: choodo on October 08, 2007, 05:40:47 PM
i can't download Debian-2.7z to try this ...  :-\

everything fine now !

but i can't understand is patch in my build or not .. i was applying playlist_viewer2.patch

thanx a lot for such tut !!   :) very useful!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: choodo on October 08, 2007, 06:31:51 PM
patch applied and working well for now!
it's wonder fill ! :)
best wishes !
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: AlexP on October 09, 2007, 06:53:03 AM
Good that it is working, but in future don't double let alone triple post.  Use the modify button.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: motionman95 on February 11, 2009, 08:50:48 AM
Is anyone willing to update this?
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Febs on February 11, 2009, 09:25:02 AM
There is a wiki page on this subject, which was updated as recently as yesterday:

http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: motionman95 on February 11, 2009, 09:27:51 AM
I find this tutorial easier, and the wiki page you linked to is more for linux than Windows.
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: pyro_maniac on February 11, 2009, 10:21:56 AM
Is anyone willing to update this?

Please explain what you want to be updated?!
Title: Re: How To Patch and Compile Tutorial (From WINDOWS)
Post by: Febs on February 11, 2009, 10:38:10 AM
I find this tutorial easier, and the wiki page you linked to is more for linux than Windows.

The very first sentence on the SimpleGuideToCompiling wiki page says, "NOTE: This guide is for Windows users only! Linux users can read LinuxSimpleGuideToCompiling."

It is our policy that information such as tutorials belong in the wiki rather than in the forums.  There are a number of reasons for this, including the fact that it is much easier to maintain information on the wiki and to keep it up to date than when that information is in a forum thread.  If you believe that the information in this thread is easier to understand than the wiki page, the appropriate solution would be to update the wiki page to make it more clear, not to update a 2-year old thread.