QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Dev.con reboots the Elan SC400 (SC 410) |
Ref. No. |
QNX.000009614 |
Category(ies) |
Video, Installation |
Issue |
We are trying to install QNX 4.25 on our Elan SC400. When the Dev.con driver starts, the system reboots. How can we fix this?
|
Solution |
Some BIOS'es which are shipped with the Elan SC400/SC410 leave the keyboard in a strange state. When Dev.con or Dev.ansi tries to initialize the keyboard, the system will reboot. Compile the source bellow and run it before running Dev.con or Dev.ansi. To compile it, use the command: cc kbdinit.c -o kbdinit
Source for kbdinit.c:
// set up the keyboard controller
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/inline.h>
void main() { unsigned char val;
// call keyboard self-test outb(0x64,0xaa);
sleep(1);
// enable keyboard interface outb(0x64,0xae);
sleep(1);
// read the controller a few times, to clear any pending data
outb(0x64, 0x60); val=inb(0x64); val=inb(0x60); val=inb(0x64); val=inb(0x60); val=inb(0x64); val=inb(0x60); val=inb(0x64); val=inb(0x60);
// set up the controller outb(0x64,0x60); outb(0x60,0x45); sleep(2); } |
|