Difference between revisions of "User:Hmh"

From ThinkWiki
Jump to: navigation, search
(Mention Con Kolivas (ck) kernel patches)
(Switch this page to Debian Etch. Sarge is just not that exciting. Start sysfs stuff)
Line 1: Line 1:
== ThinkPad T43 2687-DDU setup for Debian Sarge ==
+
== ThinkPad T43 2687-DDU setup for Debian Etch ==
  
 
This is an ongoing, spotty guide for an advanced {{Debian}} setup of a {{T43}}, focused on using absolutely all of its capabilities that can be used.  It is not an installation guide, but rather a configuration guide.  Refer to {{Debian}} for a list of pages with initial installation instructions.
 
This is an ongoing, spotty guide for an advanced {{Debian}} setup of a {{T43}}, focused on using absolutely all of its capabilities that can be used.  It is not an installation guide, but rather a configuration guide.  Refer to {{Debian}} for a list of pages with initial installation instructions.
  
 
When it is really usable, I will move it to some other far more public place in [[ThinkWiki]].
 
When it is really usable, I will move it to some other far more public place in [[ThinkWiki]].
 +
 +
Installing should be done using the latest Debian Etch debian-installer release.  Anything else simply will not run on the ThinkPad.
  
 
=== Kernel ===
 
=== Kernel ===
  
Baseline kernel: Debian's latest 2.6.15 (2.6.15.4 with stabilization patches) {{NOTE|Thinkpad support is an ongoing, bleeding edge effort. One ends up needing to apply a ton of patches and to use the latest available kernel, sometimes even kernels not yet released}} {{HINT|The [http://members.optusnet.com.au/ckolivas/kernel/ Con Kolivas (ck) desktop kernel] patches might be very applicable to a ThinkPad Kernel}}
+
Baseline kernel: Debian's latest 2.6.16 (2.6.16.17 with stabilization patches) {{NOTE|Thinkpad support is an ongoing, bleeding edge effort. One ends up needing to apply a ton of patches and to use the latest available kernel, sometimes even kernels not yet released}} {{HINT|The [http://members.optusnet.com.au/ckolivas/kernel/ Con Kolivas (ck) desktop kernel] patches might be very applicable to a ThinkPad Kernel}}
  
 
==== Patches employed ====
 
==== Patches employed ====
Line 39: Line 41:
 
=== Userland ===
 
=== Userland ===
  
==== udev rules ====
+
==== Simple configuration issues ====
 +
 
 +
These are fairly simple minor things you might want to do:
 +
 
 +
===== /etc/sysctl.conf =====
 +
 
 +
install the procps package. Add the following lines to /etc/sysctl.conf:
 +
 
 +
{{FIXME|nothing here yet}}
  
# udev extended network interface naming needs to be configured, order of tg3/ipw2200 won't be respected if {{path|/etc/modules.conf}} is read after udev did the PCI coldplugging
+
===== /etc/sysfs.conf =====
  
==== Debian Sarge software packages ====
+
install the sysfsutils package. Add the following lines to /etc/sysfs.conf
  
