Difference between revisions of "Linux driver for FPGA controlled keyboards"

From ArmadeusWiki
Jump to: navigation, search
(Usage)
m (Installation)
Line 10: Line 10:
 
==Installation==
 
==Installation==
 
If not already done in standard Armadeus rootfs:
 
If not already done in standard Armadeus rootfs:
  $ make linux-menuconfig
+
  $ make linux26-menuconfig
 
  Device Drivers  ---> Input device support  ---> [*]  Keyboards  ---> <*>  AT keyboard
 
  Device Drivers  ---> Input device support  ---> [*]  Keyboards  ---> <*>  AT keyboard
 
then
 
then

Revision as of 18:22, 6 December 2008

PAGE UNDER CONSTRUCTION !!!

Construction.png

Introduction

This driver is intented to control FPGA IPs connected to numerous hardware keyboards like:

  • PS/2
  • Home made matrix keyboards

The driver is currently named apf9328ps2 but this will be changed soon to reflect its generic capability. Indeed all specific logic is done in FPGA IP.

Installation

If not already done in standard Armadeus rootfs:

$ make linux26-menuconfig
Device Drivers  ---> Input device support  ---> [*]   Keyboards  ---> <*>   AT keyboard

then

Device Drivers  ---> Armadeus specific drivers  ---> <M>   Armadeus PS/2 driver

Reflash rootfs then:

# modprobe apf9328ps2
input: AT Raw Set 2 keyboard as /class/input/input0
Armadeus PS/2: APF9328KBD AT adapter OK!

Test

  • If you have a graphical LCD connected to your board (= virtual terminal), then you should see what you type.
  • If you don't have any virtual terminal, but only the serial console:
# cat /sys/class/input/input0/event0/dev
13:64

If corresponding device node in /dev/input/ is not existing, then:

# mkdir -p /dev/input
# mknod /dev/input/event0 c 13 64
# cat /dev/input/event0

Then you should see weirds characters when pressing keyboard keys:

�,~~_�,}�}�3T,QToT6,TT�,�;��, � �

Usage

  • To change keyboard keymap (by default us one):
# loadkmap < /etc/i18n/fr.kmap