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


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?

  • what prevents you from using precompiled raspbian/arch/whatever images? these support mouse and keyboard just fine.
    – lenik
    Commented Nov 26, 2013 at 23:32
  • It is an assignment of mine to compile our kernel, unfortunately.
    – IllSc
    Commented 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
    Commented Nov 27, 2013 at 7:20

3 Answers 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.


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.


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

Your Answer

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

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