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

running ubuntu 16.04.04, usb keyboard no longer works even on boot #363

Open studentofchange opened 6 years ago

studentofchange commented 6 years ago

Waiming Mok Waiming Mok Jun 28, 2018 11:13 AM I upgraded the aero board to ubuntu 16.04.04 using usb install. Ubuntu desktop comes up on HDMI, but keyboard and other USB devices no longer accessible over OTG USB.

I can access ubuntu over the Wifi AP, but no access to internet to do updates.

  1. How do I turn on USB when running Ubuntu (USB keyboard was running before ubuntu install)?

    Tried rebooting system,but could not go into BIOS as keyboard does not work.

  2. Could I access system (BIOS, OS) using serial console with UART on power connector on Aero board?

  3. Is there another way to fix this?

Thank you, Waiming

zehortigoza commented 6 years ago

If it do work even in bios it is some problem in your hardware setup.

lucasdemarchi commented 6 years ago

or.... you disabled xhci support in a bios option, which basically locks you out of USB access. You can access the bios to revert that back using the UART on the power connector, but first you will need to program the FPGA to disconnect that UART from the flight controller (if you are using the RTF) or physically disconnect it (not recommended if you never disassembled it). @zehortigoza do we have a .jam file with that done already?

zehortigoza commented 6 years ago

It is this one that makes UART free for Atom: https://github.com/intel-aero/meta-intel-aero/blob/master/recipes-support/jam-stapl/jam-stapl/aero-compute-board.jam

AlexisTM commented 5 years ago

I have the same issue: Mouse and keyboard works fine in the BIOS and during installation, but once the 16.04.4 is installed the keyboard and mouse are no more usable.

I will try the 16.04.3 version.

AlexisTM commented 5 years ago

I reinstalled the drone using Ubuntu 16.04.3 but the same issue was there.

The issue seems to be kernel related.

As the keyboard is available from keyboard onwards until the Kernel reload I can go into the advanced boot options of GRUB.

It seems that the installer installed the kernel 4.15.x while the base kernel is 4.10.x. Therefore, I booted up using the Kernel 4.10.x and it worked fine.

AlexisTM commented 5 years ago

NOTE: After installing aero-system; I removed any other kernel than the 4.4.76-aero-1.2 provided to ensure compatibility.

lucasdemarchi commented 5 years ago

I'm closing this since a solution was found: use the provided kernel rather than Ubuntu's default

HoaPham2711 commented 5 years ago

I'm closing this since a solution was found: use the provided kernel rather than Ubuntu's default

Can you give me a detailed guide to resolve this problem? Please help me!

AlexisTM commented 5 years ago

@HoaPham2711 Change the kernel used in GRUB edit section

HoaPham2711 commented 5 years ago

I try to press and hold "Shift" key in during boot time but the GRUB menu doesn't appear

HoaPham2711 commented 5 years ago

Seems that USB is completely disabled so my keyboard is unavailable

AlexisTM commented 5 years ago

Change the keyboard. This bug is only valid in Linux not during pre-boot.

HoaPham2711 commented 5 years ago

But I disabled XHCI mode in BIOS setup :(

AlexisTM commented 5 years ago

Then I really have no way to help you :/

AlexisTM commented 5 years ago

@HoaPham2711

Here it is ;)

https://github.com/intel-aero/meta-intel-aero/issues/279

You cannot use the keyboard but can use the remote connection obviously ;)

HoaPham2711 commented 5 years ago

Thank you but it still doesn't work for me

HoaPham2711 commented 5 years ago

or.... you disabled xhci support in a bios option, which basically locks you out of USB access. You can access the bios to revert that back using the UART on the power connector, but first you will need to program the FPGA to disconnect that UART from the flight controller (if you are using the RTF) or physically disconnect it (not recommended if you never disassembled it). @zehortigoza do we have a .jam file with that done already?

Can you give me a detailed guide? Please help me :(

sinbadflyce commented 5 years ago

Hi all, I got same problem (cannot use the mouse, keyboard and ssh) after upgraded BIOS, installed Ubuntu 16.04.3. Right now, I cannot do anymore with my Intel Aero RTF. I am thinking about the way to hardware reset BIOS, but I cannot how do that. Very thank for any your help.

AlexisTM commented 5 years ago

Try the UART: First reflash the FPGA, then use the UART debug port to reflash the BIOS

sinbadflyce commented 5 years ago

Thank you so much, AlexisTM. What should I prepare to communicate with UART port, please?

AlexisTM commented 5 years ago

I have no clue, I never did it. But make sure to document the procedure to help the others in your condition

lucasdemarchi commented 5 years ago

You will need to flash the fpga with aero-compute-board.jam. See https://github.com/intel-aero/meta-intel-aero/wiki/02-Initial-setup#flashing-the-fpga

Do you have access to the UART pins on the power connector? See section 3.6.1 of https://software.intel.com/sites/default/files/managed/25/d5/Intel-Aero-Compute-Board-Getting-Started.pdf - You need a usb-serial to connect to your computer and connect to the pins. You can follow https://github.com/intel-aero/meta-intel-aero/wiki/Connecting-an-External-Flight-Controller but instead of using a cable to connect to an external flight controller, you can connect to a usb-serial.

sinbadflyce commented 5 years ago

Thanks, Lucas I'll try it with your guide steps.

sinbadflyce commented 5 years ago

Hi Lucas, I am using Intel Aero RTF Drone. I had already flashed FPGA before I upgraded to Ubuntu 16.0.4.03 Desktop. Then, I got this problem. So, do I still need to re-flash FPGA? Can I flash FPGA with UART on power connector? Thank you,

lucasdemarchi commented 5 years ago

You have to flash a different fpga image to "disconnect" the internal flight controller from the uart port. So yes.

And yes for the second question, too

sinbadflyce commented 5 years ago

Thank you @lucasdemarchi

unravelwool commented 4 years ago

hi everyone !i am a greenhand, can you tell how to change the kernel used in GRUB edit section or give me a detailed guidance ? is this procedure done behind installing the ubuntu system or before?