<?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=8002&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / init system is failing]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=8002</link>
		<description><![CDATA[The most recent posts in init system is failing.]]></description>
		<lastBuildDate>Fri, 29 May 2026 12:56:05 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64031#p64031</link>
			<description><![CDATA[<p>Yes, something is very odd. <span class="bbc">eudev</span> is actually tagged as <span class="bbc">optional</span> in the <span class="bbc">excalibur/main</span> Packages file whereas it&#039;s tagged <span class="bbc">important</span> in the <span class="bbc">ceres/main</span> Packages file, and yet they have the same version code. Very odd but it does explain why it&#039;s not included in <span class="bbc">debootstrap</span>.</p><p>Separately, I have a different note, that you might want to use <span class="bbc">binfmt_misc</span> for &quot;seamless&quot; CPU emulation, in which case you can avoid the &quot;foreign + second-stage&quot; steps of <span class="bbc">debootstrap</span>. The setup recepie on the build host for that would be like the following:</p><div class="codebox"><pre><code># apt-get install binfmt-support qemu-user-static
# modprobe binfmt_misc
# cat /usr/lib/binfmt.d/qemu-aarch64.conf &gt; /proc/sys/fs/binfmt_misc/register</code></pre></div><p>After that, your amd64(?) processor will execute arm64 binaries (within arm64 filesystem). I.e, it would let you run <span class="bbc">debootstrap</span> in a single run, without the <span class="bbc">--foreign</span> argument. Also, following the completed debootstrap, you may <span class="bbc">chroot</span> into that filesystem (seamlessly) and run additional&#160; <span class="bbc">apt-get install</span> and whatnot, to complete the setup.</p><p>Either way you will need to add <span class="bbc">--include=eudev</span> explicitly.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 29 May 2026 12:56:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64031#p64031</guid>
		</item>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64030#p64030</link>
			<description><![CDATA[<p>Odd. I haven&#039;t touched this flag. This is the command I issued.</p><div class="codebox"><pre><code>debootstrap --foreign --arch=arm64 stable /tmp/devuan [url]http://deb.devuan.org/merged[/url]</code></pre></div><p>Could be related to the mirror? I know <span class="bbc"><a href="http://deb.devuan.org/devuan" rel="nofollow">http://deb.devuan.org/devuan</a></span> is another mirror, though I don&#039;t use.</p>]]></description>
			<author><![CDATA[dummy@example.com (MProG10)]]></author>
			<pubDate>Fri, 29 May 2026 09:42:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64030#p64030</guid>
		</item>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64025#p64025</link>
			<description><![CDATA[<p>It may depend on which deboostrap variant you used. <span class="bbc">eudev</span> (which provides the udev impementaiton for Devuan) is tagged as &quot;important&quot; so would be in the default variant, but e.g. not in the <span class="bbc">minbase</span> variant.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 28 May 2026 14:05:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64025#p64025</guid>
		</item>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64024#p64024</link>
			<description><![CDATA[<p>Thank you for the help. As you pointed out, the init system loads <span class="bbc">udev</span>. <span class="bbc">udev</span> was missing. After installing the package, the system is booting successfully.</p><p>This is odd. How come <span class="bbc">udev</span> was missing? I installed from Debootstrap. Maybe a bug in Debootstrap?</p>]]></description>
			<author><![CDATA[dummy@example.com (MProG10)]]></author>
			<pubDate>Thu, 28 May 2026 13:43:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64024#p64024</guid>
		</item>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64023#p64023</link>
			<description><![CDATA[<p>Ok, understood. Sounds good.</p><p>The very first thing to do in that init script is to mount <span class="bbc">/proc</span>. Without that nothing else can be mounted. Possibly that is sufficient, but I think it should also mount <span class="bbc">/dev</span> before any auto-mounting and <span class="bbc">mdev</span>. Thus I suggest it starts as:</p><div class="codebox"><pre><code>#!/bin/sh
mount -t proc proc /proc
mount -t devtmpfs devtmpfs /dev
mount -T /fstab -a
....</code></pre></div><p>Just to note that all that mounting happens within the initrd (unpacked filesystem) and <span class="bbc">switch_root</span> will unmount all before switching root.</p><p>Therefore you might need to also add a bind-mount onto <span class="bbc">/mnt/proc</span> just before <span class="bbc">switch_root</span></p><p>It is the right thing to exec the openRC init binary, though of course the root filesystem needs to be duly populated. If you want to rely on the early /dev population by mdev, then that switch_root init script might further need to bind-mount <span class="bbc">/mnt/dev</span> as well before switching.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 28 May 2026 13:15:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64023#p64023</guid>
		</item>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64022#p64022</link>
			<description><![CDATA[<p>This is an init script in an <span class="bbc">initramfs</span>. Android is booted from an <span class="bbc">initramfs</span>. I&#039;m using the proprietary bootloader. The kernel does load, and does boot with Busybox init, but is failing with System V init. I don&#039;t have a serial setup. All I have is <span class="bbc">adbd</span>.</p><p>I tried running <span class="bbc">/etc/init.d/rc</span> manually. Nothing regarding <span class="bbc">devtmpfs</span> is logged.</p>]]></description>
			<author><![CDATA[dummy@example.com (MProG10)]]></author>
			<pubDate>Thu, 28 May 2026 12:33:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64022#p64022</guid>
		</item>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64021#p64021</link>
			<description><![CDATA[<p>Hmm, that script; which filesystem has that script. Is that /init in an initrd?</p><p>Without initrd, you probably will need boot root= and rootfstype= arguments and then the kernel might be able to find that /init script on the given root. This will still require the kernel to have built-in modules to handle mmcblk device, the partition table and the filesystem involved.</p><p>Do you know that the kernel loads and starts?</p><p>Do you have serial connectors to attach to, to get bootloading logs?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 28 May 2026 12:03:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64021#p64021</guid>
		</item>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64020#p64020</link>
			<description><![CDATA[<p>I tried messing with the kernel boot arguments. No dice. This is my current kernel boot arguments.</p><div class="codebox"><pre><code>console=tty0,115200 loglevel=7</code></pre></div><p>I was hoping <span class="bbc">loglevel=7</span> to log init messages. No dice. Tried including <span class="bbc">root=/dev/mmcblk0p54</span> as argument. No dice.</p><p>This device is running kernel 3.18. Here are <a href="https://github.com/moto8937/android_kernel_motorola_msm8937/blob/master/arch/arm64/configs/cedric_defconfig" rel="nofollow">the sources and defconfig</a>. And here&#039;s the script I use to boot Devuan GNU/Linux.</p><div class="codebox"><pre><code>#!/bin/sh

mount -T /fstab -a
mdev -s
mount /dev/mmcblk0p54 /mnt
exec switch_root /mnt /sbin/init</code></pre></div><p>Note this other Android device is running kernel 3.10. The failure is unlikely to be related to the kernel version.</p>]]></description>
			<author><![CDATA[dummy@example.com (MProG10)]]></author>
			<pubDate>Thu, 28 May 2026 11:35:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64020#p64020</guid>
		</item>
		<item>
			<title><![CDATA[Re: init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64018#p64018</link>
			<description><![CDATA[<p>Hmm, the <span class="bbc">sysvinit</span> scripts for <span class="bbc">eudev</span> (or <span class="bbc">udev</span>) seems to mount the kernel&#039;s <span class="bbc">devtmpfs</span> onto <span class="bbc">/dev</span> (of the post-pivot root filesystem), so apparently your system boot-up doesn&#039;t include those.</p><p>Could you share your kernel boot command line arguments?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 28 May 2026 10:19:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64018#p64018</guid>
		</item>
		<item>
			<title><![CDATA[init system is failing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64010#p64010</link>
			<description><![CDATA[<p>Hello. I&#039;m writing this post in requesting assistance booting Devuan GNU/Linux on an Android device. This is an ARM64 device. Upon running the init system, the system doesn&#039;t mount <strong>devtmpfs</strong>. The init system is failing. I do have <strong>CONFIG_DEVTMPFS</strong> set.</p><p>Do you happen to know which are the required kernel configurations for a successful boot? I believe I&#039;m missing a kernel configuration, since I had success on another Android device. This other device is ARM-based.</p><p>Unfortunately, I don&#039;t have much logs to read. And I know for a fact the init system is failing, since running</p><div class="codebox"><pre><code>adb ls /dev/</code></pre></div><p>returns an empty directory. Do you happen to know of a method to show init debug messages?</p><p>From a <strong>chroot</strong> environment, I see the init system doesn&#039;t mount <strong>devtmpfs</strong> either.</p>]]></description>
			<author><![CDATA[dummy@example.com (MProG10)]]></author>
			<pubDate>Wed, 27 May 2026 14:11:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64010#p64010</guid>
		</item>
	</channel>
</rss>
