Page 1 of 1
Keyboard driver.
Posted: Tue Jul 01, 2008 5:06 am
by kmtdk
HI again
I have one question about keyboard programming.
First i have one big problem with bochs.
I send a command to port 0x64- But :
00002380975e[DEV ] write to port 0x0064 with len 2 ignored
00002380977e[DEV ] write to port 0x0064 with len 2 ignored
What does that mean ?
KMT DK
Re: Keyboard driver.
Posted: Tue Jul 01, 2008 5:28 am
by jal
kmtdk wrote:00002380975e[DEV ] write to port 0x0064 with len 2 ignored
00002380977e[DEV ] write to port 0x0064 with len 2 ignored
What does that mean ?
Appearently you are writing a word (16 bits, 2 bytes) instead of a byte to the port. Real hardware accepts this, more or less, but Bochs doesn't. Try outb instead of outw.
JAL
Re: Keyboard driver.
Posted: Tue Jul 01, 2008 5:32 am
by kmtdk
well
fist i program in pure asm
but i have tryed to change from 16 bit to 8 bit , but it is still the same

Re: Keyboard driver.
Posted: Tue Jul 01, 2008 5:37 am
by AJ
Hi,
Can we see some exact code, please? You really do seem to be outputtnig a word as jal suggested. This means that you need to change:
(or equivalent) to:
Cheers,
Adam
Re: Keyboard driver.
Posted: Tue Jul 01, 2008 5:43 am
by kmtdk
i have found the error
But now another problem incoundes:
00002380981e[KBD ] unsupported io write to keyboard port 64, value = ed
00002380983e[KBD ] unsupported io write to keyboard port 64, value = 7
those is just to turn all leds on ?
KMT Dk
Re: Keyboard driver.
Posted: Tue Jul 01, 2008 8:23 am
by jal
kmtdk wrote:i have found the error
Could you share it with us? This might help others that experience a similar problem and find this thread by searching.
But now another problem incoundes:
00002380981e[KBD ] unsupported io write to keyboard port 64, value = ed
00002380983e[KBD ] unsupported io write to keyboard port 64, value = 7
those is just to turn all leds on ?
Those should go to port 0x60, not 0x64, afaik. Dunno whether port 0x64 should also work.
JAL
Re: Keyboard driver.
Posted: Tue Jul 01, 2008 8:59 am
by kmtdk
yeah:
it was suposed to be send to port 0x60.
Looked at another thread.
KMT Dk