linux-kernel-module-cheat icon indicating copy to clipboard operation
linux-kernel-module-cheat copied to clipboard

Some errors when build on ubuntu 20.04 (installed via virtualbox on windows)

Open jundai20 opened this issue 3 years ago • 2 comments

Tested on a brand new ubuntu 20.04 on Virutalbox, meet following issues:

./build --download-dependencies qemu-buildroot

  1. Need to modify /etc/apt/sources.list to add back deb-src ==> uncomment deb-src

  2. Need to manually install following packages builddeps:qemu : Depends: libgtk-3-dev but it is not going to be installed Depends: libvte-2.91-dev but it is not going to be installed Depends: libepoxy-dev but it is not going to be installed Depends: libgbm-dev but it is not going to be installed

  3. The openssl git name has a typo. Instead of openssl, it should be openssl.git qemu/roms/edk2/.gitmodules ==> openssl-> openssl.git

  4. It will kill ubuntu GUI mode, smash the host linux After ./build --arch aarch64 --download-dependencies qemu-buildroot, the ubuntu GUI is disspear. Still can login, but it is CLI mode.

  5. Pending, DO not know what happened, give up here :) Later, the host out/buildroot/buid/default/host-uitl-linux-2.35.2 will fail, the error is, configure: error: C compiler cannot create executables

jundai20 avatar Oct 18 '21 09:10 jundai20

1 and 2: discussed at https://cirosantilli.com/linux-kernel-module-cheat/put-source-uris-in-sources and automated in Docker: https://github.com/cirosantilli/linux-kernel-module-cheat/blob/0acd34a1d4bceb94de634390af605e6d67e0abbf/build#L552 Not automated in other hosts because of fear of blowing up system :-)

  1. I suspect that both openssl and openssl.git work since they are GitHub URLs and you can git clone either, and that instead it was a one off internet/github problem. I have also been able to checkout that version of QEMU just now.

4 and 5. Not sure about those. Is your simulated disk large enough?

cirosantilli avatar Oct 18 '21 09:10 cirosantilli

Thanks for the information. Yes, I created a 42G VirtualBox fixed size vdi for this purpose.

BTW, follow the following link, I've brought back the GUI. There should be some gdm version confliction. https://askubuntu.com/questions/641642/gui-does-not-start sudo apt purge gdm gdm3 sudo apt install gdm3 ubuntu-desktop systemctl restart gdm

jundai20 avatar Oct 19 '21 03:10 jundai20