Building/Patching A SUSE Kernel

So I have been on LTS for a while now but now I need a newer kernel and there exists a bug in the AMD video drivers which basically makes it more or less unusable for me.

There exists a patch which I am trying to use to fix the issue (I know it works because a friend using Arch has used it successfully).

I’ve made an OBS account. I’ve branched kernel-stable and project name “kernel-default”.

I’ve added the patch to patch.addon.tar.bz2. I’ve uploaded it to OBS. I’ve included in series.conf as:

+amd-gpu.patch

The kernel builds. I reboot. Nothing. It’s not working. I have obviously done something wrong - because the consensus across a few different distros is this patch works. So something I’ve done is wrong. Or the way I read it or it was explained to me was wrong. I’m leaning towards it being my fault though.

Bonus question - how can I just build kernel-default and avoid building the extra stuff I don’t need. Docs, Debug, Vanilla, etc. I don’t want to take too much time/resources on OBS doing this since this isn’t exactly a high priority thing. Building the extra packages is unnecessary and a waste of time/resources.

There is not a single question mark in your post. Do you have a question or you just want to talk about it?

Obviously I wrote this in a rambling way.

  1. I need to build a kernel from source for OpenSUSE TW and apply a patch to it.
  2. How are patches applied in OBS to the kernel once I’ve branched it?

I was told:

  1. add patch to patches.addon.tar.bz2
  2. modify series.conf to include the patch
  3. Build for architecture

This procedure did not produce a kernel whereby the patch was applied. What is the correct what to do this?

As documented in README.SUSE:

To add a patch using this mechanism, just add it to the `patches.addon.tar.bz2`
archive and add an entry to a `series` file inside the archive. The archive will
be expanded automatically after the other kernel patches when the source tree is
constructed.

Who told you that? That is not what SUSE says.

In any case, “I modified the file” tells us nothing. In computers every single character matters. Never just say “I did something”. Post the exact file content you modified, or at least the exact changed lines you added.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.