Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU support

  1. #1
    Join Date
    Apr 2006
    Beans
    112

    How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU support

    Here's how I installed Ubuntu 18.04 on Hades Canyon, either on the
    the nuc8i7hvk (with cpu i7-8809G) and the nuc8i7hnb (with cpu i7-8705G),
    and enabled the spiffy Vega M graphics support. Thanks to everyone who
    collectively came up with this recipe.

    Beware, installing mesa or a kernel from a ppa is somewhat risky. You
    can safely downgrade back to stock mesa ... usually ... by installing
    ppa-purge and running 'sudo ppa-purge ppa:ubuntu-x-swat/updates'.
    But it's safer to assume that you'll have to wipe the system and install
    afresh to get back to a supported configuration at some point.

    1. (optional) Download latest BIOS from
    https://downloadcenter.intel.com/pro...-Kit-NUC8i7HNK or
    https://downloadcenter.intel.com/pro...-Kit-NUC8i7HNB as appropriate
    (they probably point to same update)
    by downloading the .bio file onto a dos-formatted USB stick,
    then pressing F7 during boot and navigating the confusing
    GUI to point it at the file on the usb stick
    ( https://www.intel.com/content/www/us.../mini-pcs.html ).

    2. Make sure BIOS is set to disable classic intel graphics (Performance / Graphics / disable);
    setting it to 'auto' may be ok too.

    3. Make sure BIOS is set to secure boot; for some reason it won't install ubuntu without it.
    This is a problem for some users, see https://ubuntuforums.org/showthread.php?t=2399033

    4. Load the new kernel and graphics stack by running this script (adjust after the next
    kernel RC comes out, or after 4.19 is released):

    Code:
    #!/bin/sh
    # Update Ubuntu 18.04 to add Vega M (Hades Canyon) graphics support
    # Caution: this is a bit risky.  It hasn't bricked anything for me, but then, I play an expert on tv.
    # Ideally you'd read this, understand it, and run each step by hand, carefully.
    # But it worked first try for me as is.
    set -ex
    mkdir tmp
    cd tmp
    # New mesa (ca. 18.1.5) and friends
    sudo add-apt-repository ppa:ubuntu-x-swat/updates
    sudo apt dist-upgrade        # pulls new mesa from above ppa
    # New linux kernel (preview of 4.19)
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc2/linux-headers-4.19.0-041900rc2_4.19.0-041900rc2.201809022230_all.deb
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc2/linux-headers-4.19.0-041900rc2-generic_4.19.0-041900rc2.201809022230_amd64.deb
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc2/linux-image-unsigned-4.19.0-041900rc2-generic_4.19.0-041900rc2.201809022230_amd64.deb
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc2/linux-modules-4.19.0-041900rc2-generic_4.19.0-041900rc2.201809022230_amd64.deb
    sudo dpkg -i linux-*.deb
    # New linux-firmware (will be released as 1.175 or something like that)
    wget -m -np https://people.freedesktop.org/~agd5f/radeon_ucode/vegam/
    sudo cp people.freedesktop.org/~agd5f/radeon_ucode/vegam/*.bin /lib/firmware/amdgpu
    sudo /usr/sbin/update-initramfs -u -k all
    cd ..
    rm -rf tmp
    Then reboot.
    Do 'apt-get install mesa-utils chromum-browser' if you haven't already.
    Verify that 'glxinfo | grep str' outputs an OpenGL renderer string that says AMD VEGAM,
    and that 'chromum-browser http://fishgl.com' can display 400 fish at 60fps.
    (Not Firefox, alas; see https://bugs.launchpad.net/ubuntu/+s...x/+bug/1732766 )

    Enjoy!
    Last edited by dankegel; January 30th, 2019 at 10:38 PM. Reason: fix package name

  2. #2
    Join Date
    Apr 2006
    Beans
    112

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU suppo

    Annoyingly, as mentioned in https://www.intel.com/content/www/us.../mini-pcs.html,
    BIOS displays a different name for the product:

    NUC8i7HNK is identified in BIOS as NUC8i7HNB
    NUC8i7HVK is identified in BIOS as NUC8i7HVB

    So when you see a Hades Canyon with a product number ending in B, just think K, evidently.

  3. #3
    Join Date
    Apr 2006
    Beans
    112

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU suppo

    Incidentally, because the Hades Canyon is capable of driving so many displays, it's tempting to try it with three 4k displays.

    If you do, and one display just won't show up, you may have run into a limitation of X.org;
    see https://bugs.launchpad.net/ubuntu/+s...r/+bug/1714178
    and https://bugs.launchpad.net/ubuntu/+s...r/+bug/1776260
    for a description and two workarounds.

  4. #4
    Join Date
    Sep 2018
    Beans
    1

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU suppo

    Just got a NUC8i7HVK. Ran your script rebooted and both my monitors work. Sleep/suspend also works under Kubuntu 18.04.1

  5. #5
    Join Date
    Apr 2006
    Beans
    112

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU suppo

    happy news: with the above 4.19rc2 setup, it's better than it was a month or two ago, in that it now supports three 4k displays side by side horizontally; the limit is now 16k x 16k rather than 8k x 8k (at least, it is on my machine, which has 32GB RAM).

  6. #6
    Join Date
    Apr 2006
    Beans
    112

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU suppo

    Update for the 4.19.1 kernel, with a happy little note encouraging you
    to turn off secure boot in bios to avoid scary apt postinstall warnings.

    Seems to work here; passes the fishgl test, anyway.

    Code:
    #!/bin/sh
    # Update Ubuntu 18.04 to add Vega M (Hades Canyon) graphics support
    # Note: may need to disable secure boot in BIOS to avoid scary warnings from new grub
    
    set -ex
    mkdir tmp
    cd tmp
    
    # New mesa (ca. 18.2.2 as of this writing) and friends
    sudo add-apt-repository ppa:ubuntu-x-swat/updates
    sudo apt update
    sudo apt dist-upgrade        # pulls new mesa from above ppa
    
    # Fresh linux kernel
    # See http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.1/
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.1/linux-headers-4.19.1-041901_4.19.1-041901.201811041431_all.deb
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.1/linux-headers-4.19.1-041901-generic_4.19.1-041901.201811041431_amd64.deb
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.1/linux-image-unsigned-4.19.1-041901-generic_4.19.1-041901.201811041431_amd64.deb
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.1/linux-modules-4.19.1-041901-generic_4.19.1-041901.201811041431_amd64.deb
    sudo dpkg -i linux-*4.19.1*.deb
    
    # New linux-firmware (will be released as 1.175 or something like that)
    wget -m -np https://people.freedesktop.org/~agd5f/radeon_ucode/vegam/
    sudo cp people.freedesktop.org/~agd5f/radeon_ucode/vegam/*.bin /lib/firmware/amdgpu
    sudo /usr/sbin/update-initramfs -u -k all
    
    cd ..
    rm -rf tmp

  7. #7
    Join Date
    Dec 2007
    Location
    Brisbane, Australia
    Beans
    64
    Distro
    Ubuntu

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU suppo

    Thanks for the guide, has my new NUC up and running.

    One question, is there a reason you chose to use the unsigned kernel? It forces turning off secureboot (which isn't ideal). Is there a way to use a signed kernel and enable secureboot again?

  8. #8
    Join Date
    Dec 2018
    Beans
    1

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU suppo

    Device;NUC8iHVK
    with 18.04 LTS and using current guide (updated kernel newer version) above I can see issue with my installation. Please see the snapshot log from installation

    ERROR (dkms apport): kernel package linux-headers-4.19.0-041900rc2-generic is not supported
    Error! Bad return status for module build on kernel: 4.19.0-041900rc2-generic (x86_64)
    Consult /var/lib/dkms/amdgpu/17.40-492261/build/make.log for more information.
    Setting up linux-image-unsigned-4.19.0-041900rc2-generic (4.19.0-041900rc2.201809121232) ...
    Processing triggers for linux-image-unsigned-4.19.0-041900rc2-generic (4.19.0-041900rc2.201809121232) ...
    /etc/kernel/postinst.d/dkms:
    ERROR (dkms apport): kernel package linux-headers-4.19.0-041900rc2-generic is not supported
    Error! Bad return status for module build on kernel: 4.19.0-041900rc2-generic (x86_64)

  9. #9
    Join Date
    Nov 2010
    Beans
    58

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU suppo

    I have followed the instructions very closely, but I can't get the OpenGL renderer changed to AMD VEGAM. No matter what I do, it stays llvmpipe, what is a software renderer.

    Code:
    $ inxi -G
    Graphics:  Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon RX Vega M]
               Display Server: x11 (X.Org 1.19.6 )
               drivers: fbdev,ati (unloaded: modesetting,vesa,radeon)
               Resolution: 3840x2160@88.00hz
               OpenGL: renderer: llvmpipe (LLVM 7.0, 256 bits)
               version: 3.3 Mesa 18.2.2
    The reason there is only the AMD card is that I have disabled the Intel card in BIOS, in hopes that it would force Ubuntu to load the radeon drivers. I have tried the most recent kernel (4.19.11), and then downgraded to 4.18. Each time after adding new kernel, I activated the drivers with update-initramfs. But no luck.

    What am I missing? How to force the system to load the Vega drivers?

  10. #10
    Join Date
    Dec 2018
    Beans
    1

    Re: How to install Bionic on Hades Canyon (nuc8i7hvk/nuc8i7hnb) with Vega M GPU supp

    Hey dankegel, thanks for this guide it was very helpful in getting my nuc8i7hvk up and running with accelerated X.

    One amendment I would suggest to your instructions would be to grab the latest kernel via ukuu...

    Quote Originally Posted by dankegel View Post
    Code:
    #!/bin/sh
    # Update Ubuntu 18.04 to add Vega M (Hades Canyon) graphics support
    # Caution: this is a bit risky.  It hasn't bricked anything for me, but then, I play an expert on tv.
    # Ideally you'd read this, understand it, and run each step by hand, carefully.
    # But it worked first try for me as is.
    set -ex
    mkdir tmp
    cd tmp
    # New mesa (ca. 18.1.5) and friends
    sudo add-apt-repository ppa:ubuntu-x-swat/updates
    sudo apt dist-upgrade        # pulls new mesa from above ppa
    
    # New linux kernel
    sudo add-apt-repository ppa:teejee2008/ppa
    sudo apt-get update
    sudo apt install ukuu
    sudo ukuu --install-latest # Answer yes to get the latest
    
    # New linux-firmware (will be released as 1.175 or something like that)
    wget -m -np https://people.freedesktop.org/~agd5f/radeon_ucode/vegam/
    sudo cp people.freedesktop.org/~agd5f/radeon_ucode/vegam/*.bin /lib/firmware/amdgpu
    sudo /usr/sbin/update-initramfs -u -k all
    cd ..
    rm -rf tmp
    Then reboot.
    Do 'apt-get install glx-utils chromum-browser' if you haven't already.
    Verify that 'inxi -G' outputs an OpenGL renderer string that says AMD VEGAM,
    and that 'chromum-browser http://fishgl.com' can display 400 fish at 60fps.
    Also recommend using "inxi -G" from a terminal inside X as I couldn't find a package for glxinfo

    @Sidrabs, try ukuu to install the latest kernel and double check you have the firmware downloaded and put in the right spot.
    Last edited by ironstorm-gmail; December 30th, 2018 at 08:17 PM. Reason: posts merged.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •