Well, there hasn't been a thread nor wiki article dedicated to this topic, but there should be a way of getting an XT keyboard to work in Linux.
This thread can be used to document process and gather feedback.
Let's start at the beginning:
A couple of years ago, Vojtech Pavlik coded up a
Linux driver that could read the parallel or serial port and use it as keyboard input.
For the XT protocol, he envisaged a simple adapter circuit to be plugged on the parallel port: (schematic can be found in the driver's source)
To connect an AT or XT keyboard to the parallel port, a fairly simple adapter can be made:
Parallel port Keyboard port
+5V --------------------- +5V (4)
______
+5V -------|______|--.
|
ACK (10) ------------|
|--- KBD CLOCK (5)
STROBE (1) ---|<|----'
______
+5V -------|______|--.
|
BUSY (11) -----------|
|--- KBD DATA (1)
AUTOFD (14) --|<|----'
GND (18-25) ------------- GND (3)
The diodes can be fairly any type, and the resistors should be somewhere around 5 kOhm, but the adapter will likely work without the resistors, too.
The +5V source can be taken either from USB, from mouse or keyboard ports, or from a joystick port.
Unfortunately, the parallel port of a PC doesn't have a +5V pin, and feeding the keyboard from signal pins is out of question with 300 mA power requirement of a typical AT/XT keyboard.
The adapter needs a 5V Vcc, so check if you got an old power supply or a free USB port from which you can leech some power. Also, I think the resistors are necessary.
Anyway, in my case it didn't work. I don't know if my keyboard is bust, the circuit is wrong or there is some other compatibility problem. It just spew errors about "Unknown scan code 0xFF" and stuff like that - as if it read data from the clock line.
I do have to note though that my current circuit is a bit of ghetto work. I didn't have any perfboard, so I just cut some pieces of PCB with usable traces from some old appliances. As a power source, I cut a 5V voltage regulator from a busted PSU and feed it 6-9V to get the desired output.
Once I build a cleaner version, I'll try to post an update and a schematic.