<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5371&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / kernel-related question]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5371</link>
		<description><![CDATA[The most recent posts in kernel-related question.]]></description>
		<lastBuildDate>Sat, 26 Nov 2022 05:33:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: kernel-related question]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38941#p38941</link>
			<description><![CDATA[<p>The first editing could have worked, but the kernel to load need to be <span class="bbc">gunzip</span>-ed first; make it a vmlin<strong>x</strong> instead of vmlin<strong>z</strong>.</p><p>I.e., gunzip the kernel and edit config.txt.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 26 Nov 2022 05:33:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38941#p38941</guid>
		</item>
		<item>
			<title><![CDATA[Re: kernel-related question]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38940#p38940</link>
			<description><![CDATA[<p>OK, here&#039;s where I&#039;m at now.</p><p>First, I edited /boot/config.txt and attempted to change the kernel line to the version that I had installed via apt as follows: <span class="bbc">kernel=vmlinuz-5.10.0-19-arm64</span><br />The &quot;file&quot; command reported both files (the previous kernel8.img and the vmlinuz-5.10.0-19-arm64) as &quot;Linux kernel ARM64 boot executable Image, little-endian, 4K pages&quot; -- so I thought it just might work.<br />When I rebooted, the system was stuck at the initial color &quot;rainbow&quot; screen.</p><p>I resized my boot partition (it was 128MB on the ascii image, but 256MB on the chimaera image).&#160; I downloaded the file rpi-3-devuan-chimaera-5.10.110-arm64-ext4-2022-11-25.zip from the page https://arm-files.devuan.org/RaspberryPi%20Latest%20Builds/&#160; ... then using dd I overwrote my boot partition with the one from that image.&#160; At first it would not complete the boot due to missing partition (I forgot to edit cmdline.txt).&#160; After I got that straightened out, it did boot into <span class="bbc">Linux devuan 5.10.110 #1 SMP PREEMPT Fri Nov 25 00:43:14 CET 2022 aarch64 GNU/Linux</span></p><p>So I guess that part is solved, sort of.&#160; I was hoping there would be a simpler way to just upgrade the kernel (like it works in amd64).</p><p>Also, upgrading the kernel didn&#039;t even fix the iptables problem.</p><div class="codebox"><pre><code># iptables -A INPUT -s 1.2.3.4 -j DROP
iptables/1.8.7 Failed to initialize nft: Protocol not supported
# iptables -V
iptables/1.8.7 Failed to initialize nft: Protocol not supported</code></pre></div><p>I think I&#039;ve got the solution for this, though.<br />I found on https://superuser.com/questions/1480986/iptables-1-8-2-failed-to-initialize-nft-protocol-not-supported:</p><div class="codebox"><pre><code>update-alternatives --set iptables /usr/sbin/iptables-legacy
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy</code></pre></div><p>I had to copy the /lib/modules/5.10.110 from the latest image file to my live system, too (which of course I forgot to do previously).</p><p>Now, iptables seems to be functioning correctly.</p><p>The only question remaining is, whether or not there&#039;s a simpler kernel upgrade process.&#160; At least things are working again, and it is possible to upgrade kernel, just a bit more time-consuming than I&#039;m used to :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (rbit)]]></author>
			<pubDate>Sat, 26 Nov 2022 02:10:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38940#p38940</guid>
		</item>
		<item>
			<title><![CDATA[Re: kernel-related question]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38932#p38932</link>
			<description><![CDATA[<p>ARM machines are typically different in their bootup for different machine types. I&#039;m not sure exactly how your <span class="bbc">/boot</span> looks but most likely there is a file there that identifies the kernel to boot and its initrd. It might be enough to edit that file for your new kernel and initrd.</p><p>(Possibly there is some name limitations which would force you to copy your kernel+initrd into existing names)</p><p>The newest chimaera iso for rpi3 seem to have a file <span class="bbc">/boot/config.txt</span> identifying its kernel, and that boot kernel is named <span class="bbc">kernel8</span>. It is an <span class="bbc">gunzip</span> of the accompanying <span class="bbc">vmlinuz-5.10.110</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 25 Nov 2022 22:55:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38932#p38932</guid>
		</item>
		<item>
			<title><![CDATA[Re: kernel-related question]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38931#p38931</link>
			<description><![CDATA[<p>By the sound of it you want backports. Here my setup but remember, YMMV:</p><div class="codebox"><pre><code>$ cat /etc/apt/sources.list | head -8
deb http://deb.devuan.org/merged chimaera main non-free contrib
deb http://deb.devuan.org/merged chimaera-security main non-free contrib
deb http://deb.devuan.org/merged chimaera-updates main non-free contrib
# changed next line following https://dev1galaxy.org/viewtopic.php?pid=38033#p38033
# deb http://deb.devuan.org/devuan chimaera-proposed-updates main non-free contrib
deb http://deb.devuan.org/merged chimaera-proposed-updates main non-free contrib
deb http://deb.devuan.org/merged chimaera-backports main non-free contrib

$ uname -a
Linux ng3 6.0.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.3-1~bpo11+1 (2022-10-29) x86_64 GNU/Linux</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Fri, 25 Nov 2022 20:33:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38931#p38931</guid>
		</item>
		<item>
			<title><![CDATA[kernel-related question]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38930#p38930</link>
			<description><![CDATA[<p>I&#039;ve been reading a few topics on this forum, but haven&#039;t yet come across a satisfactory answer.</p><p>Here&#039;s my situation:<br />I&#039;ve got a raspberry pi 3b+.&#160; I originally used the devuan ascii image on sd card, later moved to external usb drive.&#160; After running this setup for a few years, I finally (today) decided to dist-upgrade to beowulf, and then to chimaera.&#160; It all went pretty smoothly.&#160; The one issue that I&#039;ve noticed during startup now is that iptables refuses to load the rules I have stored in a script.&#160; An example rule is: <span class="bbc">iptables -A INPUT -s 1.2.3.4 -j DROP</span> and the message that was returned on beowulf is: <span class="bbc">iptables: Invalid argument. Run `dmesg&#039; for more information.</span>.&#160; <span class="bbc">dmesg</span> contains nothing useful or related to the iptables command.&#160; On chimaera the error is: <span class="bbc">iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument</span>.</p><p>From some internet searching, I believe that the problem is due to an outdated kernel.&#160; <span class="bbc">uname -a</span> result is: <span class="bbc">Linux devuan 4.16.14-v8+ #1 SMP PREEMPT Tue Jun 5 18:50:10 CEST 2018 aarch64 GNU/Linux</span>.</p><p>I then tried: <span class="bbc">apt install linux-image-arm64</span> which proceeded to download and install linux-image-5.10.0-19-arm64_5.10.149-2_arm64.deb<br />This did create the files in /boot, but they were not loaded upon a system reboot, it&#039;s still on 4.16.14-v8+.</p><p>I *believe* (but may be mistaken) that the newer rpi images contain a newer kernel.&#160; Could I download the chimaera image, and copy the contents of its /boot to my /boot in order to load a newer kernel?&#160; Or is there another way to perform a kernel upgrade on a running system?&#160; Any help is greatly appreciated.</p>]]></description>
			<author><![CDATA[dummy@example.com (rbit)]]></author>
			<pubDate>Fri, 25 Nov 2022 19:16:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38930#p38930</guid>
		</item>
	</channel>
</rss>
