intel-aero / meta-intel-aero

Yocto layer to support Intel Aero platform
https://github.com/intel-aero/meta-intel-aero
GNU General Public License v2.0
218 stars 119 forks source link

GadgetFS disables keyboard/mouse #331

Closed jiajun78 closed 6 years ago

jiajun78 commented 6 years ago

Hi,

I have encountered some issues using gadgetfs on the Intel Aero Compute Board.

My setup is as follows: OS: ubuntu 16.04 Kernel: 4.4.76-aero-1.2 I downloaded the kernel source from https://github.com/intel-aero/linux-kernel Using the config from https://github.com/intel-aero/meta-intel-aero-base/blob/master/recipes-kernel/linux/linux-yocto/defconfig

I configured the kernel to use gadgetfs instead of ethernet gadget (g_ether).

On boot, the mouse and keyboard will not work at the Ubuntu login screen.

This is rather odd. Using a kernel with g_ether instead of gadgetfs will not encounter this problem. This seems to be an issue with gadgetfs on the board.

Any help is appreciated.

zehortigoza commented 6 years ago

No one have tried this and I'm not sure if the driver supports it: https://github.com/intel-aero/linux-kernel/commit/9c7592a46553ca8bfcd02f204e6db8bd8380eca0 Maybe if you backport the upstream driver to Aero kernel(4.4) it might work.

jiajun78 commented 6 years ago

Managed to solve the issue using kernel 4.4.76-aero-1.2

It was due to a bug in the userspace gadget driver ..

Thanks