[2.6.20-16generic] How to compile a driver in my kernel according to swsusp.txt?
Detlef Lechner
Detlef.Lechner at gmx.net
Mon Sep 3 09:38:50 UTC 2007
Hello all,
/usr/src/linux-source-2.6.20/Documentation/power/swsusp.txt writes:
". If you have SATA disks, you'll need recent kernels with SATA suspend
support. For suspend and resume to work, make sure your disk drivers
are built into kernel -- not modules. [There's way to make
suspend/resume with modular disk drivers, see FAQ, but you probably
should not do that.]"
https://wiki.ubuntu.com/KernelCustomBuild writes:
"Reasons for NOT compiling a custom kernel:You merely need to compile a
special driver. For this, you only need to install the linux-headers
packages."
My driver /lib/modules/2.6.20-16-generic/kernel/drivers/ata/ahci.ko
obviously is not built into the kernel.
/usr/src/linux-source-2.6.20/drivers/ata/ahci.c is on my computer.
But /usr/src/linux-headers-2.6.20-16-generic/include/config/sata/ahci.h
is empty (0 bytes).
In this situation, how to fulfill best the requirement "not modules"
of /usr/src/linux-source-2.6.20/Documentation/power/swsusp.txt and have
a functioning driver ahci in my kernel?
Regards
Detlef Lechner
--
Linux MD97600 2.6.20-16-generic #2 SMP Wed May 23 2007 i686
Ubuntu 7.04, GNOME 2.18.0, Epiphany 2.18.0, Evolution 2.10.1
Irssi 0.8.10, OpenOffice.org 2.2, WinXP MCE 2005
Medion MD97600
More information about the ubuntu-users
mailing list