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

Unable to reboot after installing aero-system repository on ubuntu 16.04.3 #418

Closed afarrukh-emhr23 closed 3 years ago

afarrukh-emhr23 commented 3 years ago

I followed the instructions given on this page: https://github.com/intel-aero/meta-intel-aero/wiki/90-%28References%29-OS-user-Installation#intel-aero-repository. Here are the instructions:

`$ echo 'deb https://download.01.org/aero/deb xenial main' | sudo tee /etc/apt/sources.list.d/intel-aero.list

$ wget -qO - https://download.01.org/aero/deb/intel-aero-deb.key | sudo apt-key add - $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get -y install gstreamer-1.0 libgstreamer-plugins-base1.0-dev libgstrtspserver-1.0-dev gstreamer1.0-vaapi gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav ffmpeg v4l-utils python-pip $ sudo -H pip install pymavlink $ sudo apt-get -y install aero-system $ sudo reboot `

The problem comes when I reboot on the final line. I wasnt able to install pymavlink either but thats a different issue altogether. Right now after I issue reboot, Ubuntu fails to reboot. The grub 2 menu shows up. I choose other options and select kernel 4.4.x and then a screen come up with display:

` loading linux 4.4.76-aero-1.2...

loading initial ramdisk`

And it gets stuck at this point forever. My guess is that the aero-system install is causing problems. Is it because the repo is broken somehow? I tried displaying some kernel boot messages to figure out what the problem is by turning off the quiet option in kernel parameters from grub but to no avail. If someone knows what needs to be done to solve this, please let me know.

afarrukh-emhr23 commented 3 years ago

Temporary solution:

It turns out that running "$ sudo apt-get upgrade" upgrades the kernel version as well as Ubuntu's point release to 16.04.7 as it should according to this article. But since Intel Aero only supports point release 16.04.03 hence upon a reboot the system gets stuck on loading the init ramdisk. To verify this, I flashed a bootable USB with Ubuntu 16.04.7 and tried a fresh install of this release but it never even boots the live CD thus confirming my doubts. Anyway, I therefore did another fresh install of Ubuntu 16.04.03 and this time ran only the following commands: `$ echo 'deb https://download.01.org/aero/deb xenial main' | sudo tee /etc/apt/sources.list.d/intel-aero.list

$ wget -qO - https://download.01.org/aero/deb/intel-aero-deb.key | sudo apt-key add - $ sudo apt-get update $ sudo apt-get upgrade ### <- DO NOT Execute this line $ sudo apt-get -y install gstreamer-1.0 libgstreamer-plugins-base1.0-dev libgstrtspserver-1.0-dev gstreamer1.0-vaapi gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav ffmpeg v4l-utils python-pip $ sudo -H pip install pymavlink <- notice the H option for sudo (If at this point the system complains about an error: _Command "python setup.py egginfo" failed with error code 1 in .... then simply run $sudo -H pip install future before executing this line again. ) $ sudo apt-get -y install aero-system $ sudo reboot`

The system will reboot just fine after executing the last command above.