Hi every one, I am a very new beginner in Android and try to port a keypad driver on emulator.
I follow the link http://source.android.com/porting/build_new_device.html#androidBuildNewFileTree to construct my product directory and make it can be compiled successfully. I also follow the link http://source.android.com/porting/keymaps_keyboard_input.html to register my system.prop keylayout.kl and keychar.kcm successfully in /out/target/product/project_name/system/build.prop My questions is: where can I put the keypad driver (such as the example pguide_events.c) if I have already wrote one driver and hook it to system.img which compiled from my product directory? I also follow the link http://linuxclues.blogspot.com/2010/05/build-compile-linux-kernel-android.html to download the kernel source code and compiled it successfully But it is for eclair version (now is froyo), I am not sure if it still useful for me. If I can use the kernel, I think maybe I can add a new keypad driver into path: common/drivers/input/keyboard/, or I can modify the content of goldfish_events.c to my driver content. and re-compile the kernel to get the zImage, then use the emulator command to run the system.img and kernel.img Is my idea right? Can someone give any idea to do this? The final question is: how can check the log such as the following: I/EventHub( 1548): New device: path=/dev/input/event0 name=partnerxx_keypad id=0x10000 (of 0x1) index=1 fd=30 I/EventHub( 1548): new keyboard input device added, name = partnerxx_keypad D/WindowManager( 1548): Starting input thread. D/WindowManager( 1548): Startup complete! I/EventHub( 1548): New keyboard: name=partnerxx_keypad keymap=partnerxx_keypad.kl keymapPath=/system/usr/keychars/partnerxx_keypad.kcm.bin I/ServiceManager( 1535): ServiceManager: addService(window, 0x13610) I/EventHub( 1548): Reporting device opened: id=0x10000, name=/dev/ input/event0 I/KeyInputQueue( 1548): Device added: id=0x10000, name=partnerxx_keypad, classes=1 I/KeyInputQueue( 1548): Keymap: partnerxx_keypad.kl Actually I don't know what steps I can do and see the above log. Thanks for every one's opinion. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting