edk2-nvidia
edk2-nvidia copied to clipboard
How to optimize boot time?
Hi, the boot time of UEFI firmware costs a lot of time. I have changed PcdPlatformBootTimeOut from 5 to 0, but it still took about 16 seconds.
I noticed a large gap before booting the kernel in the log, so I wanted to ask if there is any way to shorten the startup time.
Thank you.
Hello,
You can try the following:
- If you’re using a debug build, consider switching to release build so that time spent logging messages over uart is saved.
- Reference BSP release may have more than required hw controllers enabled that you may or may not need during boot. You can disable the controllers you don’t need during boot in uefi dtb and that’ll reduce uefi boot time as well.
Thanks
Hi,@ashishsingha Thank you for your reply first. I have used a release build, and what should I do to disable the controllers I don't need? Sorry, I am a beginner for edk2-nvidia