Thread: iLiad Button check
View Single Post
Old 11-14-2008, 03:32 PM   #6
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Cool

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.
hansel is offline   Reply With Quote