Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello. I am working on a custom board with an s3c2410 processor. The device it is used in has a series of buttons that form a keypad. These keys are attached to a microcontroller that generates serial output. Essentially, the keypad is a serial keyboard, attached to ttySAC1 at 9600-8N1. The keycodes for the keys are not standard ascii. There is a custom keycode table.
Previous software that used this device (under linux 2.4 kernel) relied on the application to poll the serial port and lookup the keycode. As I am in the process of bringing everything current on the 2.6 kernel, I would like to treat this serial keypad as a standard input device.
I've not found any standard driver for a serial keyboard that would let me specify my own key codes. I've looked into the "inputattach" program, but not had much success since it is built for certain devices only. I thought about possibly adding my own code to patch inputattach. Is this a good approach? Or is there a simpler way that I am overlooking? Do I need anything as far as a kernel mode driver, or would a patched inputattach by itself be a good solution?
Also - Ultimately I would like to be able to use this numeric keypad in a multi-press alphanumeric mode, similar to texting on a cell-phone. Surely there is code already written to do this somewhere? Or do I have to write from scratch? Please advise.
As I understand it, the keyboard driver is normally a built-in kernel driver. If you look in the kernel sources (drivers/input/keyboard/...), you should find code for existing keyboards and other similar devices as examples of how to implement your device.