Thicket data repository for the EEG
1{
2 "id": "https://mort.io/blog/building-up-your-arms/",
3 "title": "Building Up Your ARMs",
4 "link": "https://mort.io/blog/building-up-your-arms/",
5 "updated": "2016-11-16T00:00:00",
6 "published": "2016-11-16T00:00:00",
7 "summary": "<p>Due to the impending finish of the EU FP7 funded <a href=\"https://usercentricnetworking.eu\">User Centric\nNetworking</a><a href=\"https://mort.io/blog/building-up-your-arms/#1\">1</a> I recently had cause to revisit the excellent work that\n<a href=\"https://github.com/talex5\">Thomas Leonard</a> did for the project in getting Xen/ARM running on the\n<a href=\"http://cubieboard.org/model/cb2/\">Cubieboard2</a> and <a href=\"http://cubieboard.org/model/cb3/\">Cubietruck</a> (aka <a href=\"http://cubieboard.org/model/cb3/\">Cubieboard3</a>).</p>\n<p>The resulting repo, <a href=\"https://github.com/mirage/xen-arm-builder\">mirage/xen-arm-builder</a>, had languished for several\nmonths and the past SD card images had some problems and had been allowed to\ndrop off the ’Net as a result. However, sterling work by <a href=\"https://github.com/ijc25\">Ian Campbell</a> at\na recent Mirage <a href=\"https://mirage.io/blog/2016-summer-hackathon-roundup\">hackathon</a> had started to resurrect this work based on\nthe <a href=\"https://alpinelinux.org/\">Alpine Linux</a> distribution. This seemed a promising place to start,\nso I did :)</p>\n<h2><a href=\"https://mort.io/blog/building-up-your-arms/#building-an-image\">Building an Image</a></h2>\n<p>The end result was an enormous <a href=\"https://github.com/mirage/xen-arm-builder/pull/71\">pull request</a> that splatted a Brave New\nWorld on top of <a href=\"https://github.com/talex5\">Thomas’</a> work.\nThe <a href=\"https://github.com/mirage/xen-arm-builder/blob/master/README.md\"><code>README</code></a>\nis hopefully reasonably self-explanatory but in summary,</p>\n<ol>\n<li>\n<p>Clone the repo:</p>\n<pre><code><span><span><span>git</span></span><span> clone https://github.com/mor1/arm-image-builder.git</span>\n</span><span><span><span>cd</span></span><span> arm-image-builder</span>\n</span></code></pre>\n</li>\n<li>\n<p>Use the <code>make</code> targets:</p>\n<pre><code><span><span><span>make</span></span><span> all <span><span>#</span></span><span> runs `make prepare build image`</span><span>\n</span></span></span><span><span><span>#</span></span><span> make prepare # clones repos, pulls tarballs</span><span>\n</span></span><span><span><span>#</span></span><span> make build # use Docker to build the `linux/` and `u-boot/` trees</span><span>\n</span></span><span><span><span>#</span></span><span> make image # finally, create the on-disk `sdcard.img`</span><span>\n</span></span></code></pre>\n</li>\n</ol>\n<p>This clones the necessary repos (Linux, u-boot), builds them, and then puts\ntogether the image file <code>sdcard.img</code> in the current directory. If on OSX, <code>make sdcard</code> will then attempt to write that to a blank, mounted SD card. This does a\nrather hacky auto-discovery of where the SD card might be mounted; if in doubt,\nand in any case, always safer to simply</p>\n<pre><code><span><span>MNT</span><span>=</span><span>the-correct-mount-point</span> <span><span>make</span></span><span> sdcard</span>\n</span></code></pre>\n<p>…or simply use your favourite tools to write the <code>sdcard.img</code> file to your SD\ncard.</p>\n<h2><a href=\"https://mort.io/blog/building-up-your-arms/#using-the-image\">Using the Image</a></h2>\n<p>The end result should be an SD card that you can use to boot your device into\n<a href=\"https://alpinelinux.org/\">Alpine Linux v3.4</a>. At present, completing installation requires then:</p>\n<ul>\n<li><a href=\"https://github.com/mirage/xen-arm-builder#first-boot--re-initialisation\">resetting the environment</a>,</li>\n<li><a href=\"https://github.com/mirage/xen-arm-builder#base-install\">completing Alpine setup</a> via\nthe <code>setup-alpine</code> script,</li>\n<li>(if desired) installing Xen via the\n<code>/media/mmcblk0p1/alpine-dom0-install.sh</code> script created as part of building\nthe SD card image,</li>\n<li>(if desired) finally,\nbuilding <a href=\"https://github.com/mirage/xen-arm-builder#alpine\">Alpine</a>\nand/or <a href=\"https://github.com/mirage/xen-arm-builder#debian\">Debian</a> <code>domU</code>s\nvia the <code>/media/mmcblk0p1/alpine-domU-install.sh</code> and\n<code>/media/mmcblk0p1/debian-domU-install.sh</code> scripts, also created as part of\nbuilding the image.</li>\n</ul>\n<p>Hopefully the net result is you end up with a Cubieboard2/3 running Xen with an\nAlpine Linux <code>dom0</code> and some <code>domU</code> images available.</p>\n<p>As ever, <a href=\"https://twitter.com/mort___\">comments, patches, pull requests welcome</a>!</p>\n<div>1\n<p>Grant No. 611001 for those who care.</p>\n</div>",
8 "content": "<p>Due to the impending finish of the EU FP7 funded <a href=\"https://usercentricnetworking.eu\">User Centric\nNetworking</a><a href=\"https://mort.io/blog/building-up-your-arms/#1\">1</a> I recently had cause to revisit the excellent work that\n<a href=\"https://github.com/talex5\">Thomas Leonard</a> did for the project in getting Xen/ARM running on the\n<a href=\"http://cubieboard.org/model/cb2/\">Cubieboard2</a> and <a href=\"http://cubieboard.org/model/cb3/\">Cubietruck</a> (aka <a href=\"http://cubieboard.org/model/cb3/\">Cubieboard3</a>).</p>\n<p>The resulting repo, <a href=\"https://github.com/mirage/xen-arm-builder\">mirage/xen-arm-builder</a>, had languished for several\nmonths and the past SD card images had some problems and had been allowed to\ndrop off the ’Net as a result. However, sterling work by <a href=\"https://github.com/ijc25\">Ian Campbell</a> at\na recent Mirage <a href=\"https://mirage.io/blog/2016-summer-hackathon-roundup\">hackathon</a> had started to resurrect this work based on\nthe <a href=\"https://alpinelinux.org/\">Alpine Linux</a> distribution. This seemed a promising place to start,\nso I did :)</p>\n<h2><a href=\"https://mort.io/blog/building-up-your-arms/#building-an-image\">Building an Image</a></h2>\n<p>The end result was an enormous <a href=\"https://github.com/mirage/xen-arm-builder/pull/71\">pull request</a> that splatted a Brave New\nWorld on top of <a href=\"https://github.com/talex5\">Thomas’</a> work.\nThe <a href=\"https://github.com/mirage/xen-arm-builder/blob/master/README.md\"><code>README</code></a>\nis hopefully reasonably self-explanatory but in summary,</p>\n<ol>\n<li>\n<p>Clone the repo:</p>\n<pre><code><span><span><span>git</span></span><span> clone https://github.com/mor1/arm-image-builder.git</span>\n</span><span><span><span>cd</span></span><span> arm-image-builder</span>\n</span></code></pre>\n</li>\n<li>\n<p>Use the <code>make</code> targets:</p>\n<pre><code><span><span><span>make</span></span><span> all <span><span>#</span></span><span> runs `make prepare build image`</span><span>\n</span></span></span><span><span><span>#</span></span><span> make prepare # clones repos, pulls tarballs</span><span>\n</span></span><span><span><span>#</span></span><span> make build # use Docker to build the `linux/` and `u-boot/` trees</span><span>\n</span></span><span><span><span>#</span></span><span> make image # finally, create the on-disk `sdcard.img`</span><span>\n</span></span></code></pre>\n</li>\n</ol>\n<p>This clones the necessary repos (Linux, u-boot), builds them, and then puts\ntogether the image file <code>sdcard.img</code> in the current directory. If on OSX, <code>make sdcard</code> will then attempt to write that to a blank, mounted SD card. This does a\nrather hacky auto-discovery of where the SD card might be mounted; if in doubt,\nand in any case, always safer to simply</p>\n<pre><code><span><span>MNT</span><span>=</span><span>the-correct-mount-point</span> <span><span>make</span></span><span> sdcard</span>\n</span></code></pre>\n<p>…or simply use your favourite tools to write the <code>sdcard.img</code> file to your SD\ncard.</p>\n<h2><a href=\"https://mort.io/blog/building-up-your-arms/#using-the-image\">Using the Image</a></h2>\n<p>The end result should be an SD card that you can use to boot your device into\n<a href=\"https://alpinelinux.org/\">Alpine Linux v3.4</a>. At present, completing installation requires then:</p>\n<ul>\n<li><a href=\"https://github.com/mirage/xen-arm-builder#first-boot--re-initialisation\">resetting the environment</a>,</li>\n<li><a href=\"https://github.com/mirage/xen-arm-builder#base-install\">completing Alpine setup</a> via\nthe <code>setup-alpine</code> script,</li>\n<li>(if desired) installing Xen via the\n<code>/media/mmcblk0p1/alpine-dom0-install.sh</code> script created as part of building\nthe SD card image,</li>\n<li>(if desired) finally,\nbuilding <a href=\"https://github.com/mirage/xen-arm-builder#alpine\">Alpine</a>\nand/or <a href=\"https://github.com/mirage/xen-arm-builder#debian\">Debian</a> <code>domU</code>s\nvia the <code>/media/mmcblk0p1/alpine-domU-install.sh</code> and\n<code>/media/mmcblk0p1/debian-domU-install.sh</code> scripts, also created as part of\nbuilding the image.</li>\n</ul>\n<p>Hopefully the net result is you end up with a Cubieboard2/3 running Xen with an\nAlpine Linux <code>dom0</code> and some <code>domU</code> images available.</p>\n<p>As ever, <a href=\"https://twitter.com/mort___\">comments, patches, pull requests welcome</a>!</p>\n<div>1\n<p>Grant No. 611001 for those who care.</p>\n</div>",
9 "content_type": "html",
10 "author": {
11 "name": "Unknown",
12 "email": null,
13 "uri": null
14 },
15 "categories": [],
16 "source": "https://mort.io/atom.xml"
17}