<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Core MP135 - overlay fs]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">i'm deploying a core mp135 into a permanent install. Everything is working great but I can't get the overlay fs to work.</p>
<p dir="auto">typically we mount the overlay fs in the initrd init script but I don't think it has one. Putting an init script into extlinux.conf seemed to kill the whole boot and given the timing of the HDMI coming on have been unable to capture any error messages.</p>
<p dir="auto">Would love any ideas?</p>
<p dir="auto">Cheers,<br />
Alex</p>
]]></description><link>https://community.m5stack.com/topic/7240/core-mp135-overlay-fs</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 16:08:15 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7240.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Jan 2025 08:49:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core MP135 - overlay fs on Fri, 21 Feb 2025 08:28:05 GMT]]></title><description><![CDATA[<p dir="auto">你是自己编译的镜像嘛，分享下（或出下教程）</p>
]]></description><link>https://community.m5stack.com/post/28300</link><guid isPermaLink="true">https://community.m5stack.com/post/28300</guid><dc:creator><![CDATA[kingpwf]]></dc:creator><pubDate>Fri, 21 Feb 2025 08:28:05 GMT</pubDate></item><item><title><![CDATA[Reply to Core MP135 - overlay fs on Sun, 26 Jan 2025 19:34:25 GMT]]></title><description><![CDATA[<p dir="auto">In addition I have tried hijacking the init script like this, but end up in an endless reboot before the HDMI or serial port come up. so I cannot see what the error is</p>
<p dir="auto">root@cmp135:/sbin# ls /sbin/init<br />
/sbin/init<br />
root@cmp135:/sbin#</p>
<p dir="auto">root@cmp135:/sbin# ls /sbin/myinit<br />
/sbin/myinit<br />
root@cmp135:/sbin#</p>
<p dir="auto">root@cmp135:/sbin# chmod +x /sbin/myinit<br />
root@cmp135:/sbin#</p>
<p dir="auto">add this to /sbin/myinit<br />
#!/bin/sh<br />
set -e<br />
echo "Setting up OverlayFS for root filesystem..."<br />
mkdir -p /overlay/upper<br />
mkdir -p /overlay/work<br />
mkdir -p /newroot<br />
mkdir -p /lower<br />
mount -o ro /dev/mmcblk0p5 /lower<br />
mount -t tmpfs tmpfs /overlay<br />
mkdir -p /overlay/upper<br />
mkdir -p /overlay/work<br />
mount -t overlay overlay -o lowerdir=/lower,upperdir=/overlay/upper,workdir=/overlay/work /newroot<br />
mount --move /proc /newroot/proc<br />
mount --move /sys /newroot/sys<br />
mount --move /dev /newroot/dev<br />
/sbin/init</p>
<p dir="auto">root@cmp135:/sbin# cat /boot/extlinux/extlinux.conf<br />
label stm32mp135f-coremp135-buildroot<br />
kernel /boot/zImage<br />
devicetree /boot/stm32mp135f-coremp135.dtb<br />
append root=/dev/mmcblk0p5 rw panic=5 quiet=false rootwait init=/sbin/myinit<br />
root@cmp135:/sbin#</p>
]]></description><link>https://community.m5stack.com/post/28040</link><guid isPermaLink="true">https://community.m5stack.com/post/28040</guid><dc:creator><![CDATA[ghotihook]]></dc:creator><pubDate>Sun, 26 Jan 2025 19:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to Core MP135 - overlay fs on Sun, 26 Jan 2025 19:27:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> this was my attempted at an initrd script. I can't find any evidence in logs that its being run.</p>
<p dir="auto">root@cmp135:/boot# uname -a<br />
Linux cmp135 5.15.118 #1 SMP PREEMPT Thu Sep 19 20:04:06 CST 2024 armv7l GNU/Linux</p>
<p dir="auto">root@cmp135:/boot# zcat /proc/config.gz &gt; /boot/config-5.15.118</p>
<p dir="auto">update-initramfs: Generating /boot/initrd.img-5.15.118<br />
W: No zstd in /usr/bin:/sbin:/bin, using gzip<br />
root@cmp135:/boot#</p>
<p dir="auto">root@cmp135:/boot# mkdir /tmp/initramfs<br />
root@cmp135:/boot# cd /tmp/initramfs<br />
root@cmp135:/tmp/initramfs#</p>
<p dir="auto">zcat /boot/initrd.img-$(uname -r) | cpio -idmv<br />
… unloaded the image</p>
<p dir="auto">Used nano to add  the below to the init file<br />
mkdir -p /overlay/upper<br />
mkdir -p /overlay/work<br />
mkdir -p /newroot<br />
mkdir -p /lower<br />
mount -o ro /dev/mmcblk0p5 /lower<br />
mount -t tmpfs tmpfs /overlay<br />
mkdir -p /overlay/upper<br />
mkdir -p /overlay/work<br />
mount -t overlay overlay -o lowerdir=/lower,upperdir=/overlay/upper,workdir=/overlay/work /newroot<br />
mount --move /proc /newroot/proc<br />
mount --move /sys /newroot/sys<br />
mount --move /dev /newroot/dev</p>
<p dir="auto">root@cmp135:/tmp/initramfs# find . | cpio -o -H newc | gzip &gt; /boot/initrd.img-5.15.118<br />
21562 blocks<br />
root@cmp135:/tmp/initramfs#</p>
<p dir="auto">Added initrd to /boot/extlinux/extlinux.conf<br />
label stm32mp135f-coremp135-buildroot<br />
kernel /boot/zImage<br />
initrd /boot/initrd.img-5.15.118<br />
devicetree /boot/stm32mp135f-coremp135.dtb<br />
append root=/dev/mmcblk0p5 rw panic=5 quiet rootwait</p>
<p dir="auto">After boot</p>
<ul>
<li>Unable to find any of my echo statements in dmesg or journalctl</li>
</ul>
<ul>
<li>root@cmp135:/home/alex060# mount | grep overlay</li>
<li>root@cmp135:/home/alex060#</li>
</ul>
]]></description><link>https://community.m5stack.com/post/28039</link><guid isPermaLink="true">https://community.m5stack.com/post/28039</guid><dc:creator><![CDATA[ghotihook]]></dc:creator><pubDate>Sun, 26 Jan 2025 19:27:45 GMT</pubDate></item><item><title><![CDATA[Reply to Core MP135 - overlay fs on Sun, 26 Jan 2025 18:16:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/217579">@ghotihook</a> Have you tried creating the initrd script?</p>
]]></description><link>https://community.m5stack.com/post/28038</link><guid isPermaLink="true">https://community.m5stack.com/post/28038</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 26 Jan 2025 18:16:44 GMT</pubDate></item></channel></rss>