Re: How to compile kernel module for a new kernel before reboot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Kwan,

Saturday, April 3, 2010, 11:57:04 PM, you wrote:

>> How do I compile my driver for a new kernel _before_ actually booting
>> into that new kernel, so that I could be prepared with the new kernel
>> module already on first reboot?

> Depending on your source tree there are a few different ways. Most
> kernel module sources will use 'uname -r' to find the path to the
> kernel source tree. You may need to set a variable explicitly.  For
> example, I grabbed a vt6656 build from git and saw in the mk.sh
> script:

> KDIR="/lib/modules/`uname -r`/build"

> You can try passing the kernel version you want to build instead of
> running uname.

Ok, I see. So there's no "common" method to do this, right? It may
differ from module to module...

Initially I thought that's a really simple task... And now it doesn't
seem to be like that, especially for those who use multiple custom
kernel modules...

Ok, thanks a lot!
I'll try it first, while starting to read about DKMS... Anyway, I'm
curious to do it the right way.

-- 
Best regards,
 Andrew


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux