<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2795&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Base Install beowulf for ARM with packaged Kernel (WIP)]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2795</link>
		<description><![CDATA[The most recent posts in Base Install beowulf for ARM with packaged Kernel (WIP).]]></description>
		<lastBuildDate>Sun, 14 Apr 2019 13:47:38 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Base Install beowulf for ARM with packaged Kernel (WIP)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15553#p15553</link>
			<description><![CDATA[<h5>Motivation</h5><p>This tutorial describes a unified method I use to prepare and install beowulf for various ARM boards. The tutorial works for me but might miss some important steps - please consider it WIP.</p><p>Requirements and assumptions:</p><ul><li><p>ARM board supported by Kernel 4.19 (check dtb directory). This tutorial assumes you have a 32bit (armhf) board but might work with slight adaptations for arm64 as well.</p></li><li><p>working U-Boot (U-Boot is not covered in this tutorial) that is not ancient (able to boot kernels directly from ext4 partitions, support for extlinux.conf)</p></li><li><p>working serial console attached to your ARM board</p></li></ul><p>Why not use the provided images on the Devuan mirrors?</p><ul><li><p>there are no images for beowulf yet (installing ascii and upgrading is not what I wanted)</p></li><li><p>the images for ascii use a hard-coded, unmaintained kernel without any security updates</p></li><li><p>the images for ascii are shipped with proprietary blobs and the sources.list file includes non-free sources as well.</p></li><li><p>the images for ascii include packages not installed in the base setup that everybody might want (e.g. screen, openssh-server)</p></li><li><p>the images for ascii assume you have a separate boot partition (I don&#039;t use this installation style for ARM boards)</p></li><li><p>the images for ascii use the old-style U-Boot configuration (boot.scr and boot.cmd) that is hard to maintain. </p></li></ul><h5>Disclaimer</h5><p>All data and information provided in this tutorial is for informational purposes only. The author makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this tutorial and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis.</p><p>In no event, the author or this forum will be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this tutorial.</p><p>Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License.</p><h5>Steps</h5><p>I used a devuan live environment to prepare the rootfs.</p><p>Install dependencies:</p><div class="codebox"><pre><code>apt install binfmt-support qemu qemu-user-static debootstrap</code></pre></div><p>Create directory to hold your chroot:</p><div class="codebox"><pre><code>mkdir devuan_armhf_beowulf</code></pre></div><p>Run debootstrap (might take a while):</p><div class="codebox"><pre><code>qemu-debootstrap --arch armhf beowulf devuan_armhf_beowulf http://deb.devuan.org/merged/</code></pre></div><p>After it finished, chroot into the environment:</p><div class="codebox"><pre><code>chroot devuan_armhf_beowulf</code></pre></div><p>Install the kernel package:</p><div class="codebox"><pre><code>apt install linux-image-armmp-lpae</code></pre></div><p>Create extlinux dir:</p><div class="codebox"><pre><code>mkdir -p /extlinux</code></pre></div><p>Create extlinux config file (change DEVICETREEDIR to match current kernel; TODO: Hardcoding this sucks, it&#039;s not a nice solution yet):</p><div class="codebox"><pre><code>cat &lt;&lt;&#039;EOF&#039; &gt;&gt; /extlinux/extlinux.conf
TIMEOUT 20
PROMPT 1
DEFAULT devuan

LABEL devuan
MENU LABEL Linux devuan
KERNEL /vmlinuz
INITRD /initrd.img
DEVICETREEDIR /usr/lib/linux-image-4.19.0-4-armmp-lpae
APPEND root=/dev/mmcblk0p1
EOF</code></pre></div><p>Activate the serial console (if your machine has a console other than ttyS0 adapt it):</p><div class="codebox"><pre><code>echo &quot;T1:12345:respawn:/sbin/agetty -L ttyS0 115200 vt100&quot; &gt;&gt; /etc/inittab</code></pre></div><p>Set the root password:</p><div class="codebox"><pre><code>passwd</code></pre></div><p>Basically, that&#039;s it for building the chroot.</p><p>To boot the system, create a primary partition on your storage (e.g. microSD card) and copy the stuff from the chroot directory in there. Put the microSD card in your ARM machine and boot it.</p><h5>Post-installation steps</h5><p>Not covered here, but you probably want to do this after booting:</p><ul><li><p>configure network</p></li><li><p>configure sources.list to include security-updates etc.</p></li><li><p>configure timezone settings</p></li><li><p>configure locale</p></li><li><p>configure fstab, so filesystem is remounted read-only in case of a boot after a crash</p></li><li><p>install an ssh server</p></li><li><p>install your favorite packages</p></li></ul>]]></description>
			<author><![CDATA[dummy@example.com (kuleszdl)]]></author>
			<pubDate>Sun, 14 Apr 2019 13:47:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15553#p15553</guid>
		</item>
	</channel>
</rss>
