trotz Anleitung und patchen des Kernell bringe ich hdaps nicht zu laufen - bitte um Hilfe !
Hallo
Ich will hdaps, tp_smapi und am besten gleichzeitig auch phc zum laufen zu bringen. Dazu muss man das Kernel patchen und neu kompilieren, deswegen wollte ich am liebstan alles in einem Schritt zu machen.
Ich bin von dieser dieser Anleitung ausgegangen. Habe Linux-mint Elyssa (im Prinzip äquivalent zu Ubuntu 8.04 HH )Ich beschreibe hier kurz meine Schritte :
Hallo
Ich will hdaps, tp_smapi und am besten gleichzeitig auch phc zum laufen zu bringen. Dazu muss man das Kernel patchen und neu kompilieren, deswegen wollte ich am liebstan alles in einem Schritt zu machen.
Ich bin von dieser dieser Anleitung ausgegangen. Habe Linux-mint Elyssa (im Prinzip äquivalent zu Ubuntu 8.04 HH )Ich beschreibe hier kurz meine Schritte :
- die Pakete hdapsd und hdaps-utils instalieren :
Code:sudo apt-get install hdapsd hdaps-utils
- die Packete build-essential und linux-source instalieren :
Code:sudo apt-get install build-essential linux-source
- im Verzeichniss /usr/src lieget jetzt der Kernel-Quellcode. Entpacken in ein dafür angelegtes Verzeichniss :
Code:cd ~/thinkpad tar -xvjf /usr/src/linux-source-2.6.*.tar.bz2
- die Datei config-2.6.* aus dem Verzeichniss /boot hineinkopieren :
Code:cd ~/thinkpad/linux-source-2.6.* cp /boot/config-$(uname -r) .config
- Anlegen eines Vereichniss für die Patches anlegen und die benötigte Patches runterladen :
Code:
mkdir ~/thinkpad/patches cd ~/thinkpad/patches wget -c 'http://sourceforge.net/mailarchive/attachment.php?list_name=hdaps-devel&message_id=87hcjjedbn.fsf@denkblock.local&counter=2' -O disk-protect.patch wget -c 'http://sourceforge.net/mailarchive/attachment.php?list_name=hdaps-devel&message_id=87bq6l2ihm.fsf@denkblock.local&counter=2' -O adjust-blocked-counters.patch wget -c [url]http://phcpatches.googlecode.com/svn/trunk/acpi-cpufreq/patches/linux-phc-kernel-vanilla-2.6.24-rc1.patch[/url]
- Kernel patchen :
Code:cd ~/thinkpad/linux-source-2.6.* patch -p1 -l < ~/thinkpad/patches/linux-phc*.patch patch -p1 -l < ~/thinkpad/patches/disk-protect.patch patch -p1 -l < ~/thinkpad/patches/adjust-blocked-counters.patch
- Ausführen von :
Code:make oldconfig
- PHC Modul Kompilieren :
Code:make prepare make scripts make M=./arch/x86/kernel/cpu/cpufreq
- Module instalieren :
Code:sudo cp arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko /lib/modules/$(uname -r)/kernel/arch/x86/kernel/cpu/cpufreq echo tp_smapi | sudo tee -a /etc/modules echo hdaps_ec | sudo tee -a /etc/modules
- NeustartDas Problem ist, dass nach dem Neustart während des Bootvorgang folgende Meldung kommt:
Not starting hdapsd: /sys/block/hda/queue/protect does not exist
PHC läuft in Gegensatz dazu 1A
Noch ein Auszug aus
Code:dmesg | more
- [ 34.649307] tp_smapi 0.36 loading...
- [ 34.649428] tp_smapi successfully loaded (smapi_port=0xb2).
- [ 34.686870] hdaps: initial mode latch is 0x01
- [ 34.686975] hdaps: setting ec_rate=250, filter_order=2
- [ 34.687005] hdaps: fake_data_mode set to 0
- [ 34.687231] hdaps: device successfully initialized.
- [ 34.687290] input: ThinkPad HDAPS joystick emulation as /devices/platform/hdaps/input/input11
- [ 34.714538] input: ThinkPad HDAPS accelerometer data as /devices/platform/hdaps/input/input12
- [ 34.738396] hdaps: driver successfully loaded.