[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] PS2 Keyboard with Petalinux and XPS_PS2
Hello again,
I found one problem. It chose the wrong interrupt of xps_ps2.
But I have still a problem:
In addtion to what I described, I have a frame-buffer device, which
works fine.
I added
CONFIG_VT
CONFIG_VT_CONSOLE
CONFIG_FRAMEBUFFER_CONSOLE
and I have a serial connection to the board, which I use to login.
I expected, that I get a virtual terminal, which I can use to login
vie PS2/Keyboard and framebuffer-console.
On the monitor, I can see all the kernel messages. If I press some
keys on the keyboard, I can see it on the monitor (but there is no
login)
There is also only one "/dev/tty", which I think is the current tty of
the process.
On the serial terminal
echo "hello" > /dev/tty
prints "hello" back to the serial terminal.
The same with /dev/ttyUL0
I can also do a
echo "hello" > /dev/console
which prints "hello" on the monitor
and
cat /dev/console > /dev/ttyUL0
which prints everything, what I write on the PS2- keyboard on my
serial terminal.
Some proc-info:
# cat /proc/devices
Character devices:
1 mem
4 /dev/vc/0
4 tty
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
10 misc
13 input
29 fb
90 mtd
128 ptm
136 pts
204 ttyUL
Block devices:
1 ramdisk
31 mtdblock
# cat /proc/tty/drivers
/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
uartlite /dev/ttyUL 204 187-190 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
unknown /dev/tty 4 1-63 console
My question ist, why is there no tty entry in /dev/ for the keyboard
(with framebuffer) like /dev/tty0
and how can I use the keyboard for login?
Many thanks
Feddischson
On Jul 24, 2009, at 10:31 PM, feddischson wrote:
Hello,
I'm trying to get a PS2 keyboard working with my petalinux.
I added the xps_ps2 core and adapted the xilinx_ps2 driver like Hans
described it here:
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2008/05/msg00244.html
In addition, I added KEYBOARD_ATKBD driver.
When I boot the kernel, I get
xilinx_ps2 xilinx_ps2.0: Xilinx PS2 at 0x86A00000 mapped to
0x86a00000, irq=0
and
atkbd.c: keyboard reset failed on xilinxps2/serio at 86A00000
atkbd.c: keyboard reset failed on xilinxps2/serio at 86A00000
That confused me and I added some debug output.
I can see, that the atkbd driver first tries to read from the
keyboard and then writes
the reset code, the Read ID code and Set/Reset LEDs code.
After that, I get the the message from the atkbd driver.
Is the atkbd driver the right one and can I ignore this messages?
And if so, what is additional necessary to get the keyboard working?
Thanks,
Feddischson
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-
uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/