app-laptop/hdapsd-20060409-r1 fails to start on 2.6.24-tuxonice-r1 kernel. app-laptop/tp_smapi-0.33 has been installed: # equery u app-laptop/tp_smapi [ Searching for packages matching app-laptop/tp_smapi... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for app-laptop/tp_smapi-0.33 ] U I + + hdaps : Install a compatible HDAPS module + + kernel_linux : <unknown> hdaps and tp_smapi modules are correctly loaded: # lsmod | grep hdaps hdaps 9260 0 thinkpad_ec 4816 2 hdaps,tp_smapi hdapsd fails to start with the following error: # /etc/init.d/hdapsd start * No protect entry for sda! * Make sure your kernel is patched with the blk_freeze patch When the latest available patch from http://www.zen24593.zen.co.uk/hdaps/ is applied to the kernel source it fails with the following error: # patch -p1 < ~/hdaps_protect.20060430.patch patching file block/ll_rw_blk.c Hunk #1 FAILED at 39. Hunk #2 succeeded at 307 with fuzz 2 (offset -54 lines). Hunk #3 succeeded at 4211 (offset 380 lines). Hunk #4 FAILED at 4220. 2 out of 4 hunks FAILED -- saving rejects to file block/ll_rw_blk.c.rej patching file drivers/ide/ide-disk.c Hunk #1 succeeded at 44 (offset -27 lines). Hunk #2 succeeded at 679 (offset -52 lines). Hunk #3 succeeded at 1095 (offset -41 lines). patching file drivers/ide/ide-io.c Hunk #1 succeeded at 1271 (offset 91 lines). Hunk #2 succeeded at 1779 with fuzz 2 (offset 108 lines). can't find file to patch at input line 373 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -urN linux-2.6.16.original/drivers/scsi/libata-core.c linux-2.6.16.hdaps/drivers/scsi/libata-core.c |--- linux-2.6.16.original/drivers/scsi/libata-core.c 2006-03-20 05:53:29.000000000 +0000 |+++ linux-2.6.16.hdaps/drivers/scsi/libata-core.c 2006-04-30 13:25:24.000000000 +0100 -------------------------- File to patch:
Created attachment 143356 [details] emerge --info
There are patch for newer kernel http://news.gmane.org/gmane.linux.drivers.hdaps.devel
The link in the thread (http://whoopie.gmxhome.de/linux/patches/2.6.24/01-disk-protect-for-2.6.24.patch ) is broken.
Sounds like these two patches should work for now: http://article.gmane.org/gmane.linux.drivers.hdaps.devel/1094 http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/2008-February/042226.html
Actually, this is a dup of bug #166166
*** This bug has been marked as a duplicate of bug 166166 ***