[OT] Compiling a module for the Fedora kernel

Klaus-Peter Schrage kpschrage at gmx.de
Mon Dec 22 18:58:34 UTC 2014


Am 22.12.2014 um 19:05 schrieb Rick Stevens:
> On 12/22/2014 09:58 AM, Klaus-Peter Schrage wrote:
>> Am 22.12.2014 um 17:52 schrieb Klaus-Peter Schrage:
>>> Am 22.12.2014 um 00:11 schrieb poma:
>>>> On 21.12.2014 19:45, Klaus-Peter Schrage wrote:
>>>>> Am 21.12.2014 um 18:34 schrieb Heinz Diehl:
>>>>>> On 21.12.2014, Klaus-Peter Schrage wrote:

> Oh, yeah. Forgot. I suspect you'll need to rebuild the initramfs after
> patching your driver. The "depmod" verifies that all the module
> dependencies were met so if you were to "modprobe" nouveau it'd work,
> but I believe nouveau goes into the initramfs so the boot was still
> using the original one from the kernel update. So:
>
> 1. Patch
> 2. Build
> 3. Move to appropriate spot
> 4. Depmod
> 5. Rebuild initramfs...make sure the new module is included
> 6. Reboot

Rick, I think that's it: lsinitrd lists the nouveau driver and points to 
the newly built binary in /lib/modules/.../updates/.

In older versions of the initramfs image in my /boot directory, the 
original driver is listed.

So, in your step 5, a simple "dracut" should do the trick (with the 
"--force"-option when the initramfs version corresponds to the running 
kernel). I found that dracut finds and includes the binary in 
/lib/modules/ .../updates/.

Thank you for pointing me into this direction!




More information about the users mailing list