damige / linux-nvme

NVME patches for (ARCH) linux
68 stars 6 forks source link

Manual Patch Fedora 25 #24

Open beastwick opened 7 years ago

beastwick commented 7 years ago

Hi, following this guide: https://fedoramagazine.org/building-fedora-kernel/

I am trying to build a custom kernel 4.10.x

build fails with:

error: patch failed: include/linux/nvme.h:558 error: include/linux/nvme.h: patch does not apply Patch failed at 0092 nvme: Enable autonomous power state transitions The copy of the patch that failed is found in: .git/rebase-apply/patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". error: Bad exit status from /var/tmp/rpm-tmp.c9UEsO (%prep)

beastwick commented 7 years ago

linux-4.10.13-200

davidgfnet commented 7 years ago

I set up a copr in case you want to use it, I use it for myself: https://copr.fedorainfracloud.org/coprs/davidgf/kernel-nvme-lp/builds/

Just the vanilla src.rpm (https://koji.fedoraproject.org/koji/packageinfo?packageID=8) plus the patches.

beastwick commented 7 years ago

Thanks for this! I am trying to compile 4.11 in a chroot right now for my laptop. If that fails, I'll definitely give this repo a shot.

beastwick commented 7 years ago

Thanks for introducing me to copr! I was able to install your builds, but then I decided to try out the Fedora kernel in rawhide by building it in a chroot and installing on F25. Seems OK so far, but if I have a problem I'll roll back to your builds. Really cool btw!

damige commented 7 years ago

I have no experiance with fedora, and the way they do the patching of the kernel (i just do the PKGBUILD) for arch. I will leave this open for now, incase someone else is able to help you.

davidgfnet commented 7 years ago

Nice. I might create a repo with my scripts. I just use the official src.rpm bundles shipped by fedora and add the patches and modify the kernel.spec file. By default fedora has some patches over the vanilla kernel, to fix issues (either security or backports) without having to move to a newer kernel. In that case I just add my own patch. Never tried to ask fedora to ship that patch really, it might be a good idea actually.