极端 Pi 启动优化 Extreme Pi Boot Optimization

原始链接: https://kittenlabs.de/blog/2024/09/01/extreme-pi-boot-optimization/

在本文中,作者讨论了一个名为“SolarCamPi”的项目,这是一款使用 Raspberry Pi Zero 2 W 构建的离网太阳能 WiFi 摄像头。其目的是最大限度地减少能源消耗,因为能源消耗是太阳能供电中的稀缺资源。 西欧冬季的设备。 他们优化了用户空间应用程序、电子设置,并采用了各种技术来实现他们的目标。 他们探索的方法包括降低功耗和最大限度地减少系统运行时间。 然而,他们发现在这两方面取得平衡至关重要。 由于功耗较低,禁用 CPU Turbo 似乎是有益的,但与更快的操作和随后的断电相比,增加的运行时间最终可能会消耗更多的能量。 为了测量和分析能耗,作者使用了多种工具,例如 Power Profiler Kit II、USB-SD-Mux 和 USB-UART 转换器。 使用 Debian 12 arm64 Lite,他们采取了一些措施来优化启动过程,包括修改 cmdline.txt 文件、编写初始化脚本以及启用调试启动。 通过实验和分析,他们成功地在多个方面降低了能耗,例如通过取消 HDMI 和调整 CPU 时钟频率。 最终,他们成功实现了低于 3.5 秒的启动时间,同时与现有 Debian 相比大幅降低了能耗。 此外,他们还分享了有关输入电压操纵以进一步减少能源使用的见解。

In this article, the author discusses a project titled "SolarCamPi," an off-grid solar-powered WiFi camera built using a Raspberry Pi Zero 2 W. The aim was to minimize energy consumption since it is a scarce resource in a solar-powered device during winter months in Western Europe. They have optimized the user space application, electronic setup, and employed various techniques to achieve their goal. The methods they explored included reducing power consumption and minimizing the time spent running the system. However, they discovered that striking a balance between the two aspects is crucial. Disabling CPU Turbo may seem beneficial due to lower power consumption, but the increased runtime could end up using more energy compared to quicker operation and subsequent power-off. To measure and analyze energy consumption, the authors utilized several tools such as the Power Profiler Kit II, USB-SD-Mux, and a USB-UART converter. Using Debian 12 arm64 Lite, they took steps to optimize the boot process, including modifying the cmdline.txt file, writing an initialization script, and enabling debug boots. Through experimentation and analysis, they managed to decrease energy consumption in multiple areas, such as through eliminating HDMI and adjusting the CPU's clock frequency. Ultimately, they succeeded in achieving a boot time below 3.5 seconds while drastically cutting energy consumption compared to stock Debian. Additionally, they shared insights regarding input voltage manipulation to further reduce energy usage.


🚀 3.5 sec to Linux userspace code

相关文章
联系我们 contact @ memedata.com