<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 13, 2018 at 10:14 AM, Arjen Balfoort <span dir="ltr"><<a href="mailto:arjenbalfoort@solydxk.com" target="_blank">arjenbalfoort@solydxk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm currently building a RPi3 version of SolydX. For the Xfce desktop to successfully load I need to change the boot parameters.<br>
<br>
cmdline.txt:<br>
console=tty0 console=ttyS1,115200 root=/dev/mmcblk0p2 rw elevator=deadline fsck.repair=yes net.ifnames=0 rootwait cma=256M quiet splash loglevel=0 vt.global_cursor_default=0 plymouth.ignore-serial-console<wbr>s<br>
<br>
config.txt:<br>
arm_control=0x200<br>
kernel=vmlinuz-4.14.0-3-arm64<br>
initramfs initrd.img-4.14.0-3-arm64 followkernel<br>
disable_splash=1<br>
enable_uart=1<br>
device_tree=bcm2837-rpi-3-b.dt<wbr>b<br>
gpu_mem=16<br>
dtoverlay=pi3-disable-bt<br>
dtparam=audio=on<br>
<br>
Note: I needed the "cma=256M" in cmdline.txt. Any lower Xfce would freeze on login.<br>
<br>
As the OP mentioned, these files are now overwritten with each initramfs update. I tried to create a hook script for initramfs-tools to restore backup files to cmdline.txt and config.txt but so far I didn't succeed in that.<br>
<br>
In a desktop environment it regularly happens that initramfs is updated and overwriting these files always results in a frozen desktop and that is not something I can trust our users with.<br>
<br>
Is there a way to prevent this behavior or does anybody know how to run a script after initramfs has been updated?<br></blockquote><div><br></div><div>I think we should rename our hook from “raspi3-firmware” to “50raspi3-firmware”. update-initramfs uses run-parts(8) to invoke hooks, so you could then ship a hook with a higher number which would be guaranteed to run after the raspi3-firmware hook.</div><div><br></div><div>Let me know if that sounds good, and I’ll prepare a package upload.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
______________________________<wbr>_________________<br>
Pkg-raspi-maintainers mailing list<br>
<a href="mailto:Pkg-raspi-maintainers@lists.alioth.debian.org" target="_blank">Pkg-raspi-maintainers@lists.al<wbr>ioth.debian.org</a><br>
<a href="https://lists.alioth.debian.org/mailman/listinfo/pkg-raspi-maintainers" rel="noreferrer" target="_blank">https://lists.alioth.debian.or<wbr>g/mailman/listinfo/pkg-raspi-<wbr>maintainers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div></div>