{"id":4060,"date":"2019-05-10T16:39:48","date_gmt":"2019-05-10T14:39:48","guid":{"rendered":"https:\/\/rephlex.de\/blog\/?p=4060"},"modified":"2020-04-16T15:13:30","modified_gmt":"2020-04-16T13:13:30","slug":"gentoo-octane-a-modern-gnu-linux-system-for-the-sgi-octane-workstation","status":"publish","type":"post","link":"https:\/\/rephlex.de\/blog\/2019\/05\/10\/gentoo-octane-a-modern-gnu-linux-system-for-the-sgi-octane-workstation\/","title":{"rendered":"gentoo\/octane &#8211; A modern GNU\/Linux system for the SGI Octane Workstation"},"content":{"rendered":"\n<p>It took about 6 months of work, and it&#8217;s done: gentoo\/octane 1.0 has been released.<\/p>\n\n\n\n<p>Grab your copy here: <a href=\"https:\/\/rephlex.de\/blog\/wp-content\/uploads\/2019\/05\/gentoo-octane-v1.0-by-rephlex.tar.xz\">gentoo-octane-v1.0-by-rephlex.tar.xz<\/a><\/p>\n\n\n\n<p>It&#8217;s basically a complete tarball of the system. So:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>attach scsi disk to any machine or netboot the octane using root=\/dev\/nfs  nfsroot=a.b.c.d\/path\/to\/filesystem (if you&#8217;re a tough guy)<\/li><li>prepare the octanes local disks<\/li><li>add tarball<\/li><li>set envvars (included)<\/li><li>profit<\/li><\/ul>\n\n\n\n<p>What works:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>everything that would work in any random gentoo that is up-to-date as of April 2019 \ud83d\ude09<\/li><li>Kernel 4.12 with audio, and all the funny devices inside the octane including impact graphics.<\/li><\/ul>\n\n\n\n<p>What doesn&#8217;t work yet:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>xf86-video-impact xorg module ;\/   &#8211;  see \/etc\/motd for how to  achieve running xorg. It&#8217;s ALMOST DONE!<\/li><li>Kernel newer than 4.12. The patches need to be tested and maybe adjusted, that&#8217;s it.<\/li><\/ul>\n\n\n\n<p>IF YOU HAVE THOSE PATCHES, PLEASE CONTACT ME!<\/p>\n\n\n\n<p>If you want to donate money, my paypal is rephlex@rephlex.de \ud83d\ude09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Awesome quickstart writeup by Alex Ernst:<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>root@SomeLinuxMachine:~# fdisk \/dev\/sdc<br><br>Command (m for help): p<br>Disk \/dev\/sdc: 136.8 GiB, 146815737856 bytes, 286749488 sectors<br>Disk model: BD1468A4C5<br>Geometry: 255 heads, 63 sectors\/track, 17849 cylinders<br>Units: sectors of 1 * 512 = 512 bytes<br>Sector size (logical\/physical): 512 bytes \/ 512 bytes<br>I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br>Disklabel type: sgi<br><br>Device \u00a0 \u00a0 \u00a0 \u00a0 Start \u00a0 \u00a0 \u00a0 End \u00a0 Sectors \u00a0 Size Id Type \u00a0 \u00a0 \u00a0 Attrs<br>\/dev\/sdc1 \u00a0 \u00a02097153 278921217 276824065 \u00a0 132G \u00a0a SGI xfs \u00a0 \u00a0 boot<br>\/dev\/sdc2 \u00a0278921218 286744184 \u00a0 7822967 \u00a0 3.7G 82 Linux swap \u00a0swap<br>\/dev\/sdc9 \u00a0 \u00a0 \u00a0 \u00a0 \u00a00 \u00a0 2097152 \u00a0 2097153 \u00a0 \u00a0 1G \u00a00 SGI volhdr<br>\/dev\/sdc11 \u00a0 \u00a0 \u00a0 \u00a0 0 286744184 286744185 136.7G \u00a06 SGI volume<br><br>root@SomeLinuxMachine:~# mount \/dev\/sdc1 -t ext4 \/mnt<br>root@SomeLinuxMachine:~# cd \/mnt<br><br>root@SomeLinuxMachine:\/mnt# ln -s boot\/linux linux<br>root@SomeLinuxMachine:\/mnt# ln -s boot\/linux vmlinux<br><br>root@SomeLinuxMachine:\/mnt# cat \/mnt\/boot\/<a href=\"http:\/\/arc.cf\">arc.cf<\/a><br>linux {<br>\u00a0image system \/linux;<br>\u00a0append \"root=\/dev\/sdc1\";<br>\u00a0append \"rw\";<br>\u00a0append \"init=\/sbin\/init\";<br>\u00a0append \"console=\/dev\/ttyS0\";<br>}<br><br>root@SomeLinuxMachine:\/mnt# dvhtool -d \/dev\/sdc --unix-to-vh \/mnt\/usr\/lib\/arcload\/sash64 sash64<br>root@SomeLinuxMachine:\/mnt# dvhtool -d \/dev\/sdc --unix-to-vh \/mnt\/boot\/linux linux<br>root@SomeLinuxMachine:\/mnt# dvhtool -d \/dev\/sdc --unix-to-vh \/mnt\/boot\/<a href=\"http:\/\/arc.cf\">arc.cf<\/a> <a href=\"http:\/\/arc.cf\">arc.cf<\/a><br><br>root@SomeLinuxMachine:\/mnt# dvhtool -d \/dev\/sdc --print-all<br>----- partitions -----<br>Part# \u00a00, start 2097153, blks 276824065, type XFS<br>Part# \u00a01, start 278921218, blks 7822967, type Linux Swap<br>Part# \u00a08, start 0, blks 2097153, type Volume Header<br>Part# 10, start 0, blks 286744185, type Volume<br>----- bootinfo -----<br>Root partition: 0<br>Swap partition: 1<br>Bootfile: \"\/unix\"<br>----- directory entries -----<br>Entry #0, name \"sash64\", start 4, bytes 141392<br>Entry #1, name \"linux\", start 281, bytes 11429200<br>Entry #2, name \"<a href=\"http:\/\/arc.cf\">arc.cf<\/a>\", start 22604, bytes 130<br><br>root@SomeLinuxMachine:~# cd<br>root@SomeLinuxMachine:~# umount \/mnt<br>root@SomeLinuxMachine:~# sync<br><br><br>Command Monitor.\u00a0 Type \"exit\" to return to the menu.<br><br>>> setenv SystemPartition xio(0)pci(15)scsi(0)disk(3)rdisk(0)partition(8)<br>>> setenv OSLoadPartition xio(0)pci(15)scsi(0)disk(3)rdisk(0)partition(8)<br>>> setenv OSLoadFilename linux<br>>> setenv OSLoader sash64<br><br>>> boot<br>1216+51120+768+4256+592 entry: 0xa80000005fff0000<br>ARCLoad version 0.5 (c) 2004-5 Stanislaw Skowronek<br>Loading configuration for 'linux'...<br>GRUB Filesystem Error FILE_NOT_FOUND: 'ArcOpen failed'<br>Loading xio(0)pci(15)scsi(0)disk(3)rdisk(0)partition(8)\/linux...<br>Reading 9488032 bytes... OK.<br>Entering kernel.<br><br>login as: root<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Welcome to gentoo\/octane 1.0!<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It took about 6 months of work, and it&#8217;s done: gentoo\/octane 1.0 has been released. Grab your copy here: gentoo-octane-v1.0-by-rephlex.tar.xz It&#8217;s basically a complete tarball of the system. So: attach scsi disk to any machine or netboot the octane using root=\/dev\/nfs nfsroot=a.b.c.d\/path\/to\/filesystem (if you&#8217;re a tough guy) prepare the octanes local disks add tarball set [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[627,626,618,622,617],"class_list":["post-4060","post","type-post","status-publish","format-standard","hentry","category-techtalk","tag-gentoo","tag-mips","tag-octane","tag-r10k","tag-sgi"],"_links":{"self":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/4060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/comments?post=4060"}],"version-history":[{"count":3,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/4060\/revisions"}],"predecessor-version":[{"id":4127,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/4060\/revisions\/4127"}],"wp:attachment":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/media?parent=4060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/categories?post=4060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/tags?post=4060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}