{"id":3261,"date":"2017-01-12T20:56:57","date_gmt":"2017-01-12T20:56:57","guid":{"rendered":"http:\/\/www.piglet-net.net\/pigblog\/?p=3261"},"modified":"2017-01-12T20:56:57","modified_gmt":"2017-01-12T20:56:57","slug":"open-the-box","status":"publish","type":"post","link":"https:\/\/www.piglet-net.net\/pigblog\/?p=3261","title":{"rendered":"Open the Box"},"content":{"rendered":"<p>Andy presented me with an interesting challenge:<\/p>\n<blockquote><p>\nYour mission, should you decide to accept it, is to get Linux on this accursed box.\n<\/p><\/blockquote>\n<p>The accursed box was a Sumvision Cyclone Mini PC: an Intel Atom <a href=\"https:\/\/en.wikipedia.org\/wiki\/System_on_a_chip\">SoC<\/a> based PC, in a nice little box about the size of a domestic router. It has been quite popular for a Windows Media playerbox, with wireless built in, and a HDMI-out, but this one was hopefully destined for more geeky things: an easily deployable network monitor, so first thing is Linux.<\/p>\n<p>Apparently others had given up in frustration, and powering it up gave me a particularly unfriendly <a href=\"https:\/\/en.wikipedia.org\/wiki\/Unified_Extensible_Firmware_Interface\">UEFI<\/a> shell that didn&#8217;t have a scroll-lock, so you couldn&#8217;t see the available commands. Nice. I found a way into the BIOS-style setup, and checked all the obvious things; secure boot disabled, clear the secure boot keys, etc. What was notably odd was a OS\/BOM seletion screen (that is their typo, not mine) that was set to Windows 8, and all greyed out, and no <a href=\"https:\/\/en.wikipedia.org\/wiki\/Unified_Extensible_Firmware_Interface#CSM\">CSM<\/a> (or Legacy) boot modes.<br \/>\n<!--more--><\/p>\n<p>A few websites suggested enabling <strike>BIOS<\/strike> firmware passwords would let you select these options- no good (and I still haven&#8217;t managed to: congrats to <a href=\"https:\/\/en.wikipedia.org\/wiki\/American_Megatrends\">AMI<\/a> for quite possibly the unfriendliest UI I&#8217;ve seen in a PC <strike>BIOS<\/strike> firmware.<\/p>\n<p>So. Clearly we have a system that is UEFI boot only. This is the way things are to go, of course. The BIOS has been with us since I was a teenager, which is too long ago for my liking. <\/p>\n<p>As an aside at this point, I should <a href=\"https:\/\/www.happyassassin.net\/2014\/01\/25\/uefi-boot-how-does-that-actually-work-then\/\">point out this great article on UEFI, Secureboot, and why I keep using a &#8220;strike&#8221; tag on the acronym BIOS<\/a>, which demystifying something I inherently distrusted as new-fangled rubbish, even if <a href=\"http:\/\/www.apple.com\">Fruitco<\/a> have been doing it for years. BIOS was rubbish, but it was <strong>familiar<\/strong> rubbish. <\/p>\n<p>Downloading a restore image from the manufacturer&#8217;s (pretty poor) website restored it to Windows, so the boot setup was workable. It didn&#8217;t reveal any links to a UEFI update, like I&#8217;d hoped, though.<\/p>\n<p>So then, I need UEFI boot media. The Sumvision box is 64-bit, and I like <a href=\"http:\/\/www.ubuntu.com\">Ubuntu<\/a>, so I downloaded a 64-bit Ubuntu ISO, made a UEFI-compatible USB stick with <a href=\"https:\/\/rufus.akeo.ie\/\">Rufus<\/a>, and tried it.<\/p>\n<p>And got either Windows or the UEFI shell again.<\/p>\n<p>A bit of googling found me that while the machine itself is 64-bit, the UEFI firmware is 32-bit (slow handclap, AMI\/Sumvision, you fucking geniuses), and that seems common for these low-power SoC machines. Sure enough, re-writing the stick with Debian Jessie 32-bit install media (because Ubuntu i386 <a href=\"https:\/\/bugs.launchpad.net\/ubuntu-cdimage\/+bug\/1025555\">doesn&#8217;t do UEFI<\/a>) got an installer booted, and being careful to leave the EFI system partition in place, a working system :-). No wifi, but that isn&#8217;t a problem for this use: if you need wifi, you can <a href=\"https:\/\/github.com\/hadess\/rtl8723bs\/wiki\/RTL8723BS-module-building-instruction-for-Debian-GNU-Linux\">compile a module<\/a>. <\/p>\n<p>But this is a 64-bit machine, so running a 64-bit OS would be good. Happily, <a href=\"https:\/\/wiki.debian.org\/Multiarch\/HOWTO\">Debian Multiarch<\/a> exists, and there&#8217;s a <a href=\"http:\/\/cdimage.debian.org\/mirror\/cdimage\/unofficial\/non-free\/cd-including-firmware\/daily-builds\/squeeze_d-i\/multi-arch\/iso-cd\/\">set of install media<\/a> with <a href=\"https:\/\/wiki.debian.org\/Firmware\">non-free but redistributable firmware too<\/a>, so on it went, and it literally installed first time, and booted without drama, so Andy has his network monitor, and I learned a few things.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Andy presented me with an interesting challenge: Your mission, should you decide to accept it, is to get Linux on this accursed box. The accursed box was a Sumvision Cyclone Mini PC: an Intel Atom SoC based PC, in a nice little box about the size of a domestic router. It has been quite popular &hellip; <a href=\"https:\/\/www.piglet-net.net\/pigblog\/?p=3261\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Open the Box<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,23],"tags":[],"class_list":["post-3261","post","type-post","status-publish","format-standard","hentry","category-computers","category-tech"],"_links":{"self":[{"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=\/wp\/v2\/posts\/3261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3261"}],"version-history":[{"count":0,"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=\/wp\/v2\/posts\/3261\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.piglet-net.net\/pigblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}