Input issue for imx8 virtualization

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Input issue for imx8 virtualization

跳至解决方案
4,764 次查看
zfreeman2321
Contributor I

hi, 

I have running Linux & Android guest OSes on IMX8qm board as <i.MX Virtualization User's Guide> desc.

But there is no input w/ usb mouse or keyboard plug-in the usb slot.

How to fix it?

Thank you.

0 项奖励
回复
1 解答
4,581 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

I could not make Xen work on 4.14.98 but I have it running on 5.4.70 and the USB mouse and keyboard are working properly, even when plugged at runtime.
I have used default Xen configuration for Linux DomU /etc/xen/domu-imx8qm-mek.cfg.
So migrating to 5.4.70 should fix the issue.

Regards

在原帖中查看解决方案

0 项奖励
回复
13 回复数
4,759 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello zfreeman2321,

Android and Linux is booting ok in the virtualization? The usage of external mouse trough USB should be in kernel configuration, or check if the mouse is present in /dev/usbX.

 

Regards

 

0 项奖励
回复
4,690 次查看
zfreeman2321
Contributor I

Hi,

There is no device in /dev like /dev/usbX...

0 项奖励
回复
4,751 次查看
zfreeman2321
Contributor I
  • yes, Android and Linux is booting ok.
  • And how to config for usb mouse in kernel?
0 项奖励
回复
4,746 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

Before booting or running the image check the USB it is available with:

Bitbake -c menuconfig linux-imx

 

Regards

0 项奖励
回复
4,733 次查看
zfreeman2321
Contributor I

hi,

There are sth wrong when I execute the cmd,

zfreeman2321_0-1636597856132.png

 

0 项奖励
回复
4,728 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

You are playing a kernel version that is not supported anymore, please upgrade to new kernel 5.10.52 BSP.

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

Regards

 

0 项奖励
回复
4,714 次查看
zfreeman2321
Contributor I

hi, 

Also I found that the 'imx-xen' project has not supported L5.10 kernel yet?

So, I think it could not be used in the virtualization build. Right?

0 项奖励
回复
4,716 次查看
zfreeman2321
Contributor I

hi,

if upgrade to L5.10.52, must the Android version be 11?

0 项奖励
回复
4,582 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

I could not make Xen work on 4.14.98 but I have it running on 5.4.70 and the USB mouse and keyboard are working properly, even when plugged at runtime.
I have used default Xen configuration for Linux DomU /etc/xen/domu-imx8qm-mek.cfg.
So migrating to 5.4.70 should fix the issue.

Regards

0 项奖励
回复
4,710 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

That is correct!

0 项奖励
回复
4,673 次查看
zfreeman2321
Contributor I

"Android and Linux is booting ok in the virtualization? The usage of external mouse trough USB should be in kernel configuration, or check if the mouse is present in /dev/usbX."

 

In response,  I checked that there is no device in /dev like /dev/usbX..

0 项奖励
回复
4,660 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

What OS version are you using?
What hypervisor?

The "i.MX Virtualization User's Guide" seems to be a quite old document, please check instead "Chapter 12 Virtualization" in i.MX_Linux_Users_Guide. For Xen hypervisor there is an example of DomU configuration that contains USB configs.

 

Regards

0 项奖励
回复
4,645 次查看
zfreeman2321
Contributor I

hi, 

I used L4.14.98 , android P and xen hypervisor as "i.MX Virtualization User's Guide" desc.

And using the default configs in source code tree 

0 项奖励
回复