Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209907 - app-laptop/hdapsd-20060409-r1 fails to start
Summary: app-laptop/hdapsd-20060409-r1 fails to start
Status: RESOLVED DUPLICATE of bug 166166
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 19:50 UTC by a_tevelev
Modified: 2008-03-22 00:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,3.73 KB, text/plain)
2008-02-12 19:52 UTC, a_tevelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a_tevelev 2008-02-12 19:50:41 UTC
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:
Comment 1 a_tevelev 2008-02-12 19:52:14 UTC
Created attachment 143356 [details]
emerge --info
Comment 2 Jan Drábek 2008-03-02 13:58:20 UTC
There are patch for newer kernel http://news.gmane.org/gmane.linux.drivers.hdaps.devel
Comment 3 a_tevelev 2008-03-03 00:43:52 UTC
The link in the thread (http://whoopie.gmxhome.de/linux/patches/2.6.24/01-disk-protect-for-2.6.24.patch ) is broken.
Comment 5 Anton Bolshakov 2008-03-22 00:40:08 UTC
Actually, this is a dup of bug #166166
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-03-22 00:56:16 UTC

*** This bug has been marked as a duplicate of bug 166166 ***