{"id":2083,"date":"2018-04-21T22:12:04","date_gmt":"2018-04-21T22:12:04","guid":{"rendered":"http:\/\/hauweele.net\/~gawen\/blog\/?p=2083"},"modified":"2018-04-21T22:38:41","modified_gmt":"2018-04-21T22:38:41","slug":"freebsd-on-intel-broadwell","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=2083","title":{"rendered":"FreeBSD on Intel Broadwell"},"content":{"rendered":"<p>Around two years ago I posted about using <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=961\">FreeBSD 10 on the X250<\/a>. A great deal has happened since then.<\/p>\n<p>It is now possible to use the Intel Broadwell integrated graphic card (<a href=\"https:\/\/wiki.freebsd.org\/Graphics\">among others<\/a>) under <del>FreeBSD-CURRENT<\/del> <a href=\"https:\/\/www.phoronix.com\/scan.php?page=news_item&#038;px=DRM-Next-KMOD-On-FreeBSD-11\">FreeBSD-STABLE<\/a>! Also if I&#8217;m right, this will be integrated in FreeBSD 11.2-RELEASE. What a great day it is for FreeBSD on the desktop. I bet FreeBSD 12 will be truly great!<\/p>\n<p>Note that it works much better on STABLE now than CURRENT because CURRENT is -well- not that stable&#8230;<\/p>\n<p>So if you want to try this now, what you first need to do is to upgrade to the STABLE branch. For this you need to fetch the source, buildworld, buildkernel and installworld. Here is a very quick tuto (that you may need to adapt though). You can also find this <a href=\"https:\/\/raymii.org\/s\/blog\/FreeBSD_10_Converting_from_RELEASE_to_STABLE.html\">here<\/a>.<\/p>\n<p><code><br \/>\n# Don't forget to upgrade RELEASE<br \/>\n# in any case that there were any bugs in the building tools.<br \/>\nfreebsd-update fetch<br \/>\nfreebsd-update install<br \/>\nreboot<br \/>\nfreebsd-update install<\/p>\n<p># Replace the current source tree with STABLE.<br \/>\nmv \/usr\/src \/usr\/src-RELEASE<br \/>\nsvn checkout svn:\/\/svn.freebsd.org\/base\/stable\/11 \/usr\/src<\/p>\n<p># Build! Build! Build!<br \/>\ncd \/usr\/src<br \/>\nmake buildworld -j4<\/p>\n<p># Customize (while you are at it) and build STABLE kernel.<br \/>\ncd \/usr\/src\/sys\/amd64\/conf<br \/>\ncp GENERIC {YOUR-CONF}<br \/>\nvim {YOUR-CONF}<br \/>\ncd \/usr\/src<br \/>\nmake buildkernel KERNCONF={YOUR-CONF}<br \/>\nmake installkernel KERNCONF={YOUR-CONF}<br \/>\nreboot<\/p>\n<p># Now it's time to install world over the new kernel.<br \/>\n# In the meantime we also update configuration files<br \/>\n# with mergemaster.<br \/>\nmergemaster -p<br \/>\ncd \/usr\/src<br \/>\nmake installworld<br \/>\nmergemaster -Ui<br \/>\nreboot<br \/>\n<\/code><\/p>\n<p>Now that your are on the latest STABLE, you can update the ports tree and install <code>drm-next<\/code>.<\/p>\n<p><code><br \/>\n# Install ports tree if needed.<br \/>\nportsnap fetch<br \/>\nportsnap extract<\/p>\n<p># Install drm-next.<br \/>\ncd \/usr\/ports\/graphics\/drm-next-kmod<br \/>\nmake install clean<br \/>\n<\/code><\/p>\n<p>Finally you must tell <code>rc.conf<\/code> to use the new <i>i915<\/i> module instead. That is, add in <code>\/etc\/rc.conf<\/code>:<\/p>\n<p><code><br \/>\nkld_list=\"\/boot\/modules\/i915kms.ko\"<br \/>\n<\/code><\/p>\n<p>Just one final <code>reboot<\/code> and you are done! Test this with the <i>xorg<\/i> and <i>mesa-demos<\/i> ports. Just <code>startx<\/code> from your user and check <code>\/var\/log\/Xorg.0.log<\/code> to see if the intel driver was correctly loaded.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Around two years ago I posted about using FreeBSD 10 on the X250. A great deal has happened since then. It is now possible to use the Intel Broadwell integrated graphic card (among others) under FreeBSD-CURRENT FreeBSD-STABLE! Also if I&#8217;m &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=2083\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[994,389,993,150,992,472,996,995,680],"class_list":["post-2083","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-drm-next","tag-freebsd","tag-graphics","tag-intel","tag-stable","tag-thinkpad","tag-thinkpad-x250","tag-upgrade","tag-x250"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2083"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2083\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}