LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This 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.

Notices


Reply
  Search this Thread
Old 03-02-2014, 06:44 PM   #1
random110
LQ Newbie
 
Registered: Jan 2014
Posts: 20

Rep: Reputation: Disabled
embedded ps/2 device problem i8042


I have found myself a bit out of my element here and hopefully can get some advice.

I am working on this factory embedded machine, basically a i486 computer with embedded chip. I installed Debian, works like a charm, but I can not get this ps/2 device to work and it's driving me mad. Basically I am just trying to make this 12 pin ps/2 input device get detected and working on Debian. It is supposed to just plug and play without problems like a keyboard.

Problem is they tested it with Windows install on the same machine and apparently had no problems, but I can't get it working with Debian installed.

It is just a simple looking keyboard with minimal key range of F1 to F6, Esc, Up/Down, etc.. to operate the end machine. Now here is me learning everything under the sun about ps/2 trying to make the input work:

apparently it is detected as a i8042 ps/2 device in dmesg and syslog. check. it's a 12 pin ps/2 port. check. so it seems the device is detected, however, it is not showing up in /dev/input anywhere or how... it's just there and doesn't do anything. cat /proc/bus/input/devices shows 2 usb ports and a speaker. Yes, there are 2 usb ports, so that's normal, but it is not showing the keyboard device...

So this is where I burn out and knowledge ends. Am I supposed to be trying to load a module at this point? Do I need a driver? What would it be? They tested the same machine on Windows and they say it should just plug in and work.

I also added every boot param under the sun such as "i8042.nopnp i8042.nomux", and every different combination of these... I also played with BIOS settings for PnP... to no avail.

Any clues?
 
Old 03-02-2014, 08:07 PM   #2
random110
LQ Newbie
 
Registered: Jan 2014
Posts: 20

Original Poster
Rep: Reputation: Disabled
Update: I downloaded a USB live boot for FreeDOS, booted, and the ps/2 device worked fine, just like a regular keyboard. But doesn't work in Linux?...? firmware? driver?
 
Old 03-04-2014, 12:29 PM   #3
Spect73
Member
 
Registered: Aug 2013
Distribution: Slackware 14.1
Posts: 128

Rep: Reputation: Disabled
Quote:
Originally Posted by random110 View Post
Update: I downloaded a USB live boot for FreeDOS, booted, and the ps/2 device worked fine, just like a regular keyboard. But doesn't work in Linux?...? firmware? driver?
Probably the required driver either hasn't been compiled into the kernel you are using or exists as a loadable kernel module. I don't know Debian so I can't tell you how to verify that it has been compiled in, or was compiled as a module. On my Slackware system, I've a config log which allows me to see what options were selected for the kernel compliation. If your Debian distro provides the same, you can look at it to see how the kernel was built. The particular item you will be searching for is:
"CONFIG_KEYBOARD_ATKBD=y"
for it to be compiled in. If it has a 'm' rather than a 'y' it was compiled as a module. If the config line is missing, it means that the driver was not compiled in or built as a module. In that case you would need to build it.
 
Old 03-04-2014, 03:58 PM   #4
random110
LQ Newbie
 
Registered: Jan 2014
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Spect73 View Post
... The particular item you will be searching for is:
"CONFIG_KEYBOARD_ATKBD=y"
for it to be compiled in. If it has a 'm' rather than a 'y' it was compiled as a module. If the config line is missing, it means that the driver was not compiled in or built as a module. In that case you would need to build it.
Thanks for that! I was wondering what the 'm' was for when looking this up, and yes they do have that in Debian although I forget where at the moment.

Actually I got it working now, and in Slackware, with something along the lines of:

modprobe -r psaux
modprobe psaux (something something)

Essentially removing the PS module and reloading it with some params.

I decided to install Slack to see if Debian was the problem, but actually I think I can achieve this in Debian just as easily and the Slackware install was too big... I started with Salix and tried to hack it down. ... it's sad that it took me 3 days to figure this one simple thing out and ended up swapping systems just for testing. There were 101 different solutions for same problem all over the web.

I have to say I was having fun with Slackware though. While we're on that topic, do you think I can get a more minimal install with Slackware over Debian? The default installation seems to be huge, but I've seen people posting page-long lists of packages that can supposedly make a working install. I am trying to get a bare bones install with basic GUI under 1 Gb.
 
Old 03-04-2014, 08:47 PM   #5
Spect73
Member
 
Registered: Aug 2013
Distribution: Slackware 14.1
Posts: 128

Rep: Reputation: Disabled
Glad you got it working. I'm not familar with Debian at all anymore, so I couldn't say which distro would allow you the smallest system. Nor am I sure just how big a Slack system would be with a minimum. Partly it will be up to you as you will be defining what minimum means. Either way, Slack and Debian are good distros and should provide what you are looking for. Then, of course, there are the 'tiny' distros such as Puppy Linux and Damn Small Linux. Again though, it has been a long long time since I looked at them so I can't say anything pro or con.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i8042.c: no controller found mohsenaria Linux - Embedded & Single-board computer 3 04-11-2013 09:01 AM
To Blacklist Modules in embedded device viveck Linux - Embedded & Single-board computer 1 03-17-2012 09:46 AM
"i8042.c: Can't read CTR while initializing i8042" when USB drive is bootable in BIOS openSauce Linux - Hardware 3 05-14-2008 07:18 PM
i8042 Can't read CTR while initializing i8042 dwdrumrboy Linux - Hardware 1 03-12-2005 07:12 PM
Need help with embedded linux device nabeelakhtar Linux - Laptop and Netbook 3 12-25-2004 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration