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

Author Topic: Patching  (Read 8948 times)

Offline DavidRawson

  • Member
  • *
  • Posts: 15
Patching
« on: September 26, 2007, 07:25:10 PM »
I looked at the wiki, however, I could not figure out why 'patch' is a source code. I can't find any binaries and I can't figure out how to compile it. Thanks.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Patching
« Reply #1 on: September 26, 2007, 07:31:07 PM »
A patch file is a description of a change to source code.  The 'why' is because a way is needed to distribute changes to source code between people in a compact and human readable manner.  

Quote
I can't find any binaries

Check the unsupported builds forum.
Logged

Offline DavidRawson

  • Member
  • *
  • Posts: 15
Re: Patching
« Reply #2 on: September 27, 2007, 12:54:49 AM »
What I meant about the binaries were the patch program files. What do I need to compile patch? Or are there binaries somewhere? I tried google with no luck.

Edit: If you find a perfectly working patch in the flyspray, would you make it standard in future rockbox builds?
« Last Edit: September 27, 2007, 01:15:28 AM by DavidRawson »
Logged

Offline scorche

  • Administrator
  • Member
  • *
  • Posts: 666
Re: Patching
« Reply #3 on: September 27, 2007, 02:15:24 AM »
Are you talking about this? http://www.gnu.org/software/patch/

Quote
If you find a perfectly working patch in the flyspray, would you make it standard in future rockbox builds?

Not just any patch is accepted...there are many different factors that go into deciding what is worthy of being included.  It is better to point to a specific patch and ask "Why isn't this patch accepted?" than to ask why a patch would have to look like to be included.
Logged

Offline krazykit

  • Member
  • *
  • Posts: 105
    • Biomoose
Re: Patching
« Reply #4 on: September 27, 2007, 08:45:22 AM »
Quote from: DavidRawson on September 27, 2007, 12:54:49 AM
What I meant about the binaries were the patch program files. What do I need to compile patch? Or are there binaries somewhere? I tried google with no luck.

If you've set up your build environment correctly, patch is already installed.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Patching
« Reply #5 on: September 27, 2007, 08:48:32 AM »
And if you haven't then "patch" on it's own isn't going to help you much.
Logged

Read The Manual Please

Offline Heriver

  • Member
  • *
  • Posts: 21
Re: Patching
« Reply #6 on: September 27, 2007, 11:26:44 AM »
Quote from: DavidRawson on September 27, 2007, 12:54:49 AM
What do I need to compile patch? Or are there binaries somewhere?

This online book tell's you more about working with and using 'Patch' and 'Diff' files and invoking as command.
I have reading this mostley and i've learn how to use .patch files or .diff files,
without any C programming knowledge.

Look here. www.network-theory.co.uk/docs/diff/index.html
Logged

Offline DavidRawson

  • Member
  • *
  • Posts: 15
Re: Patching
« Reply #7 on: September 28, 2007, 02:31:44 AM »
Are you saying that by running rockboxdev.sh, that patch and diff are already installed? I tried patch, but all it did was make a blank line and nothing happens.
Logged

Offline dionoea

  • Member
  • *
  • Posts: 30
Re: Patching
« Reply #8 on: September 28, 2007, 03:54:01 AM »
Did you read http://www.rockbox.org/twiki/bin/view/Main/WorkingWithPatches ?
Logged

Offline Heriver

  • Member
  • *
  • Posts: 21
Re: Patching
« Reply #9 on: September 28, 2007, 09:58:13 AM »
Quote from: DavidRawson on September 28, 2007, 02:31:44 AM
Are you saying that by running rockboxdev.sh

No, i did not.

Quote
 patch and diff are already installed? I tried patch, but all it did was make a blank line and nothing happens.

Oke, from the beginning.

Did you ever compiled a Rockbox source?
If not?
Look at: www.rockbox.org/twiki/bin/view/Main/DevelopmentGuide#Setup_Your_Environment
You must set-up an enviroment, but it depends on your PC, Linux or Windows!

I choose first CygWin (i have an windows-PC) and now i work only with VMWare
(coLinux setup fails here, during the installation),
i can advise you, choose for the VMWare, its much faster then CygWin.
Again, if you have a Windows-PC!

After this:
Look here: www.rockbox.org/twiki/bin/view/Main/HowToCompile

If you can make a build, then you can try to apply an patch to the source,
but an patch is not always needed, it depends.
Example: i like the REP-patch (search in the forums) so i invoke this one,
because i need this one, just like that!
Logged

Offline DavidRawson

  • Member
  • *
  • Posts: 15
Re: Patching
« Reply #10 on: October 09, 2007, 10:31:25 PM »
I did the stuff that does the thing and it did the install thing. I did the compile thing and it worked made the rockbox binary that works. Then I use diff on patch to compile patch and take the .diff file and rename it rockboxpatch.c and insert it into the rockbox directory when compiling. It makes a folder that I look in and there it is. I test it on rockbox but nothing happened. I put the player in manufacture mode and renamed rockboxpatch.c to BL_SDboardSupport.rom and patched it to my player with e200tool. Now my player is bricked. I had to take apart my player and short circut the chip and now it starts again. It can't read the flash memory though. Is there a way to fix it so it works again?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Patching
« Reply #11 on: October 09, 2007, 10:37:46 PM »
Quote from: DavidRawson on October 09, 2007, 10:31:25 PM
I did the stuff that does the thing and it did the install thing. I did the compile thing and it worked made the rockbox binary that works. Then I use diff on patch to compile patch

Did the patch work?  If nothing happens, it sounds like patch did not work.  Go back to this step and make sure the patch command didn't return an error.

Quote from: DavidRawson on October 09, 2007, 10:31:25 PM
and take the .diff file and rename it rockboxpatch.c and insert it into the rockbox directory when compiling.

diff files aren't c files, so this won't do anything (and anyway putting c files in the rockbox directory when compiling generally doesn't do anything anyway since the make file ignores any extra c files).

Quote from: DavidRawson on October 09, 2007, 10:31:25 PM
It makes a folder that I look in and there it is. I test it on rockbox but nothing happened. I put the player in manufacture mode and renamed rockboxpatch.c to BL_SDboardSupport.rom

Oh my.  Why on earth would you do this?  

Logged

Offline DavidRawson

  • Member
  • *
  • Posts: 15
Re: Patching
« Reply #12 on: October 10, 2007, 06:47:57 PM »
I thought it would patch it to the bootloader and the bootloader would patch it to rockbox when it started. And diff files look like c files only combined into one file.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Patching
« Reply #13 on: October 11, 2007, 03:42:45 AM »
Seriously - you clearly haven't understood a thing about patching and compiling.

If you keep this up you WILL wreck your device. Stop what you're doing - leave it alone, and let people who understand this better than you get on with it.
Logged

Read The Manual Please

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Patching
« Reply #14 on: October 11, 2007, 07:53:54 AM »
Quote from: GodEater on October 11, 2007, 03:42:45 AM
Seriously - you clearly haven't understood a thing about patching and compiling.

If you keep this up you WILL wreck your device. Stop what you're doing - leave it alone, and let people who understand this better than you get on with it.

He already has. He replaced the OF bootloader with a diff file.

See? That's what happens when you assume, and don't think before you do something. Don't just blindly rename and replace files. And I thought it was impossible to brick a player by installing rockbox unless you actually tried, I guess I was wrong. ::)
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

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

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

Page created in 0.119 seconds with 14 queries.