Ubuntu 17.10 & AOSP 7.1 note

Ubuntu 17.10 install in xps9560

  1. Freezes at boot time
  • it's because the nvidia card does not work well with the open-source driver in this ubuntu version
    solution:
    i. add 'nomodeset' to boot cmd line
    ii. after boot into ubuntu, install the proprietary driver for NVIDIA in 'Additional Drivers'
    iii. upgrade grub and reboot

AOSP 17.10 build

  1. Memory issue ninja: fatal: fork: Cannot allocate memory
  • quite weird as I have 16G RAM, and this only happens in ENG build.

MTK SP Flash tool

  1. install the libusb-dev
    sudo apt instatll libusb-dev
  2. In order to avoid running the flash_tool as root user, you need to add a standard user to the usergroup "dialout"
    sudo adduser username dialout
    newgrp - dialout
  3. the above 2 might be enough, but I added a persistent udev rule for the MTK Preloader also:
    sudo gedit /etc/udev/rules.d/80-persistent-usb.rules
    SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="*"

你可能感兴趣的:(Ubuntu 17.10 & AOSP 7.1 note)