jharker (and All)
I get the same results with your sample program (as expected). May be I'm pressing the key to early... But since I want to detect it very early in the boor process I don't have much choice...
I discovered one VERY USEFUL thing. (As I already new) the button info is in the lower two nibbles of the return data, BUT the next nibble tells if a CF card or a SD card is inserted (even the dummy plastic one).
My CF is always inserted (that's where my sshd runs)
- When the (fake) SD is inserted I get status=0xCFF
- When the (fake) SD is absent I get status=0x4FF
- With only a SD card you would probably get status=0X8FF (yout situation?)
- With both card removed I would probably get 0x0FF, but when I do that, sshd dies ;-)
The interesting part is that this holds at boot time. I can activate my experimental stuff by inserting the dummy plastic SD card
PS: If somebody has any ideas why the key detection at boot time doesn't work, I'd be very interested to hear them.