Project

General

Profile

Actions

How to create a BE running the new DRM code

If you'd like to try out the new DRM code, you can create a
(temporary) testing boot environment as follows:

Create a new BE, of course:

    sudo beadm create test
    sudo beadm mount test /mnt

If userland publisher was set, unset it:

    sudo pkg -R /mnt unset-publisher userland

Set userlland publisher with updated illumos-gate and fresh gfx-drm version
as preferred one:

    sudo pkg -R /mnt set-publisher -g \
      http://pkg.openindiana.org/drm-testing/ userland
    sudo pkg -R /mnt set-publisher --non-sticky openindiana.org
    sudo pkg -R /mnt set-publisher -P userland

Check publisher setup, should look like this:
    sudo pkg -R /mnt publisher
    PUBLISHER    TYPE     STATUS P LOCATION
    userland     origin   online F http://pkg.openindiana.org/drm-testing/
    openindiana.org (non-sticky) origin   online F
    http://pkg.openindiana.org/hipster/

Final changes and update:
    sudo pkg -R /mnt refresh --full
    sudo pkg -R /mnt change-facet \
      facet.require.consolidation/userland/userland-incorporation=false
    sudo pkg -R /mnt uninstall userland-incorporation
    sudo pkg -R /mnt update -v

Check you got the right DRM:
    sudo pkg -r /mnt info driver/graphics/drm
                 Name: driver/graphics/drm
              Summary: DRM Kernel Drivers
          Description: Direct Rendering Manager kernel drivers and modules
             Category: Drivers/Display
                State: Installed
            Publisher: userland
              Version: 0.5.11
               Branch: 2016.3.0.43
       Packaging Date: November 24, 2016 12:14:48 PM
    Last Install Time: November 27, 2016 03:47:04 AM
                 Size: 2.36 MB
                 FMRI: pkg://userland/driver/graphics/drm@
               0.5.11-2016.3.0.43:20161124T121448Z
      Project Contact: Direct Rendering Infrastructure (DRI) project
          Project URL: http://dri.freedesktop.org/

Lastly, boot it:
    beadm activate test
    beadm umount test
    reboot

Updated by Alexander Pyhalov almost 5 years ago · 3 revisions