You are not logged in.
Pages: 1
How can I patch the kernel with this files?
https://patchwork.kernel.org/patch/94542/
Archwiki about kernel compilation is really poor...
Offline
have a look at the kernel26-ck package in the aur (in my sig)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
@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
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
$ man patch
?
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
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
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
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
Your download link is wrong. Write the source section here.
Offline
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
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
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
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.
Offline
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
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.
Offline
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
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
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
You still need the patch command there for it to patch the kernel source.
Offline
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
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 - 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
oh I already had the latest kernel, that's why it gave the error patch already applied
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
Same driver - hid-cando.
Offline
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
Pages: 1