1

I've been trying cross compile kernel using this guide.

http://elinux.org/Rpi_kernel_compilation#2._Cross_compiling_from_Linux.

However, all my kernel doesn't support USB mouse and keyboard. In the menuconfig section, what driver/module I need to activate in order my kernel to support USB mouse and keyboard?

3
  • what prevents you from using precompiled raspbian/arch/whatever images? these support mouse and keyboard just fine.
    – lenik
    Nov 26, 2013 at 23:32
  • It is an assignment of mine to compile our kernel, unfortunately.
    – IllSc
    Nov 27, 2013 at 1:35
  • can you choose another kernel? it's much easier to build the kernel under, for example, ubuntu on the contemporary PC without any cross compiling hassle.
    – lenik
    Nov 27, 2013 at 7:20

4 Answers 4

3

To enable USB mouse/keyboard support in the kernel, run make menuconfig. Go to Device Drivers -> HID support -> USB HID support and select USB HID transport layer, which is CONFIG_USB_HID. I'm not sure it's necessary for the terminal, but you may also want to enable Event interface (CONFIG_INPUT_EVDEV) under Input device support if it isn't already in order to be able to use the mouse and keyboard under Xorg.

2

You can often find the configurations used to compile the currently running kernel in the special file /proc/config.gz . You could use this configuration as a starting point when compiling your own kernel. Get it from the Pi, gunzip it, and tell make menuconfig to load this configuration (can't remember exactly how).

The configuration is actually stored within the kernel itself. This can be turned off when the kernel is compiled, but my current kernels for both Arch Linux and Raspbian have it. And indeed, the instructions include this step, a bit further down.

1

you should beable to find what you need to do here: http://elinux.org/RPi_Kernel_Compilation#Get_the_kernel_source

0

CONFIG_INPUT_MOUSE=y CONFIG_INPUT_MOUSEDEV=y

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.