{"id":27,"date":"2005-02-22T18:57:04","date_gmt":"2005-02-22T18:57:04","guid":{"rendered":"\/?p=27"},"modified":"2015-07-21T11:18:12","modified_gmt":"2015-07-21T10:18:12","slug":"the-pleasure-and-pain-of-gentoo","status":"publish","type":"post","link":"https:\/\/blog.adamsweet.org\/?p=27","title":{"rendered":"The Pleasure and Pain of Gentoo"},"content":{"rendered":"<p>Heh \ud83d\ude09 I&#8217;m gonna have to start thinking of another title for my Gentoo posts.<\/p>\n<p>Well Gentoo is finally installed on my Sun Ultra 10 Sparc64 machine. It went ok really apart from that it has probably taken me 24 man hours or so in 3 sessions. The (Sparc64) Gentoo docs are very good and useful for non-Gentoo specific stuff that I didn&#8217;t know. I will be referring to them again. They could do with a few little tweaks, like explicitly stating that the <em>sparc-sources<\/em> kernel source package is preferable to <em>gentoo-sources<\/em> on Sparc machines. It&#8217;s not as obvious as it might seem as you can use either, but <em>sparc-sources<\/em> are tweaked for Sparc macines. Fortunately I have a sense of completeness that made me choose <em>sparc-sources<\/em> straight away, other people had problems with <em>gentoo-sources<\/em> on sparc.<\/p>\n<p>I started this process again last night and <em>emerge<\/em>d <em>lshw<\/em> and <em>pciutils<\/em> (for <em>lspci<\/em>) so I could work out what was in the box. This sucked in X.org as a dependency for some reason and meant I spent another night wearing earplugs as I was ssh-ed in again from my noisy PSU containing desktop. Meh.<\/p>\n<p>All finished this morning so I decided to change the compilation optimisation from level 3 to level 2 to speed up compilation and reduce the size of the binaries. I then did some work on identifying the hardware, got the sparc kernel sources and cautiously did <em>make-menuconfig<\/em>.<\/p>\n<p>It actually wasn&#8217;t all that bad as all of the sparc hardware options were already selected, I just removed all of the things I didn&#8217;t have. I did worry that I didn&#8217;t see options for ebus and a few other things but I built the kernel anyway and watched it fail on <em>make modules<\/em>. Fuck. Google. It turns out that <a href=\"http:\/\/linux.exosec.net\/kernel\/2.4-hf\/2.4.29-hf2\/REPORT\">kernel-2.4.29 (the latest version of sparc-sources in Gentoo) fails to build on sparc64 due to missing #defines in dmabuf.c where sound is enabled<\/a>. Well I only enabled sound support because I hadn&#8217;t noticed before that the <a href=\"http:\/\/www.dementia.org\/~shadow\/sparcaudio.html\">CS4231 sound card<\/a> uses a separate low level driver in the kernel, not part of the regular sound system.<\/p>\n<p>Cool. Turned off sound support. Compiled nicely. The rest went pretty much as per the instructions but it&#8217;s been one long journey. I still don&#8217;t have any nice end-user apps. On the hitlist is Gnome and maybe OpenOffice.org but they are gonna be looooooong compiles.<\/p>\n<p>I think getting the X server to work will be interesting. I have an ATI Technologies Inc 3D Rage Pro 215GP (rev 5c) (thanks once again to a wholesale lspci quote&#8230;).<\/p>\n<p>After leaving this post for an hour or two, getting Xorg working is awkward and manual, the configuration tools can&#8217;t detect the ATI card, the Sun mouse or Sun keyboard. After some not very helpful googling, and some shot in the dark guessing, I managed to correctly assume that the mouse protocol was busmouse and the device is \/dev\/sunmouse. Stealing sections of the xorg.conf file from <a href=\"http:\/\/forums.gentoo.org\/viewtopic-t-288023.html\">here<\/a> and <a href=\"http:\/\/dev.gentoo.org\/~fmccor\/docs\/xorg\/xorg.conf\/xorg.conf.html\">here<\/a> also helped. I just added ATI as the graphics driver and I can get an enormous resolution and moving mouse.<\/p>\n<p>At the moment I can&#8217;t see an option to change the resolution in \/etc\/X11\/xorg.conf and for now, Sun keyboards don&#8217;t work with Xorg6.8 &#8211; they require the deprecated (and apparently no longer supplied) keyboard driver and don&#8217;t work with the replacement kbd driver. Hmph.<\/p>\n<p>Gentoo (on Sparc64): awkward and drawn out but thats the cost of doing everything manually and compiling it all yourself. The keyboard problem isn&#8217;t strictly a Gentoo thing, thats Xorg going through a transitional period. Next I have to work out how Gentoo startup scripts work so I can make ssh, X, gdm and other things in the future start at boot time. With few other options for my Sparc hardware (though I&#8217;m sure after all this installing Debian on it would be a breeze&#8230;), Gentoo&#8217;s pay off will be in the performance and in the learning I did going through the process.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Heh \ud83d\ude09 I&#8217;m gonna have to start thinking of another title for my Gentoo posts. Well Gentoo is finally installed on my Sun Ultra 10 Sparc64 machine. It went ok really apart from that it has probably taken me 24 &hellip; <a href=\"https:\/\/blog.adamsweet.org\/?p=27\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":1,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":717,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions\/717"}],"wp:attachment":[{"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}