You are not logged in.

#1 2010-10-23 18:10:56

natostanco
Member
Registered: 2008-01-07
Posts: 126

how to patch kernel with this...

How can I patch the kernel with this files?
https://patchwork.kernel.org/patch/94542/

Archwiki about kernel compilation is really poor...

Offline

#2 2010-10-23 18:59:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: how to patch kernel with this...

have a look at the kernel26-ck package in the aur (in my sig)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2010-10-23 19:05:46

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: how to patch kernel with this...

@natostanco abs core/kernel26, add the patch in sources, add the patch command below the one that already exists, makepkg -g, makepkg


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2010-10-24 17:48:09

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

So, i ran abs, opened the pkgbuild, now do i have to copy the patch at the end of the file? before what? what is the patch command?

Offline

#5 2010-10-24 18:47:30

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: how to patch kernel with this...

$ man patch

?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2010-10-24 18:51:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to patch kernel with this...

Wonder already told you what to do. Add the name of your patch file to the sources array. Add your patch command under the existing one. Regenerate the check sums with makepkg -g >> PKGBUILD. Build the package.

If you don't know what the patch command should look like, start by copying the existing one (changing the filename of course). Reading the patch man page would be a good idea too.

Offline

#7 2010-10-24 19:08:56

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: how to patch kernel with this...

the patch should be a file copied in the same directory with PKGBUILD.

applying the patch depends on how was done. for example, if was send as a git patch, it shoud be like patch -Np1 -i ${srcdir}/patchname


Give what you have. To someone, it may be better than you dare to think.

Offline

#8 2010-10-26 08:03:42

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

I added this lines

_patchname="patch-${pkgver}-${pkgrel}-Support-for-the-11.6-Cando-panel-found-on-the-Acer-1825PTZ"

patch -Np1 -i ${srcdir}/Support-for-the-11.6-Cando-panel-found-on-the-Acer-1825PTZ

and this is error

==> SIZE patch-2.6.35.7-1-Support-for-the-11.6-Cando-panel-found-on-the-Acer-1825PTZ.bz2 ... done.
==> PASV ... done.    ==> RETR patch-2.6.35.7-1-Support-for-the-11.6-Cando-panel-found-on-the-Acer-1825PTZ.bz2 ... 
No such file "patch-2.6.35.7-1-Support-for-the-11.6-Cando-panel-found-on-the-Acer-1825PTZ.bz2".

==> ERROR: Failure while downloading patch-2.6.35.7-1-Support-for-the-11.6-Cando-panel-found-on-the-Acer-1825PTZ.bz2
    Aborting...

i have no .bz2 package :s

Offline

#9 2010-10-26 08:27:29

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: how to patch kernel with this...

Your download link is wrong. Write the source section here.

Offline

#10 2010-10-26 13:53:28

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
        ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
        # the main kernel config files
        config config.x86_64
        # standard config files for mkinitcpio ramdisk
        kernel26.preset)

what do I have to copy here?

Offline

#11 2010-10-26 15:47:52

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: how to patch kernel with this...

makepkg cannot find the patch cause it is not in ftp.archlinux.org/other/kernel26...
You probably want to apply the patch from here: https://patchwork.kernel.org/patch/94542/
Copy the patch stuff into a file and put the filename into sources. Make sure the file is in root, means in the folder where PKGBUILD is. Also make sure to use a correct md5 of the patch file.

Last edited by archman-cro (2010-10-26 16:09:56)

Offline

#12 2010-10-26 17:50:24

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

what do you mean with patch stuff? from https://patchwork.kernel.org/patch/94542/
the files from the download link "patch" or "mbox"? do i have to create a file with .bz2 extension?

Offline

#13 2010-10-26 18:52:29

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: how to patch kernel with this...

No, just put this in a normal text file: http://pastebin.com/raw.php?i=J6wPEV3H
Then put the file in a folder where PKGBUILD is.
Ask further if you need help. smile

Offline

#14 2010-10-26 19:32:23

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

how to get the md5?
do I have to add the file path to source? like
/home/username/kernel26/candotouchfile

?

Last edited by natostanco (2010-10-26 19:32:43)

Offline

#15 2010-10-26 19:40:24

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: how to patch kernel with this...

1. md5sum <filename>
2. Nope, just add the name of the file to the sources list. (Make sure the patch is in the folder where PKGBUILD is!)

Cheers. smile

Offline

#16 2010-10-27 20:58:14

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

i don't know still get the same error
this is the pkgbuild
http://pastebin.com/WSs8ddZ1
i have copied all the files in the folder where pkg build is named the patch file candotouch and the last md5 in the list is the one from the candotouch patch file.

Offline

#17 2010-10-27 23:02:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to patch kernel with this...

The patch file name must be the same in the source array and the patch command, and md5sums must be in the same order as the source array. Neither of these requirements are met in your PKGBUILD.

Offline

#18 2010-10-28 13:39:11

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

so i removed this

_patchname="patch-${pkgver}-${pkgrel}-Support-for-the-11.6-Cando-panel-found-on-the-Acer-1825PTZ"

patch -Np1 -i ${srcdir}/Support-for-the-11.6-Cando-panel-found-on-the-Acer-1825PTZ

and just added the source entry and the md5sum, this way it works, but don't know if it actually patches the kernel...

Offline

#19 2010-10-28 13:58:01

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: how to patch kernel with this...

You still need the patch command there for it to patch the kernel source.

Offline

#20 2010-10-28 15:05:57

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

patching file virt/kvm/kvm_main.c
patching file drivers/hid/hid-cando.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/hid/hid-cando.c.rej
patching file drivers/hid/hid-core.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/hid/hid-core.c.rej
patching file drivers/hid/hid-ids.h
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/hid/hid-ids.h.rej
    Aborting...

what does this mean

Offline

#21 2010-10-28 15:10:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to patch kernel with this...

Given your apparent level of expertise, it is not reasonable to expect procedures like this to "just work" without putting some time and effort into them. In this case, I would strongly recommend learning about the patch command first, and then learning about ABS (Arch Build System) and PKGBUILDs. You are throwing yourself in at the deep end by attempting to modify the kernel PKGBUILD - people usually work their way up to that.

In other news smile - the 2.6.36 kernel has been released, and it includes this patch. The package is currently in the testing repo, and will soon be available in core. If the recommended learning above is not to your liking, I suggest you be patient until that happens. You could enable the testing repo either - but that's a whole other story.

Offline

#22 2010-10-28 15:28:03

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

oh I already had the latest kernel, that's why it gave the error patch already applied tongue
so since the kernel supports the touchpanel, do i need to change some rules? I mean i can use different drivers now?

Last edited by natostanco (2010-10-28 15:29:11)

Offline

#23 2010-10-28 15:44:10

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to patch kernel with this...

Same driver - hid-cando.

Offline

#24 2010-10-28 17:23:53

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: how to patch kernel with this...

so this wont give me multitouch, what's the difference in having it in the kernel? i don't have to install evdev if i want to use it or what?

Offline

Board footer

Powered by FluxBB