<?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=3209&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Is any work planned for devuan on the raspberry pi 4?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3209</link>
		<description><![CDATA[The most recent posts in Is any work planned for devuan on the raspberry pi 4?.]]></description>
		<lastBuildDate>Tue, 27 Jul 2021 21:38:12 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30902#p30902</link>
			<description><![CDATA[<div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>You are missing the point.</p><p><strong><span class="bbu">Device Tree files</span><br />There are various Device Tree blob files, which have the extension .dtb. These contain the hardware definitions of the various models of Raspberry Pi, and are used on boot to set up the kernel according to which Pi model is detected.</strong></p><p><a href="https://www.raspberrypi.org/documentation/configuration/boot_folder.md" rel="nofollow">https://www.raspberrypi.org/documentati … _folder.md</a></p><p>The keyword here is: Detected.</p></div></blockquote></div><p>I&#039;m taking a look at the full history to check whether there is additional information of value.&#160; I&#039;m unsure which of us missed what, but it seems we&#039;re on opposite sides of a canyon.&#160; We&#039;ve got different goals and our priorities are very different.</p><p>You desire fully operational overlays and the advantages those give.&#160; Notably you can use the full Raspberry PI ecosystem of hardware.</p><p>I meanwhile desire greater control over the boot process and the advantages <em>that</em> gives.&#160; This allows for loading rather interesting OS setups, notably it can load Linux on Xen.</p><p>I don&#039;t know whether we&#039;re diametrically opposed or not.&#160; What I can say is our goals are <strong>wildly</strong> different, thus we&#039;re going to make very different choices and push things in different directions.</p><p>My current thinking is we really need a minimum baseline of compatible device-trees.&#160; Enough for storage and console I/O to function.&#160; Once you have that what we <em>really</em> need is a program which can disassemble the device-tree passed in by the RP4&#039;s bootloader and replace the passed-in overlays with overlays associated with the current kernel.&#160; Then turn this into a new device-tree and have the running kernel load this reinterpreted device-tree.</p><p>I&#039;m unsure how complicated this is.&#160; I recall seeing a kernel option to replace the passed-in device-tree with one built into the kernel, but I&#039;m unsure whether the possibility of replacing the device-tree during initial ramdisk phase was offered.&#160; I certainly wouldn&#039;t want to add this to U-Boot or GRUB, this is too Raspberry PI specific and a user-mode utility in initial ramdisk seems the right sort of place.</p>]]></description>
			<author><![CDATA[dummy@example.com (ehem)]]></author>
			<pubDate>Tue, 27 Jul 2021 21:38:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30902#p30902</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30900#p30900</link>
			<description><![CDATA[<p>You are missing the point.</p><p><strong><span class="bbu">Device Tree files</span><br />There are various Device Tree blob files, which have the extension .dtb. These contain the hardware definitions of the various models of Raspberry Pi, and are used on boot to set up the kernel according to which Pi model is detected.</strong></p><p><a href="https://www.raspberrypi.org/documentation/configuration/boot_folder.md" rel="nofollow">https://www.raspberrypi.org/documentati … _folder.md</a></p><p>The keyword here is: Detected.</p><p>The DTB file should not be defined, as the bootloader detects which version of the pi and loads it accordingly. You can however define it inside the /boot/config.txt file, but that is usually only done if it&#039;s not in its default location or someone is using a custom DTB. Either way, this is done during the normal boot process of the Pi and has nothing to do with u-boot ==&gt; {boot.scr,extlinux,grub}</p><p>So the problem still becomes, how does each kernel know which DTB to load if it is not definable when using u-boot and only takes place after the fact? I believe you had mentioned before that it may be/is possible for grub to copy the correct dtb into place during the boot process and if so I assume this would be doable. But then we still have the problem of Kernel packaging, which at this time isn&#039;t suitable.</p><p>You are more than welcome to work out the logistical elements of this and contribute if you wanna make this happen. You can find me on irc @ libera: #devuan-arm or #arm-img-builder</p>]]></description>
			<author><![CDATA[dummy@example.com (c0rnelius)]]></author>
			<pubDate>Tue, 27 Jul 2021 17:33:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30900#p30900</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30898#p30898</link>
			<description><![CDATA[<div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>On other SoCs the device tree blob/binary needs to be loaded with the kernel in Extlinux and is defined by using </p><div class="codebox"><pre><code>fdtdir /location</code></pre></div><p> and </p><div class="codebox"><pre><code>fdt /location/file</code></pre></div><p> but on the PI this can&#039;t been done. Not sure why Grub would be able to handle this, but ok? I&#039;ll read over ur post further when I have some time.</p></div></blockquote></div><p>Why <em>wouldn&#039;t</em> GRUB be able to handle this?&#160; Loading a device-tree like this is simply loading a file and placing it at an appropriate address address in an appropriate structure in memory.</p><p>The setup I&#039;ve described is accomplishing this in two pieces.&#160; &quot;flash-kernel&quot; copies the kernel device-tree into /boot/dtb-${kernel}.&#160; The GRUB patch modifies /etc/grub.d/10_linux which in turn adds lines to the resultant grub.cfg file, the crucial line is &quot;devicetree /boot/dtb-${kernel}&quot; (where ${kernel} is the kernel version string).</p><p>I&#039;ve been given the impression GRUB&#039;s &quot;devicetree&quot; command exists in 2.02.&#160; Yet without the linked to patch (or an equivalent) the invocation of &quot;devicetree&quot; doesn&#039;t appear in grub.cfg and the device-tree never gets loaded.</p>]]></description>
			<author><![CDATA[dummy@example.com (ehem)]]></author>
			<pubDate>Tue, 27 Jul 2021 16:02:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30898#p30898</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30896#p30896</link>
			<description><![CDATA[<p>On other SoCs the device tree blob/binary needs to be loaded with the kernel in Extlinux and is defined by using </p><div class="codebox"><pre><code>fdtdir /location</code></pre></div><p> and </p><div class="codebox"><pre><code>fdt /location/file</code></pre></div><p> but on the PI this can&#039;t been done. Not sure why Grub would be able to handle this, but ok? I&#039;ll read over ur post further when I have some time.</p>]]></description>
			<author><![CDATA[dummy@example.com (c0rnelius)]]></author>
			<pubDate>Tue, 27 Jul 2021 13:25:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30896#p30896</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30891#p30891</link>
			<description><![CDATA[<div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>So if I&#039;m reading that correctly it depends highly on kernel packaging, yes? I believe I&#039;ve already went over this and suggested that the current packaging isn&#039;t adequate. It simply isn&#039;t suitable for multi kernel boot and I never set it up to do so.</p></div></blockquote></div><p>No, it simply needs appropriate scripts to be loaded on the machine.&#160; Noticed how many on target machine scripts x86 kernel packages rely upon?&#160; I will agree the packaging of kernels is suboptimal, but it is mostly good enough (notably on ARM Debian kernel packages shouldn&#039;t depend upon &quot;flash-kernel&quot;, but upon &quot;linux-kernel-installer&quot; which is provided by &quot;flash-kernel&quot;).</p><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>Extlinux can load device-trees. It is the next stage of the bootloader on the Pi that gets confused, which is really just the first stage. That&#039;s the So what? As you so finely put it.</p></div></blockquote></div><p>That doesn&#039;t make sense.&#160; `extlinux` is for loading a Linux kernel from an ext2/3/4 or btrfs filesystem.&#160; The true earliest stage was the binary blob loaded by the Video Core portion of the chip, next stage is something which might be based off of syslinux which loads the kernel off of vfat (I recall reading the RP4 may skip the Video Core blob off of vfat).</p><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>If you&#039;ve had it working for 6 months why are you keeping it a secret and being a jerk about it here? Why not just contribute?</p></div></blockquote></div><p>I&#039;ve been reporting experiments in places where others were reporting things.&#160; I had hopes SuSE&#039;s approach would take over due to shear superiority (again, GRUB has much better boot functionality).&#160; Since I need to give the outline here too...</p><p>Install the packages &quot;u-boot-rpi&quot;, &quot;raspi-firmware&quot;, &quot;grub-efi-arm64&quot;, and &quot;flash-kernel&quot; (yuck, need a cut-down package &quot;html5-kernel&quot; which simply includes the scripts for copying device-tree files into appropriate placed, ideally using `cp -l`).</p><p>Setup the boot vfat filesystem.&#160; Mount this as /boot/efi and then do the following:</p><div class="codebox"><pre><code>cp /usr/lib/raspi-firmware/* /boot/efi

cp /usr/lib/u-boot/rpi_arm64/u-boot.bin /boot/efi/u-boot64.bin

cp /usr/lib/u-boot/rpi_3/u-boot.bin /boot/efi/u-boot3.bin
cp /usr/lib/u-boot/rpi_4/u-boot.bin /boot/efi/u-boot4.bin

grub-install --bootloader-id=BOOT
cp /boot/efi/EFI/BOOT/grubaa64.efi /boot/efi/EFI/BOOT/bootaa64.efi

echo bootaa64 &gt; /boot/efi/startup.nsh</code></pre></div><p>Now, I&#039;m unsure whether `cp /boot/dtbs/$(uname -r)/broadcom/bcm2*-rpi*.dtb /boot/efi` is required; or perhaps as you&#039;ve suggested U-Boot can make due with its built-in device-tree.&#160; I&#039;ve also run into a mention of GRUB merely being able to <em>overwrite</em> an incoming device-tree and not being able to install one from scratch.&#160; You&#039;ll also want to adjust /etc/grub.d/10_linux* in line with the patch from <a href="https://savannah.gnu.org/bugs/?52939" rel="nofollow">here</a> (the original patch is out of date).</p><p>These directions are <strong>not</strong> 100%, but they&#039;re most of the way there.&#160; Biggest issue is getting the versions of everything lined up.</p>]]></description>
			<author><![CDATA[dummy@example.com (ehem)]]></author>
			<pubDate>Tue, 27 Jul 2021 04:00:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30891#p30891</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30890#p30890</link>
			<description><![CDATA[<p>So if I&#039;m reading that correctly it depends highly on kernel packaging, yes? I believe I&#039;ve already went over this and suggested that the current packaging isn&#039;t adequate. It simply isn&#039;t suitable for multi kernel boot and I never set it up to do so.</p>]]></description>
			<author><![CDATA[dummy@example.com (c0rnelius)]]></author>
			<pubDate>Tue, 27 Jul 2021 03:07:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30890#p30890</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30889#p30889</link>
			<description><![CDATA[<div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>I&#039;ll extend an olive branch. How would one define which DTB to use for each kernel, if the DTB is undefinable?</p></div></blockquote></div><p>This edit came in after I was already typing.&#160; What do you mean?</p><p>Unfortunately the functionality is usually provided by the `flash-kernel` package, but if `flash-kernel` is installed it will copy the appropriate DTB from /usr/lib/&lt;kernel-version&gt; to /boot/dtb-&lt;kernel-version&gt;.&#160; The <a href="https://savannah.gnu.org/bugs/?52939" rel="nofollow">GRUB wishlist bug 52939</a> includes a patch for /etc/grub.d/10_linux to cause GRUB to load the device-tree from /boot/dtb-&lt;kernel-version&gt;.&#160; The patch was made for an older version of GRUB thus needs manual application and also needs to modify /etc/grub.d/10_linux_xen.</p>]]></description>
			<author><![CDATA[dummy@example.com (ehem)]]></author>
			<pubDate>Tue, 27 Jul 2021 02:53:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30889#p30889</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30888#p30888</link>
			<description><![CDATA[<p>Extlinux can load device-trees. It is the next stage of the bootloader on the Pi that gets confused, which is really just the first stage. That&#039;s the So what? As you so finely put it.</p><p>If you&#039;ve had it working for 6 months why are you keeping it a secret and being a jerk about it here? Why not just contribute?</p>]]></description>
			<author><![CDATA[dummy@example.com (c0rnelius)]]></author>
			<pubDate>Tue, 27 Jul 2021 02:52:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30888#p30888</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30887#p30887</link>
			<description><![CDATA[<div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>Lets say we use u-boot. The DTB file can&#039;t be defined in extlinux, as the next stage of the bootloader will get confused and at worst not boot at all. If it did boot by chance, it would be all out of whack and certain onboard things wouldn&#039;t work. How do I know this? I&#039;ve experimented with it <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></div></blockquote></div><p>Okay.&#160; So what?&#160; You&#039;re using `extlinux` which cannot load device-trees.&#160; GRUB <strong>can</strong> and I already pointed to someone who had a patch for their scripts which functioned (updates to the scripts mean the patch no longer applies, but it isn&#039;t difficult to update by hand).</p><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>Of course, I&#039;m just going on my own testing. I welcome you to play with it and see if you can get further.</p></div></blockquote></div><p>I already had it functioning more than 6 months ago.&#160; Polish is needed, but the boot sequence U-Boot =&gt; GRUB is workable.</p>]]></description>
			<author><![CDATA[dummy@example.com (ehem)]]></author>
			<pubDate>Tue, 27 Jul 2021 02:37:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30887#p30887</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30886#p30886</link>
			<description><![CDATA[<p>ehem</p><p>Lets say we use u-boot. The DTB file can&#039;t be defined in extlinux, as the next stage of the bootloader will get confused and at worst not boot at all. If it did boot by chance, it would be all out of whack and certain onboard things wouldn&#039;t work. How do I know this? I&#039;ve experimented with it <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Your hate of the device-tree doesn&#039;t change how the bootloader works. In all honesty it would probs be easier to get a multi OS boot before a multi kernel boot on the same medium. </p><p>As for the device-tree, its essential. There are no if and or buts about it. This is not your Dads x86 computer <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> Not all DTB files are gonna support the next kernel exactly the same and there isn&#039;t much any of us can do about it and unfortunately defining that DTB using extlinux and or grub is gonna create a headache in the boot process.</p><p>Of course, I&#039;m just going on my own testing. I welcome you to play with it and see if you can get further.</p><p>Edit:<br />I&#039;ll extend an olive branch. How would one define which DTB to use for each kernel, if the DTB is undefinable?</p>]]></description>
			<author><![CDATA[dummy@example.com (c0rnelius)]]></author>
			<pubDate>Tue, 27 Jul 2021 02:26:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30886#p30886</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30885#p30885</link>
			<description><![CDATA[<div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>I&#039;m not ignoring it, I just don&#039;t care <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> I find it at this time to be a bit fruitless, hence why I suggested if you wanna put in the work to make it happen. Have at it!</p></div></blockquote></div><p>Numerous people have demonstrated it isn&#039;t much work, and has distinct benefits.&#160; Most of the work is getting people claiming it is too much work to get out of the way.</p><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><div class="quotebox"><cite>ehem wrote:</cite><blockquote><div><p>In other news I find device-trees rather underwhelming.&#160; Most UEFI implementations will boot Linux kernels from 3.0 to 5.10 with the exact same implementation.&#160; The same implementation will also boot *BSD, or other closed OSes from Redmond.&#160; Yet a device-tree implementation is only likely to work with one kernel version of one OS.</p></div></blockquote></div><p>You can simply review the latest changes in mainline to find what ur saying about kernel revisions isn&#039;t accurate at this time: <a href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/?id=v5.10.53&amp;id2=v5.10.52&amp;dt=2" rel="nofollow">https://git.kernel.org/pub/scm/linux/ke … 10.52&amp;dt=2</a></p></div></blockquote></div><p>I think you just demonstrated why I&#039;m <em>highly</em> underwhelmed by device-trees.&#160; Their implementation is awful.</p><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>I&#039;m not against getting this working, I&#039;m simply saying that the effort needed to get that done would be very time consuming.</p></div></blockquote></div><p>No, it isn&#039;t.&#160; I&#039;m far from expert in these pieces, but I&#039;ve gotten things functioning without much work.&#160; A very little bit of scripting might be needed, the main work is keeping the pieces synchronized.&#160; Mostly needing to keep a combination of U-Boot, GRUB and device-tree which are compatible together.</p><p>Have I mentioned device-trees are garbage?&#160; (this could merely be an issue of lack of standards, whereas UEFI was an organization behind it keeping things mostly sane)</p>]]></description>
			<author><![CDATA[dummy@example.com (ehem)]]></author>
			<pubDate>Tue, 27 Jul 2021 02:00:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30885#p30885</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30884#p30884</link>
			<description><![CDATA[<div class="quotebox"><cite>ehem wrote:</cite><blockquote><div><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><div class="quotebox"><cite>ehem wrote:</cite><blockquote><div><p>You use U-Boot&#039;s UEFI support to have it load GRUB (SuSE uses this approach).&#160; While wasteful due to having an extra bootloader stage, you gain GRUB&#039;s <strong>massively</strong> better functionality.</p></div></blockquote></div><p>You aren&#039;t taking under account kernel packaging and the problems therein. Not to mention overlays and whatnots are gonna be different between kernel revisions, so now that would also need to be taken under consideration. Grub would also need to be scripted to know what to look for, which presents even more headaches.</p><p>Even other SBCs that use grub aren&#039;t trying to boot more than one kernel, as there is a lot of things to account for. But hey, if you feel like looking into it and investing the time and effort to make it work, go for it.</p></div></blockquote></div><p>There was some discussion on Debian bug #824954.&#160; Some of the necessary scripting can be found as <a href="https://savannah.gnu.org/bugs/?52939" rel="nofollow">GRUB wishlist #52939</a>.</p><p>This though is only needed for covering the most extreme case, where GRUB needs to load a kernel-specific device-tree.&#160; This isn&#039;t needed if you&#039;re switching between kernel patch levels, which is adequate if you&#039;re switching between 5.10.0-1 and 5.10.0-2 (which would be security update versions).&#160; This is also overkill if you&#039;re simply rebuilding Devuan&#039;s kernel source with custom configuration.</p><p>You&#039;re also yet again ignoring the other <strong>highly important</strong> case.&#160; It is possible, but quite difficult to boot Xen directly from U-Boot.&#160; Whereas, GRUB will boot Xen out of the box.</p><p>In other news I find device-trees rather underwhelming.&#160; Most UEFI implementations will boot Linux kernels from 3.0 to 5.10 with the exact same implementation.&#160; The same implementation will also boot *BSD, or other closed OSes from Redmond.&#160; Yet a device-tree implementation is only likely to work with one kernel version of one OS.</p></div></blockquote></div><p>I&#039;m not ignoring it, I just don&#039;t care <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> I find it at this time to be a bit fruitless, hence why I suggested if you wanna put in the work to make it happen. Have at it!</p><p>You can simply review the latest changes in mainline to find what ur saying about kernel revisions isn&#039;t accurate at this time: <a href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/?id=v5.10.53&amp;id2=v5.10.52&amp;dt=2" rel="nofollow">https://git.kernel.org/pub/scm/linux/ke … 10.52&amp;dt=2</a></p><p>I&#039;m not against getting this working, I&#039;m simply saying that the effort needed to get that done would be very time consuming.</p><p>Cheers!</p>]]></description>
			<author><![CDATA[dummy@example.com (c0rnelius)]]></author>
			<pubDate>Tue, 27 Jul 2021 01:20:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30884#p30884</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30883#p30883</link>
			<description><![CDATA[<div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><div class="quotebox"><cite>ehem wrote:</cite><blockquote><div><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>As for Grub, I&#039;ve played around with it on other SBCs, but am not 100% sure how to set that up correctly on a Pi.</p></div></blockquote></div><p>You use U-Boot&#039;s UEFI support to have it load GRUB (SuSE uses this approach).&#160; While wasteful due to having an extra bootloader stage, you gain GRUB&#039;s <strong>massively</strong> better functionality.</p></div></blockquote></div><p>You aren&#039;t taking under account kernel packaging and the problems therein. Not to mention overlays and whatnots are gonna be different between kernel revisions, so now that would also need to be taken under consideration. Grub would also need to be scripted to know what to look for, which presents even more headaches.</p><p>Even other SBCs that use grub aren&#039;t trying to boot more than one kernel, as there is a lot of things to account for. But hey, if you feel like looking into it and investing the time and effort to make it work, go for it.</p></div></blockquote></div><p>There was some discussion on Debian bug #824954.&#160; Some of the necessary scripting can be found as <a href="https://savannah.gnu.org/bugs/?52939" rel="nofollow">GRUB wishlist #52939</a>.</p><p>This though is only needed for covering the most extreme case, where GRUB needs to load a kernel-specific device-tree.&#160; This isn&#039;t needed if you&#039;re switching between kernel patch levels, which is adequate if you&#039;re switching between 5.10.0-1 and 5.10.0-2 (which would be security update versions).&#160; This is also overkill if you&#039;re simply rebuilding Devuan&#039;s kernel source with custom configuration.</p><p>You&#039;re also yet again ignoring the other <strong>highly important</strong> issue.&#160; It is possible, but quite difficult to boot Xen directly from U-Boot.&#160; Whereas, GRUB will boot Xen out of the box.</p><p>In other news I find device-trees rather underwhelming.&#160; Most UEFI implementations will boot Linux kernels from 3.0 to 5.10 with the exact same implementation.&#160; The same implementation will also boot *BSD, or other closed OSes from Redmond.&#160; Yet a device-tree implementation is only likely to work with one kernel version of one OS.</p>]]></description>
			<author><![CDATA[dummy@example.com (ehem)]]></author>
			<pubDate>Tue, 27 Jul 2021 00:48:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30883#p30883</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30881#p30881</link>
			<description><![CDATA[<div class="quotebox"><cite>ehem wrote:</cite><blockquote><div><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><div class="quotebox"><cite>ehem wrote:</cite><blockquote><div><p>Is there any hope Raspberry PI 4B images with U-Boot =&gt; GRUB will show up?</p><p>I like being able to easily boot previous kernels when the latest fails (modified kernels do fail and sometimes security update kernels have introduced severe reversions).&#160; Also the Raspberry PI 4B has hardware suitable for running <a href="https://wiki.debian.org/Xen" rel="nofollow">Xen</a> and recent versions of GRUB (2.02 has the module, but only &gt;=2.04 has an appropriate /etc/grub.d/20_linux_xen) will load Xen/ARM64 out of the box.</p></div></blockquote></div><p>This would be easier to accomplish using u-boot and extlinux, with extlinux you can add an optional menu. One problem though, would be the current kernel packaging, as currently it purges the old kernel, dtbs, initrd, overlays and headers during install.</p></div></blockquote></div><p>That doesn&#039;t seem easier except for the first time setup.&#160; Maintenance is harder since it means spinning everything by hand, whereas GRUB has everything scripted out of the box.</p><p>More importantly, you missed the second part.&#160; I don&#039;t believe extlinux can load Xen (two kernels plus an initial ramdisk).</p><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>As for Grub, I&#039;ve played around with it on other SBCs, but am not 100% sure how to set that up correctly on a Pi.</p></div></blockquote></div><p>You use U-Boot&#039;s UEFI support to have it load GRUB (SuSE uses this approach).&#160; While wasteful due to having an extra bootloader stage, you gain GRUB&#039;s <strong>massively</strong> better functionality.</p></div></blockquote></div><p>You aren&#039;t taking under account kernel packaging and the problems therein. Not to mention overlays and whatnots are gonna be different between kernel revisions, so now that would also need to be taken under consideration. Grub would also need to be scripted to know what to look for, which presents even more headaches.</p><p>Even other SBCs that use grub aren&#039;t trying to boot more than one kernel, as there is a lot of things to account for. But hey, if you feel like looking into it and investing the time and effort to make it work, go for it.</p>]]></description>
			<author><![CDATA[dummy@example.com (c0rnelius)]]></author>
			<pubDate>Mon, 26 Jul 2021 22:24:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30881#p30881</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is any work planned for devuan on the raspberry pi 4?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30879#p30879</link>
			<description><![CDATA[<div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><div class="quotebox"><cite>ehem wrote:</cite><blockquote><div><p>Is there any hope Raspberry PI 4B images with U-Boot =&gt; GRUB will show up?</p><p>I like being able to easily boot previous kernels when the latest fails (modified kernels do fail and sometimes security update kernels have introduced severe reversions).&#160; Also the Raspberry PI 4B has hardware suitable for running <a href="https://wiki.debian.org/Xen" rel="nofollow">Xen</a> and recent versions of GRUB (2.02 has the module, but only &gt;=2.04 has an appropriate /etc/grub.d/20_linux_xen) will load Xen/ARM64 out of the box.</p></div></blockquote></div><p>This would be easier to accomplish using u-boot and extlinux, with extlinux you can add an optional menu. One problem though, would be the current kernel packaging, as currently it purges the old kernel, dtbs, initrd, overlays and headers during install.</p></div></blockquote></div><p>That doesn&#039;t seem easier except for the first time setup.&#160; Maintenance is harder since it means spinning everything by hand, whereas GRUB has everything scripted out of the box.</p><p>More importantly, you missed the second part.&#160; I don&#039;t believe extlinux can load Xen (two kernels plus an initial ramdisk).</p><div class="quotebox"><cite>c0rnelius wrote:</cite><blockquote><div><p>As for Grub, I&#039;ve played around with it on other SBCs, but am not 100% sure how to set that up correctly on a Pi.</p></div></blockquote></div><p>You use U-Boot&#039;s UEFI support to have it load GRUB (SuSE uses this approach).&#160; While wasteful due to having an extra bootloader stage, you gain GRUB&#039;s <strong>massively</strong> better functionality.</p>]]></description>
			<author><![CDATA[dummy@example.com (ehem)]]></author>
			<pubDate>Mon, 26 Jul 2021 21:49:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30879#p30879</guid>
		</item>
	</channel>
</rss>
