edk2-nvidia icon indicating copy to clipboard operation
edk2-nvidia copied to clipboard

How to optimize boot time?

Open ultwcz opened this issue 2 years ago • 2 comments

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.

ultwcz avatar Sep 28 '23 05:09 ultwcz

Hello,

You can try the following:

  1. If you’re using a debug build, consider switching to release build so that time spent logging messages over uart is saved.
  2. 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

ashishsingha avatar Sep 28 '23 07:09 ashishsingha

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

ultwcz avatar Oct 07 '23 03:10 ultwcz