Hi,
After commenting this with Uwe on IRC, he said I should ask to the list to see if someone knows what's going on.
I'm running LB with some patches (combined with fixes sent by Uwe and Rudolf), plus some PNP adjustments for the keyboard/game/midi ports on my ASUS A8N5X (K8/CK804/IT8712F), and keyboard is not working neither from FILO nor Linux.
Find attached:
- combined diff of the changes I have relative to svn - minicom capture log (using loglevel 11) - "lspci -nnv" and "lspnp -v" output
Some hint would be appreciated. TIA!
Let me just ask the very dumb question. Does the keyboard work with the stock BIOS? Have you tried the stock BIOS since you had this problem? Just a sanity check. -Adam
Robert Millan wrote:
Hi,
After commenting this with Uwe on IRC, he said I should ask to the list to see if someone knows what's going on.
I'm running LB with some patches (combined with fixes sent by Uwe and Rudolf), plus some PNP adjustments for the keyboard/game/midi ports on my ASUS A8N5X (K8/CK804/IT8712F), and keyboard is not working neither from FILO nor Linux.
Find attached:
- combined diff of the changes I have relative to svn
- minicom capture log (using loglevel 11)
- "lspci -nnv" and "lspnp -v" output
Some hint would be appreciated. TIA!
On Thu, Aug 16, 2007 at 04:05:12PM -0700, Adam Talbot wrote:
Let me just ask the very dumb question. Does the keyboard work with the stock BIOS? Have you tried the stock BIOS since you had this problem? Just a sanity check.
Yes :-)
I switch LB and stock BIOS all the time, because from LB I don't get network, so I can't scp new images for re-flash.
On 17.08.2007 00:53, Robert Millan wrote:
Hi,
After commenting this with Uwe on IRC, he said I should ask to the list to see if someone knows what's going on.
I'm running LB with some patches (combined with fixes sent by Uwe and Rudolf), plus some PNP adjustments for the keyboard/game/midi ports on my ASUS A8N5X (K8/CK804/IT8712F), and keyboard is not working neither from FILO nor Linux.
Please also attach a dmesg (or minicom capture log) for Linux under the proprietary BIOS.
Regards, Carl-Daniel
Robert Millan wrote:
Hi,
After commenting this with Uwe on IRC, he said I should ask to the list to see if someone knows what's going on.
I'm running LB with some patches (combined with fixes sent by Uwe and Rudolf), plus some PNP adjustments for the keyboard/game/midi ports on my ASUS A8N5X (K8/CK804/IT8712F), and keyboard is not working neither from FILO nor Linux.
Find attached:
- combined diff of the changes I have relative to svn
- minicom capture log (using loglevel 11)
- "lspci -nnv" and "lspnp -v" output
Some hint would be appreciated. TIA!
I assume you have a good reason, but why are you changing the it8712f pnp device numbers? I am not positive how this works, but I think changing 2e.0 to 2e.7 means that you are trying to program the it8712f logical device 7 with floppy settings. http://www.tranzistoare.ro/datasheets/1150/495234_DS.pdf
IRQ routing/polarity/mask issues? Check mptable.c and irq_tables.c.
You can check the keyboard controller input buffer to see if a keystroke is in there. Then you would know that interrupt isn't getting through.
Do you have serial console working and does keyboard work there? That would tell you if interrupts are making it from the SIO.
http://homepages.cwi.nl/~aeb/linux/kbd/scancodes-8.html
Hope this helps. Marc
On Thu, Aug 16, 2007 at 05:32:07PM -0600, Marc Jones wrote:
I assume you have a good reason, but why are you changing the it8712f pnp device numbers? I am not positive how this works, but I think changing 2e.0 to 2e.7 means that you are trying to program the it8712f logical device 7 with floppy settings. http://www.tranzistoare.ro/datasheets/1150/495234_DS.pdf
The changes were mostly part of the patch Uwe sent me (for his slightly different board). I also changed keyboard (s/2e.5/2e.a/), midi (s/2e.8/2e.b/) and game port (s/2e.9/2e.c/) while trying to match with lspnp output:
00:0a PNP0303 IBM enhanced keyboard (101/102-key, PS/2 mouse support) 00:0b PNPb006 MPU401 compatible 00:0c PNPb02f Joystick/Game port
Is this correct?
IRQ routing/polarity/mask issues? Check mptable.c and irq_tables.c.
I see that they print these debug messages:
Writing IRQ routing tables to 0xf0000...done. Wrote the mp table end at: 00000020 - 00000140
I'm not sure if I can make sense of this. Should I poke at the contents in these addresses?
You can check the keyboard controller input buffer to see if a keystroke is in there. Then you would know that interrupt isn't getting through.
How would I do that, with a userspace program using inb()/outb() ?
Do you have serial console working and does keyboard work there? That would tell you if interrupts are making it from the SIO.
Yes, that works.
Thank you
Robert Millan wrote:
On Thu, Aug 16, 2007 at 05:32:07PM -0600, Marc Jones wrote:
I assume you have a good reason, but why are you changing the it8712f pnp device numbers? I am not positive how this works, but I think changing 2e.0 to 2e.7 means that you are trying to program the it8712f logical device 7 with floppy settings. http://www.tranzistoare.ro/datasheets/1150/495234_DS.pdf
The changes were mostly part of the patch Uwe sent me (for his slightly different board). I also changed keyboard (s/2e.5/2e.a/), midi (s/2e.8/2e.b/) and game port (s/2e.9/2e.c/) while trying to match with lspnp output:
00:0a PNP0303 IBM enhanced keyboard (101/102-key, PS/2 mouse support) 00:0b PNPb006 MPU401 compatible 00:0c PNPb02f Joystick/Game port
Is this correct?
I guess Uwe would need to answer this. I must not understand it correctly.
IRQ routing/polarity/mask issues? Check mptable.c and irq_tables.c.
I see that they print these debug messages:
Writing IRQ routing tables to 0xf0000...done. Wrote the mp table end at: 00000020 - 00000140
I'm not sure if I can make sense of this. Should I poke at the contents in these addresses?
You can get more info here: http://linuxbios.org/Glossary#MPTable http://linuxbios.org/Glossary#PIRQ
I don't recall where, but there are some guides on dumping the tables from the PCBIOS somewhere.
You can check the keyboard controller input buffer to see if a keystroke is in there. Then you would know that interrupt isn't getting through.
How would I do that, with a userspace program using inb()/outb() ?
Yes, // check if there is a keystroke that hasn't been serviced and see what it is. status = inb(0x64); if ((status & 0x1)) scancode = inb(0x60);
if the KBC controller is being serviced it is unlikely that you will catch a character in the output buffer. If the KBC isn't initialized correctly you might not get a character either.
Do you have serial console working and does keyboard work there? That would tell you if interrupts are making it from the SIO.
Yes, that works.
Thank you
Interesting that the SIO serial interrupt works and the the keyboard one doesn't. I am not sure what that means.
Marc
On 17.08.2007 18:50, Marc Jones wrote:
Robert Millan wrote:
On Thu, Aug 16, 2007 at 05:32:07PM -0600, Marc Jones wrote:
I assume you have a good reason, but why are you changing the it8712f pnp device numbers? I am not positive how this works, but I think changing 2e.0 to 2e.7 means that you are trying to program the it8712f logical device 7 with floppy settings. http://www.tranzistoare.ro/datasheets/1150/495234_DS.pdf
The changes were mostly part of the patch Uwe sent me (for his slightly different board). I also changed keyboard (s/2e.5/2e.a/), midi (s/2e.8/2e.b/) and game port (s/2e.9/2e.c/) while trying to match with lspnp output:
00:0a PNP0303 IBM enhanced keyboard (101/102-key, PS/2 mouse support) 00:0b PNPb006 MPU401 compatible 00:0c PNPb02f Joystick/Game port
Is this correct?
I guess Uwe would need to answer this. I must not understand it correctly.
Exactly what superio model do you have?
Interesting that the SIO serial interrupt works and the the keyboard one doesn't. I am not sure what that means.
Yes, but serial loses continuous runs of characters. That might be a problem on the receiving side, though.
Regards, Carl-Daniel
On Fri, Aug 17, 2007 at 10:28:34PM +0200, Carl-Daniel Hailfinger wrote:
On 17.08.2007 18:50, Marc Jones wrote:
Robert Millan wrote:
On Thu, Aug 16, 2007 at 05:32:07PM -0600, Marc Jones wrote:
I assume you have a good reason, but why are you changing the it8712f pnp device numbers? I am not positive how this works, but I think changing 2e.0 to 2e.7 means that you are trying to program the it8712f logical device 7 with floppy settings. http://www.tranzistoare.ro/datasheets/1150/495234_DS.pdf
The changes were mostly part of the patch Uwe sent me (for his slightly different board). I also changed keyboard (s/2e.5/2e.a/), midi (s/2e.8/2e.b/) and game port (s/2e.9/2e.c/) while trying to match with lspnp output:
00:0a PNP0303 IBM enhanced keyboard (101/102-key, PS/2 mouse support) 00:0b PNPb006 MPU401 compatible 00:0c PNPb02f Joystick/Game port
Is this correct?
I guess Uwe would need to answer this. I must not understand it correctly.
Exactly what superio model do you have?
IT8712F-A. Uwe has a different one, I think. Perhaps I should start with the Config.lb pnp setup from pristine svn and adapt that to my pnp layout instead of using his patched version ?
On 17.08.2007 22:52, Robert Millan wrote:
On Fri, Aug 17, 2007 at 10:28:34PM +0200, Carl-Daniel Hailfinger wrote:
On 17.08.2007 18:50, Marc Jones wrote:
Robert Millan wrote:
On Thu, Aug 16, 2007 at 05:32:07PM -0600, Marc Jones wrote:
I assume you have a good reason, but why are you changing the it8712f pnp device numbers? I am not positive how this works, but I think changing 2e.0 to 2e.7 means that you are trying to program the it8712f logical device 7 with floppy settings. http://www.tranzistoare.ro/datasheets/1150/495234_DS.pdf
The changes were mostly part of the patch Uwe sent me (for his slightly different board). I also changed keyboard (s/2e.5/2e.a/), midi (s/2e.8/2e.b/) and game port (s/2e.9/2e.c/) while trying to match with lspnp output:
00:0a PNP0303 IBM enhanced keyboard (101/102-key, PS/2 mouse support) 00:0b PNPb006 MPU401 compatible 00:0c PNPb02f Joystick/Game port
Is this correct?
I guess Uwe would need to answer this. I must not understand it correctly.
Exactly what superio model do you have?
IT8712F-A. Uwe has a different one, I think. Perhaps I should start with the Config.lb pnp setup from pristine svn and adapt that to my pnp layout instead of using his patched version ?
Start from a Config.lb which uses exactly the superio you have. If that is not possible, read the datasheet of your superio and modify your Config.lb so that it matches the datasheet.
Please be also aware that the IT8712F has a "keyboard controller with 2 kb programmable ROM" which might need special handling.
If you have problems downloading the datasheet from ITE (the download may stall) tell me and I'll send it to you privately.
Regards, Carl-Daniel
Carl-Daniel Hailfinger schrieb:
If you have problems downloading the datasheet from ITE (the download may stall) tell me and I'll send it to you privately.
the ITE datasheet looks quite informative. Is it all you get / need to do the job ?
my ebay seller of the A8N-E keeps me waiting for a week now, though I got all other components handy ! I hope to boot LB any day now ! --Q
dmesg+init of each bios for comparison, as asked on IRC.