Osの起動時間短縮方法について

現在、OSが起動する時間を目視で計測すると、電源投入してOSの壁紙が表示されるまで、約19秒かかっています。
OSをカスタマイズすれば起動時間を短縮できると思い、下記URLを参照しましたが、具体的にどのような作業をすればよいか分かりませんでした。
(Embedded Linuxの起動時間最適化)
BSP6において、どのような方法があるかご教授お願いいたします。

なお、OSはVersionは古いですが下記URLを参照して作成しており、下記内容以外に日本語フォントを追加した程度で、大きな変更はしていません。
(Linux OS開発環境構築 マニュアル BSP5用)

tdx-infoの出力内容は下記の通りです。
Software summary

Bootloader: U-Boot
Kernel version: 5.15.129-6.5.0-devel+git.6f8fd49366db #1 SMP PREEMPT Fri Dec 22 11:15:52 UTC 2023
Kernel command line: root=PARTUUID=577cc89f-02 ro rootwait console=tty1 console=ttymxc2,115200 consoleblank=0 earlycon
Distro name: NAME=“TDX Wayland with XWayland”
Distro version: VERSION_ID=6.5.0-devel-20240327230744-build.0
Distro variant: -
Hostname: verdin-imx8mp-15230634

Hardware info

HW model: Toradex Verdin iMX8M Plus on Verdin Development Board
Toradex version: 0063 V1.1B
Serial number: 15230634
Processor arch: aarch64

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

To reduce the boot time of your Toradex Verdin iMX8M Plus, you can consider several optimization strategies using BSP6. Here are some steps you can take:

  1. U-Boot Configuration:

    • You can reduce the boot delay by setting the bootdelay environment variable to a lower value or zero. This will help the system start faster by minimizing the wait time during boot.
    • Streamline the boot process by disabling any unnecessary boot scripts or commands in U-Boot that are not essential for your application.
  2. Kernel Parameters:

    • Optimize the kernel command line by minimizing console outputs. For instance, you can remove or reduce the verbosity of console messages to speed up the boot process.
    • If your storage device initializes quickly, consider adjusting the rootwait parameter to potentially reduce wait times.
  3. Service Management:

    • Use systemd-analyze to identify services that take the longest to start. You can then consider disabling or delaying non-essential services to improve boot time.
    • Optimize the startup sequence of services to ensure that critical services start first, which can help in achieving a faster boot.
  4. Lightweight Environment:

    • Consider using a more lightweight desktop environment or window manager to reduce graphical load times. This can significantly decrease the time it takes for the graphical interface to become ready.
    • Minimize the number of graphical elements and applications that start automatically to further enhance boot speed.

By implementing these strategies, you should be able to achieve a noticeable reduction in boot time. Each step involves careful consideration of your system’s requirements and the trade-offs between boot speed and functionality.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

Embedded Linux Boot Time Optimization - Toradex Modules.