Some packages need versions far more up-to-date than those available in Sarge to properly support the new kernels.
+
# ThinkPad battery charger defaults
{{HINT|Refer to [http://backports.org/instructions.html http://backports.org/instructions.html] for instructions on how to setup apt for the backports.org repository}}
+
devices/platform/smapi/BAT0/start_charge_tresh=40
 +
devices/platform/smapi/BAT0/stop_charge_tresh=85
 +
devices/platform/smapi/BAT1/start_charge_tresh=70
 +
devices/platform/smapi/BAT1/stop_charge_tresh=90
  
* udev (backports.org), due to Linux kernel 2.6.15+
+
==== udev rules ====
* hibernate (backports.org), due to [[Software Suspend 2]] 2.2+
+
 
* wireless-tools (backports.org), due to ipw2200 1.0.12+
+
# udev extended network interface naming needs to be configured, order of tg3/ipw2200 won't be respected if {{path|/etc/modules.conf}} is read after udev did the PCI coldplugging
  
==== Software that needs packaging/backporting ====
+
==== Software that needs packaging ====
 
{{NOTE|If nobody beats me to it, I will probably package them for official upload to Debian, and official Debian Sarge backports.  This requires that the software be properly licensed first, of course}}
 
{{NOTE|If nobody beats me to it, I will probably package them for official upload to Debian, and official Debian Sarge backports.  This requires that the software be properly licensed first, of course}}
 
* hdapsd (a bit crude, needs a lot of work still)
 
* hdapsd (a bit crude, needs a lot of work still)
* pcmcia tools (verify if not already backported)
 
* hal (!)
 
 
* ipw2200/ieee80211 need adopting, and since they clash terribly with in-kernel support, they will only work right if we either convert them to be patch-based, or to detect that the user built with in-kernel ieee80211/ipw2200 enabled and abort the out-of-tree compilation.
 
* ipw2200/ieee80211 need adopting, and since they clash terribly with in-kernel support, they will only work right if we either convert them to be patch-based, or to detect that the user built with in-kernel ieee80211/ipw2200 enabled and abort the out-of-tree compilation.
  
Line 63: Line 74:
  
 
== External Links ==
 
== External Links ==
* [http://backports.org/ Debian Sarge backports repository]
 
 
* [http://www.debianhelp.co.uk/udev.htm udev interface naming guide]
 
* [http://www.debianhelp.co.uk/udev.htm udev interface naming guide]
 
* [http://members.optusnet.com.au/ckolivas/kernel/ ck desktop-kernel patches]
 
* [http://members.optusnet.com.au/ckolivas/kernel/ ck desktop-kernel patches]

Revision as of 22:27, 23 May 2006

ThinkPad T43 2687-DDU setup for Debian Etch

This is an ongoing, spotty guide for an advanced Debian setup of a T43, focused on using absolutely all of its capabilities that can be used. It is not an installation guide, but rather a configuration guide. Refer to Debian for a list of pages with initial installation instructions.

When it is really usable, I will move it to some other far more public place in ThinkWiki.

Installing should be done using the latest Debian Etch debian-installer release. Anything else simply will not run on the ThinkPad.

Kernel

Baseline kernel: Debian's latest 2.6.16 (2.6.16.17 with stabilization patches)

NOTE!
Thinkpad support is an ongoing, bleeding edge effort. One ends up needing to apply a ton of patches and to use the latest available kernel, sometimes even kernels not yet released
Hint:
The Con Kolivas (ck) desktop kernel patches might be very applicable to a ThinkPad Kernel

Patches employed

  • Latest ipw2200 driver and ieee80211 layer:
There are two ways to go about this: either disable IEEE 802.11 support (and thus ipw2200) in the kernel and build both modules out-of-tree (failure to do so will break the out-of-tree build), or update the kernel subsystems with more up-to-date files.
The advantage of updating the kernel drivers instead of doing an out-of-tree build is that should there be any configuration options that require ieee80211 support, those will be available. On the other hand, it is a bit more difficult, as you will have to mess with Kconfig.
  • copied files over the in-kernel files in include/net, drivers/net/wireless, Documentation/networking, net/ieee80211, thus replacing the old drivers with the new ones.
  • ipw2200 often have extra options you need to enable, look in the toplevel Makefile and add them to drivers/net/wireless/Kconfig. They are usually bool types, so it is trivial to copy, e.g. IPW_DEBUG and rename to the new required options.

Kernel setup tasks

  1. Make sure the following subsystems are modules (for suspend/resume)
    1. USB (especially EHCI_HCD and UHCI_HCD)
    2. HDAPS (may work compiled in, as well)
  2. Make sure the following subsystems are enabled and not modules (safety net)
    1. ThinkPad SMAPI
  3. Place the following modules on /etc/modules:
    1. hdaps
    2. nsc-ircc
    3. tg3
    4. ipw2200
  4. Configure IrDA module options
  5. ipw2200 firmware needs to go in /lib/firmware. The module should be given the led=1 module parameter option

Userland

Simple configuration issues

These are fairly simple minor things you might want to do:

/etc/sysctl.conf

install the procps package. Add the following lines to /etc/sysctl.conf:

Template:FIXME

/etc/sysfs.conf

install the sysfsutils package. Add the following lines to /etc/sysfs.conf

# ThinkPad battery charger defaults
devices/platform/smapi/BAT0/start_charge_tresh=40
devices/platform/smapi/BAT0/stop_charge_tresh=85
devices/platform/smapi/BAT1/start_charge_tresh=70
devices/platform/smapi/BAT1/stop_charge_tresh=90

udev rules

  1. udev extended network interface naming needs to be configured, order of tg3/ipw2200 won't be respected if /etc/modules.conf is read after udev did the PCI coldplugging

Software that needs packaging

NOTE!
If nobody beats me to it, I will probably package them for official upload to Debian, and official Debian Sarge backports. This requires that the software be properly licensed first, of course
  • hdapsd (a bit crude, needs a lot of work still)
  • ipw2200/ieee80211 need adopting, and since they clash terribly with in-kernel support, they will only work right if we either convert them to be patch-based, or to detect that the user built with in-kernel ieee80211/ipw2200 enabled and abort the out-of-tree compilation.

Software that could benefit from re-packaging

  • hsfmodem: should be easy to build out-of-tree in another machine other than the one it will be installed at

External Links